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

Disassembly:
mov eax, 0x5448
call fcn.00409660
push ebx
push edi
push 0x38
xor edi, edi
lea edx, [esp + 0xc]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44c]
push str.1.1.3
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x5000
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.00409ff0
mov ebx, eax
add esp, 0xc
cmp ebx, edi
jne 0x409dce
push ebp
push esi
mov esi, dword [esp + 0x5460]
push 2
push edi
push esi
call sub.MSVCR71.dll_fseek
push esi
call sub.MSVCR71.dll_ftell
push edi
push edi
push esi
mov ebp, eax
call sub.MSVCR71.dll_fseek
add esp, 0x1c
test ebp, ebp
jbe 0x409d5f
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x409cfd
push esi
push 0x400
lea eax, [esp + 0x50]
push 1
push eax
call sub.MSVCR71.dll_fread
lea ecx, [esp + 0x58]
add esp, 0x10
add edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
test eax, eax
jbe 0x409d10
lea edx, [esp + 0x10]
push 2
push edx
call fcn.0040a010
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x409d1d
cmp ebx, 1
jne 0x409db4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x409d57
mov eax, dword [esp + 0x545c]
push eax
push 0x5000
lea ecx, [esp + 0x458]
push 1
push ecx
call sub.MSVCR71.dll_fwrite
lea edx, [esp + 0x460]
add esp, 0x10
mov dword [esp + 0x20], 0x5000
mov dword [esp + 0x1c], edx
cmp edi, ebp
jb 0x409cd0
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0040a010
lea edx, [esp + 0x18]
push edx
call fcn.00409ea0
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x5000
je 0x409da7
mov ecx, dword [esp + 0x545c]
push ecx
mov edx, 0x5000
sub edx, eax
push edx
lea eax, [esp + 0x458]
push 1
push eax
call sub.MSVCR71.dll_fwrite
add esp, 0x10
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x5448
ret
lea eax, [esp + 0x10]
push eax
call fcn.00409ea0
add esp, 4
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x5448
ret
pop edi
mov eax, ebx
pop ebx
add esp, 0x5448
ret
Function at 0x100fce8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1004290
call fcn.010102f0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x100fd30
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100fd30
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x100fd49
cmp ecx, 0x20b
je 0x100fd36
and dword [ebp - 0x60], 0
jmp 0x100fd5d
cmp dword [eax + 0x84], 0xe
jbe 0x100fd30
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x100fd57
cmp dword [eax + 0x74], 0xe
jbe 0x100fd30
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x60], ecx
and dword [ebp - 4], 0
add byte [eax], al
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x1019a8c], edi
mov dword [0x1019a90], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1018c14]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1018c10]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1019a88], eax
call fcn.010102ea
cmp dword [0x10188a0], 0
jne 0x100fdbd
push fcn.010102ea
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010102d8
push 0x1018024
push 0x1018020
call sub.msvcrt.dll__initterm
mov eax, dword [0x1018c0c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x1018c08]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x74], eax
push 0x101801c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], 0
jne 0x100fe21
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x100fed2
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp word [eax], 0x22
jne 0x100fe64
add eax, esi
mov dword [ebp - 0x78], eax
mov cx, word [eax]
test cx, cx
je 0x100fe3f
cmp cx, 0x22
jne 0x100fe2c
cmp word [eax], 0x22
jne 0x100fe4a
add eax, esi
mov dword [ebp - 0x78], eax
mov cx, word [eax]
test cx, cx
je 0x100fe58
cmp cx, 0x20
jbe 0x100fe45
test byte [ebp - 0x30], 1
je 0x100fe71
movzx ecx, word [ebp - 0x2c]
jmp 0x100fe74
cmp word [eax], 0x20
jbe 0x100fe4a
add eax, esi
mov dword [ebp - 0x78], eax
jmp 0x100fe64
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.010146eb
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], 0
jne 0x100fe94
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x100fed0
mov eax, esi
call fcn.0101032b
ret
Function at 0x40524d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a380
cmp edx, dword [eax]
je 0x40526f
add eax, 8
inc ecx
cmp eax, 0x40a410
jl 0x405260
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a380]
jne 0x40539d
mov eax, dword [0x40a734]
cmp eax, 1
je 0x405377
test eax, eax
jne 0x4052a0
cmp dword [0x4082b0], 1
je 0x405377
cmp edx, 0xfc
je 0x40539d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4052d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405ee0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406090
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40531a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406090
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4073d0
push edi
call fcn.004064d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405ee0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405ef0
lea eax, [ebp - 0xa0]
push 0x4073b0
push eax
call fcn.00405ef0
push dword [esi + 0x40a384]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405ef0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406445
add esp, 0x2c
pop edi
jmp 0x40539d
lea eax, [ebp + 8]
lea esi, [esi + 0x40a384]
push 0
push eax
push dword [esi]
call fcn.00406090
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]
pop esi
leave
ret

Function at 0x847546
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x8472a2
add edi, esi
call fcn.00847570
or edi, edi
xor dword [ecx], ebx
or esi, esi
add esi, edi
inc ecx
mov edi, esi
mov edi, 0xdb025163
cmp ecx, edx
jne fcn.00847546
or esi, edi
dec esi
inc edi
ret
Function at 0x4d937d
Capabilities:
Encode data using xor

Disassembly:
mov ah, byte [esp + 0x15]
pop dword [esp]
mov byte [esp + 4], dh
lea eax, [ecx + edi]
mov word [esp], bx
xchg al, ah
jmp 0x4d8efe
jmp 0x4d9353

Function at 0x4f542e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x4f54c8
lea esp, [esp + 0x24]
jne 0x4f5358
je 0x4f533b

Function at 0x4f54d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 2
lea esp, [esp + 2]
jmp 0x4f5433
jmp 0x4f5506
test cl, cl
je 0x4f5358
jne 0x4f54aa
ficom word [ecx - 0x3f]
mov al, byte [0xd240e353]
inc eax
daa
shr byte [ebp - 0x2d], cl
dec edx
in eax, 0x14
xchg dword [esi], ebp
movzx edi, cl
pushal
mov dword [esp + 0x1b], esi
sub eax, edi
call fcn.004f542e
sub byte [ecx + 0xdbb4829], bh
or bl, byte [edx + 0x2f9a6f08]
push 0xf90a6fff
mov ch, 0x52
int 0x5c
lea esp, [esp + 0x20]
push edi
lea edi, [edi*4]
lea edi, reloc.WINMM.dll_waveOutClose
lea edi, [eax - 0x79]
jmp 0x4f544f
mov edi, dword [esp]
inc esi
not edi
lea edi, [esi*4]
jmp 0x4f54fd
mov cl, byte [esi + 1]
push edx
lea esp, [esp + 4]
movzx eax, byte [edx + 1]
jmp 0x4f548a
lea esp, [esp + 4]
movzx edi, cl
jmp 0x4f54e5
push esp
mov dword [esp], eax
jmp 0x4f551e
inc edx
lea edi, [edx + edi]
call fcn.004f54d8
pop edi
pop esi
call fcn.004f5da0
push esp
int3
sub eax, edi
lea esp, [esp + 4]
je 0x4f533b
jne 0x4f5358
push ebx
rol dword [ebx + 0x26], cl
aad 0x12
salc
inc ecx
Function at 0x6a4cd7
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dx, word [esp + 0xc]
and dh, bh
jmp 0x6a459e
add esp, 0xf
stc
mov dx, 0x6af
lea esp, [esp + 1]
jmp 0x6a462b
pop word [esp + 1]
neg dx
neg dx
jmp 0x6a45ef
jbe 0x6a45dd
sub esp, 6
push dword [esp + 4]
jmp 0x6a4529
setb dh
lea edx, [edx + ebx]
not edx
cmc
jmp 0x6a466a
jno 0x6a4511
add esp, 0xf
stc
call fcn.006a4558
add eax, 0xd6bc0f66
sub esp, 6
push dword [esp + 4]
pop word [esp + 1]
neg dx
neg dx
xchg dword [esp + 5], edx
jmp 0x6a4504
cmc
jmp 0x6a466a
lea edx, [edx + edi]
mov al, byte [esp]
jmp 0x6a463c
setb dh
lea edx, [edx + ebx]
not edx
jmp 0x6a45f8
sub al, 0x98
not dx
bsf dx, si
jae 0x6a4588
jb 0x6a4614
dec edi
xchg dx, ax
stc
jp 0x6a46b9
jnp 0x6a469e
inc ebx
invalid
lea edx, [edx + edi]
mov al, byte [esp]
jmp 0x6a463c
add bl, al
bswap edx
cmp dx, 0x1a8a
jp 0x6a45fb
jnp 0x6a4652
btr edx, ebx
rdtsc
jmp 0x6a4743
jmp 0x6a4757
sbb eax, esi
jmp 0x6a47b2
bswap edx
bts eax, edi
mov eax, dword [esp]
call fcn.006a46de
xchg ebp, eax
pop ss
xchg edx, esp
adc dword [edi + reloc.WINMM.dll_waveOutClose], ebp
mov byte [ebp - 0x5b], cl
aam 0xf
retf 0xab0f
bswap edx
bts eax, edi
mov eax, dword [esp]
btr edx, ebx
jmp 0x6a4741
rdtsc
setae ah
bswap edx
neg dx
jnp 0x6a4681
jp 0x6a4757
dec cl
push 0xf5c9fe8b
dec cl
cmc
ja 0x6a4686
sbb eax, esi
mov al, byte [esp]
jmp 0x6a4796
lea eax, [esp + ebp]
mov al, byte [esp]
lea eax, [esp + ebp]
lea eax, [edx*4]
jmp 0x6a477c
lea esp, [esp + 4]
sub al, 0xae
mov dh, bh
mov dl, byte [esp]
sub esp, 8
jmp 0x6a4549
jmp 0x6a48f8

Function at 0x6b0ae1
Capabilities:
Encode data using xor

Disassembly:
jmp 0x698c12
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x698c2e
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
rol eax, 7
xor eax, edx
inc ecx
cmp ecx, dword [esp + 8]
jb 0x698c1a
jmp 0x698c39
ret
lea esp, [esp + 4]
jmp 0x698c07
lea esp, [esp + 4]
push esp
jmp 0x6b0846
Function at 0x7d4887
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg ax
xchg byte [esp + 6], dl
lea esi, [ecx + 0x33]
jmp 0x7d4938
mov ebx, ecx
lea edi, [ecx - 0x7b]
bsf bp, si
pop word [esp + 1]
not esi
xchg word [esp + 3], si
jmp 0x7d4952
lea edx, [edi*4]
rcl bx, cl
lea edi, [ebp - 0x37]
mov ecx, dword [esp + 5]
mov dword [esp + 4], esi
add esp, 3
jmp 0x7d491b
mov ah, byte [esp + 1]
mov al, 0x4e
mov esi, ebp
inc edi
push word [esp + 5]
mov ebp, ecx
jmp 0x7d49cc
neg ebx
pushal
mov edx, ebp
btr edx, edx
cld
cld
jmp 0x7d49b5
mov word [esp], di
push word [esp + 0x1d]
xchg byte [esp + 0x20], al
stc
cmc
ror ah, 1
jmp 0x7d4996
xchg word [esp + 5], bx
rcl bx, cl
push word [esp + 5]
add edx, ebp
mov cl, 0x9a
pop word [esp + 3]
jmp 0x7d4964

Function at 0x7d9214
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov word [esp + 0xc], di
mov byte [esp + 0x1d], dh
push dword [esp + 0xa]
lea esp, [esp + 2]
mov dword [esp + 0x64], edi
jmp 0x7d9219
pushal
pop word [esp + 7]
pop dword [esp + 0x14]
push dword [esp + 8]
mov byte [esp + 0xc], ch
mov word [esp + 8], bx
jmp 0x7d91d4
mov byte [esp], bh
jmp 0x7d91ef
lea esp, [esp + 0x64]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
jmp 0x7d9268
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x7d9249

Function at 0x7d92ff
Capabilities:
Parse pe header

Disassembly:
mov dword [esp + 0x44], esi
pushal
mov byte [esp + 1], dh
lea esp, [esp + 3]
lea esp, [esp]
push edx
push dword [esp + 3]
lea esp, [esp + 1]
jmp 0x7d9239
mov dword [esp], esi
push dword [esp + 2]
mov word [esp], bx
mov dword [esp + 0x40], ebp
push edx
jmp 0x7d92bc
Function at 0x402b48
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.0040437c
test esi, esi
jne 0x402b7e
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.0040446c
jmp 0x402b9c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029fc
mov edi, eax
test esi, esi
je 0x402b9c
cmp dword [ebx], 0
je 0x402b9c
dec esi
jmp 0x402b85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403318
Capabilities:
Query or enumerate registry value

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

Function at 0x40415c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b104c], 0
je 0x4041bd
cmp word [0x4b1220], 0xd7b2
jne 0x404185
cmp dword [0x4b1228], 0
jbe 0x404185
mov eax, 0x4b121c
call dword [0x4b1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac070
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 0x4041e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac034], 0
jne 0x4041d9
push 0
push 0x4ac068
push 0x4ac070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404330
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.004027c0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042f8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405ab4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ce4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b37
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ce4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b37
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bc0
xor eax, eax
push ebp
push 0x405bb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004058fc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b9e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b9e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bc0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405cda
cmp byte [ebp - 0xd], 0
jne 0x405c07
cmp byte [ebp - 0x12], 0
je 0x405cda
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c20
dec ebx
cmp byte [ebx], 0x2e
je 0x405c2f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c1f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405cda
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c6c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cda
cmp byte [ebp - 0xd], 0
je 0x405cda
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405cda
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4063c8
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 0x40642e
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.004045fc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402eac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406418
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406435
lea eax, [ebp - 0x10]
call fcn.0040437c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040484c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4090a5
test al, 0x10
jne 0x4090a9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4090b0
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040484c
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4090c4
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.0040484c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4090e6
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c07c
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 0x40c0b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040446c
jmp 0x40c0be
mov eax, ebx
mov edx, esi
call fcn.004043d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c734
mov eax, dword [0x4b0310]
cmp byte [eax], 0
je 0x40c938
mov eax, dword [0x4aff50]
call fcn.00402cc0
call fcn.00402928
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.00409534
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 0x40c980
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c96e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4afeb8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b1668]
call fcn.004058c0
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 0x40d228
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 0x40d2fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404414
lea eax, [ebp - 8]
call fcn.0040489c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040484c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d2e8
mov eax, ebx
call fcn.004027c0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d2e1
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.0040484c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d2cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d310
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d2cb
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 0x40d2e8
mov eax, dword [ebp - 0x10]
call fcn.004027e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d305
lea eax, [ebp - 8]
call fcn.0040437c
ret

Function at 0x40d8c0
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 0x40d924
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.004045fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408cac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d92b
lea eax, [ebp - 0xc]
call fcn.0040437c
ret