joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419f1c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x419f5b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x419f5b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419f5b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x419f5b
cmp dword [ecx + 0x74], 0xe
jbe 0x419f5b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42598c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00436be0
mov eax, dword [0x446d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004284da
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4259ce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x425b2a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00436a70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x44a1a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042dd88
mov ecx, dword [esi*4 + 0x44a1a8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x425b23
cmp eax, dword [ecx + edi + 0x24]
jne 0x425b23
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425b23
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042dd88
add esp, 0x14
test edx, edx
jl 0x425b23
jg 0x425a99
test eax, eax
jb 0x425b23
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x425b23
jl 0x425ab3
cmp dword [ebp - 0x1008], eax
ja 0x425b23
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x425ad1
test ebx, ebx
je 0x425b0a
cmp ecx, edi
jae 0x425b0a
mov al, byte [ecx]
cmp al, 0xd
jne 0x425aeb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x425af7
cmp byte [ecx + 1], 0xa
jne 0x425af7
inc ecx
jmp 0x425af7
movzx eax, al
movsx eax, byte [eax + 0x446e48]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x425ad1
cmp edx, ebx
jne 0x425ad1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x425b28
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00419297
leave
ret
Function at 0x42864d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x44a1a8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42868d
cmp byte [ebx], 0xa
jne 0x42868d
or byte [edi + eax + 0x28], 4
jmp 0x428692
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x428791
mov dl, byte [eax]
cmp dl, 0x1a
je 0x428774
inc eax
cmp dl, 0xd
je 0x4286be
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4286e4
cmp eax, ecx
jae 0x4286f2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4286a6
jmp 0x428791
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42876f
cmp dword [ebp - 0x10], 0
je 0x42876f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x44a1a8]
test byte [eax + edi + 0x28], 0x48
je 0x428749
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x428734
mov byte [esi], dl
jmp 0x428745
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44a1a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x428791
cmp byte [ebp - 1], 0xa
jne 0x428758
cmp esi, ebx
jne 0x428758
mov byte [esi], 0xa
jmp 0x428790
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042dda6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x428791
mov byte [esi], 0xd
jmp 0x428790
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x44a1a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42878e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x428791
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42879a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x44a1a8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4287e0
cmp word [ebx], dx
jne 0x4287e0
or byte [eax + edi + 0x28], 4
jmp 0x4287e5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x428948
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x428928
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x428826
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42885c
cmp eax, edx
jae 0x42886a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x428801
jmp 0x428948
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428923
cmp dword [ebp - 0x18], 0
je 0x428923
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x44a1a8]
test byte [eax + edi + 0x28], 0x48
je 0x4288f9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4288bd
mov word [esi], cx
jmp 0x4288f4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x44a1a8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x44a1a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x44a1a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x428948
pop eax
cmp word [ebp - 4], ax
jne 0x428909
cmp esi, ebx
jne 0x428909
mov word [esi], ax
jmp 0x428945
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042dda6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x428948
push 0xd
pop eax
jmp 0x428904
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x44a1a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x428942
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x428948
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42c02d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e5e8
push 0x43e5e0
push str.FlsAlloc
push 0x1f
call fcn.0042beec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c061
push dword [ebp + 8]
mov ecx, esi
call dword [0x438184]
call esi
jmp 0x42c067
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42c0ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e5f8
push 0x43e5f0
push str.FlsGetValue
push 0x21
call fcn.0042beec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c0e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x438184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42c0ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e600
push 0x43e5f8
push str.FlsSetValue
push 0x22
call fcn.0042beec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c124
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x438184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42f117
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42f1b4
push ebx
push esi
call fcn.0042f0e0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042bd4d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f161
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f1b3
push edi
push eax
call fcn.00429cc8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42f181
call fcn.00429c8e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f1b2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042bd4d
add esp, 0x20
test eax, eax
jne 0x42f1a0
push edi
call fcn.00429c8e
jmp 0x42f1a8
push ebx
call fcn.00429c8e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42f1b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42f1c8
pop esi
ret
push ebx
push edi
push esi
call fcn.0042f0e0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00429cc8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42f1f0
push ebx
push esi
push edi
call fcn.0041a5b0
add esp, 0xc
push 0
call fcn.00429c8e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42f5c0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f205
Function at 0x435b45
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00435ac1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x435cb4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x435cb4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x435c69
jg 0x435ba1
test eax, eax
je 0x435c5f
push 1
push 0x1000
call fcn.0042daa4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x435bc4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x435c56
push 0x8000
push ebx
call fcn.00426e2b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x435bed
jg 0x435be8
cmp ecx, 0x1000
jb 0x435bed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042cec2
add esp, 0x10
cmp eax, 0xffffffff
je 0x435c32
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x435be8
jl 0x435c19
test ecx, ecx
jne 0x435bda
push dword [ebp - 0xc]
push ebx
call fcn.00426e2b
push esi
call fcn.00429c8e
add esp, 0xc
xor ebx, ebx
jmp 0x435cc2
cmp byte [edi + 0x24], 0
je 0x435c49
cmp dword [edi + 0x20], 5
jne 0x435c49
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x435c54
mov ebx, dword [edi + 0x18]
jmp 0x435c56
xor ebx, ebx
push esi
call fcn.00429c8e
pop ecx
jmp 0x435cc2
test ecx, ecx
jg 0x435c2b
jl 0x435c69
test eax, eax
jae 0x435c2b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042dda6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x435c89
cmp byte [edi + 0x1c], 0
je 0x435c2b
jmp 0x435cba
push ebx
call fcn.0042f995
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x435c2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x435cc2
cmp byte [edi + 0x1c], 0
je 0x435cbf
mov ebx, dword [edi + 0x18]
jmp 0x435cc2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042dda6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x436850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43687d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43687d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5907e0
Capabilities:
Encode data using xor

Disassembly:
popal
test eax, esi
inc ecx
fisttp dword [ecx + edx - 0x50]
rol dword [edx], 0x89
je 0x59084d
invalid
push 0xffffffffffffffd0
jmp [esi]
lcall 0x9160, 0x5b3be4bd
xchg ebp, eax
scasb al, byte es:[edi]
fstp dword [edi]
jno 0x590876
cwde
pop ecx
aaa
retf
sbb eax, 0x29492804
add al, 0xf0
xchg byte [ebx], bh
sub eax, 0xf4389126
leave
ja 0x590815
stc
dec ebx
sub dword [ebx], 0xaf15bd24
sti
mov ebp, 0xfbf2af15
rol dword [ecx], 0x3e
jns 0x5908e6
les ebp, [edi + 0x134ade44]
and al, 0xc4
push ebp
out 0x56, eax
push esi
sbb byte [esi], 0xa4
test byte fs:[ebx], ah
imul ecx, dword [edx + 0x64d441de], 0x65ec472a
lahf
and eax, dword [esi*8 - 0x15874f93]
enter 0xffffffffffffbbb4, 0xffffffffffffffe7
leave
jnp 0x59091a
je 0x5908b6
push 0x94bd34c3
sahf
in eax, 0x84
sbb ecx, eax
imul eax, dword [edx + edx*4], 0xd90aa7f9
mov dl, 0xb8
adc al, 0xcc
and eax, ebx
add byte [edi], dh
test edx, ebp
sbb byte [eax], al
sbb dword [ecx], edi
loopne 0x590860
add edi, dword [edx + 0x5e]
adc edi, dword [esi - 0x59c9c68c]
xor al, 0x1b
les ecx, [ebx + 0x1ad9b44e]
je 0x59095c
bound ecx, qword [ecx]
xlatb
jnp 0x59088b
sbb dword [eax + 0x534c3853], edx
cdq
cwde
invalid
lodsb al, byte [esi]
mov word [esi], fs
dec ecx
mov dl, 0xc2
and dword [ecx], eax
inc ebp
adc al, 0x90
xor dword [edx - 0x65527587], esi
pop ebp
xlatb
dec edx
pushfd
jg 0x59091f
ret 0x121
dec edx
stosb byte es:[edi], al
mov ecx, 0xb4244249
mov ebp, eax
popfd
xchg ebp, eax
mov dh, 0x82
mov es, word [edx + ecx*2 - 0x56e8d613]
xor eax, 0xc3bf8b1
xor dword [ebx + 0xd], ebx
out dx, eax
fisub dword [esi]
test dword [ebp + 0x439b7d8], ecx
pop ebx
cmp byte [ebx - 0x6f], cl
fldln2
aaa
and al, 0xde
sbb dword [edi - 0x1d], ebx
adc byte [ebx], ah
dec ecx
pop ss
retf 0xeb7
Function at 0x402ca4
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 0x402ce1
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 0x402d01
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ce0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a70
test esi, esi
jne 0x402f17
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.00404b60
jmp 0x402f38
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d7c
mov dword [esp], eax
test esi, esi
je 0x402f38
cmp dword [ebx], 0
je 0x402f38
dec esi
jmp 0x402f1f
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403654
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403687
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x40368e
cmp edx, dword [ebx + 8]
je 0x403698
mov eax, 0x65
jmp 0x403693
mov eax, 5
jmp 0x403693
call sub.kernel32.dll_GetLastError
call fcn.00402c44
mov eax, ebx
pop ebx
ret

Function at 0x403b08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x496024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ba0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b80
xor eax, eax
push ebp
push 0x403b79
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 0x403bbc
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 0x403b80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x496024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x496024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4048ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x499048], 0
je 0x40494d
cmp word [0x49921c], 0xd7b2
jne 0x404915
cmp dword [0x499224], 0
jbe 0x404915
mov eax, 0x499218
call dword [0x499234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49609c
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 0x404974
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x496034], 0
jne 0x404969
push 0
push 0x496094
push 0x49609c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406914
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 0x40697a
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.00404ce0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403580
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406964
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406981
lea eax, [ebp - 0x10]
call fcn.00404a70
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f30
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40969d
test al, 0x10
jne 0x4096a1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409790
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404f30
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4097b2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c8d8
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 0x40c911
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b60
jmp 0x40c91a
mov eax, ebx
mov edx, esi
call fcn.00404ac4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c924
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 0x40c945
mov al, byte [esp]
jmp 0x40c947
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40cfdc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ce44
mov eax, dword [0x498584]
cmp byte [eax], 0
je 0x40d058
mov eax, dword [0x4982bc]
call fcn.004032bc
call fcn.00402c24
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.00409bc4
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 0x40d0a0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d08e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49824c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x499664]
call fcn.00405d80
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

Function at 0x40d8fc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d9d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404b08
lea eax, [ebp - 8]
call fcn.00404f80
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f30
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d9bc
mov eax, ebx
call fcn.00402a98
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d9b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f30
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d99f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d9e4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d99f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9bc
mov eax, dword [ebp - 0x10]
call fcn.00402ac8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d9d9
lea eax, [ebp - 8]
call fcn.00404a70
ret

Function at 0x40e014
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e078
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404ce0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004092e4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e07f
lea eax, [ebp - 0xc]
call fcn.00404a70
ret