joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419c6f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x4264d8
call fcn.0041a9fc
mov edi, 0x94
mov eax, edi
call fcn.0041ab60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x43702c], ecx
mov eax, dword [esi + 4]
mov dword [0x437038], eax
mov edx, dword [esi + 8]
mov dword [0x43703c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x437030], esi
cmp ecx, 2
je 0x419ccf
or esi, 0x8000
mov dword [0x437030], esi
shl eax, 8
add eax, edx
mov dword [0x437034], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x419d0a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419d0a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x419d22
cmp eax, 0x20b
je 0x419d0f
mov dword [ebp - 0x1c], esi
jmp 0x419d36
cmp dword [ecx + 0x84], 0xe
jbe 0x419d0a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x419d30
cmp dword [ecx + 0x74], 0xe
jbe 0x419d0a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0041a9a8
pop ecx
test eax, eax
jne 0x419d62
cmp dword [0x43701c], 1
jne 0x419d4f
call fcn.0041a15d
push 0x1c
call fcn.00419fe6
push 0xff
call fcn.00419e4b
pop ecx
pop ecx
call fcn.0041a906
mov dword [ebp - 4], esi
call fcn.0041a75b
test eax, eax
jge 0x419d7b
push 0x1b
call fcn.00419c4a
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x437874], eax
call fcn.0041a639
mov dword [0x437014], eax
call fcn.0041a597
test eax, eax
jge 0x419da1
push 8
call fcn.00419c4a
pop ecx
call fcn.0041a364
test eax, eax
jge 0x419db2
push 9
call fcn.00419c4a
pop ecx
push 1
call fcn.00419e7b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x419dc8
push eax
call fcn.00419c4a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0041a307
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x419de9
movzx eax, word [ebp - 0x40]
jmp 0x419dec
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004010b5
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x419e0a
push edi
call fcn.00419fa6
call fcn.00419fc8
jmp 0x419e3c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041aa37
ret
Function at 0x419ee5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x43706c], esi
push edi
jne 0x419f05
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x437068], esi
mov byte [0x437064], al
jne 0x419f6b
mov ecx, dword [0x437868]
test ecx, ecx
je 0x419f4c
mov eax, dword [0x437864]
sub eax, 4
cmp eax, ecx
jmp 0x419f45
mov eax, dword [eax]
test eax, eax
je 0x419f37
call eax
mov eax, dword [0x437864]
sub eax, 4
cmp eax, dword [0x437868]
mov dword [0x437864], eax
jae 0x419f2f
mov eax, 0x42901c
mov esi, 0x429020
cmp eax, esi
mov edi, eax
jae 0x419f6b
mov eax, dword [edi]
test eax, eax
je 0x419f64
call eax
add edi, 4
cmp edi, esi
jb 0x419f5c
mov eax, 0x429024
mov esi, 0x429028
cmp eax, esi
mov edi, eax
jae 0x419f8a
mov eax, dword [edi]
test eax, eax
je 0x419f83
call eax
add edi, 4
cmp edi, esi
jb 0x419f7b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x419fa4
push dword [ebp + 8]
mov dword [0x43706c], 1
call fcn.00419e4b
pop ebp
ret

Function at 0x419fe6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x433ea0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x433d68]
je 0x41a01b
inc eax
cmp eax, 0x13
jb 0x41a00c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x433d68]
jne 0x41a141
mov eax, dword [0x43701c]
cmp eax, 1
je 0x41a119
cmp eax, edx
jne 0x41a04b
cmp dword [0x433d60], 1
je 0x41a119
cmp ecx, 0xfc
je 0x41a141
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x41a081
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041ad60
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041af90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41a0b5
mov eax, edi
push eax
call fcn.0041af90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4268f0
push edi
call fcn.0041ae60
add esp, 0x10
push edi
call fcn.0041af90
push dword [esi + 0x433d6c]
mov ebx, eax
call fcn.0041af90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041ab60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041ad60
push edi
push ebx
call fcn.0041ad70
push 0x4268d0
push ebx
call fcn.0041ad70
push dword [esi + 0x433d6c]
push ebx
call fcn.0041ad70
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041ac59
add esp, 0x2c
jmp 0x41a141
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x433d6c]
push dword [esi]
call fcn.0041af90
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041b04c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41ac59
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x437184], ebx
push esi
push edi
jne 0x41acd9
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41ad14
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x426984
push edi
call esi
test eax, eax
mov dword [0x437184], eax
je 0x41ad14
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x437188], eax
call esi
cmp dword [0x43702c], 2
mov dword [0x43718c], eax
jne 0x41acd9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x437194], eax
je 0x41acd9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x437190], eax
mov eax, dword [0x437190]
test eax, eax
je 0x41ad1e
call eax
test eax, eax
je 0x41ad05
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x437194]
test eax, eax
je 0x41ad05
test byte [ebp - 8], 1
jne 0x41ad1e
cmp dword [0x437038], 4
jb 0x41ad18
or byte [ebp + 0x12], 0x20
jmp 0x41ad3d
xor eax, eax
jmp 0x41ad4d
or byte [ebp + 0x12], 4
jmp 0x41ad3d
mov eax, dword [0x437188]
test eax, eax
je 0x41ad3d
call eax
mov ebx, eax
test ebx, ebx
je 0x41ad3d
mov eax, dword [0x43718c]
test eax, eax
je 0x41ad3d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x437184]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c49e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41c4cc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41c4d3
cmp ebx, dword [eax + 4]
jae 0x41c4d3
xor eax, eax
jmp 0x41c6c3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41c4e4
xor eax, eax
inc eax
jmp 0x41c6c2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41c4fa
cmp ecx, edx
jae 0x41c63f
cmp dword [eax + 4], 0
je 0x41c503
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41c4eb
cmp dword [ebp + 8], 0
je 0x41c525
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41c63f
cmp eax, esi
jae 0x41c63f
mov eax, dword [0x4371a0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41c54a
cmp dword [esi*4 + 0x4371a8], edi
je 0x41c643
inc esi
cmp esi, eax
jl 0x41c538
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41c6bf
cmp dword [ebp - 8], 0x1000000
jne 0x41c6bf
test byte [ebp - 0xc], 0xcc
je 0x41c5c8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41c6bf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41c6bf
cmp word [eax + 0x18], 0x10b
jne 0x41c6bf
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41c6bf
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41c5c8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41c5c8
test byte [ecx + 0x27], 0x80
jne 0x41c63f
push 1
push 0x4371e8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x41c4dc
mov ecx, dword [0x4371a0]
test ecx, ecx
mov edx, ecx
jle 0x41c5fc
lea eax, [ecx*4 + 0x4371a4]
cmp dword [eax], edi
je 0x41c5fc
dec edx
sub eax, 4
test edx, edx
jg 0x41c5f0
test edx, edx
jne 0x41c62d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41c609
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41c621
lea eax, [edx*4 + 0x4371a8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41c60f
cmp ecx, 0x10
jge 0x41c62d
inc ecx
mov dword [0x4371a0], ecx
push 0
push 0x4371e8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x41c4dc
xor eax, eax
jmp 0x41c6c2
test esi, esi
jle 0x41c4dc
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x4371e8
call ebx
test eax, eax
jne 0x41c4dc
cmp dword [esi*4 + 0x4371a8], edi
je 0x41c699
mov eax, dword [0x4371a0]
lea esi, [eax - 1]
test esi, esi
jl 0x41c687
cmp dword [esi*4 + 0x4371a8], edi
je 0x41c683
dec esi
jns 0x41c677
test esi, esi
jge 0x41c697
cmp eax, 0x10
jge 0x41c692
inc eax
mov dword [0x4371a0], eax
lea esi, [eax - 1]
jmp 0x41c699
je 0x41c6b1
xor ecx, ecx
test esi, esi
jl 0x41c6b1
lea eax, [ecx*4 + 0x4371a8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41c69f
push 0
push 0x4371e8
call ebx
jmp 0x41c4dc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d54c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041ab60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41d5e7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x43702c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41d5e7
cmp eax, 1
je 0x41d608
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x41d5e7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41d5b4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41d5e3
xor eax, eax
inc eax
jmp 0x41d627
cmp edi, eax
jae 0x41d5eb
xor eax, eax
jmp 0x41d627
cmp eax, esi
jae 0x41d5f2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x43702c]
jmp 0x41d60b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423bee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4373d4], 0
push esi
push edi
jne 0x423c56
push 0x4340a4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x423c56
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x423c56
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
je 0x423c4f
push edi
push eax
push dword [ebp + 0xc]
call fcn.00423bca
add esp, 0xc
cmp eax, dword [0x4270b4]
jne 0x423c5b
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [0x4270b4]
pop edi
pop esi
pop ebp
ret

Function at 0x423c5f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x4373d4], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x4270b4]
jne 0x423d9c
test eax, eax
je 0x423c8c
cmp byte [eax], 0
jne 0x423d9c
push ebx
mov ebx, 0x105
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push ebx
push eax
push dword [0x4373cc]
call edi
test eax, eax
je 0x423cd0
lea eax, [ebp - 0x108]
push eax
call fcn.00423a27
and byte [eax], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00423daa
add esp, 0xc
mov esi, eax
cmp esi, dword [0x4270b4]
jne 0x423d96
lea eax, [ebp - 0x108]
push ebx
push eax
push 0
call edi
test eax, eax
je 0x423d0f
lea eax, [ebp - 0x108]
push eax
call fcn.00423a27
and byte [eax], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00423daa
add esp, 0xc
mov esi, eax
cmp esi, dword [0x4270b4]
jne 0x423d96
mov edi, dword [ebp + 0xc]
push edi
push 0x4340b0
call fcn.00423daa
mov esi, eax
pop ecx
cmp esi, dword [0x4270b4]
pop ecx
jne 0x423d96
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x423d54
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00423daa
pop ecx
mov esi, eax
pop ecx
cmp esi, dword [0x4270b4]
jne 0x423d96
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
je 0x423d7f
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00423daa
pop ecx
mov esi, eax
pop ecx
cmp esi, dword [0x4270b4]
jne 0x423d96
push edi
push str.PATH
call fcn.00423f53
pop ecx
mov esi, eax
pop ecx
pop edi
mov eax, esi
pop ebx
jmp 0x423da7
push dword [ebp + 0xc]
push eax
call fcn.00423daa
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x424cb7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
lea eax, [ebp + 8]
push esi
push eax
call fcn.004238e6
mov eax, dword [ebp + 8]
push 4
lea edi, [eax + esi]
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004238e6
mov eax, dword [ebp - 4]
push 4
add eax, edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.004238e6
add esp, 0x24
cmp dword [ebp - 8], 0x4550
je 0x424d10
push str.PELD:_peGetProcAddress:_invalid_instance_handle_or_corrupt_memory_image
call fcn.00424557
jmp 0x424dd2
mov eax, dword [ebp - 4]
push 8
lea eax, [eax + edi + 0x78]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004238e6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov ebx, 0x10000
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], ecx
jb 0x424d42
push str.PELD:_peGetProcAddress:_export_section___64K
jmp 0x424d06
push eax
call fcn.00423784
mov esi, eax
pop ecx
test esi, esi
jne 0x424d56
push str.PELD:_peGetProcAddress:_picosMalloc_error
jmp 0x424d06
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
add eax, edi
push eax
push esi
call fcn.004238e6
mov ecx, dword [ebp + 0xc]
add esp, 0xc
cmp ecx, ebx
jae 0x424d75
sub cx, word [esi + 0x10]
jmp 0x424dc3
mov eax, esi
xor ebx, ebx
sub eax, dword [ebp + 8]
add dword [esi + 0x20], eax
cmp dword [esi + 0x18], ebx
jbe 0x424dac
xor eax, eax
jmp 0x424d8b
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x20]
mov eax, dword [edx + eax*4]
sub eax, dword [ebp + 8]
add eax, esi
push eax
push ecx
call fcn.00423606
pop ecx
test eax, eax
pop ecx
je 0x424dac
inc ebx
movzx eax, bx
cmp eax, dword [esi + 0x18]
jb 0x424d88
movzx eax, bx
cmp eax, dword [esi + 0x18]
jae 0x424dcb
mov ecx, esi
sub ecx, dword [ebp + 8]
add dword [esi + 0x24], ecx
mov ecx, dword [esi + 0x24]
mov cx, word [ecx + eax*2]
movzx eax, cx
cmp eax, dword [esi + 0x14]
jb 0x424dd6
push esi
call fcn.004237ca
pop ecx
xor eax, eax
jmp 0x424dee
mov ecx, esi
push esi
sub ecx, dword [ebp + 8]
add dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x1c]
mov ebx, dword [ecx + eax*4]
call fcn.004237ca
pop ecx
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4252e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0xb0b
call fcn.004252b0
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
add esp, 8
lea ebx, [esp + 0x10]
mov ebp, 0xb
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, eax
push esi
shl ecx, 0x10
xor ecx, edx
mov edx, dword [edi]
xor ecx, edx
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov ecx, dword [esi + 4]
xor ecx, edx
mov edx, dword [esi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
xor eax, edx
xor eax, ecx
mov dword [esi + 8], eax
call fcn.00425280
add esp, 4
add ebx, 4
dec ebp
jne 0x42530a
mov eax, dword [esp + 0x3c]
mov ebx, dword [esi]
mov edx, dword [edi]
mov ecx, eax
mov ebp, dword [esi + 4]
push esi
shl ecx, 0x10
xor ecx, ebx
mov ebx, dword [esi + 8]
xor ecx, edx
xor eax, ebx
mov dword [esi], ecx
mov edx, dword [edi + 4]
xor ebp, edx
mov dword [esi + 4], ebp
mov edx, dword [edi + 8]
xor eax, edx
mov dword [esi + 8], eax
call fcn.00425170
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x425380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x44]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], edx
push ecx
mov dword [esp + 0x18], eax
call fcn.00425170
lea edx, [esp + 0x10]
push edx
call fcn.004250c0
lea eax, [esp + 0x20]
push eax
push 0xb1b1
call fcn.004252b0
mov esi, dword [esp + 0x5c]
push esi
call fcn.004250c0
add esp, 0x14
lea edi, [esp + 0x18]
mov ebx, 0xb
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, eax
push esi
shl ecx, 0x10
xor ecx, edx
mov edx, dword [esp + 0x10]
xor ecx, edx
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
mov ecx, dword [esi + 4]
xor ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esi + 8]
xor ecx, eax
xor ecx, edx
mov dword [esi + 8], ecx
call fcn.00425280
add esp, 4
add edi, 4
dec ebx
jne 0x4253d7
mov eax, dword [esp + 0x44]
mov ebx, dword [esi]
mov edi, dword [esp + 0xc]
mov edx, eax
mov ecx, dword [esp + 0x10]
push esi
shl edx, 0x10
xor edx, ebx
mov ebx, dword [esp + 0x18]
xor edx, edi
mov dword [esi], edx
mov edx, dword [esi + 4]
xor edx, ecx
mov dword [esi + 4], edx
mov edx, dword [esi + 8]
xor edx, eax
xor edx, ebx
mov dword [esi + 8], edx
call fcn.00425170
push esi
call fcn.004250c0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x4258dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push str.Debug_Window_for_MASM32
push 0
call sub.USER32.dll_FindWindowA
or eax, eax
jne 0x42590a
push 1
push str.masm32_bindbgwin.exe
call sub.KERNEL32.DLL_WinExec
push str.Debug_Window_for_MASM32
push 0
call sub.USER32.dll_FindWindowA
or eax, eax
je 0x425981
mov dword [ebp - 4], eax
push 0
push 0x434f3e
push 0
push dword [ebp - 4]
call sub.USER32.dll_FindWindowExA
mov dword [ebp - 4], eax
push 0
push 0
push 0xe
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb1
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
pop eax
or eax, eax
je 0x42595e
push 0x434f3b
push 0
push 0xc2
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push dword [ebp + 8]
push 0
push 0xc2
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xb7
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
leave
ret 4
Function at 0x402a00
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 0x402a3d
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 0x402a5d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004046a4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c24
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.00404434
test esi, esi
jne 0x402c5a
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.00404524
jmp 0x402c78
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ad8
mov edi, eax
test esi, esi
je 0x402c78
cmp dword [ebx], 0
je 0x402c78
dec esi
jmp 0x402c61
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403470
Capabilities:
Query or enumerate registry value

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

Function at 0x404214
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x58804c], 0
je 0x404275
cmp word [0x588220], 0xd7b2
jne 0x40423d
cmp dword [0x588228], 0
jbe 0x40423d
mov eax, 0x58821c
call dword [0x588238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x582070
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 0x40429c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x582034], 0
jne 0x404291
push 0
push 0x582068
push 0x582070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4043e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x58804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4043b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc