joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x8e0f00
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e0f06
pop ebp
sub ebp, 6
sub ebp, 0x4e0f00
jmp 0x8e0f64
jmp 0x8e0f6d
mov eax, 0x4e0f00
add eax, ebp
add eax, 0x93
mov ecx, 0x62d
mov edx, 0x16000365
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e0f84
jmp 0x8e0f97
invalid
Function at 0x403740
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x4135dc
push ebx
mov ebx, 0x412518
push esi
call fcn.0040c5d4
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x40377a
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x40377a
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040bddc
mov esi, eax
test esi, esi
je 0x40382a
mov edx, 0x4110f9
mov eax, esi
call fcn.0040be20
mov esi, eax
test eax, eax
je 0x40379d
mov eax, ebx
mov edx, esi
call fcn.0040be4c
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x40381a
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x4037b4
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x4037ba
inc esi
test esi, 1
jne 0x403819
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x4037db
test eax, eax
je 0x4037e5
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x4037e5
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x403819
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x4037f5
cmp edx, 0x53
jne 0x403819
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x403806
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x403819
mov dword [0x411050], 1
mov byte [0x411054], 1
jmp 0x403821
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x4037a7
cmp byte [ebp - 1], 0
jne 0x40382a
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x4135d4], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x412918], eax
push 0x65
push dword [0x4135d4]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x41291c], eax
lea eax, [ebp - 0xc]
call fcn.004054ac
push 0x400
push 0x412118
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x412118
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x412118
mov eax, 0x4135c0
call fcn.00404aec
lea eax, [ebp - 0x24]
call fcn.00404054
lea eax, [ebp - 0x3c]
call fcn.00404054
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x412d20], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x412d24], ecx
call sub.USER32.DLL_DialogBoxParamA
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404078
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404078
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405520
xor ecx, ecx
mov dword [0x412d24], ecx
mov dword [0x412d20], ecx
cmp dword [0x41186c], 0
jne 0x40391d
cmp dword [0x411878], 0
jne 0x40391d
mov ecx, 4
mov edx, dword [0x411040]
xor eax, eax
call fcn.004018cb
cmp byte [0x41103d], 0
je 0x40392b
call fcn.004026ac
mov eax, 0x412088
mov ecx, pe_nt_image_headers32
xor edx, edx
call fcn.0040bd4c
cmp dword [0x41104c], 0
jle 0x40394f
mov eax, dword [0x411040]
call fcn.0040bcd0
push dword [0x412918]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x41291c]
test eax, eax
je 0x403969
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x4135b4], 0
jne 0x40398a
cmp dword [0x41186c], 0
je 0x40398a
mov eax, 0x4135b4
mov edx, 0xff
call fcn.00409750
mov dword [0x41186c], 2
push dword [0x4135b4]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x432002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x6f280262
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3c3328f2
nop
nop
nop
nop
test eax, eax
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x9ffd11d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
stc
lea edi, [ecx + 0x34bf214d]
btc si, di
mov esi, dword [esp + 0x60]
lea ebp, [esi*4 + 0x101d88b6]
ror bp, cl
movzx di, al
xchg di, bp
bswap esi
movzx bp, dl
jmp 0x9ffe0da
rol esi, 0x18
inc bp
movsx bp, cl
lea edi, [ebx - 0x48ed468a]
dec esi
stc
sal bp, 0xc
btc ebp, esi
lea ebp, [esp + 0x30]
bt bx, di
sub esp, 0x90
not di
mov di, 0x7028
jmp 0x9ffeb7b
mov edi, esp
pushfd
lea esp, [esp + 4]
jmp fcn.09ffbfe7
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408e84
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3244469c
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xec209c6
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x10c209aa
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5ac61cad
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x397c42f3
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x2df35811
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x404a37
Capabilities:
Delete registry key

Disassembly:
push edi
mov edi, esp
push ebp
xor ebp, ebp
cmp dword [esi], ebp
je 0x404a6f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebp
je 0x404a7c
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x404a7c
push ebp
push dword [esi]
push ebp
push ebp
push dword [edi + 0xc]
push dword [edi + 8]
call eax
jmp 0x404a7f
cmp dword [esi + 4], ebp
je 0x404a7c
pop esi
pop edi
jmp dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
inc eax
pop ebp
pop edi
ret 8

Function at 0x404af2
Capabilities:
Query or enumerate registry key

Disassembly:
push esi
mov esi, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x477084]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push edi
mov edi, ecx
mov ecx, dword [esi + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor ebp, ebp
or eax, 0x2001f
lea ebx, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.00404d62
mov ebx, eax
cmp ebx, ebp
je 0x404b54
cmp dword [esp + 0x10], ebp
je 0x404b50
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404bca
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404b72
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00404af2
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x404be1
lea eax, [esp + 0x28]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push ebp
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x100
call ebx
or eax, eax
je 0x404b5c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], ebp
je 0x404bad
push dword [esp + 0x10]
call ebx
mov dword [esp + 0x10], ebp
push dword [esp + 0x20]
mov dword [esp + 0x18], ebp
call fcn.00404a84
mov edi, eax
cmp dword [esp + 0x10], ebp
je 0x404bc8
push dword [esp + 0x10]
call ebx
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410b60
mov esp, esi
pop esi
ret 4
cmp dword [esp + 0x10], ebp
je 0x404bf1
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
jmp 0x404bca
Function at 0x407792
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x45401b
call fcn.0044d7cc
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x4077ea
call fcn.00406578
mov esi, eax
jmp 0x4078f4
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x407803
call fcn.00406578
jmp 0x4078e6
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x4077f9
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x407840
mov esi, 0x8007000e
jmp 0x4078e8
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
cmp ecx, esi
mov byte [ebp - 4], 2
ja 0x407855
cmp eax, 0xffffffff
jbe 0x40785f
push 0x80070216
call fcn.0040538e
cmp eax, 0x400
jbe 0x40788c
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00406555
jmp 0x407898
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x407836
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4077f9
mov edx, dword [ebp - 0x418]
xor ecx, ecx
push dword [ebp + 0x10]
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00407632
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40790d
lea eax, [ebp - 0x418]
call fcn.0040654c
mov eax, esi
call fcn.0044d828
ret 0xc
Function at 0x40ab4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40abb2
cmp dword [ebp + 0xc], 1
je 0x40ab8a
cmp dword [ebp + 0xc], 2
je 0x40ab8a
push 0xd
pop eax
jmp 0x40abb2
or edi, edi
mov eax, dword [ebp - 4]
je 0x40abac
or eax, eax
je 0x40aba7
test al, 1
jne 0x40ab85
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40abac
jmp 0x40ab85
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x410833
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x479100], 0
push edi
push esi
jne 0x4107a9
call fcn.00410715
test eax, eax
je 0x4107ee
mov eax, dword [0x479100]
cmp eax, 1
jne 0x4107ca
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
or eax, eax
je 0x4107ee
jmp 0x410830
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x410830
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4107f2
xor eax, eax
jmp 0x410830
mov eax, dword [esi]
push dword [0x479100]
call edi
mov edi, eax
test edi, edi
je 0x410814
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x410830
lea edi, [esi + 0xff0]
push esi
push dword [0x479100]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
sub esi, 0xfffffff0
cmp esi, edi
jb 0x41081a
mov eax, esi
pop esi
pop edi
ret
jmp 0x410795
Function at 0x410b60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477084]
jne 0x410b6a
repz ret
jmp 0x413df2
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffcd8
mov dword [0x4792b8], eax
mov dword [0x4792b4], ecx
mov dword [0x4792b0], edx
mov dword [0x4792ac], ebx
mov dword [0x4792a8], esi
mov dword [0x4792a4], edi
mov word [0x4792d0], ss
mov word [0x4792c4], cs
mov word [0x4792a0], ds
mov word [0x47929c], es
mov word [0x479298], fs
mov word [0x479294], gs
pushfd
pop dword [0x4792c8]
mov eax, dword [ebp]
mov dword [0x4792bc], eax
mov eax, dword [ebp + 4]
mov dword [0x4792c0], eax
lea eax, [ebp + 8]
mov dword [0x4792cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x479208], 0x10001
mov eax, dword [0x4792c0]
mov dword [0x4791bc], eax
mov dword [0x4791b0], 0xc0000409
mov dword [0x4791b4], 1
mov eax, dword [0x477084]
mov dword [ebp - 0x328], eax
mov eax, dword [0x477088]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x479200], eax
push 1
call fcn.0041b8b0
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x455558
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x479200], 0
jne 0x413ee4
push 1
call fcn.0041b8b0
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x413df2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477084]
jne 0x410b6a
repz ret
jmp 0x413df2
mov edi, edi
push ebp
mov ebp, esp
add esp, 0xfffffcd8
mov dword [0x4792b8], eax
mov dword [0x4792b4], ecx
mov dword [0x4792b0], edx
mov dword [0x4792ac], ebx
mov dword [0x4792a8], esi
mov dword [0x4792a4], edi
mov word [0x4792d0], ss
mov word [0x4792c4], cs
mov word [0x4792a0], ds
mov word [0x47929c], es
mov word [0x479298], fs
mov word [0x479294], gs
pushfd
pop dword [0x4792c8]
mov eax, dword [ebp]
mov dword [0x4792bc], eax
mov eax, dword [ebp + 4]
mov dword [0x4792c0], eax
lea eax, [ebp + 8]
mov dword [0x4792cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x479208], 0x10001
mov eax, dword [0x4792c0]
mov dword [0x4791bc], eax
mov dword [0x4791b0], 0xc0000409
mov dword [0x4791b4], 1
mov eax, dword [0x477084]
mov dword [ebp - 0x328], eax
mov eax, dword [0x477088]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x479200], eax
push 1
call fcn.0041b8b0
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x455558
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x479200], 0
jne 0x413ee4
push 1
call fcn.0041b8b0
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x414a73
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0041494a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x416d01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x477084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00416cdb
pop ecx
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x1fc], edi
je 0x416ea1
push 3
call fcn.0041e6cc
pop ecx
cmp eax, 1
je 0x416e4d
push 3
call fcn.0041e6cc
test eax, eax
pop ecx
jne 0x416d5f
cmp dword [0x477080], 1
je 0x416e4d
cmp esi, 0xfc
je 0x416ea1
push str.Runtime_Error__n_nProgram:
push 0x314
mov edi, 0x479528
push edi
call fcn.004134c8
add esp, 0xc
test eax, eax
jne 0x416e43
push 0x104
mov esi, 0x47955a
push esi
push ebx
mov word [0x479762], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
test eax, eax
jne 0x416dcb
push str._program_name_unknown_
push ebx
push esi
call fcn.004134c8
add esp, 0xc
test eax, eax
je 0x416dcb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00414a73
push esi
call fcn.00412400
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416e02
push esi
call fcn.00412400
lea eax, [eax*2 + 0x4794e4]
mov ecx, eax
sub ecx, esi
push 3
sar ecx, 1
push 0x455f84
sub ebx, ecx
push ebx
push eax
call fcn.00413162
add esp, 0x14
test eax, eax
jne 0x416dbf
push 0x455f7c
mov esi, 0x314
push esi
push edi
call fcn.0041e657
add esp, 0xc
test eax, eax
jne 0x416dbf
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.0041e657
add esp, 0xc
test eax, eax
jne 0x416dbf
push 0x12010
push 0x455f30
push edi
call fcn.0041e4eb
add esp, 0xc
jmp 0x416ea1
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x416dc6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
je 0x416ea1
cmp esi, 0xffffffff
je 0x416ea1
xor eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x416e7a
inc eax
cmp eax, 0x1f4
jb 0x416e62
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00412d40
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410b60
leave
ret

Function at 0x41b52c
Capabilities:
Query environment variable

Disassembly:
mov esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
xor ecx, ecx
cmp edi, ecx
jne 0x41b541
pop edi
xor eax, eax
ret
cmp word [edi], cx
je 0x41b556
add eax, 2
cmp word [eax], cx
jne 0x41b546
sub eax, 0xfffffffe
cmp word [eax], cx
jne 0x41b546
push ebx
sub eax, edi
lea ebx, [eax + 2]
push esi
push ebx
call fcn.00414432
pop ecx
mov esi, eax
test esi, esi
jne 0x41b577
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, esi
pop esi
pop ebx
pop edi
ret
push ebx
push edi
push esi
call fcn.00412420
add esp, 0xc
jmp 0x41b56a
Function at 0x41ba20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov edx, esp
mov ecx, dword [edx + 8]
mov edx, 0x5a4d
cmp word [ecx], dx
je 0x41ba36
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41ba32
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
pop ebp
ret

Function at 0x41ba60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3c]
add edx, eax
movzx eax, word [edx + 0x14]
push ebx
lea eax, [eax + edx + 0x18]
xor ebx, ebx
push esi
movzx esi, word [edx + 6]
push edi
test esi, esi
je 0x41ba9d
mov ecx, dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
cmp ecx, edi
jb 0x41ba95
mov edx, dword [eax + 8]
add edx, edi
cmp ecx, edx
jb 0x41ba9f
inc ebx
add eax, 0x28
cmp ebx, esi
jb 0x41ba85
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret