joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413485
xor eax, eax
ret 8
and eax, 0x10
cmp al, 0x10
jne 0x41349a
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
setne al
ret 8
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
sete al
ret 8

Function at 0x414130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417d2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
mov ebx, 1
push eax
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
push eax
mov edx, dword [ecx]
call dword [edx + 0x28]
push ecx
mov ecx, dword [esp + 0x10]
mov eax, esp
mov dword [esp + 0x34], esp
lea edx, [esp + 0x34]
mov dword [eax], ecx
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.00414280
mov ecx, dword [eax]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0x164
jle 0x4141ef
lea edx, [esp + 0x30]
push str.__b__d__Y
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.004155a4
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x30]
jmp 0x414242
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 4]
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 8]
lea eax, [esp + 0x30]
push str._b__d
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::Format
mov ecx, dword [eax]
push esi
push edi
push ecx
lea edx, [esp + 0x1c]
push str.__s__02d:_02d
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x30]
call fcn.004154de
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.004154de
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x4af728
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4af7ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4af81c
push ebx
push 0x4af82c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004087c4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405884
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004084ec
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4af7aa
mov ax, 0x83
call fcn.004af34c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004af6fc
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4af7b3
call fcn.004af6fc
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af806
lea eax, [ebp - 4]
call fcn.00407a20
ret

Function at 0x4af91c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4af9e7
jmp 0x4af9db
cmp dword [esi + 0x10], 0x1000
jne 0x4af9c7
test byte [esi + 0x15], 1
jne 0x4af9c7
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4af978
cmp ebp, 2
je 0x4af978
cmp ebp, 0x10
je 0x4af978
cmp ebp, 0x20
jne 0x4af994
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4af994
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4af9a5
mov eax, dword [esi]
add eax, ebx
call fcn.004af914
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4af998
cmp byte [esp + 4], 0
je 0x4af9c7
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4af9e7
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4af94d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b63f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
inc ebx
inc edi
call fcn.0043b67b
mov ebx, ebx
add edi, ebx
xor dword [eax], esi
mov edi, 0x9bc96615
mov ebx, ebx
add eax, 1
sub ebx, 0x11300871
sub ebx, 0xf49c1021
add ebx, ebx
cmp eax, ecx
jne fcn.0043b63f
sub edi, 0xc204d91c
ret
Function at 0x100071c6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10007205
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10007205
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10007205
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10007205
cmp dword [ecx + 0x74], 0xe
jbe 0x10007205
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000b027
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 0x1000b0c4
push ebx
push esi
call fcn.1000aff0
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.1000af84
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b071
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b0c3
push edi
push eax
call fcn.10007d8c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b091
call fcn.10007d52
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b0c2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000af84
add esp, 0x20
test eax, eax
jne 0x1000b0b0
push edi
call fcn.10007d52
jmp 0x1000b0b8
push ebx
call fcn.10007d52
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 0x1000b331
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015bb0
push 0x10015ba8
push str.FlsAlloc
push 0x1f
call fcn.1000b24d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b365
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014138]
call esi
jmp 0x1000b36b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b3af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015bc0
push 0x10015bb8
push str.FlsGetValue
push 0x21
call fcn.1000b24d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b3e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000b3ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015bc8
push 0x10015bc0
push str.FlsSetValue
push 0x22
call fcn.1000b24d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b428
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10014138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012b5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012b5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401110
Capabilities:
Accept command line arguments
Check os version
Delete registry value

Disassembly:
sub esp, 0xe8
lea eax, [esp + 0x54]
push esi
push eax
mov dword [esp + 0x5c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401246
cmp dword [esp + 0x5c], 5
jne 0x401246
cmp dword [esp + 0x60], 1
jne 0x401246
push edi
mov ecx, 9
mov esi, str.SYSTEMCurrentControlSetServicesUSB
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, dword [0x405054]
mov eax, dword [0x405058]
mov ecx, 6
mov esi, str.DisableSelectiveSuspend
lea edi, [esp + 0x1c]
mov dword [esp + 0x10], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.USBBIOSHACKS]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
mov cl, byte [0x40505c]
mov byte [esp + 0x18], cl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push 0x405034
push esi
call fcn.004012fc
add esp, 8
test eax, eax
pop edi
jne 0x4011fd
push 0x405030
push esi
call fcn.004012fc
add esp, 8
test eax, eax
jne 0x4011fd
call section..text
test eax, eax
je 0x401246
lea edx, [esp + 0x30]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push 1
call fcn.00401260
lea ecx, [esp + 0x40]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
call fcn.00401260
add esp, 0x20
xor eax, eax
pop esi
add esp, 0xe8
ret 0x10
lea eax, [esp + 4]
lea ecx, [esp + 0x30]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401246
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [esp + 0x18]
push edx
push eax
call esi
lea ecx, [esp + 8]
mov edx, dword [esp + 4]
push ecx
push edx
call esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xe8
ret 0x10

Function at 0x401260
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov eax, esi
jne 0x401271
mov eax, 0x80000002
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4012bd
test esi, esi
mov eax, esi
jne 0x401298
mov eax, 0x80000002
lea edx, [esp + 0x18]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4012bd
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
ret
Function at 0x4024b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405230
cmp edx, dword [eax]
je 0x4024db
add eax, 8
inc ecx
cmp eax, 0x4052c0
jl 0x4024cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405230]
jne 0x402609
mov eax, dword [0x4054e8]
cmp eax, 1
je 0x4025e3
test eax, eax
jne 0x40250c
cmp dword [0x40508c], 1
je 0x4025e3
cmp edx, 0xfc
je 0x402609
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402543
lea eax, [ebp - 0x1a4]
push 0x4043a4
push eax
call fcn.00402af0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004014d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402586
lea eax, [ebp - 0x1a4]
push eax
call fcn.004014d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043a0
push edi
call fcn.00403870
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x404384
push eax
call fcn.00402af0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402b00
lea eax, [ebp - 0xa0]
push 0x404380
push eax
call fcn.00402b00
push dword [esi + 0x405234]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402b00
push 0x12010
lea eax, [ebp - 0xa0]
push 0x404358
push eax
call fcn.004037de
add esp, 0x2c
pop edi
jmp 0x402609
lea eax, [ebp + 8]
lea esi, [esi + 0x405234]
push 0
push eax
push dword [esi]
call fcn.004014d0
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 0x416213
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00416292
jae 0x41621f
xor ecx, ecx
call fcn.00416292
jae 0x416249
xor eax, eax
call fcn.00416292
jae 0x41625a
mov al, 0x10
call fcn.00416292
adc al, al
jae 0x41623b
jne 0x416287
stosb byte es:[edi], al
jmp 0x416220
call fcn.0041629e
dec ecx
loop 0x416266
mov eax, ebp
call fcn.0041629c
jmp 0x416288
lodsb al, byte [esi]
shr eax, 1
je 0x4162ae
adc ecx, 2
mov ebp, eax
jmp 0x416288
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0041629c
cmp eax, 0x7d00
jae 0x416286
cmp eax, 0x500
jae 0x416287
cmp eax, 0x7f
ja 0x416288
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416220
pop ebp
ret 8

Function at 0x5d5ff8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5d60e7
mov ecx, eax
mov ebx, dword [ecx + 0x3c]
add ecx, ebx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x5d60e7
mov dword [ebp - 4], ecx
mov ebx, eax
mov ecx, dword [ebx + 0x3c]
add ebx, ecx
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x5d6093
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5d60e7
dec ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0xc]
push ecx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push eax
call dword [edi + 0x1249a029]
pop edi
pop ecx
test eax, eax
jne 0x5d604c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
movzx ecx, word [eax]
jmp 0x5d6099
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x5d60e7
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x1c]
add edx, eax
shl ecx, 2
add edx, ecx
cmp dword [edx], 0
je 0x5d60e7
mov ebx, dword [edx]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jle 0x5d60e7
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5d60e7
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005d5f41
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4044dc
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 0x404678
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40458c
xor eax, eax
push ebp
push 0x404585
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 0x40456e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404698
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 0x40458c
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 0x40466d
cmp byte [ebp - 0xd], 0
jne 0x4045ce
cmp byte [ebp - 0x12], 0
je 0x40466d
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4045e7
dec ebx
cmp byte [ebx], 0x2e
je 0x4045f6
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4045e6
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40466d
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404623
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 0x40466d
cmp byte [ebp - 0xd], 0
je 0x40466d
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 0x40466d
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 0x4068a8
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.004038b4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4068ca
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40734c
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 0x407385
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040357c
jmp 0x40738e
mov eax, ebx
mov edx, esi
call fcn.00403530
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407398
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 0x4073b9
mov al, byte [esp]
jmp 0x4073bb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e6dc
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 [0x41a2e0], 0
je 0x40e713
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0040e5dc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
jmp 0x40e769
mov eax, dword [ebp + 8]
mov edx, 0x400
call fcn.004039c4
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004036f0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004038b4
push eax
mov eax, dword [ebp + 0xc]
call fcn.004038b4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
mov eax, dword [ebp - 8]
call fcn.004038b4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov edx, eax
mov eax, dword [ebp + 8]
call fcn.004039c4
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40e8c4
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 0x40e9ed
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x41a2e0], 0
je 0x40e90a
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0040e5dc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x40e9d7
mov eax, 0x4000
call fcn.00402564
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e9d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040a35c
xor eax, eax
push ebp
push 0x40e9b3
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.004038b4
push eax
push 0x4000
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004038b4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x40e99d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x40e995
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.0040364c
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.00406c28
inc eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x40e973
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9ba
mov eax, dword [ebp - 0xc]
call fcn.0040a418
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9f4
lea eax, [ebp - 0x18]
call fcn.00403498
ret

Function at 0x40ee78
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40ef1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40eea2
mov byte [ebp - 5], 1
jmp 0x40ef05
mov byte [ebp - 5], 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004038b4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40ef05
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004039c4
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004038b4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004038b4
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x40ef05
mov eax, dword [ebp - 0xc]
call fcn.004038b4
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0040364c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef22
lea eax, [ebp - 0xc]
call fcn.00403498
ret