joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003860
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10003921
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x100038cb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x100038ff
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x100038ff
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x1000388e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10003930
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
xor edx, edx
push ebp
xor ebp, ebp
mov ecx, dword [eax]
mov dx, word [ecx + 0x14]
cmp word [ecx + 6], bp
lea eax, [edx + ecx + 0x18]
jbe 0x100039c3
push ebx
push esi
push edi
lea esi, [eax + 0x24]
mov eax, dword [esi]
mov edx, eax
mov edi, eax
shr edx, 0x1d
shr edi, 0x1e
and edx, 1
and edi, 1
lea edx, [edi + edx*2]
mov edi, eax
shr edi, 0x1f
test eax, 0x4000000
lea edx, [edi + edx*2]
mov ebx, dword [edx*4 + 0x10005054]
je 0x1000397e
or bh, 2
mov edi, dword [esi - 0x14]
mov edx, edi
test edx, edx
jne 0x10003999
test al, 0x40
je 0x10003990
mov edx, dword [ecx + 0x20]
jmp 0x10003997
test al, 0x80
je 0x100039ac
mov edx, dword [ecx + 0x24]
test edx, edx
jbe 0x100039ac
mov ecx, dword [esi - 0x1c]
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add esi, 0x28
mov ecx, dword [edx]
mov ax, word [ecx + 6]
cmp ebp, eax
jl 0x10003950
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x10003b70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
push 0x10005084
push eax
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x10003bfa
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push edi
mov ebx, eax
call esi
add esp, 0x1c
push 4
push 0x3000
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10003be9
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
push esi
mov word [esi], bp
call fcn.10003730
add esp, 0x18
mov ebp, eax
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebp
pop esi
pop ebx
pop edi
pop ebp
ret
mov eax, ebp
pop edi
pop ebp
ret

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x402842
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov ebx, edx
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x401204
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
test esi, esi
je 0x402876
test ebx, ebx
je 0x40287a
mov ecx, dword [ebp + 0xc]
dec ecx
cmp edi, ecx
je 0x402884
test ebx, ebx
jne 0x402889
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffe
cmp edi, eax
jne 0x402889
push 0xfffffffffffffffe
pop edi
jmp 0x40289e
push 0x401204
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40289e
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x402bbe
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov ebx, edx
mov dword [ebp - 0x408], ecx
lea edi, [eax + 0x20]
cmp edi, eax
jb 0x402d24
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x402d23
push 0x40eea4
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0x401060
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x404], 0x25
jne 0x402c65
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c34
sub ecx, edx
cmp byte [ebp + ecx - 0x405], 0x25
jne 0x402c65
dec ecx
cmp ecx, 0x400
jae 0x402d36
xor eax, eax
mov dword [ebp - 0x408], eax
mov byte [ebp + ecx - 0x404], al
jmp 0x402cc3
push 0x401214
mov edx, 0x400
lea ecx, [ebp - 0x404]
call fcn.00401a45
push ebx
mov edx, 0x400
lea ecx, [ebp - 0x404]
call fcn.00401acd
push 0x401214
mov edx, 0x400
lea ecx, [ebp - 0x404]
call fcn.00401acd
push 0x40eea4
lea eax, [ebp - 0x404]
push eax
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x408], 1
cmp dword [ebp + 0x10], 0
mov edx, edi
mov ecx, esi
je 0x402cf3
push 0x401218
call fcn.00401a45
push dword [ebp + 8]
mov edx, edi
mov ecx, esi
call fcn.00401acd
push 0x401218
mov edx, edi
mov ecx, esi
call fcn.00401acd
jmp 0x402cfb
push dword [ebp + 8]
call fcn.00401a45
cmp dword [ebp - 0x408], 0
jne 0x402d0a
lea ebx, [ebp - 0x403]
push 0x40eea4
push esi
push ebx
push 0x40120c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret 0xc
call 0x40cc87
int3
Function at 0x40357e
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push edx
push 0x104
lea eax, [ebp - 0x108]
xor esi, esi
push eax
push 0x401060
push esi
push ecx
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x108], 0
je 0x4035de
lea ecx, [ebp - 0x108]
inc esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4035c6
sub ecx, edx
inc ecx
add edi, ecx
lea ecx, [ebp - 0x108]
add ecx, edi
cmp byte [ecx], al
jne 0x4035c2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret
Function at 0x4065c0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
call esi
mov edi, eax
push dword [edi + 0x18]
call esi
mov ebx, eax
test ebx, ebx
jne 0x406623
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, eax
call ebx
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [edi + 0x18], 0
jmp 0x406719
push ebx
mov edx, 0x105
lea ecx, [ebp - 0x110]
call fcn.00401a45
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40663d
sub ecx, edx
lea eax, [ebp - 0x110]
add eax, ecx
jmp 0x40665b
lea ecx, [ebp - 0x110]
cmp eax, ecx
jb 0x406660
dec eax
cmp byte [eax], 0x5c
jne 0x406650
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov byte [eax + 1], 0
lea eax, [ebp - 0x110]
push eax
push 0
push 0x401828
push eax
call esi
test eax, eax
jne 0x4066c3
lea eax, [ebp - 0x110]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4066a4
mov word [ebp - 0x110], 0x5c2e
mov byte [ebp - 0x10e], al
lea eax, [ebp - 0x110]
push eax
push 0
push 0x401828
push eax
call esi
test eax, eax
jne 0x4066c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x406705
mov ecx, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040921d
mov esi, eax
test esi, esi
jne 0x4066f1
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x406705
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebx
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, edi
call fcn.00406a00
mov edi, dword [ebp - 0x114]
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
mov ecx, 0x93a00cd
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x6da304aa
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4029e0
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 0x402a1d
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 0x402a3d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404c54
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bd0
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.004049e4
test esi, esi
jne 0x402c06
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.00404ad4
jmp 0x402c24
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ae4
mov edi, eax
test esi, esi
je 0x402c24
cmp dword [ebx], 0
je 0x402c24
dec esi
jmp 0x402c0d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4032b0
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x4032c6
sub ecx, 2
jne 0x4032e8
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x4032ef
cmp edx, dword [ebx + 8]
je 0x4032f9
mov eax, 0x64
jmp 0x4032f4
mov eax, 0x67
jmp 0x4032f4
call sub.kernel32.dll_GetLastError
call fcn.00402954
pop ebx
ret

Function at 0x403528
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40355b
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 0x403562
cmp edx, dword [ebx + 8]
je 0x40356c
mov eax, 0x65
jmp 0x403567
mov eax, 5
jmp 0x403567
call sub.kernel32.dll_GetLastError
call fcn.00402954
mov eax, ebx
pop ebx
ret
Function at 0x403a40
Capabilities:
Query or enumerate registry value

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

Function at 0x4047e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50004c], 0
je 0x404845
cmp word [0x500220], 0xd7b2
jne 0x40480d
cmp dword [0x500228], 0
jbe 0x40480d
mov eax, 0x50021c
call dword [0x500238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4fb094
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 0x40486c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fb034], 0
jne 0x404861
push 0
push 0x4fb08c
push 0x4fb094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404998
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.004027cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x50004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404960
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4060e0
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 0x406310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406163
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406310
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406163
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40632c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4061ec
xor eax, eax
push ebp
push 0x4061e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f28
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 0x4061ca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40634c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4061ca
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 0x4061ec
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 0x406306
cmp byte [ebp - 0xd], 0
jne 0x406233
cmp byte [ebp - 0x12], 0
je 0x406306
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40624c
dec ebx
cmp byte [ebx], 0x2e
je 0x40625b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40624b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406306
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406298
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 0x406306
cmp byte [ebp - 0xd], 0
je 0x406306
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 0x406306
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 0x4069f4
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 0x406a5a
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.00404c54
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403454
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a44
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a61
lea eax, [ebp - 0x10]
call fcn.004049e4
ret

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

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

Function at 0x40980c
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.00404ea4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40982e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c5a8
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 0x40c5e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ad4
jmp 0x40c5ea
mov eax, ebx
mov edx, esi
call fcn.00404a38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cb14
mov eax, dword [0x4ff540]
cmp byte [eax], 0
je 0x40cd18
mov eax, dword [0x4ff188]
call fcn.00403040
call fcn.00402934
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.00409bb8
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 0x40cd60
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cd4e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ff0e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x500668]
call fcn.00405eec
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 0x40d62c
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 0x40d702
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404a7c
lea eax, [ebp - 8]
call fcn.00404ef4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ea4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d6ec
mov eax, ebx
call fcn.004027cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d6e5
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.00404ea4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d6cf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d714
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d6cf
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 0x40d6ec
mov eax, dword [ebp - 0x10]
call fcn.004027ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d709
lea eax, [ebp - 8]
call fcn.004049e4
ret

Function at 0x40dcfc
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 0x40dd60
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.00404c54
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409360
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd67
lea eax, [ebp - 0xc]
call fcn.004049e4
ret