joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462d30
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x462edb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x462ebc
mov dl, 1
mov eax, dword [0x418250]
call fcn.00403360
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040c8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x462eab
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00450d18
test al, al
je 0x462e9e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x462eec
lea eax, [ebp - 0x254]
call fcn.004091c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462e9e
xor eax, eax
push ebp
push 0x462e97
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x462f24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x462e80
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404338
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x462e80
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462e9e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x462da1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041bd84
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462ee2
lea eax, [ebp - 0x260]
call fcn.004040c8
ret

Function at 0x463810
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x479bbc]
cmp byte [eax + 0xa5], 0
jne 0x463881
cmp dword [0x479bd4], 0
jne 0x463842
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4637cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479bd4], eax
cmp dword [0x479bd0], 0
jne 0x46385d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479bd0], eax
cmp dword [0x479bd8], 0
jne 0x463881
push esp
push 0
push 0
push 0x463770
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x479bd8], eax
pop edx
ret
Function at 0x463978
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46398f
add esp, 0xfffffff0
call fcn.0040369c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fb94
mov eax, dword [0x4784f8]
cmp word [eax + 2], 0
jne 0x4639b7
mov eax, dword [0x4784f8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004650f8
mov eax, dword [0x4785c8]
cmp word [eax + 2], 0
jne 0x4639d1
mov eax, dword [0x4785c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004652f0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417e34]
call fcn.00403360
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417e34]
call fcn.00403360
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421da0]
call fcn.00427b5c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x463b58
mov eax, dword [0x4783e8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427f2c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x465890
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4783e8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c9a0
test eax, eax
je 0x463ac6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ba4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c9c8
test eax, eax
je 0x463ada
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404338
mov eax, dword [0x478290]
cmp byte [eax], 0
jne 0x463b0e
mov eax, ebx
call fcn.00463c80
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00465a6c
mov eax, ebx
call fcn.00466430
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x463b4e
call fcn.004036f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463f00
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479bbc]
cmp dword [eax + 0x30], 0
je 0x463faa
cmp dword [ebx + 0x94], 0
jne 0x463fa4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x463e90
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x463fa4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x463f6a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x463fa4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a19c
push eax
call sub.user32.dll_SetWindowPos
dec esi
invalid
invalid

Function at 0x464b0c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x464b41
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041b8
jmp 0x464b4e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040411c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x465c48
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465c89
mov eax, esi
call fcn.0044c300
test al, al
je 0x465c89
mov eax, dword [ebx + 0x84]
call fcn.0044bffc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465c89
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044bffc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4669a4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417600]
call fcn.00404a60
xor eax, eax
push ebp
push 0x466ae8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x478054], 0
jne 0x4669f7
mov ecx, dword [0x4782a4]
mov dl, 1
mov eax, dword [0x407370]
call fcn.0040bc60
call fcn.00403b04
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402da4
mov eax, ebx
call fcn.00404930
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x466af8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405ad0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404940
test eax, eax
jle 0x466a8f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x466a88
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404350
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404338
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408194
test eax, eax
jne 0x466a88
mov ebx, 0x15
jmp 0x466a94
mov ebx, 0x10
jmp 0x466a94
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x478054]
call fcn.004668a0
mov eax, dword [ebp - 8]
call fcn.004668a0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405ae8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466aef
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004040ec
lea eax, [ebp - 0x10]
mov edx, dword [0x417600]
call fcn.00404b24
ret
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
push 0x4090e8
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401052
mov eax, dword [0x40bb10]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401045
call esi
push eax
push edi
push str.FindResource__d__failed:__ld_n
call fcn.004017f5
add esp, 0xc
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jne 0x40108e
mov eax, dword [0x40bb10]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401081
call esi
push eax
push edi
push str.SizeofResource__d__failed:__ld_n
call fcn.004017f5
add esp, 0xc
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010c8
mov eax, dword [0x40bb10]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4010bb
call esi
push eax
push edi
push str.LoadResource__d__failed:__ld_n
call fcn.004017f5
add esp, 0xc
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x401102
mov eax, dword [0x40bb10]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4010f5
call esi
push eax
push edi
push str.LockResource__d__failed:__ld_n
call fcn.004017f5
add esp, 0xc
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edi, dword [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x409064
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004017e2
mov esi, eax
add esp, 8
test esi, esi
jne 0x4011a5
mov eax, dword [0x40bb10]
test eax, eax
je 0x401194
mov ecx, dword [0x40bb18]
lea edx, [esp + 0x10]
push ecx
push edx
push str.fopen__s__failed:__ld_n
call fcn.004017f5
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push esi
push ebp
push 1
push ebx
call fcn.004015b6
add esp, 0x10
cmp eax, ebp
je 0x4011d7
mov eax, dword [0x40bb10]
test eax, eax
je 0x4011d7
mov eax, dword [0x40bb18]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.fwrite__s__failed:__n
call fcn.004017f5
add esp, 0xc
push esi
call fcn.00401560
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4011f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push eax
push 0xf003f
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x40123b
mov eax, dword [0x40bb10]
test eax, eax
je 0x401337
push esi
push ebp
push str.RegOpenKeyEx__s__failed:__d_n
call fcn.004017f5
add esp, 0xc
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
push 0
push 0
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
test esi, esi
je 0x40128c
mov eax, dword [0x40bb10]
test eax, eax
je 0x401337
push esi
push ebp
push str.RegQueryInfoKey__s__failed:__d_n
call fcn.004017f5
add esp, 0xc
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x40130d
mov edx, dword [esp + 0xc]
push edi
inc edx
push edx
call fcn.00401831
mov edi, eax
mov eax, dword [esp + 0x10]
add esp, 4
lea esi, [eax - 1]
test esi, esi
jl 0x401303
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
push edx
push edi
inc ecx
push esi
push eax
mov dword [esp + 0x38], ecx
call ebx
test eax, eax
je 0x4012f1
mov ecx, dword [0x40bb10]
test ecx, ecx
je 0x4012ff
push eax
push str.RegEnumKey_failed:__d_n
call fcn.004017f5
jmp 0x4012fc
mov ecx, dword [esp + 0x24]
push edi
push ecx
call fcn.004011f0
add esp, 8
dec esi
jns 0x4012b7
pop ebx
push edi
call fcn.00401826
add esp, 4
pop edi
mov edx, dword [esp + 0x18]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
je 0x401337
mov eax, dword [0x40bb10]
test eax, eax
je 0x401337
push esi
push ebp
push str.RegDeleteKey__s__failed:__d_n
call fcn.004017f5
add esp, 0xc
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4031d6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4031f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405140
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x403217
test byte [esp + 8], 2
je 0x403217
mov dword [0x40bb18], 0xd
mov dword [0x40bb1c], 5
jmp 0x4031f2
xor eax, eax
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x54a007d8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4a72113f
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401ef0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x401f59
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00401c90
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x402590
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.00401c90
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x4025e7
push ebx
push edi
call fcn.00401ce0
push esi
mov ebx, esi
call fcn.00401c90
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x4025be
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x402620
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4026b2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4026a4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40269c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x402665
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406599
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406599
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40658a
cmp esi, edx
jae 0x406599
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406578
cmp esi, edx
jae 0x406599
cmp word [esi], 0
je 0x406599
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40a0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dda56
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x518250]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40a18c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40a18c
call fcn.004092d0
mov edi, eax
jmp 0x40a2ab
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40a1af
call fcn.004092d0
jmp 0x40a29e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40a1cd
call fcn.004092d0
jmp 0x40a29e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40a1ee
mov edi, 0x8007000e
jmp 0x40a2a0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40a2e4
jb 0x40a20c
cmp eax, 0xffffffff
ja 0x40a2e4
cmp eax, 0x400
jbe 0x40a221
push eax
lea ecx, [ebp - 0x418]
call fcn.004091f0
jmp 0x40a247
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40a247
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40a25e
mov edi, 0x8007000e
jmp 0x40a2a0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40a27e
call fcn.004092d0
jmp 0x40a29e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00409f40
mov edi, eax
test esi, esi
je 0x40a2ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40a2c4
lea ecx, [ebp - 0x418]
call fcn.004095f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045124a
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00404b40
int3
Function at 0x40ca20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddce7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x518250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x4eb7b0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x50], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push 0
push 0
lea esi, [edi + 4]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.0040c240
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00450e0a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40caca
push 1
mov byte [ebp - 4], 2
call fcn.00427213
add esp, 4
mov dword [ebx + 4], eax
jmp 0x40cacc
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret