joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e191
Capabilities:
Delete file

Disassembly:
push 0x38
mov eax, 0x482aa7
call fcn.004602d6
xor ebx, ebx
push 8
mov dword [ebp - 4], ebx
call fcn.0043bd96
pop ecx
cmp eax, ebx
je 0x42e1b9
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x42e1bb
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x4aeaa0]
mov esi, 0x4b1ae8
cmp eax, 0xfffffffe
jne 0x42e1df
push esi
push 0x4929b0
call fcn.0042de03
pop ecx
pop ecx
mov dword [0x4aeaa0], eax
cmp eax, 0xffffffff
je 0x42e34b
lea ecx, [ebp + 8]
call fcn.00405dc6
push eax
lea ecx, [ebp - 0x18]
call fcn.0042e14d
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0042dfe9
push eax
call fcn.0042dd43
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
mov dword [ebp - 0x24], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp edi, ebx
je 0x42e328
push ebx
push esi
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0042dd61
cmp eax, 0xffffffff
je 0x42e328
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x10
mov dword [ebp - 0x14], eax
call fcn.0043bd96
pop ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x42e265
mov ecx, eax
call fcn.00442ae1
mov esi, eax
jmp 0x42e267
xor esi, esi
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00442f53
lea ecx, [ebp - 0x34]
call fcn.00442ae1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00442ae1
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00404b78
push esi
lea ecx, [ebp - 0x44]
call fcn.00404b78
push 8
call fcn.0043bd96
pop ecx
cmp eax, ebx
je 0x42e2b6
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
mov edi, eax
jmp 0x42e2b8
xor edi, edi
push ebx
push dword [ebp - 0x10]
call fcn.0042ddc1
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
mov dword [ebp - 0x1c], ebx
call fcn.0042dddf
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00443223
cmp edi, ebx
jne 0x42e2e7
xor eax, eax
jmp 0x42e2ea
mov eax, dword [edi + 4]
push eax
push dword [ebp - 0x30]
call fcn.00443302
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, ebx
je 0x42e30a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 3
call fcn.00442fd0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00442fd0
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x42e33d
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401240
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.004036f7
call fcn.0042ca99
pop ecx
cmp al, bl
je 0x42e36d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x42e377
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401240
mov eax, ebx
call fcn.004603ae
ret
Function at 0x42e521
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 1
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x42e555
push esi
push 0x84000000
push esi
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp ebx, esi
je 0x42e562
push ebx
call edi
cmp dword [ebp - 4], esi
je 0x42e56c
push dword [ebp - 4]
call edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401240
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401240
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42f126
Capabilities:
Get geographical location

Disassembly:
push 8
mov eax, 0x482e2e
call fcn.00460309
mov edi, ecx
mov esi, dword [ebp + 8]
push str.useriduser_idcountrycodecountry
xor ebx, ebx
push str.uidcc
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00407be0
lea eax, [ebp + 8]
push 0x92
push eax
call fcn.00425b7d
pop ecx
pop ecx
push dword [eax]
mov ecx, esi
push str.user_id
mov byte [ebp - 4], 1
call fcn.00407be0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401240
lea eax, [ebp + 8]
push 0x91
push eax
call fcn.00425b7d
pop ecx
pop ecx
push dword [eax]
mov ecx, esi
push str.source
mov byte [ebp - 4], 2
call fcn.00407be0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401240
lea eax, [ebp + 8]
push 0x95
push eax
call fcn.00425b7d
pop ecx
pop ecx
push dword [eax]
mov ecx, esi
push 0x4898e4
mov byte [ebp - 4], 3
call fcn.00407be0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401240
push dword [edi + 0xfc]
mov ecx, esi
push str.accepted_offers
call fcn.00407be0
lea eax, [ebp - 0x14]
push 0x9c
push eax
call fcn.00425b7d
pop ecx
pop ecx
push dword [eax]
mov ecx, esi
push 0x4898d4
mov byte [ebp - 4], 4
call fcn.00407be0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401240
call fcn.004603ae
ret 4
Function at 0x43132b
Capabilities:
Resume thread

Disassembly:
push 0
mov eax, 0x4833df
call fcn.004602d6
mov edi, ecx
push 0x28
mov dword [ebp - 4], 2
call fcn.0043bd96
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x431359
mov ecx, eax
call fcn.0042f00c
mov esi, eax
jmp 0x43135b
xor esi, esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.004039fe
lea eax, [ebp + 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.004039fe
mov eax, dword [edi + 0x12c]
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.004039fe
mov eax, dword [edi + 0x20]
push ebx
push 4
push ebx
push ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
push esi
push 0x430f64
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov dword [esi + 0x14], eax
call fcn.00440000
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4313c1
mov dword [eax + 0x28], ebx
mov eax, dword [esi + 0x18]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4313f2
mov esi, dword [ebp + 0x14]
imul esi, esi, 0x44
mov ebx, 0x4893bc
push ebx
lea ecx, [esi + 0x4b1b98]
call fcn.00403a4b
push ebx
lea ecx, [esi + 0x4b1b9c]
call fcn.00403a4b
mov byte [edi + 0x151], 1
mov byte [edi + 0x152], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401240
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401240
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401240
call fcn.004603ae
ret 0x10
Function at 0x436dc5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0045fc20
add esp, 0xc
mov dword [ebp - 0x44], 0x44
cmp byte [ebp + 0x10], bl
je 0x436df7
push 0xb
pop eax
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], ax
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop ebx
leave
ret 0xc

Function at 0x436e1c
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
setne al
ret 8

Function at 0x436e39
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 8]
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x436e6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
ret 4
Function at 0x43ea5f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x484e85
call fcn.004602d6
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43ea84
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43eaca
lea ecx, [ebp - 0x10]
call fcn.004036e3
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043bf2e
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401240
mov eax, esi
call fcn.004603ae
ret 8

Function at 0x440fd9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x441021
call fcn.0043dd16
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x441021
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x441064
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44104d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44104d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x441061
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x442819
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x44283d
cmp dword [edi + 0x54], 0
jne 0x44283d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043dd16
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004427da
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4490b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4490fa
call fcn.0043dd16
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4490fa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x449116
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00448c2d
mov esi, eax
test edi, edi
je 0x449114
test ebx, ebx
je 0x449114
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44da36
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x44da61
call fcn.0043dd16
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x44da84
push eax
push dword [esi + 4]
call fcn.0044d9bc
push esi
push eax
mov ecx, 0x4b4098
call fcn.0044d630
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x44e2cc
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x485884
call fcn.004602d6
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0044e28c
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004036e3
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x44e332
push eax
push dword [esi + 8]
call fcn.0044d9bc
push dword [esi + 0xc]
mov ecx, 0x4b4098
push eax
call fcn.0044d630
mov eax, esi
call fcn.004603ae
ret 0x18
Function at 0x4602c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b02dc]
jne 0x4602d1
repz ret
jmp fcn.0046aa0c

Function at 0x477ce4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004689e4
and dword [ebp - 4], 0
cmp dword [0x4b4e68], 0
mov ebx, eax
jne 0x477d95
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x477e46
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x499e88
push edi
call esi
test eax, eax
je 0x477e46
push eax
call fcn.00468972
mov dword [esp], 0x499e78
push edi
mov dword [0x4b4e68], eax
call esi
push eax
call fcn.00468972
mov dword [esp], 0x499e64
push edi
mov dword [0x4b4e6c], eax
call esi
push eax
call fcn.00468972
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b4e70], eax
call esi
push eax
call fcn.00468972
pop ecx
mov dword [0x4b4e78], eax
test eax, eax
je 0x477d95
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00468972
pop ecx
mov dword [0x4b4e74], eax
mov eax, dword [0x4b4e74]
cmp eax, ebx
je 0x477ded
cmp dword [0x4b4e78], ebx
je 0x477ded
push eax
call fcn.004689ed
push dword [0x4b4e78]
mov esi, eax
call fcn.004689ed
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x477ded
test edi, edi
je 0x477ded
call esi
test eax, eax
je 0x477de4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x477de4
test byte [ebp - 0xc], 1
jne 0x477ded
or dword [ebp + 0x10], 0x200000
jmp 0x477e26
mov eax, dword [0x4b4e6c]
cmp eax, ebx
je 0x477e26
push eax
call fcn.004689ed
pop ecx
test eax, eax
je 0x477e26
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x477e26
mov eax, dword [0x4b4e70]
cmp eax, ebx
je 0x477e26
push eax
call fcn.004689ed
pop ecx
test eax, eax
je 0x477e26
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b4e68]
call fcn.004689ed
pop ecx
test eax, eax
je 0x477e46
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x477e48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401050
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x22]
sub ecx, edi
lea ebp, [ecx + 8]
mov dl, al
lea ecx, [edi + eax]
add dl, 0x41
mov byte [ecx + ebp], dl
mov dl, al
add dl, 0x61
inc eax
cmp eax, 0x1a
mov byte [ecx], dl
jl 0x401065
xor eax, eax
mov cl, al
add cl, 0x30
mov byte [esi + eax + 0x3c], cl
inc eax
cmp eax, 0xa
jl 0x40107f
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov byte [esi + 0x46], 0x2b
mov byte [esi + 0x47], 0x2f
xor edi, edi
mov byte [esp + 0x1a], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x18], bl
xor edx, edx
cmp edi, ecx
jge 0x4010c2
xor eax, eax
mov al, byte [edi + ebp]
inc edi
mov byte [esp + edx + 0x18], al
inc edx
cmp edx, 3
jl 0x4010ae
cmp edx, ebx
jle 0x401154
mov eax, dword [esp + 0x18]
and eax, 0xff
mov ecx, eax
and eax, 3
shr ecx, 2
shl eax, 4
mov cl, byte [ecx + esi + 8]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x19]
and ecx, 0xff
mov ebx, ecx
and ecx, 0xf
shr ebx, 4
or ebx, eax
shl ecx, 2
mov al, byte [ebx + esi + 8]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x1a]
and eax, 0xff
mov ebx, eax
and eax, 0x3f
shr ebx, 6
or ebx, ecx
mov cl, byte [ebx + esi + 8]
xor ebx, ebx
mov byte [esp + 0x12], cl
mov al, byte [eax + esi + 8]
cmp edx, 3
mov byte [esp + 0x13], al
mov byte [esp + 0x14], bl
jge 0x401142
mov al, 0x3d
cmp edx, 2
mov byte [esp + 0x13], al
jge 0x401142
mov byte [esp + 0x12], al
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004a9faf
mov ecx, dword [esp + 0x28]
cmp edi, ecx
jl 0x4010a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x401170
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
mov edx, ecx
push ebx
push ebp
push esi
lea ebp, [edx + 8]
push edi
mov ecx, 0x3f
mov eax, 0x80808080
mov edi, ebp
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [eax + ebp], cl
inc eax
cmp eax, 0x5a
jle 0x401196
mov eax, 0x61
mov cl, al
sub cl, 0x47
mov byte [eax + ebp], cl
inc eax
cmp eax, 0x7a
jle 0x4011a9
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [eax + ebp], cl
inc eax
cmp eax, 0x39
jle 0x4011bc
xor edi, edi
mov byte [edx + 0x33], 0x3e
mov byte [edx + 0x37], 0x3f
mov byte [edx + 0x45], 0
xor esi, esi
mov ebx, dword [esp + 0x24]
xor edx, edx
xor eax, eax
mov al, byte [edi + ebx]
inc edi
test eax, eax
je 0x40120b
cmp eax, 0x20
jle 0x4011e0
mov cl, byte [eax + ebp]
test cl, 0x80
jne 0x4012a9
mov byte [esp + edx + 0x1c], al
mov byte [esp + edx + 0x14], cl
inc edx
cmp edx, 4
jl 0x4011e0
jmp 0x40120f
test edx, edx
jg 0x40128c
mov eax, dword [esp + 0x14]
mov dl, ah
mov cl, al
shr dl, 4
shl cl, 2
or dl, cl
mov cl, byte [esp + 0x17]
mov byte [esp + 0x10], dl
mov dl, byte [esp + 0x16]
mov al, ah
shr dl, 2
shl al, 4
or dl, al
mov al, byte [esp + 0x16]
shl al, 6
or al, cl
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov al, byte [esp + 0x1e]
cmp al, 0x3d
jne 0x401255
mov ecx, 1
jmp 0x401264
mov dl, byte [esp + 0x1f]
xor ecx, ecx
cmp dl, 0x3d
setne cl
add ecx, 2
xor eax, eax
test ecx, ecx
jle 0x4011de
mov ebx, dword [esp + 0x28]
mov dl, byte [esp + eax + 0x10]
mov byte [esi + ebx], dl
mov edx, dword [esp + 0x2c]
inc esi
cmp esi, dword [edx]
jge 0x4012cb
inc eax
cmp eax, ecx
jl 0x40126e
jmp 0x4011da
mov eax, dword [esp + 0x18]
push str.Error:_Unexpect_end_of_string
lea ecx, [eax + 4]
call fcn.004a9d5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov ecx, dword [esp + 0x18]
push eax
add ecx, 4
push str.Error:_Illegal_character_0x_0.2X_in_string
push ecx
call fcn.004a768f
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
mov edx, dword [esp + 0x18]
push str.Warning:_Buffer_too_small
lea ecx, [edx + 4]
call fcn.004a9d5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x402220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10c
lea eax, [esp + 0x84]
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
test esi, esi
je 0x402373
mov edi, dword [sym.imp.KERNEL32.dll__lread]
lea ecx, [esp + 0x14]
push 0x40
push ecx
push esi
call edi
mov edx, dword [esp + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll__llseek]
push 0
push edx
push esi
call ebx
lea eax, [esp + 0x54]
push 0x40
push eax
push esi
call edi
mov ecx, dword [esp + 0x80]
push 0
push ecx
push esi
call ebx
lea edx, [esp + 0x10]
push 1
push edx
push esi
mov dword [esp + 0x1c], 0
call edi
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x124]
and eax, 0xffff
push eax
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [esp + 0x10]
and ecx, 0xffff
mov byte [ecx + ebx], 0
mov al, byte [ebx]
test al, al
je 0x402373
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, 0x20
jbe 0x402373
push 7
push str.fontdir
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402373
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402373
mov cl, byte [esi + 0x78]
lea eax, [esi + 0x78]
test cl, cl
jne 0x40231e
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push eax
call edi
cmp byte [eax], 0
je 0x402316
mov edi, dword [esp + 0x128]
push eax
lea edx, [edi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
push ebx
mov ax, word [esi + 0x56]
mov dword [edi + 0x10], eax
mov cl, byte [esi + 0x52]
mov byte [edi + 0x14], cl
mov dl, byte [esi + 0x53]
mov byte [edi + 0x15], dl
mov al, byte [esi + 0x54]
mov byte [edi + 0x16], al
mov cl, byte [esi + 0x58]
mov byte [edi + 0x17], cl
mov dl, byte [esi + 0x5e]
and dl, 0xf1
inc dl
mov byte [edi + 0x1b], dl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
Function at 0x402b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8012
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x50]
mov dword [esp + 0x10], 7
call fcn.004a9c1f
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 6
call fcn.004a9c1f
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 5
call fcn.004a9c1f
lea ecx, [esi + 0x44]
mov byte [esp + 0x10], 4
call fcn.004a9c1f
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 3
call fcn.004a9c1f
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 2
call fcn.004a9c1f
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 1
call fcn.004a9c1f
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 0
call fcn.004a9c1f
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0xa
call fcn.004a7ff7
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 9
call fcn.004a9c1f
lea ecx, [esi + 8]
mov byte [esp + 0x10], 8
call fcn.004a9c1f
test esi, esi
mov dword [esp + 0x10], 0xffffffff
je 0x402c13
lea ecx, [esi + 4]
jmp 0x402c15
xor ecx, ecx
call fcn.004a9c1f
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4041a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b8490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push edi
push str.dllcache_
lea eax, [esp + 8]
push 0x4ff32c
push eax
mov dword [esp + 0x1c], 0
call fcn.004a9e68
mov cl, byte [0x4fc5e4]
xor eax, eax
mov byte [esp + 0x1c], cl
mov ecx, 0x40
lea edi, [esp + 0x1d]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
push edx
push 1
stosw word es:[edi], ax
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
mov dword [esp + 0x13c], 1
stosb byte es:[edi], al
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x404261
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.SFCDllCacheDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404256
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 4]
call fcn.004a9d5c
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [esp + 8]
push 1
push eax
lea ecx, [esp + 0xc]
call fcn.004a719d
mov eax, dword [eax]
push 0x4ee660
push eax
call fcn.00474eb8
add esp, 8
lea ecx, [esp + 8]
test eax, eax
setne bl
call fcn.004a9c1f
test bl, bl
pop ebx
je 0x4042cc
lea ecx, [esp]
push 0x4ee660
lea edx, [esp + 8]
push ecx
push edx
call fcn.004a9e68
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x128], 2
call fcn.004a9d0c
lea ecx, [esp + 4]
mov byte [esp + 0x124], 1
call fcn.004a9c1f
push esi
mov esi, dword [esp + 0x130]
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.004a9994
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x128], 0
call fcn.004a9c1f
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret