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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x448b33
xor eax, eax
jmp 0x448b94
push edi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_ftell]
mov edi, eax
pop ecx
test edi, edi
je 0x448b73
push 0
lea eax, [edi - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x448b73
push dword [ebp + 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x448b77
xor eax, eax
jmp 0x448b93
mov eax, dword [ebp - 4]
test eax, 0xff000000
jne 0x448b8b
and eax, 0xffffff
add eax, 0xfffffff8
jmp 0x448b91
shr eax, 0x18
add eax, 0xfffffffc
add eax, edi
pop edi
leave
ret 4

Function at 0x448d0f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ecx + 0x19], 0
jne 0x448d3a
cmp byte [ecx + 0x16], 0
jne 0x448d3a
push 4
pop edx
cmp dword [ecx + 4], edx
jb 0x448d40
mov eax, dword [ecx + 0xc]
mov dword [eax], edx
mov eax, dword [ecx + 0xc]
mov dword [ecx + 8], edx
mov dword [eax + 4], 0x4000000
pop ebp
jmp fcn.004487ef
pop ebp
ret 4
Function at 0x44fa29
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x48b718
call fcn.00485389
cmp dword [ebp + 0xc], 0
je 0x44fadf
cmp dword [ebp + 0x10], 0
je 0x44fadf
mov ebx, dword [ebp + 8]
call fcn.0044f349
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.00485975
mov esi, eax
mov dword [ebp - 0x10], esi
push ebx
push dword [ebp + 0xc]
xor edi, edi
push esi
mov dword [ebp + 0x10], edi
mov dword [ebp - 4], edi
call sub.msvcrt.dll_memcpy
add esp, 0x10
test ebx, ebx
je 0x44faab
mov eax, dword [ebp + 0x10]
xor edx, edx
push 0xc
pop ecx
div ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], 3
mov ecx, edx
xor edx, edx
div dword [ebp + 0xc]
mov al, byte [ecx + 0x41139c]
mov ecx, edx
shl al, cl
xor byte [edi + esi], al
mov edi, dword [ebp + 0x10]
inc edi
mov dword [ebp + 0x10], edi
cmp edi, ebx
jb 0x44fa78
mov edi, dword [ebp + 8]
shr ebx, 1
push ebx
push esi
add edi, 0x27c
push edi
call fcn.0046546b
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.0044fc21
mov edx, ebx
call fcn.0044f795
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
call fcn.00485475
ret 0xc
push dword [ebp + 4]
mov ecx, 0x80004005
lea esi, [ebp - 0x3c]
call fcn.00449789
push 0x48daf8
mov eax, esi
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x4544ce
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b7c3
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x4970c0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], ebx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x40], bx
jmp 0x454554
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
inc ebx
cmp eax, dword [ecx + 4]
sete byte [esp + 0x40]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call fcn.004545d3
test al, al
jne 0x45453e
cmp dword [esp + 0xc], 0
je 0x45457c
push dword [esp + 0xc]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46d8ed
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48c51e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4970c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 0x20]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 8], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x14], ebx
call dword [eax + 0xc]
test al, al
je 0x46d9c4
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x46d9bb
mov esi, dword [esp + 0x1c]
push 8
pop edi
call fcn.0046fb1f
mov ecx, eax
test ecx, ecx
je 0x46d972
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], 0x4a5b98
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp + 8], esi
call dword [eax + 0xc]
mov esi, dword [ebp + 0xc]
test al, al
jne 0x46d956
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp eax, dword [edi + 0x1c]
je 0x46d9b5
lea ecx, [ebp + 8]
call fcn.0047927e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
test al, al
je 0x46d995
jmp 0x46d956
mov dword [esp + 0x10], ebx
jmp 0x46d9c4
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x10], 1
or dword [esp + 0x30], 0xffffffff
mov ebx, dword [esp + 0x18]
call fcn.0046a449
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x478585
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
mov bl, al
push dword [edi]
call fcn.0047852a
mov eax, dword [edi]
movzx edx, word [eax]
mov ecx, edx
cmp ecx, 0x66
jg 0x47867b
je 0x478673
push 0x30
pop esi
cmp ecx, esi
jl 0x4786e2
cmp ecx, 0x37
jle 0x47862f
push 0x5c
pop esi
cmp ecx, esi
je 0x478622
cmp ecx, 0x61
je 0x478613
cmp ecx, 0x63
je 0x4785df
cmp ecx, 0x65
jne 0x4786e2
push 0x1b
jmp 0x4786e8
push dword [ebp + 8]
add eax, 2
push eax
mov dword [edi], eax
call fcn.0047852a
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
movzx esi, word [eax]
lea eax, [esi - 0x61]
cmp ax, 0x19
ja 0x47860b
push esi
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
movzx esi, ax
xor esi, 0x40
jmp 0x4786ee
test bl, bl
je 0x4786e2
push 7
jmp 0x4786e8
test bl, bl
je 0x4786e2
jmp 0x4786e9
lea ecx, [eax + 2]
mov dword [edi], ecx
mov ax, word [eax]
sub ax, si
push 0x30
movzx esi, ax
pop ebx
mov ecx, dword [edi]
movzx eax, word [ecx]
cmp bx, ax
ja 0x4786ee
push 0x37
pop edx
cmp dx, ax
jb 0x4786ee
push dword [ebp + 8]
lea eax, [eax + esi*8]
add eax, 0xffffffd0
movzx esi, ax
lea eax, [ecx + 2]
push eax
mov dword [edi], eax
call fcn.0047852a
jmp 0x478640
test bl, bl
je 0x4786e2
push 0xc
jmp 0x4786e8
sub ecx, 0x6e
je 0x4786de
sub ecx, 4
je 0x4786d6
dec ecx
dec ecx
je 0x4786ce
dec ecx
dec ecx
je 0x4786c6
dec ecx
dec ecx
jne 0x4786e2
add eax, 2
mov dword [edi], eax
xor esi, esi
mov ebx, dword [edi]
movzx eax, word [ebx]
call fcn.0046b840
test al, al
je 0x4786ee
movzx ecx, word [ebx]
call fcn.0046b875
push dword [ebp + 8]
shl esi, 4
add eax, esi
movzx esi, ax
lea eax, [ebx + 2]
push eax
mov dword [edi], eax
call fcn.0047852a
jmp 0x478698
test bl, bl
je 0x4786e2
push 0xb
jmp 0x4786e8
test bl, bl
je 0x4786e2
push 9
jmp 0x4786e8
test bl, bl
je 0x4786e2
push 0xd
jmp 0x4786e8
test bl, bl
jne 0x4786e6
mov esi, edx
jmp 0x4786e9
push 0xa
pop esi
add eax, 2
mov dword [edi], eax
mov ax, si
pop esi
pop ebx
pop ebp
ret 4
Function at 0x479599
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48c51e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4970c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 0x20]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 8], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x14], ebx
call dword [eax + 0xc]
test al, al
je 0x479670
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x479667
mov esi, dword [esp + 0x1c]
push 8
pop edi
call fcn.0046fb1f
mov ecx, eax
test ecx, ecx
je 0x47961e
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], 0x4a5c60
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp + 8], esi
call dword [eax + 0xc]
mov esi, dword [ebp + 0xc]
test al, al
jne 0x479602
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp eax, dword [edi + 0x1c]
je 0x479661
lea ecx, [ebp + 8]
call fcn.0048281b
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
test al, al
je 0x479641
jmp 0x479602
mov dword [esp + 0x10], ebx
jmp 0x479670
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x10], 1
or dword [esp + 0x30], 0xffffffff
mov ebx, dword [esp + 0x18]
call fcn.0046a449
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x484dd1
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x48d750
call fcn.0048524c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
mov esi, ebx
push ebx
push edi
push 0x4a96cc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x484c48
cmp eax, edi
jne 0x484c3b
xor edi, edi
inc edi
mov esi, edi
jmp 0x484c4b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x484c1f
xor edi, edi
inc edi
cmp dword [0x4a96d0], edi
jne 0x484c5d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x484c8b
cmp dword [0x4a96d0], ebx
jne 0x484c85
mov dword [0x4a96d0], edi
push 0x401094
push 0x401088
call fcn.00484bbf
pop ecx
pop ecx
test eax, eax
je 0x484c8b
jmp 0x484dba
mov dword [0x4a5e84], edi
cmp dword [0x4a96d0], edi
jne 0x484cae
push 0x401084
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4a96d0], 2
test esi, esi
jne 0x484cbe
push ebx
push 0x4a96cc
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4a96dc], 0
je 0x484ce0
push 0x4a96dc
call fcn.004856a0
pop ecx
test eax, eax
je 0x484ce0
push ebx
push 2
push ebx
call dword [0x4a96dc]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x484d3d
test cl, cl
je 0x484cfc
test edi, edi
jne 0x484d3d
mov al, byte [esi]
test al, al
je 0x484d0c
cmp al, 0x20
ja 0x484d0c
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x484cfc
test byte [ebp - 0x3c], 1
je 0x484d18
movzx eax, word [ebp - 0x38]
jmp 0x484d1b
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4a5e80], eax
cmp dword [0x4a5e98], 0
jne 0x484d96
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x484d4e
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x484d61
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x484ced
cmp dword [0x4a5e84], 0
jne 0x484daa
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4a5e80]
mov dword [ebp - 4], 0xfffffffe
jmp 0x484dc6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00485291
ret
call fcn.00485761
jmp 0x484be8

Function at 0x485610
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x485626
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x485641
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x485650
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x48568e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x485686
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x485690
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x485676
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
nop
mov ecx, 0xfdc0182
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x103e63b0
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x408df2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00408ab2
Function at 0x40275c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40278b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403518
jmp 0x4027a9
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402690
mov edi, eax
test ebx, ebx
je 0x4027a9
cmp dword [esi], 0
je 0x4027a9
dec ebx
jmp 0x402792
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4029c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402a5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a3c
xor eax, eax
push ebp
push 0x402a35
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 0x402a78
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 0x402a3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404478
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 0xf003f
push 0
push 0x404614
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404528
xor eax, eax
push ebp
push 0x404521
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x40450a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404634
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404528
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x404609
cmp byte [ebp - 0xd], 0
jne 0x40456a
cmp byte [ebp - 0x12], 0
je 0x404609
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404583
dec ebx
cmp byte [ebx], 0x2e
je 0x404592
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404582
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404609
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4045bf
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404609
cmp byte [ebp - 0xd], 0
je 0x404609
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404609
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x407050
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 0x407089
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403518
jmp 0x407092
mov eax, ebx
mov edx, esi
call fcn.004034cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40709c
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 0x4070bd
mov al, byte [esp]
jmp 0x4070bf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40dd2c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp byte [0x4152e0], 0
je 0x40dd63
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0040dc2c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
jmp 0x40ddb9
mov eax, dword [ebp + 8]
mov edx, 0x400
call fcn.00403960
mov eax, dword [ebp - 4]
call fcn.00403850
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.0040368c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00403850
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403850
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403850
push eax
mov eax, dword [ebp - 8]
call fcn.00403850
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.00403960
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40ddc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40dee9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4152e0], 0
je 0x40de06
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0040dc2c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x40ded3
mov eax, 0x4000
call fcn.0040255c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40decc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040a058
xor eax, eax
push ebp
push 0x40deaf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 4]
call fcn.00403850
push eax
push 0x4000
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403850
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x40de99
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x40de91
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004035e8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x14]
call fcn.0040692c
inc eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x40de6f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40deb6
mov eax, dword [ebp - 0xc]
call fcn.0040a114
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40def0
lea eax, [ebp - 0x18]
call fcn.00403434
ret
Function at 0x40e248
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e304
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040e0f0
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403850
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40e2ee
xor eax, eax
push ebp
push 0x40e2e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403850
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2ee
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e30b
lea eax, [ebp - 0x14]
call fcn.00403434
ret

Function at 0x40e354
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e494
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040e0f0
mov eax, dword [ebp - 8]
call fcn.0040a058
xor eax, eax
push ebp
push 0x40e46c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x40]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403850
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40e456
xor eax, eax
push ebp
push 0x40e44f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0x400
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40e432
lea eax, [ebp - 0x424]
lea edx, [ebp - 0x420]
call fcn.004035e8
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
je 0x40e3e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e456
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e473
mov eax, dword [ebp - 8]
call fcn.0040a114
ret