joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427cb0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x427cfe
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429858
mov esp, ebp
pop ebp
ret

Function at 0x427d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x427d70
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429858
mov esp, ebp
pop ebp
ret

Function at 0x427d90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x427e3d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ebp - 0xe], ax
add dword [ebp - 0xc], 2
cmp word [ebp - 0xe], 0
jne 0x427dd9
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 0x18], 0
je 0x427e08
mov dword [ebp - 0x18], 2
jmp 0x427e0f
mov dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x20]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429858
mov esp, ebp
pop ebp
ret
Function at 0x427e50
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x427ecf
push 1
mov edx, dword [ebp - 8]
add edx, 2
push edx
call fcn.004032b0
add esp, 8
mov dword [ebp - 0xc], eax
push 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x427ecf
cmp dword [ebp + 0xc], 0
je 0x427eca
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
jmp 0x427ed1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429858
mov esp, ebp
pop ebp
ret

Function at 0x427f80
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ccdd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.00402190
lea ecx, [ebp - 0x14]
call fcn.004028d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push 0
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x428049
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00426750
push eax
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x428049
push 0x44d5e0
push 0x44d5e4
lea ecx, [ebp - 0x14]
call fcn.004026d0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404970
mov edx, dword [ebp - 0x1c]
or edx, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004028b0
mov eax, dword [ebp + 8]
jmp 0x428071
push 0x44d5ec
mov ecx, dword [ebp + 8]
call fcn.0040b960
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004028b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429858
mov esp, ebp
pop ebp
ret

Function at 0x42a879
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42a8b8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a8b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a8b8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42a8b8
cmp dword [ecx + 0x74], 0xe
jbe 0x42a8b8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43e2f6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451b78
push 0x451b70
push str.FlsAlloc
push 0x1f
call fcn.0043e180
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e32a
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d2a4]
call esi
jmp 0x43e330
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43e374
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451b88
push 0x451b80
push str.FlsGetValue
push 0x21
call fcn.0043e180
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e3ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d2a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43e3b3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x451b90
push 0x451b88
push str.FlsSetValue
push 0x22
call fcn.0043e180
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e3ed
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44d2a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4412fd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x441348
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00441498
test al, al
jne 0x441342
sub edx, 2
cmp edx, edi
jne 0x441328
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44136a
lea eax, [edi + 2]
cmp edx, eax
je 0x44136a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00441249
add esp, 0x10
jmp 0x441464
push esi
lea ecx, [ebp - 0x255]
call fcn.00441498
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4413ad
push dword [ebp - 0x25c]
jmp 0x44135a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4413ea
cmp word [ebp - 0x226], 0
je 0x44140b
cmp word [ebp - 0x226], ax
jne 0x4413ea
cmp word [ebp - 0x224], 0
je 0x44140b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00441249
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x441457
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4413c4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44143f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x441464
push 0x441079
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00448000
add esp, 0x10
jmp 0x441434
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429858
leave
ret

Function at 0x441d61
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x441d72
pop esi
ret
push ebx
push edi
push esi
call fcn.00441d2a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043c492
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x441d9a
push ebx
push esi
push edi
call fcn.0042b5e0
add esp, 0xc
push 0
call fcn.0043c458
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x44216a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00441daf
Function at 0x4444ec
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043d99f
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44455b
cmp esi, dword [ebp - 4]
je 0x444556
cmp dword [ebp + 0xc], 0
je 0x444556
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x444533
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044403e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44455d
xor eax, eax
inc eax
jmp 0x44455d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4445c2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0043d99f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0043d99f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x444639
cmp word [ecx], dx
je 0x444639
mov eax, dword [0x4521dc]
push edi
dec eax
push eax
push 0x4520c8
call fcn.00444561
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4446ac
cmp word [eax], dx
je 0x4446ac
mov eax, dword [edi]
test eax, eax
je 0x44465d
cmp word [eax], dx
je 0x44465d
lea eax, [ebp - 0x10]
push eax
call fcn.00443f44
jmp 0x444666
lea eax, [ebp - 0x10]
push eax
call fcn.00443fdf
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4446d6
mov eax, dword [0x4520c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x451db8
call fcn.00444561
add esp, 0xc
test al, al
je 0x4446d6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4446a1
cmp word [eax], di
je 0x4446a1
lea eax, [ebp - 0x10]
push eax
call fcn.00443f44
pop ecx
jmp 0x4446d8
lea eax, [ebp - 0x10]
push eax
call fcn.00443fdf
jmp 0x44469e
mov eax, dword [edi]
test eax, eax
je 0x4446c3
cmp word [eax], dx
je 0x4446c3
lea eax, [ebp - 0x10]
push eax
call fcn.00443ef9
pop ecx
jmp 0x4446d6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4447a1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004443e6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4447a1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4447a1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4447a1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44472e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043e4f3
test ebx, ebx
je 0x44479c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043e4f3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4447a1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4447a1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00448758
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4447a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429858
leave
ret
Function at 0x449e30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x449e5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x449e5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001d90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0x5ab
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x3d
test esi, esi
jbe 0x10001dbd
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x10001db1
pop esi
ret

Function at 0x10001dc0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x400
push 0x26000
push 0x10007030
call fcn.10001d90
push 0x10007030
call fcn.100012d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10001e05
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.10001ad0
add esp, 8
test eax, eax
jne 0x10001e09
push ebx
call fcn.10001b70
add esp, 4
pop edi
pop esi
pop ebx
ret
sub esp, 0x2a8
mov ecx, 0xaa
mov esi, str.Z___ii_gUQfQl_ohW
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.10001b70
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100033c6
Capabilities:
Check for trap flag exception

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
pushfd
or dword [esp], 0x100
popfd
clc
call fcn.100033eb
Function at 0x10004fb0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x10004fbd
xor eax, eax
pop esi
ret
push esi
call dword [0x10014ad8]
add esp, 4
test eax, eax
jne 0x10004fcd
pop esi
ret
cmp eax, 1
jne 0x10004fdb
cmp byte [esi], 0x5c
jne 0x10004fdb
xor eax, eax
pop esi
ret
push esi
call fcn.10004d60
add esp, 4
test eax, eax
je 0x10004fef
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x10005000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x10005041.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x10005041.2
jmp dword [eax*4 + 0x100050cc]
mov word [esp + 0x48], di
jmp 0x1000507a
mov word [esp + 0x48], 2
jmp 0x1000507a
mov word [esp + 0x48], 3
jmp 0x1000507a
mov word [esp + 0x48], 4
jmp 0x1000507a
mov word [esp + 0x48], 7
jmp 0x1000507a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x100050c4
cmp dword [esp + 0x70], edi
je 0x100050b0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x403a3e
Capabilities:
Query environment variable
Set console window title

Disassembly:
mov eax, dword [0x4ed2fc]
mov ecx, dword [0x4ed268]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x403ac1
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x4ed2fc], 0x5d
jne 0x403ab4
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapValidate]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0x402c8c
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push esi
push 0x402c98
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
call fcn.0040320d
add ebx, 8
dec edi
jne 0x403a59
pop edi
pop ebx
pop esi
ret

Function at 0x403ae9
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push dword [0x4ed2fc]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4ed268], eax
ret
Function at 0x403b04
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov eax, 0x4adbab
call fcn.004adab8
sub esp, 0x458
push ebx
push esi
mov eax, 0xb2d3b
add dword [0x4ed2fc], eax
xor ebx, ebx
cmp dword [0x4ed2fc], 0x20a
jne 0x403bb5
push edi
push ebx
push ebx
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x402cb8
push ebx
push 0x402cdc
push 0x402d04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push ebx
push ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
call fcn.004030a0
lea eax, [ebp - 0x30]
call fcn.00403da5
push ebx
mov dword [ebp - 4], ebx
call fcn.00404aa6
push ebx
push ebx
push ebx
call fcn.00405138
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea edi, [ebp - 0x30]
call fcn.00403dca
pop edi
xor eax, eax
cmp eax, 0xf027935
jg 0x403bc6
inc eax
cmp eax, 0x736251e2
jl 0x403bb7
push 0x4c0af0
mov byte [0x4c0af6], 0x33
mov byte [0x4c0af7], 0x32
mov byte [0x4c0af8], 0x2e
mov byte [0x4c0af3], 0x6e
mov byte [0x4c0af4], 0x65
mov byte [0x4c0af5], 0x6c
mov byte [0x4c0af9], 0x64
mov byte [0x4c0afa], 0x6c
mov byte [0x4c0afb], 0x6c
mov byte [0x4c0afc], bl
mov byte [0x4c0af0], 0x6b
mov byte [0x4c0af1], 0x65
mov byte [0x4c0af2], 0x72
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x4ed2fc]
mov dword [0x4ed26c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4ed268], eax
call fcn.00403ae9
mov eax, dword [0x4bb01c]
xor esi, esi
mov dword [0x4ed3d4], eax
cmp dword [0x4ed2fc], ebx
jbe 0x403c9e
mov eax, dword [0x4ed3d4]
mov al, byte [eax + esi + 0xb2d3b]
mov ecx, dword [0x4ed268]
mov byte [ecx + esi], al
cmp dword [0x4ed2fc], 0x44
jne 0x403c95
push ebx
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
inc esi
cmp esi, dword [0x4ed2fc]
jb 0x403c5b
call fcn.00403a3e
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
cmp esi, 0xc06
jne 0x403cc2
call fcn.00403ac3
inc esi
cmp esi, 0x246b35
jl 0x403ca5
push 0x7b
pop esi
cmp dword [0x4ed2fc], 0xd
jne 0x403d0a
push 0x30
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], ebx
call fcn.00409420
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x64]
push eax
push 0x402d48
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
push ebx
push ebx
push 0x402d54
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
dec esi
jne 0x403cce
call fcn.00403add
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405a0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ba678]
jne 0x405a15
repz ret
jmp fcn.0040bbdc
Function at 0x40c55e
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.0040a878
and dword [ebp - 4], 0
cmp dword [0x4c0998], 0
mov ebx, eax
jne 0x40c60f
push 0x401a60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c6c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a54
push edi
call esi
test eax, eax
je 0x40c6c0
push eax
call fcn.0040a806
mov dword [esp], 0x401a44
push edi
mov dword [0x4c0998], eax
call esi
push eax
call fcn.0040a806
mov dword [esp], 0x401a30
push edi
mov dword [0x4c099c], eax
call esi
push eax
call fcn.0040a806
mov dword [esp], 0x401a14
push edi
mov dword [0x4c09a0], eax
call esi
push eax
call fcn.0040a806
pop ecx
mov dword [0x4c09a8], eax
test eax, eax
je 0x40c60f
push 0x4019fc
push edi
call esi
push eax
call fcn.0040a806
pop ecx
mov dword [0x4c09a4], eax
mov eax, dword [0x4c09a4]
cmp eax, ebx
je 0x40c667
cmp dword [0x4c09a8], ebx
je 0x40c667
push eax
call fcn.0040a881
push dword [0x4c09a8]
mov esi, eax
call fcn.0040a881
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c667
test edi, edi
je 0x40c667
call esi
test eax, eax
je 0x40c65e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c65e
test byte [ebp - 0xc], 1
jne 0x40c667
or dword [ebp + 0x10], 0x200000
jmp 0x40c6a0
mov eax, dword [0x4c099c]
cmp eax, ebx
je 0x40c6a0
push eax
call fcn.0040a881
pop ecx
test eax, eax
je 0x40c6a0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c6a0
mov eax, dword [0x4c09a0]
cmp eax, ebx
je 0x40c6a0
push eax
call fcn.0040a881
pop ecx
test eax, eax
je 0x40c6a0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c0998]
call fcn.0040a881
pop ecx
test eax, eax
je 0x40c6c0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c6c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret