joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c81be0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c84218
push 0x4c82bc4
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4c85060], eax
xor eax, eax
mov al, byte [0x4c85061]
mov dword [0x4c8506c], eax
mov eax, dword [0x4c85060]
shr dword [0x4c85060], 0x10
and eax, 0xff
mov dword [0x4c85068], eax
shl eax, 8
add eax, dword [0x4c8506c]
mov dword [0x4c85064], eax
call fcn.04c82b80
test eax, eax
jne 0x4c81c54
push 0x1c
call fcn.04c81d80
add esp, 4
mov dword [ebp - 4], 0
call fcn.04c829a0
call fcn.04c82990
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4c860c0], eax
call fcn.04c82540
mov dword [0x4c85040], eax
test eax, eax
je 0x4c81c87
cmp dword [0x4c860c0], 0
jne 0x4c81c91
push 0xffffffffffffffff
call fcn.04c81de0
add esp, 4
call fcn.04c822c0
call fcn.04c821d0
call fcn.04c81db0
mov esi, dword [0x4c860c0]
mov al, byte [esi]
cmp al, 0x22
je 0x4c81cb8
cmp al, 0x20
jbe 0x4c81ce5
inc esi
cmp byte [esi], 0x20
ja 0x4c81cb0
jmp 0x4c81ce5
inc esi
cmp byte [esi], 0x22
je 0x4c81ce4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4c81cdf
xor eax, eax
mov al, bl
push eax
call fcn.04c82170
add esp, 4
test eax, eax
je 0x4c81cd9
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4c81cc1
cmp byte [esi], 0x22
jne 0x4c81ce5
inc esi
cmp byte [esi], 0
je 0x4c81cf5
cmp byte [esi], 0x20
ja 0x4c81cf5
inc esi
cmp byte [esi], 0
jne 0x4c81cea
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4c81d19
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.04c81de0
jmp 0x4c81d5a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c81e20
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4c8509c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4c81e3e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4c85098], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4c85094], bl
jne 0x4c81e98
cmp dword [0x4c860b8], 0
je 0x4c81e86
mov edi, dword [0x4c860b4]
sub edi, 4
cmp edi, dword [0x4c860b8]
jb 0x4c81e86
mov eax, dword [edi]
test eax, eax
je 0x4c81e7b
call eax
sub edi, 4
cmp edi, dword [0x4c860b8]
jae 0x4c81e73
push 0x4c85014
push 0x4c85010
call fcn.04c81ed0
add esp, 8
push 0x4c8501c
push 0x4c85018
call fcn.04c81ed0
add esp, 8
test ebx, ebx
jne 0x4c81ebf
mov dword [0x4c8509c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x4c82540
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4c85140], ebx
jne 0x4c8258f
call esi
cmp eax, ebx
mov edi, eax
je 0x4c8256d
mov dword [0x4c85140], 1
jmp 0x4c8258f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4c82585
mov dword [0x4c85140], 2
jmp 0x4c8258f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4c85140], 1
jne 0x4c8263e
test edi, edi
jne 0x4c825b2
call esi
mov edi, eax
test edi, edi
jne 0x4c825b2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4c825cc
add esi, 2
cmp word [esi], 0
jne 0x4c825ba
add esi, 2
cmp word [esi], 0
jne 0x4c825ba
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4c8262d
push ebp
call fcn.04c82f30
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4c8262d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4c8261c
push ebx
call fcn.04c82ee0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4c85140], 2
jne 0x4c826c2
test ebx, ebx
jne 0x4c82661
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4c82661
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4c82676
inc ebp
cmp byte [ebp], 0
jne 0x4c82668
inc ebp
cmp byte [ebp], 0
jne 0x4c82668
sub ebp, ebx
inc ebp
push ebp
call fcn.04c82f30
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4c8269b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4c82ce0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4c85370
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4c82d07
add eax, 8
inc ecx
cmp eax, 0x4c85400
jb 0x4c82cf8
cmp dword [ecx*8 + 0x4c85370], edx
lea ebx, [ecx*8]
jne 0x4c82ecb
cmp dword [0x4c8504c], 1
je 0x4c82e87
cmp dword [0x4c8504c], 0
jne 0x4c82d3e
cmp dword [0x4c85050], 1
je 0x4c82e87
cmp edx, 0xfc
je 0x4c82ecb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4c82d7b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4c82dbf
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4c844f8
push ebp
call fcn.04c837e0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4c844d8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x4c85374]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.04c83740
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x4c85fb0], 0
je 0x4c82e9d
mov eax, dword [0x4c85fb0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4c82ea7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4c85374]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x100061c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x10006207
cmp ebx, 0x20
je 0x10006207
cmp ebx, 0xffffffe0
je 0x10006207
jne 0x10006210
add eax, 1
cmp esi, eax
je 0x1000621d
jne 0x100061ec
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x10006221
jne 0x100061e8
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x10006235
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x100062f6
test ecx, ecx
je 0x100062f6
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x100062f6
test ebx, ebx
je 0x100062f6
mov ebx, eax
add ebx, edx
je 0x100062f6
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x100062f6
cmp dword [edx + eax + 0x14], 0
je 0x100062f6
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x100062f6
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x100062e6
test dl, dl
je 0x100062e2
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x100062e6
add edi, 2
add esi, 2
test dl, dl
jne 0x100062c6
xor eax, eax
jmp 0x100062eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10006302
inc ebp
cmp ebp, dword [esp + 4]
jb 0x100062b3
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x10015a10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x10015a2e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10015a23
pop esi
ret
Function at 0x401f10
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402c90
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402c90
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40b630]
test esi, esi
jle 0x402090
mov eax, dword [0x40b634]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401fa4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402027
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401f90
mov dword [esp], ebx
call fcn.00402970
mov edi, eax
test eax, eax
je 0x4020b7
mov eax, dword [0x40b634]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402ab0
mov edx, dword [0x40b634]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402097
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402020
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402030
add dword [0x40b630], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40b634]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401f10
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401fae
mov eax, dword [0x40b634]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401f10
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401f10
lea esi, [esi]
nop
Function at 0x4025f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b64c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b644]
sub esp, 4
test ebx, ebx
je 0x402645
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40263e
test esi, esi
je 0x40263e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402620
mov dword [esp], 0x40b64c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402970
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402995
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4029a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402995
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4029e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4029de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4029ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4029d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40139d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4013cd
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004010df

Function at 0x4033d2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42f1e4]
sub esi, dword [0x4331f0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x472e20], eax
cmp esi, ebx
jle 0x403530
push dword [0x4331ec]
call fcn.004033bb
push ebx
push ebx
push dword [0x4331f0]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42f1e0], esi
mov dword [0x41f154], ebx
mov ebp, 0x4271e0
mov eax, dword [0x4331e8]
sub eax, dword [0x4331ec]
mov edi, 0x4000
cmp eax, edi
jg 0x403447
mov edi, eax
push edi
mov esi, 0x42f1e8
push esi
call fcn.00403389
test eax, eax
je 0x403542
add dword [0x4331ec], edi
mov dword [0x427170], esi
mov dword [0x427174], edi
cmp dword [0x472ddc], ebx
je 0x40349e
cmp dword [0x472ea0], ebx
jne 0x40349e
mov eax, dword [0x42f1e0]
sub eax, dword [0x42f1e4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4331f0]
mov dword [0x41f154], eax
call fcn.004032e7
pop ecx
mov ecx, 0x427158
mov dword [0x427178], ebp
mov dword [0x42717c], 0x8000
call fcn.00407473
test eax, eax
js 0x403547
mov esi, dword [0x427178]
sub esi, ebp
je 0x4034fc
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40354c
cmp esi, dword [esp + 0x10]
jne 0x40354c
add dword [0x4331f0], esi
cmp dword [0x427174], ebx
jne 0x40346d
jmp 0x403508
cmp dword [0x427174], ebx
jne 0x403547
cmp edi, ebx
je 0x403547
mov eax, dword [0x42f1e4]
mov ecx, eax
sub ecx, dword [0x4331f0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403431
push ebx
push ebx
push eax
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.004032e7
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x40353a
push 0xfffffffffffffffd
pop eax
jmp 0x40353a
push 0xfffffffffffffffe
jmp 0x403549
Function at 0x403fa0
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
sub esp, 0x13c
mov eax, dword [0x473354]
xor eax, esp
mov dword [esp + 0x138], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 8], edi
test edi, edi
je 0x404131
push str.SeDebugPrivilege
call fcn.00403df0
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40412a
push esi
lea esi, [esp + 0x3c]
mov ecx, esi
push 0x5c
push ecx
call fcn.004309b8
add esp, 8
test eax, eax
je 0x40401e
mov edx, esi
push 0x5c
push edx
call fcn.004309b8
mov esi, eax
add esp, 8
add esi, 1
je 0x404030
push str.Smss.exe
push esi
call fcn.00430d4d
add esp, 8
test eax, eax
je 0x404044
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403ff5
jmp 0x404129
mov ecx, dword [esp + 0x20]
push ebx
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x404128
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 0x474e98
push 0xa
push ebx
call ebp
test eax, eax
jne 0x40411a
push 0x474e98
push 0x60000
push ebx
call ebp
test eax, eax
je 0x40411a
mov ecx, dword [0x474e98]
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 4
push 6
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x40411a
mov eax, dword [esp + 0x10]
xor edx, edx
xor esi, esi
cmp dx, word [eax + 4]
jae 0x4040ed
mov edi, dword [sym.imp.ADVAPI32.dll_GetAce]
lea ecx, [esp + 0x1c]
push ecx
push esi
push eax
call edi
mov edx, dword [esp + 0x1c]
mov dword [edx + 4], 0xf01ff
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 4]
inc esi
cmp esi, ecx
jl 0x4040c8
mov edi, dword [esp + 0x14]
mov edx, dword [0x474e98]
push 0
push eax
push 0
push 0
push 4
push 6
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x474e98
push 0xa
push ebx
call ebp
push str.SeImpersonatePrivilege
call fcn.00403df0
add esp, 4
pop ebp
pop ebx
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
pop edi
xor ecx, esp
call fcn.00430430
add esp, 0x13c
ret
Function at 0x404200
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [0x474eb8]
push ebx
push esi
push edi
test eax, eax
je 0x40424d
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
push esi
push edi
push ebx
call eax
test eax, eax
je 0x404282
mov ecx, dword [0x474e98]
test ecx, ecx
je 0x404282
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push 0
push esi
push edi
push ebx
call dword [0x474eb8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
push edi
call ebx
test eax, eax
je 0x404282
mov ecx, dword [0x474e98]
test ecx, ecx
je 0x404282
push ecx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push esi
push edi
call ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x404380
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x414
mov eax, dword [0x473354]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, dword [esp + 0x41c]
push 0x10
lea ecx, [esp + 8]
push ecx
mov eax, 0x2e
mov word [esp + 0xc], ax
xor eax, eax
push 0xe
push 0x400
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x400
lea edx, [esp + 0x18]
push edx
push 0
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4043f1
lea edx, [esp + 4]
push edx
push esi
call fcn.00430700
add esp, 8
test eax, eax
je 0x404410
mov byte [eax], 0
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00430430
add esp, 0x414
ret
Function at 0x4047d0
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.GetSystemWindowsDirectoryA
push str.Kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x104
push 0x474b68
test eax, eax
je 0x4047ff
call eax
jmp 0x404805
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
jmp 0x404810
mov cl, byte [eax + 0x474b68]
mov byte [eax + 0x474a28], cl
inc eax
test cl, cl
jne 0x404810
mov eax, 0x474a28
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404827
mov ecx, dword [0x460640]
mov edx, dword [0x460644]
mov dword [eax], ecx
mov cx, word [0x460648]
push str.GetSystemWow64DirectoryA
mov dword [eax + 4], edx
push str.Kernel32.dll
mov word [eax + 8], cx
call esi
push eax
call edi
test eax, eax
je 0x404881
push 0x104
push 0x474c70
call eax
test eax, eax
jne 0x404881
mov edi, edi
mov cl, byte [eax + 0x474a28]
mov byte [eax + 0x474c70], cl
inc eax
test cl, cl
jne 0x404870
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x104
push 0x474920
push str._ProgramW6432_
call esi
push 0x104
push 0x4746b0
push str._PROGRAMFILES_X86__
call esi
push str.__x86_
push 0x474920
call fcn.00430b10
add esp, 8
pop edi
pop esi
test eax, eax
je 0x4048e6
push str.__x86_
push 0x474920
call fcn.00430b10
add esp, 8
push 0x474920
push str.PROGRAMFILES_X86_
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
ret

Function at 0x404e70
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
push 0
push 0
lea eax, [esp + 8]
push eax
push 0x400
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x404ebd
push 0
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [esp + 0xc]
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 8
ret