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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040e11c
test al, al
jne 0x40e189
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e1d5
xor eax, eax
push ebp
push 0x40e1c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d24
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1cc
lea eax, [ebp - 0xc]
call fcn.0040e158
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e414
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e41c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e509
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040b9fc
mov edx, dword [ebp - 8]
mov ecx, 0x40e524
xor eax, eax
call fcn.0040e2f8
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40e4d7
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e436
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040df20
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407ee8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040bf84
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.0040def0
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406d5c]
call fcn.00409824
call fcn.00403f88
jmp 0x40e436
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e510
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404c90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c90
ret

Function at 0x40e538
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x412c7c]
cmp dword [eax], 2
jne 0x40e5a0
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40e55b
xor eax, eax
jmp 0x40e5af
lea eax, [esp + 8]
push eax
push 0x40e5b4
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40e5a0
xor eax, eax
jmp 0x40e5af
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x40e5dc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40e636
inc esi
xor edi, edi
cmp edi, 1
jne 0x40e602
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x40e610
cmp edi, 1
jle 0x40e610
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040e168
test eax, eax
jne 0x40e636
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40e636
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40e636
inc edi
dec esi
jne 0x40e5f2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40e640
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e664
mov eax, dword [ebp - 4]
jmp 0x40e667
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x40e66c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x40e6b9
xor ebx, ebx
jmp 0x40e6ae
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407bdc
test eax, eax
jne 0x40e6ad
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40e763
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e68f
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x40e6c5
je 0x40e6ce
jmp 0x40e6d7
call fcn.0040bcb4
mov esi, eax
jmp 0x40e6d9
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x40e6d9
xor esi, esi
test si, si
je 0x40e763
xor ebx, ebx
jmp 0x40e6ff
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x40e6fe
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e763
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e6e6
xor ebx, ebx
jmp 0x40e758
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40e757
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x40e74c
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0040e640
push eax
mov eax, esi
call fcn.0040e640
pop edx
cmp edx, eax
jne 0x40e757
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e763
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e70e
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40eb50
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ec25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ec40
push ebx
push 0x40ec50
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ebd0
mov al, 0x6a
call fcn.0040e770
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eb24
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ebd9
call fcn.0040eb24
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec2c
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ed40
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee0b
jmp 0x40edff
cmp dword [esi + 0x10], 0x1000
jne 0x40edeb
test byte [esi + 0x15], 1
jne 0x40edeb
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ed9c
cmp ebp, 2
je 0x40ed9c
cmp ebp, 0x10
je 0x40ed9c
cmp ebp, 0x20
jne 0x40edb8
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40edb8
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40edc9
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed38
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edbc
cmp byte [esp + 4], 0
je 0x40edeb
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee0b
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed71
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, reloc.comctl32.dll_CreateMappedBitmap
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401470
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edx
pop eax
push esi
sub eax, ebx
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x6d1dc
lea ebx, [ebx]
inc byte [ecx + 0x100]
movzx edi, byte [ecx + 0x100]
lea ebx, [ebx + 1]
movzx eax, byte [edi + ecx]
add byte [ecx + 0x101], al
movzx esi, byte [ecx + 0x101]
mov dl, byte [edi + ecx]
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
mov byte [esi + ecx], dl
movzx eax, byte [ecx + 0x101]
movzx edx, byte [ecx + 0x100]
movzx eax, byte [eax + ecx]
add al, byte [edx + ecx]
mov edx, dword [ebp - 8]
movzx eax, al
movzx eax, byte [eax + ecx]
xor al, byte [edx + ebx - 1]
dec dword [ebp - 4]
mov byte [ebx - 1], al
jne 0x401490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
or edi, edi
jne 0x40210d
push esi
pop ecx
call fcn.00402180
pop edi
pop esi
push ebx
pop eax
pop ebx
pop ebp
ret 4
js 0x402172
mov eax, dword [esi]
nop
push 1
nop
pop ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x40212a
push edi
mov ecx, esi
call fcn.00402530
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x402140
sub ecx, ecx
jmp 0x402152
push dword [eax - 8]
push eax
call fcn.004036ac
push eax
pop ecx
add esp, 8
test ecx, ecx
js 0x402172
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x402172
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
pop edi
xor edx, edx
push 1
pop ebx
push esi
pop esi
mov word [eax + ecx*2], dx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.00402bb0
int3

Function at 0x402a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push edx
pop edi
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
or eax, eax
jne 0x402a99
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
or esi, esi
je 0x402ad4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402ad0
lea ebx, [ebx]
cmp esi, edx
jae 0x402ad4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402ac0
cmp esi, edx
jb 0x402adb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
push esi
pop eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403e05
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
pop esi
push esi
call fcn.00406289
push esi
call fcn.00405277
push esi
call fcn.004072ca
push esi
call fcn.004072d7
push esi
call fcn.004072f1
push esi
call fcn.00406370
add esp, 0x18
pop esi
jmp 0x404a25
push esi
push edi
push 0x40dcfc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x40dd18
push edi
call esi
xor eax, dword [0x4140a0]
push 0x40dd24
push edi
mov dword [0x4840c0], eax
call esi
xor eax, dword [0x4140a0]
push 0x40dd2c
push edi
mov dword [0x4840c4], eax
call esi
xor eax, dword [0x4140a0]
push 0x40dd38
push edi
mov dword [0x4840c8], eax
call esi
xor eax, dword [0x4140a0]
push 0x40dd44
push edi
mov dword [0x4840cc], eax
call esi
xor eax, dword [0x4140a0]
push 0x40dd60
push edi
mov dword [0x4840d0], eax
call esi
xor eax, dword [0x4140a0]
push 0x40dd74
push edi
mov dword [0x4840d4], eax
call esi
xor eax, dword [0x4140a0]
push 0x40dd8c
push edi
mov dword [0x4840d8], eax
call esi
xor eax, dword [0x4140a0]
push 0x40dda4
push edi
mov dword [0x4840dc], eax
call esi
xor eax, dword [0x4140a0]
push 0x40ddb8
push edi
mov dword [0x4840e0], eax
call esi
xor eax, dword [0x4140a0]
push 0x40ddd8
push edi
mov dword [0x4840e4], eax
call esi
xor eax, dword [0x4140a0]
push 0x40ddf0
push edi
mov dword [0x4840e8], eax
call esi
xor eax, dword [0x4140a0]
push 0x40de08
push edi
mov dword [0x4840ec], eax
call esi
xor eax, dword [0x4140a0]
push 0x40de1c
push edi
mov dword [0x4840f0], eax
call esi
xor eax, dword [0x4140a0]
push 0x40de30
push edi
mov dword [0x4840f4], eax
call esi
xor eax, dword [0x4140a0]
mov dword [0x4840f8], eax
push 0x40de4c
push edi
call esi
xor eax, dword [0x4140a0]
push 0x40de6c
push edi
mov dword [0x4840fc], eax
call esi
xor eax, dword [0x4140a0]
push 0x40de88
push edi
mov dword [0x484100], eax
call esi
xor eax, dword [0x4140a0]
push 0x40dea8
push edi
mov dword [0x484104], eax
call esi
xor eax, dword [0x4140a0]
push 0x40debc
push edi
mov dword [0x484108], eax
call esi
xor eax, dword [0x4140a0]
push 0x40ded8
push edi
mov dword [0x48410c], eax
call esi
xor eax, dword [0x4140a0]
push 0x40deec
push edi
mov dword [0x484114], eax
call esi
xor eax, dword [0x4140a0]
push 0x40defc
push edi
mov dword [0x484110], eax
call esi
xor eax, dword [0x4140a0]
push 0x40df0c
push edi
mov dword [0x484118], eax
call esi
xor eax, dword [0x4140a0]
push 0x40df1c
push edi
mov dword [0x48411c], eax
call esi
xor eax, dword [0x4140a0]
push 0x40df2c
push edi
mov dword [0x484120], eax
call esi
xor eax, dword [0x4140a0]
push 0x40df48
push edi
mov dword [0x484124], eax
call esi
xor eax, dword [0x4140a0]
push 0x40df5c
push edi
mov dword [0x484128], eax
call esi
xor eax, dword [0x4140a0]
push 0x40df6c
push edi
mov dword [0x48412c], eax
call esi
xor eax, dword [0x4140a0]
pop edi
mov dword [0x484130], eax
pop esi
ret
Function at 0x4048ed
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x404945
push ebx
sub ebx, ebx
push esi
mov esi, edi
cmp word [edi], bx
je 0x404919
add esi, 2
cmp word [esi], bx
jne 0x404909
add esi, 2
cmp word [esi], bx
jne 0x404909
sub esi, edi
add esi, 2
push esi
call fcn.00406544
pop ecx
mov dword [ebp - 4], eax
or eax, eax
je 0x40493a
push esi
push edi
push eax
call fcn.00405a60
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
push ebx
pop eax
pop ebx
pop edi
leave
ret

Function at 0x407030
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x3c]
add ecx, eax
push esi
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
sub edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x40706c
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407064
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40706e
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407054
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407140
Capabilities:
Parse pe header

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x407154
sub eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40716f
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4076ce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4140a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
sub edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
push eax
pop esi
mov dword [ebp - 0x18], esi
call fcn.004049e7
mov dword [ebp - 0x14], eax
cmp dword [0x482f9c], edi
jne 0x4077bf
push 0x800
push edi
push 0x40e3e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push eax
pop esi
or esi, esi
jne 0x40774c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40789f
push 0x40e3e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
or esi, esi
je 0x40789f
push 0x40e3f8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
or eax, eax
je 0x40789f
push eax
call ebx
push 0x40e404
push esi
mov dword [0x482f9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x40e414
push esi
mov dword [0x482fa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x40e428
push esi
mov dword [0x482fa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x482fac], eax
or eax, eax
je 0x4077bc
push 0x40e444
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x482fa8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4077e4
mov eax, dword [ebp - 0x1c]
or eax, eax
je 0x4077d7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4077f9
push 4
pop eax
jmp 0x4078a1
cmp dword [ebp - 0x14], edi
je 0x4077f9
push dword [0x482f9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4077de
mov eax, dword [0x482fa8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x407857
cmp dword [0x482fac], esi
je 0x407857
push eax
call ebx
push dword [0x482fac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x407857
or eax, eax
je 0x407857
call ecx
or eax, eax
je 0x40784c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
or eax, eax
je 0x40784c
test byte [ebp - 8], 1
jne 0x407857
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x407887
mov eax, dword [0x482fa0]
cmp eax, esi
je 0x407884
push eax
call ebx
or eax, eax
je 0x407884
call eax
push eax
pop edi
test edi, edi
je 0x407884
mov eax, dword [0x482fa4]
cmp eax, esi
je 0x407884
push eax
call ebx
test eax, eax
je 0x407884
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x482f9c]
call ebx
or eax, eax
je 0x40789f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4078a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402e19
leave
ret
Function at 0x402b64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404e78
test esi, esi
jne 0x402b9a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404f68
jmp 0x402bb8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a78
mov edi, eax
test esi, esi
je 0x402bb8
cmp dword [ebx], 0
je 0x402bb8
dec esi
jmp 0x402ba1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40322c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x462008], 0x8088405
inc edx
mov dword [ebx + 0x462008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403ed4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x462024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f4c
xor eax, eax
push ebp
push 0x403f45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403f88
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x462024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x462024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404cfc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46404c], 0
je 0x404d5d
cmp word [0x464220], 0xd7b2
jne 0x404d25
cmp dword [0x464228], 0
jbe 0x404d25
mov eax, 0x46421c
call dword [0x464238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4620c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404d84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x462034], 0
jne 0x404d79
push 0
push 0x4620b8
push 0x4620c0
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret