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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429c7e
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x4312d0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
jmp 0x4039a7
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jge 0x403b88
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x38]
call fcn.00404990
mov dword [ebp - 4], 0
push 0
push 0x3d
lea ecx, [ebp - 0x38]
call fcn.00404a50
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [0x42c3f0]
je 0x403adb
mov edx, dword [0x42c3f0]
push edx
mov eax, dword [ebp - 0x3c]
add eax, 1
push eax
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00404a70
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x190], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x38]
call fcn.00404a70
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x198], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x198]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00404dc0
mov dword [ebp - 0x19c], eax
mov edx, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x74]
call fcn.00407950
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0xf0]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404b50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.00404770
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.00404770
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.004049d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.004049d0
jmp 0x403b74
push 0x42c0ac
lea ecx, [ebp - 0x17c]
call fcn.00404990
mov byte [ebp - 4], 5
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x160]
call fcn.00404dc0
mov dword [ebp - 0x1a4], eax
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x128]
call fcn.00407950
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x188]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404b50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x128]
call fcn.00404770
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x160]
call fcn.00404770
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x17c]
call fcn.004049d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004049d0
jmp 0x40399e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00414090
mov esp, ebp
pop ebp
ret
Function at 0x408020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4312d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.00413c30
add esp, 0xc
push 0x42c814
mov ecx, dword [ebp + 8]
push ecx
call fcn.004162b1
add esp, 8
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x408071
or eax, 0xffffffff
jmp 0x408143
mov dword [ebp - 0x210], 0
jmp 0x40808c
mov edx, dword [ebp - 0x210]
add edx, 1
mov dword [ebp - 0x210], edx
cmp dword [ebp - 0x210], 0xf
jae 0x408140
push 0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax*4 + 0x4311e4]
push ecx
mov edx, dword [ebp - 0x20c]
push edx
call fcn.00415ea9
add esp, 0xc
mov eax, dword [ebp - 0x20c]
push eax
push 1
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx*4 + 0x4311a8]
push edx
call fcn.00414530
add esp, 4
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004161ce
add esp, 0x10
cmp eax, 1
jne 0x40813b
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx*4 + 0x4311a8]
push edx
call fcn.00414530
add esp, 4
push eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax*4 + 0x4311a8]
push ecx
lea edx, [ebp - 0x208]
push edx
call fcn.004145bb
add esp, 0xc
test eax, eax
jne 0x40813b
mov eax, dword [ebp - 0x20c]
push eax
call fcn.00414142
add esp, 4
mov eax, dword [ebp - 0x210]
jmp 0x408143
jmp 0x40807d
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414090
mov esp, ebp
pop ebp
ret

Function at 0x408a10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x4312d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00415ea9
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x48]
push edx
call fcn.004161ce
add esp, 0x10
push 1
mov eax, dword [ebp - 0xc]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415ea9
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x170]
push eax
call fcn.004161ce
add esp, 0x10
push 1
movzx ecx, word [ebp - 0x15c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00415ea9
add esp, 0xc
mov ax, word [ebp - 0x16a]
mov word [ebp - 0x4c], ax
xor ecx, ecx
mov word [ebp - 0x174], cx
jmp 0x408ab1
mov dx, word [ebp - 0x174]
add dx, 1
mov word [ebp - 0x174], dx
movzx eax, word [ebp - 0x174]
movzx ecx, word [ebp - 0x4c]
cmp eax, ecx
jge 0x408b29
mov edx, dword [ebp + 8]
push edx
push 1
push 0x28
lea eax, [ebp - 0x74]
push eax
call fcn.004161ce
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00414530
add esp, 4
test eax, eax
je 0x408b10
push 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x74]
push eax
call fcn.004145bb
add esp, 0xc
test eax, eax
je 0x408b10
push 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.004173f9
add esp, 0xc
test eax, eax
jne 0x408b24
push 1
push 0xffffffffffffffd8
mov eax, dword [ebp + 8]
push eax
call fcn.00415ea9
add esp, 0xc
mov al, 1
jmp 0x408b2b
jmp 0x408a9f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414090
mov esp, ebp
pop ebp
ret
Function at 0x408b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4312d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00415ea9
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x48]
push edx
call fcn.004161ce
add esp, 0x10
push 1
mov eax, dword [ebp - 0xc]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415ea9
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x140]
push eax
call fcn.004161ce
add esp, 0x10
movzx ecx, word [ebp - 0x12c]
test ecx, ecx
jle 0x408c62
push 1
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.00415ea9
add esp, 0xc
push 1
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00415ea9
add esp, 0xc
push 1
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415ea9
add esp, 0xc
push 1
push 4
mov edx, dword [ebp + 8]
push edx
call fcn.00415ea9
add esp, 0xc
push 1
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.00415ea9
add esp, 0xc
push 1
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415ea9
add esp, 0xc
mov al, 1
jmp 0x408c64
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414090
mov esp, ebp
pop ebp
ret

Function at 0x408cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x4312d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00415ea9
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x48]
push edx
call fcn.004161ce
add esp, 0x10
push 1
mov eax, dword [ebp - 0xc]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415ea9
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x170]
push eax
call fcn.004161ce
add esp, 0x10
push 1
movzx ecx, word [ebp - 0x15c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00415ea9
add esp, 0xc
mov ax, word [ebp - 0x16a]
mov word [ebp - 0x4c], ax
xor ecx, ecx
mov word [ebp - 0x174], cx
jmp 0x408d71
mov dx, word [ebp - 0x174]
add dx, 1
mov word [ebp - 0x174], dx
movzx eax, word [ebp - 0x174]
movzx ecx, word [ebp - 0x4c]
cmp eax, ecx
jge 0x408db4
mov edx, dword [ebp + 8]
push edx
push 1
push 0x28
lea eax, [ebp - 0x74]
push eax
call fcn.004161ce
add esp, 0x10
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x68]
jb 0x408db2
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x6c]
cmp dword [ebp + 0xc], edx
jae 0x408db2
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x60]
jmp 0x408db6
jmp 0x408d5f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414090
mov esp, ebp
pop ebp
ret
Function at 0x408dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4312d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x4c], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00415ea9
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea edx, [ebp - 0x48]
push edx
call fcn.004161ce
add esp, 0x10
push 1
mov eax, dword [ebp - 0xc]
sub eax, 0x40
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415ea9
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x18
lea eax, [ebp - 0x148]
push eax
call fcn.004161ce
add esp, 0x10
movzx ecx, word [ebp - 0x134]
test ecx, ecx
jle 0x408eb1
push 1
push 0x68
mov edx, dword [ebp + 8]
push edx
call fcn.00415ea9
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
push 4
lea ecx, [ebp - 0x14c]
push ecx
call fcn.004161ce
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 0x4c]
push eax
call fcn.004161ce
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x14c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00408cd0
add esp, 8
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00415ea9
add esp, 0xc
mov eax, dword [ebp - 0x4c]
jmp 0x408eb3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414090
mov esp, ebp
pop ebp
ret
Function at 0x408ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4312d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00414530
add esp, 4
test eax, eax
je 0x408f03
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00414530
add esp, 4
test eax, eax
jne 0x408f0a
xor eax, eax
jmp 0x40910a
mov edx, dword [ebp + 8]
push edx
call fcn.00408dd0
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x14
div ecx
mov dword [ebp - 4], eax
xor edx, edx
mov word [ebp - 0xc], dx
jmp 0x408f3c
mov ax, word [ebp - 0xc]
add ax, 1
mov word [ebp - 0xc], ax
movzx ecx, word [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jae 0x409108
mov edx, dword [ebp + 8]
push edx
push 1
push 0x14
lea eax, [ebp - 0x128]
push eax
call fcn.004161ce
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417656
add esp, 4
mov dword [ebp - 0x114], eax
push 0
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00408cd0
add esp, 8
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415ea9
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x100
lea eax, [ebp - 0x110]
push eax
call fcn.004161ce
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.004293c1
add esp, 8
test eax, eax
jne 0x4090ee
cmp dword [ebp - 0x128], 0
je 0x408ff6
push 0
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408cd0
add esp, 8
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00415ea9
add esp, 0xc
jmp 0x409018
push 0
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408cd0
add esp, 8
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00415ea9
add esp, 0xc
xor eax, eax
mov word [ebp - 0x12c], ax
jmp 0x409035
mov cx, word [ebp - 0x12c]
add cx, 1
mov word [ebp - 0x12c], cx
mov edx, dword [ebp + 8]
push edx
push 1
push 4
lea eax, [ebp - 0x238]
push eax
call fcn.004161ce
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417656
add esp, 4
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x238], 0
jne 0x40906c
jmp 0x4090ee
push 0
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00408cd0
add esp, 8
add eax, 2
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415ea9
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x100
lea eax, [ebp - 0x230]
push eax
call fcn.004161ce
add esp, 0x10
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.004293c1
add esp, 8
test eax, eax
jne 0x4090d4
movzx eax, word [ebp - 0x12c]
mov ecx, dword [ebp - 0x118]
lea eax, [ecx + eax*4]
jmp 0x40910a
push 0
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00415ea9
add esp, 0xc
jmp 0x409023
push 0
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00415ea9
add esp, 0xc
jmp 0x408f30
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414090
mov esp, ebp
pop ebp
ret
Function at 0x40b710
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x811c9dc5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x40b742
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x1000193
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
xor ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x40b71b
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x414090
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4312d0]
jne 0x41409a
repz ret
jmp fcn.0041954c

Function at 0x41ffd9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42000a
call fcn.00419a94
mov dword [eax], esi
call fcn.00419a81
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00417269
add esp, 0x14
push 0x16
pop eax
jmp 0x42005f
test dword [ebp + 0xc], 0xfffffff9
jne 0x41ffe6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x420037
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00419aa7
pop ecx
call fcn.00419a81
mov eax, dword [eax]
jmp 0x42005f
test al, 0x10
jne 0x42005d
test al, 1
je 0x42005d
test byte [ebp + 0xc], 2
je 0x42005d
call fcn.00419a94
mov dword [eax], 5
call fcn.00419a81
mov dword [eax], 0xd
jmp 0x42002e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4252c0
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.00418f37
and dword [ebp - 4], 0
cmp dword [0x43c098], 0
mov ebx, eax
jne 0x425371
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425422
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425422
push eax
call fcn.00418ec5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43c098], eax
call esi
push eax
call fcn.00418ec5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43c09c], eax
call esi
push eax
call fcn.00418ec5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43c0a0], eax
call esi
push eax
call fcn.00418ec5
pop ecx
mov dword [0x43c0a8], eax
test eax, eax
je 0x425371
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418ec5
pop ecx
mov dword [0x43c0a4], eax
mov eax, dword [0x43c0a4]
cmp eax, ebx
je 0x4253c9
cmp dword [0x43c0a8], ebx
je 0x4253c9
push eax
call fcn.00418f40
push dword [0x43c0a8]
mov esi, eax
call fcn.00418f40
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4253c9
test edi, edi
je 0x4253c9
call esi
test eax, eax
je 0x4253c0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4253c0
test byte [ebp - 0xc], 1
jne 0x4253c9
or dword [ebp + 0x10], 0x200000
jmp 0x425402
mov eax, dword [0x43c09c]
cmp eax, ebx
je 0x425402
push eax
call fcn.00418f40
pop ecx
test eax, eax
je 0x425402
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425402
mov eax, dword [0x43c0a0]
cmp eax, ebx
je 0x425402
push eax
call fcn.00418f40
pop ecx
test eax, eax
je 0x425402
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43c098]
call fcn.00418f40
pop ecx
test eax, eax
je 0x425422
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425424
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405af0
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x405b40
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x405b60
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x405bb7
xor ecx, ecx
xor edx, edx
jmp 0x405b99
cmp ax, 0x5c
jne 0x405c28
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x405bb7
cmp ax, 9
je 0x405ba5
cmp ax, 0x20
jne 0x405b80
test ecx, ecx
je 0x405c13
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x405b99
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x405c48
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404380
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x405c10
cmp ax, 0x20
je 0x405c10
jmp 0x405bb7
cmp ax, 0x22
jne 0x405ba9
and edx, 1
jne 0x405ba9
xor ecx, 1
jmp 0x405b8d
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x405bd0
Function at 0x405b60
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x405b40
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x405b60
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x405bb7
xor ecx, ecx
xor edx, edx
jmp 0x405b99
cmp ax, 0x5c
jne 0x405c28
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x405bb7
cmp ax, 9
je 0x405ba5
cmp ax, 0x20
jne 0x405b80
test ecx, ecx
je 0x405c13
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x405b99
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x405c48
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404380
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x405c10
cmp ax, 0x20
je 0x405c10
jmp 0x405bb7
cmp ax, 0x22
jne 0x405ba9
and edx, 1
jne 0x405ba9
xor ecx, 1
jmp 0x405b8d
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x405bd0
Function at 0x402cd0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d0d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d2d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404980
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f0c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f65
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402da8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402da8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f4f
inc ebx
jmp 0x402f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f6c
lea eax, [ebp - 8]
call fcn.00404700
ret

Function at 0x402f74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404700
test esi, esi
jne 0x402fab
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004047f0
jmp 0x402fcc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402da8
mov dword [esp], eax
test esi, esi
je 0x402fcc
cmp dword [ebx], 0
je 0x402fcc
dec esi
jmp 0x402fb3
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x4036fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x55d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403794
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403774
xor eax, eax
push ebp
push 0x40376d
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 0x4037b0
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 0x403774
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x55d024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x55d024], ax
mov esp, ebp
pop ebp
ret