joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e6b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40ff90], ebx
push esi
push edi
jne 0x409eeb
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409f26
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40ff90], eax
je 0x409f26
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40ff94], eax
call esi
cmp dword [0x40fd9c], 2
mov dword [0x40ff98], eax
jne 0x409eeb
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40ffa0], eax
je 0x409eeb
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40ff9c], eax
mov eax, dword [0x40ff9c]
test eax, eax
je 0x409f30
call eax
test eax, eax
je 0x409f17
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40ffa0]
test eax, eax
je 0x409f17
test byte [ebp - 8], 1
jne 0x409f30
cmp dword [0x40fda8], 4
jb 0x409f2a
or byte [ebp + 0x12], 0x20
jmp 0x409f4f
xor eax, eax
jmp 0x409f5f
or byte [ebp + 0x12], 4
jmp 0x409f4f
mov eax, dword [0x40ff94]
test eax, eax
je 0x409f4f
call eax
mov ebx, eax
test ebx, ebx
je 0x409f4f
mov eax, dword [0x40ff98]
test eax, eax
je 0x409f4f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40ff90]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a5e2
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 0x40a610
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 0x40a617
cmp ebx, dword [eax + 4]
jae 0x40a617
xor eax, eax
jmp 0x40a807
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40a628
xor eax, eax
inc eax
jmp 0x40a806
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40a63e
cmp ecx, edx
jae 0x40a783
cmp dword [eax + 4], 0
je 0x40a647
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40a62f
cmp dword [ebp + 8], 0
je 0x40a669
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a783
cmp eax, esi
jae 0x40a783
mov eax, dword [0x40ffa8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40a68e
cmp dword [esi*4 + 0x40ffb0], edi
je 0x40a787
inc esi
cmp esi, eax
jl 0x40a67c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a803
cmp dword [ebp - 8], 0x1000000
jne 0x40a803
test byte [ebp - 0xc], 0xcc
je 0x40a70c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a803
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a803
cmp word [eax + 0x18], 0x10b
jne 0x40a803
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a803
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a70c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a70c
test byte [ecx + 0x27], 0x80
jne 0x40a783
push 1
push 0x40fff0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40a620
mov ecx, dword [0x40ffa8]
test ecx, ecx
mov edx, ecx
jle 0x40a740
lea eax, [ecx*4 + 0x40ffac]
cmp dword [eax], edi
je 0x40a740
dec edx
sub eax, 4
test edx, edx
jg 0x40a734
test edx, edx
jne 0x40a771
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a74d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a765
lea eax, [edx*4 + 0x40ffb0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a753
cmp ecx, 0x10
jge 0x40a771
inc ecx
mov dword [0x40ffa8], ecx
push 0
push 0x40fff0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40a620
xor eax, eax
jmp 0x40a806
test esi, esi
jle 0x40a620
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40fff0
call ebx
test eax, eax
jne 0x40a620
cmp dword [esi*4 + 0x40ffb0], edi
je 0x40a7dd
mov eax, dword [0x40ffa8]
lea esi, [eax - 1]
test esi, esi
jl 0x40a7cb
cmp dword [esi*4 + 0x40ffb0], edi
je 0x40a7c7
dec esi
jns 0x40a7bb
test esi, esi
jge 0x40a7db
cmp eax, 0x10
jge 0x40a7d6
inc eax
mov dword [0x40ffa8], eax
lea esi, [eax - 1]
jmp 0x40a7dd
je 0x40a7f5
xor ecx, ecx
test esi, esi
jl 0x40a7f5
lea eax, [ecx*4 + 0x40ffb0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a7e3
push 0
push 0x40fff0
call ebx
jmp 0x40a620
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b890
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00406e10
mov eax, dword [0x40f4d4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x4102a8]
mov dword [ebp - 4], eax
jae 0x40b9d3
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4102c0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40b9d3
push 1
push esi
push ebx
call fcn.004095c6
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40b9dd
push 2
push esi
push ebx
call fcn.004095c6
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b9dd
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40b97d
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004029c0
push 0x8000
push ebx
call fcn.0040c400
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40b93c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00403e77
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b95a
sub edi, eax
test edi, edi
jg 0x40b931
jmp 0x40b970
cmp dword [0x40fd94], 5
jne 0x40b96d
mov dword [0x40fd90], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040c400
pop ecx
pop ecx
jmp 0x40b9bd
jge 0x40b9bd
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004095c6
push ebx
call fcn.004094ed
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40b9bd
mov dword [0x40fd90], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40fd94], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004095c6
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40b9e0
mov dword [0x40fd90], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040978d
leave
ret
Function at 0x40c065
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.00406e10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c100
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 [0x40fd9c]
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 0x40c100
cmp eax, 1
je 0x40c121
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 0x40c100
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c0cd
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c0fc
xor eax, eax
inc eax
jmp 0x40c140
cmp edi, eax
jae 0x40c104
xor eax, eax
jmp 0x40c140
cmp eax, esi
jae 0x40c10b
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 [0x40fd9c]
jmp 0x40c124
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 0x1000c450
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1028eb94], 0
mov byte [0x1028eb98], 0
mov dword [0x1028eb90], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000c4a6
xor eax, eax
mov ecx, 0x1fdd
mov dword [0x1028eb90], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x1000c4d8
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1028eb88], 0x1fdd
mov eax, dword [0x1028eb90]
add eax, 1
mov dword [0x1028eb90], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000c4a6
jmp 0x1000c48d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
mov dword [0x1028eb9c], 0
add eax, 0xfffff6b9
mov dword [ebp - 0x28], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x1028eb94]
mov ebx, dword [ebp - 0x18]
movzx esi, byte [ebx + ecx]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1028eb9c], esi
mov dword [0x1028eb8c], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x1028eb94], edx
mov esi, dword [ebp - 0x28]
mov dword [0x1028eb88], esi
mov bl, byte [ebx + ecx]
mov byte [0x1028eb98], bl
mov dword [0x1028eb8c], 0xe30
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov ecx, dword [0x1028eb8c]
add ecx, 0xfffffd81
mov dword [0x1028eb88], ecx
mov bl, byte [0x1028eb98]
mov ecx, dword [0x1028eb94]
mov byte [esi + ecx], bl
mov ecx, dword [0x1028eb90]
add ecx, 1
mov dword [0x1028eb90], ecx
cmp ecx, 0x100
mov dword [ebp - 0x30], ecx
jge 0x1000c5af
mov eax, dword [0x1028eb88]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x1000c4d8
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000c730
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1028eb88], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1000c77a
xor eax, eax
mov dword [0x1028eb8c], 0x1864
mov dword [ebp - 0x14], eax
jmp 0x1000c847
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x1000c7ae
mov eax, dword [ebp - 0x1c]
mov dword [0x1028eb8c], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x1000c7c7
jmp 0x1000c766
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1000c77a
jmp 0x1000c790
mov dword [0x1028eb8c], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1000c766
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1000c766
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1000c766
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000c766
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1000c766
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1000c766
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop ebp
ret
Function at 0x1000ca90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1028eb90], 0
mov dword [0x1028eb94], 0
mov dword [0x1028eba0], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1000cbf3
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1000caeb
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1028eb88], 0x1e8a
mov edi, ecx
add edi, 1
add edx, 1
mov dword [ebp - 0x2c], eax
mov eax, edx
cdq
idiv esi
mov dword [0x1028eb90], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1028eb94], edx
mov dword [0x1028eb88], 0x40c5
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1028eb98], cl
mov dword [0x1028eb8c], 0x471
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1028eb98]
mov edx, dword [0x1028eb94]
mov byte [ebx + edx], cl
mov edx, dword [0x1028eb90]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1028eb94]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1028eba0], ecx
mov dword [0x1028eb88], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x1028eb8c], 0xbad
mov dword [0x1028eb88], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x1000cbf1
mov eax, dword [0x1028eb90]
mov ecx, dword [0x1028eb94]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x1000caeb
jmp 0x1000cbf3
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000cc00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x1028eb88], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1000bb70
lea ecx, [0x1000c330]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp + 0x7c], 0x160200
mov edx, dword [0x1028eb74]
mov dword [esp + 0x60], edx
mov edx, dword [0x1028eb78]
mov dword [esp + 0x94], edx
mov edx, dword [0x1028eb7c]
mov dword [esp + 0x84], edx
mov edx, dword [0x1028eb80]
mov dword [esp + 0x74], edx
mov edx, dword [0x1028eb84]
mov dword [esp + 0x68], edx
mov dword [0x1028eb88], 0x212d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1000cca6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x1000ccc9
jmp 0x1000ccb5
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x1000cc8c
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1000cca6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
mov dword [0x1028eb8c], 0x1fcc
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x44], eax
call fcn.1000c730
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x1000cd2d
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000b2a0
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x1028eb88], 0x1ed4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40272c
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.0040372c
test esi, esi
jne 0x402762
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.0040381c
jmp 0x402780
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402640
mov edi, eax
test esi, esi
je 0x402780
cmp dword [ebx], 0
je 0x402780
dec esi
jmp 0x402769
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x402e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x414018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402edc
push 0x80000002
invalid
invalid

Function at 0x403534
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x415034], 0
je 0x403595
cmp word [0x415208], 0xd7b2
jne 0x40355d
cmp dword [0x415210], 0
jbe 0x40355d
mov eax, 0x415204
call dword [0x415220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x414084
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 0x4035bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x414024], 0
jne 0x4035b1
push 0
push 0x41407c
push 0x414084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4036e8
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.004024d0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x415035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4036b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4043c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404426
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040388c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404410
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40442d
lea eax, [ebp - 0x10]
call fcn.0040372c
ret
Function at 0x404a28
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4140dc], 0
jne 0x404afa
mov byte [0x4140dc], 1
xor eax, eax
mov dword [0x4140d4], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x404a70
cmp dword [esp + 0x1c], 3
jne 0x404ad0
cmp dword [esp + 0x20], 0x33
jbe 0x404ad0
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x404b04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404afa
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x404b34
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x404afa
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x404afa
cmp byte [esp + 9], 0
jne 0x404afa
jmp 0x404ae5
push 0
push 0x404b34
push 0x404b3c
call sub.kernel32.dll_GetProfileIntA
test eax, eax
je 0x404afa
mov eax, dword [0x4140d0]
call fcn.00403aa4
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4140d4], eax
add esp, 0xac
ret

Function at 0x404d84
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
and eax, 0xff
bt dword [0x4140e0], eax
jae 0x404dbd
xor eax, eax
mov al, byte [ebp - 2]
add eax, 1
jno 0x404dae
call fcn.00402f1c
cmp eax, 0xff
jbe 0x404dba
call fcn.00402f14
mov byte [ebp - 2], al
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
push 0
xor eax, eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_MapVirtualKeyA
cmp eax, 0xff
jbe 0x404dde
call fcn.00402f14
push eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_keybd_event
pop ecx
pop ebp
ret

Function at 0x4056a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40576f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040372c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x405759
mov eax, ebx
mov edx, 0x73
call fcn.00403bd4
push 0
lea eax, [ebp - 8]
push eax
push 0x73
mov eax, ebx
call fcn.00403afc
push eax
push esi
call sub.kernel32.dll_ReadFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebx]
mov eax, 0x405784
call fcn.00403b8c
test eax, eax
jne 0x40573a
mov eax, ebx
call fcn.0040372c
jmp 0x405759
push ebx
mov edx, dword [ebx]
mov eax, 0x405790
call fcn.00403b8c
mov ecx, eax
dec ecx
sub ecx, 0x50
mov eax, dword [ebx]
mov edx, 0x51
call fcn.00403b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405776
lea eax, [ebp - 4]
call fcn.0040372c
ret
Function at 0x405794
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40583c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_OpenFile
mov esi, eax
cmp esi, 0xffffffff
je 0x405821
lea eax, [ebp - 8]
mov edx, 0x186a0
call fcn.00403bd4
push 0
lea eax, [ebp - 0xc]
push eax
push 0x186a0
lea eax, [ebp - 8]
call fcn.00403afc
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x405821
push esi
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 8]
mov eax, 0x405854
call fcn.00403b8c
test eax, eax
jle 0x405821
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405843
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403750
ret

Function at 0x40586c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
mov eax, dword [ebp - 8]
call fcn.00403a94
xor eax, eax
push ebp
push 0x4058ee
push dword fs:[eax]
mov dword fs:[eax], esp
xor bl, 1
neg bl
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test byte [ebp + 0x10], bl
je 0x4058d3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.00405da8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4058f5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403750
ret