joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461497
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00461314

Function at 0x4614a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x4b06d8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4614e3
cmp byte [edx], 0xa
jne 0x4614e3
or byte [eax + edi + 0x28], 4
jmp 0x4614e8
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4615d9
mov al, byte [ebx]
cmp al, 0x1a
je 0x4615ba
cmp al, 0xd
je 0x461511
mov byte [esi], al
inc esi
inc ebx
jmp 0x4615af
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x461531
cmp byte [eax], 0xa
jne 0x461526
push 2
mov byte [esi], 0xa
pop eax
jmp 0x46152c
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4615af
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4615a8
cmp dword [ebp - 0x14], 0
je 0x4615a8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b06d8]
test byte [eax + edi + 0x28], 0x48
je 0x46157f
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x46156f
mov byte [esi], dl
jmp 0x4615ab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b06d8]
mov byte [eax + edi + 0x2a], dl
jmp 0x4615ab
cmp byte [ebp - 1], 0xa
jne 0x461591
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x461591
mov byte [esi], 0xa
jmp 0x46152e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00461fa3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4615ac
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4614fa
jmp 0x4615d9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b06d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4615d4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4615d9
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4615e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x4b06d8]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x461628
cmp word [edx], bx
jne 0x461628
or byte [edi + eax + 0x28], 4
jmp 0x46162d
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x461781
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x461761
cmp ax, word [ebp - 0x10]
je 0x461666
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x461756
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x46168c
push 0xa
pop ecx
cmp word [eax], cx
jne 0x46167c
push ecx
pop eax
push 4
jmp 0x461681
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x461750
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461747
cmp dword [ebp - 0x18], 0
je 0x461747
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x4b06d8]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x461713
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4616d7
mov word [esi], ax
jmp 0x46170b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x4b06d8]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x4b06d8]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x4b06d8]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x461756
cmp word [ebp - 4], ax
jne 0x461728
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x461728
mov word [esi], ax
add esi, 2
jmp 0x461756
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00461fa3
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x461753
jmp 0x46174a
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x461646
jmp 0x461781
mov ecx, dword [ecx*4 + 0x4b06d8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x461778
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x461781
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46451a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004641bc

Function at 0x46cb10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x24]
mov ebx, dword [edi + 0x6c]
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x34]
add eax, 0xfffffefa
sub edx, dword [edi + 0x64]
add eax, esi
sub edx, ebx
mov dword [ebp - 4], edx
cmp dword [edi + 0x64], eax
jb 0x46cbb8
mov ecx, dword [edi + 0x30]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00446660
mov ebx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], esi
sub dword [edi + 0x64], esi
sub dword [edi + 0x54], esi
lea edx, [eax + ebx*2]
nop dword [eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp + 8], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp + 8]
mov word [edx], ax
sub ebx, 1
jne 0x46cb60
mov eax, dword [edi + 0x38]
mov ebx, esi
lea edx, [eax + esi*2]
nop dword [eax + eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp + 8], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp + 8]
mov word [edx], ax
sub ebx, 1
jne 0x46cb90
mov edx, dword [ebp - 4]
add edx, esi
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x46cc10
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x30]
add eax, dword [edi + 0x64]
push edx
push eax
push ecx
call fcn.0046cf70
add dword [edi + 0x6c], eax
add esp, 0xc
mov ebx, dword [edi + 0x6c]
cmp ebx, 3
jb 0x46cbfc
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx edx, byte [eax]
mov dword [edi + 0x40], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x4c]
mov dword [edi + 0x40], edx
cmp ebx, 0x106
jae 0x46cc10
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x46cb20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d2a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f000]
push edi
or ebp, 0xffffffff
jmp 0x43d2c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43d2c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43d2b8
mov eax, 1
add ebx, ebx
jne 0x43d2db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43d2d0
jne 0x43d2ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43d2d0
xor ecx, ecx
sub eax, 3
jb 0x43d300
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43d372
mov ebp, eax
add ebx, ebx
jne 0x43d30b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43d318
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43d33c
inc ecx
add ebx, ebx
jne 0x43d328
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43d31d
jne 0x43d339
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43d31d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43d35c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43d34d
jmp 0x43d2be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43d35c
add edi, ecx
jmp 0x43d2be
pop esi
mov edi, esi
mov ecx, 0xc69
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43d37a
cmp byte [edi], 4
jne 0x43d37a
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 0x43d37f
lea edi, [esi + 0x3b000]
mov eax, dword [edi]
or eax, eax
je 0x43d3f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x41828]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x41918]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43d3ac
mov ecx, edi
jns 0x43d3db
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 + 0x4191c]
or eax, eax
je 0x43d3f1
mov dword [ebx], eax
add ebx, 4
jmp 0x43d3c9
call dword [esi + 0x4192c]
mov ebp, dword [esi + 0x41920]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x43d42b
sub esp, 0xffffff80
jmp 0x41d690
Function at 0x4014e2
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov edx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, ecx
xor eax, 0x3eca
lea ebx, [ecx - 0x1ac2]
mov dword [esp + 0x14], eax
xor edx, 0x38ba
push esi
mov esi, dword [esp + 0x20]
lea eax, [ecx + 0x9d9]
mov ecx, dword [esp + 0x18]
add ebp, 0xffffd8d6
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
xor edi, 0x3f1
lea eax, [ebx + 0x2113]
mov dword [esp + 0x10], edx
cmp ecx, eax
jl 0x401567
mov eax, dword [0x4b570c]
mov ecx, dword [esi + 0x70]
add ecx, 0x2cca0f2
mov dword [eax + 0xc], ecx
mov eax, dword [0x4b570c]
mov eax, dword [eax + 0x104]
sub eax, dword [esi + 0x108]
xor eax, 0x1cd
sub dword [esi + 0xc], eax
jmp 0x401673
mov eax, ebx
sub eax, edi
imul eax, dword [esi + 0x7c]
cmp edx, eax
je 0x4015e8
imul eax, dword [esi + 0xd8], 0x212c
and eax, ebp
cmp edx, eax
jbe 0x4015e8
imul ecx, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov eax, dword [0x4b570c]
mov ecx, dword [eax + 0xe4]
mov eax, dword [esi + 0x28]
sub eax, 0x2394
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x401673
or ebx, ebp
or ebx, 0x2326
cmp edx, ebx
jle 0x401662
mov ecx, dword [esp + 0x28]
mov eax, dword [0x507188]
imul eax, ecx
xor eax, dword [0x50719c]
push eax
mov eax, ebp
imul eax, ebp
push eax
lea eax, [edi - 0x269d]
push eax
mov eax, dword [esi + 0x30]
add eax, dword [0x507128]
or eax, 0x1fd0
push eax
mov eax, dword [esi + 0x58]
and eax, ecx
push eax
mov eax, dword [esi + 0x88]
add eax, ecx
push eax
imul eax, edx, 0x269d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x28]
inc ecx
sub eax, 0x2394
mov dword [esp + 0x1c], ecx
cmp ecx, eax
ja 0x40160b
xor ebp, 0x2278
cmp edx, ebp
jl 0x4016db
mov edx, dword [esi + 0xb0]
mov ecx, 0xf0e3d
mov dword [esi + 0x10], ecx
xor edx, 0x5057d
mov eax, dword [0x4b570c]
mov eax, dword [eax]
add eax, 0x286dafc3
xor eax, ecx
mov dword [esi + 0x10], eax
mov eax, dword [0x4b570c]
mov dword [0x5070f4], edx
mov ecx, dword [eax + 0x64]
mov eax, dword [esi + 0x108]
add ecx, 0xffe4f169
add eax, ecx
mov ecx, dword [0x507104]
xor edx, eax
add ecx, 0x3c0bfe33
mov dword [0x5070f4], edx
add ecx, dword [esi + 0x7c]
mov dword [0x5070fc], ecx
xor edi, 0x615
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40b6a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x507958]
xor edx, edx
mov ecx, dword [esp + 4]
inc eax
mov dword [0x507958], eax
push ebx
movzx ebx, word [0x5079a8]
push ebp
push esi
mov esi, dword [0x507950]
mov cl, byte [ecx + ebx*4]
or cl, al
dec esi
inc dword [0x507968]
mov eax, dword [0x507954]
dec eax
movzx ebp, cl
mov dword [0x507954], eax
div dword [0x50795c]
mov edx, dword [esp + 0x10]
imul ecx, ebx, 6
mov dword [0x507950], esi
push edi
mov edi, eax
mov ebx, dword [esp + 0x1c]
movzx eax, word [ecx + esi]
imul ecx, ebp, 0xc
and eax, dword [ecx + edx]
xor edx, edx
div dword [0x507990]
mov eax, dword [0x5079a0]
mov dword [0x507990], edx
xor edx, edx
movzx ecx, word [edi]
lea esi, [eax + ecx*8]
movzx eax, word [edi + ecx*2]
imul ecx, dword [0x507958], 0xc
or eax, 0x1252
mov edi, ebx
xor eax, dword [ecx]
mov ecx, 0x1a15
div dword [esi]
mov dword [esi], edx
xor edx, edx
movzx eax, word [0x50798c]
add eax, ebp
div ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + ebp*8], eax
mov eax, 0xffff
add word [0x50798c], ax
cmp ebx, dword [0x507940]
jl 0x40b786
lea esi, [ebx + ebx]
imul eax, dword [0x507988], 0xc
add ecx, eax
mov eax, edi
xor eax, ebx
sub eax, esi
add esi, 2
cdq
idiv dword [ecx]
inc edi
mov dword [ecx], edx
mov ecx, dword [esp + 0x14]
cmp edi, dword [0x507940]
jge 0x40b762
pop edi
pop esi
pop ebp
mov eax, 0x1c51
pop ebx
ret
Function at 0x41bb4d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
inc dword [0x50795c]
mov eax, dword [0x507964]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x4c], edi
inc edi
add eax, edi
mov edx, dword [0x50796c]
movzx eax, ax
inc edi
mov dword [esp + 0x1c], eax
mov eax, dword [0x5079a0]
mov esi, dword [0x507954]
mov ebp, dword [esp + 0x2c]
mov eax, dword [eax + 0x5a18]
and eax, dword [ecx + 0x2b18]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x2ac0]
add word [0x5079a8], 2
or eax, 0x1bab
mov dword [esp + 0x18], eax
movzx eax, word [0x507980]
imul eax, eax, 0x1f37
dec edx
mov dword [0x50796c], edx
mov ecx, dword [ecx + edi*8]
mov dword [esp + 0x14], eax
mov eax, edi
add eax, eax
sub ecx, dword [ebx + eax*8 + 0x2c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x507978]
mov eax, dword [eax + 0x5278]
xor eax, esi
mov dword [esp + 0x38], eax
mov eax, dword [0x507940]
cmp eax, dword [ecx + edx*8]
jae 0x41bc05
test esi, esi
jne 0x41bc3f
mov eax, dword [0x507958]
xor edx, edx
mov ecx, dword [esp + 0x4c]
or dword [ebp + eax*4], ecx
mov eax, dword [0x50794c]
mov ecx, dword [esp + 0x44]
add eax, 0xffffe4bc
mov dword [0x50797c], eax
mov eax, dword [0x507964]
add eax, dword [0x50795c]
div dword [ecx + 0x500c]
add word [0x50798c], dx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov dword [eax + edi*4], ecx
inc byte [esi]
mov eax, dword [esp + 0x14]
inc word [eax]
mov ax, word [eax]
mov cx, word [ebp + 0x6e70]
movzx edx, ax
mov eax, dword [esp + 0x48]
mov word [eax + edx*8], cx
movzx ecx, byte [esp + 0x34]
mov eax, dword [0x507984]
mov eax, dword [eax + ecx*4]
sub eax, dword [0x507968]
imul ecx, ecx, 0xc
mov dword [0x507968], eax
movzx eax, word [0x507960]
cmp eax, dword [ecx + 0x1df5]
jne 0x41bcbd
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + edi*2]
cmp dword [0x507940], eax
jle 0x41bcbd
lea ecx, [edi + 0xd]
imul esi, ecx, 0xc
mov ecx, dword [0x5079a0]
mov edx, dword [ecx + edi*4 + 0x40]
mov ecx, dword [0x50799c]
cmp edx, dword [esi + ecx]
je 0x41bd33
mov eax, dword [esp + 0x1c]
movzx ebp, ax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + edi*4]
cmp edx, ebp
je 0x41bd33
imul esi, edx, 0xc
add esi, 0x1df5
mov ax, word [0x5079a8]
mov ecx, 0xffff
add ax, cx
mov word [0x5079a8], ax
movzx ecx, ax
mov eax, edx
imul eax, dword [0x507990]
or dword [ebx + ecx*4], eax
mov eax, dword [0x50796c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
movzx ecx, word [ecx + eax*2]
mov eax, edx
and eax, edi
or ecx, eax
mov eax, dword [0x507958]
sub ecx, dword [ebx + eax*4]
and dword [0x507944], ecx
dec edi
mov ebx, dword [esp + 0x3c]
inc edx
mov dword [esi], 0x2fd
lea esi, [esi + 0xc]
cmp edx, ebp
jne 0x41bcd8
mov eax, dword [0x50796c]
pop edi
pop esi
pop ebp
mov eax, dword [ebx + eax*4]
pop ebx
add esp, 0x14
ret
Function at 0x402ab0
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.004041e8
test esi, esi
jne 0x402ae6
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.004042d8
jmp 0x402b04
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c4
mov edi, eax
test esi, esi
je 0x402b04
cmp dword [ebx], 0
je 0x402b04
dec esi
jmp 0x402aed
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4032c8
Capabilities:
Query or enumerate registry value

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

Function at 0x40406c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b704c], 0
je 0x4040cd
cmp word [0x4b7220], 0xd7b2
jne 0x404095
cmp dword [0x4b7228], 0
jbe 0x404095
mov eax, 0x4b721c
call dword [0x4b7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b3070
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 0x4040f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b3034], 0
jne 0x4040e9
push 0
push 0x4b3068
push 0x4b3070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40643c
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 0x4064a2
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.00404458
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e6c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40648c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064a9
lea eax, [ebp - 0x10]
call fcn.004041e8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409045
test al, 0x10
jne 0x409049
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c360
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c399
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d8
jmp 0x40c3a2
mov eax, ebx
mov edx, esi
call fcn.0040423c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c3ac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c3cd
mov al, byte [esp]
jmp 0x40c3cf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ca54
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c8cc
mov eax, dword [0x4b6078]
cmp byte [eax], 0
je 0x40cad0
mov eax, dword [0x4b5d30]
call fcn.00402c14
call fcn.004028f0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409460
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cb18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cb06
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b5cc4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b7668]
call fcn.00405950
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret