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

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

Function at 0x1000859b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012354
push 0x1001234c
push str.FlsAlloc
push 0x1f
call fcn.10008477
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100085cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x100101a4]
call esi
jmp 0x100085d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10008619
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012364
push 0x1001235c
push str.FlsGetValue
push 0x21
call fcn.10008477
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008650
push dword [ebp + 8]
mov ecx, esi
call dword [0x100101a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10008658
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001236c
push 0x10012364
push str.FlsSetValue
push 0x22
call fcn.10008477
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008692
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100101a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000a818
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 0x1000a8b5
push ebx
push esi
call fcn.1000a7e1
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.1000a775
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000a862
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a8b4
push edi
push eax
call fcn.10009284
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000a882
call fcn.10007ccf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a8b3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000a775
add esp, 0x20
test eax, eax
jne 0x1000a8a1
push edi
call fcn.10007ccf
jmp 0x1000a8a9
push ebx
call fcn.10007ccf
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 0x1000f320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f34d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f34d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret

Function at 0xd2ebdc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xd2ebe6
pushal
call 0xd2ebec
pop ebp
sub ebp, 0x10
sub ebp, 0x92ebdc
jmp 0xd2ec02
mov eax, 0x92ebdc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b8
mov edx, 0xe13e70d6
xor byte [eax], dl
inc eax
dec ecx
jne 0xd2ec19
jmp 0xd2ec2c
pop ebp
sbb ebx, dword [ebp + 0x5f]
ljmp 0x2e17
Function at 0x402c00
Capabilities:
Query or enumerate registry value

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

Function at 0x403544
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417044], 0
je 0x4035a5
cmp word [0x417218], 0xd7b2
jne 0x40356d
cmp dword [0x417220], 0
jbe 0x40356d
mov eax, 0x417214
call dword [0x417230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41605c
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 0x4035cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x416020], 0
jne 0x4035c1
push 0
push 0x416054
push 0x41605c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4042ec
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 0x40451c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40436f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40451c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40436f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404538
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043f8
xor eax, eax
push ebp
push 0x4043f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404134
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 0x4043d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404558
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4043d6
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 0x4043f8
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 0x404512
cmp byte [ebp - 0xd], 0
jne 0x40443f
cmp byte [ebp - 0x12], 0
je 0x404512
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404458
dec ebx
cmp byte [ebx], 0x2e
je 0x404467
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404457
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404512
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4044a4
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 0x404512
cmp byte [ebp - 0xd], 0
je 0x404512
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 0x404512
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 0x4043f8
Capabilities:
Get geographical location

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 0x40451c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40436f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40451c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40436f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404538
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043f8
xor eax, eax
push ebp
push 0x4043f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404134
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 0x4043d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404558
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4043d6
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 0x4043f8
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 0x404512
cmp byte [ebp - 0xd], 0
jne 0x40443f
cmp byte [ebp - 0x12], 0
je 0x404512
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404458
dec ebx
cmp byte [ebx], 0x2e
je 0x404467
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404457
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404512
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4044a4
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 0x404512
cmp byte [ebp - 0xd], 0
je 0x404512
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 0x404512
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 0x4046a8
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 0x40470e
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.00403950
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402794
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4046f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404715
lea eax, [ebp - 0x10]
call fcn.004036e0
ret

Function at 0x405544
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40564e
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405597
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004037d0
jmp 0x405635
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.004054f8
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00405518
mov ebx, eax
test esi, esi
je 0x4055bf
dec esi
test esi, esi
jl 0x4055bf
cmp edi, ebx
jne 0x40559e
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.004038d8
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403bd4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040397c
cmp eax, 2
jl 0x405635
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405635
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040397c
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405635
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040397c
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403bd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405655
lea eax, [ebp - 0x110]
call fcn.004036e0
ret

Function at 0x405744
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4057ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004038d8
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004056cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4057b5
lea eax, [ebp - 0x10c]
call fcn.004036e0
ret
Function at 0x4059dc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405a74
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x405a29
mov eax, dword [ebx + 0x19]
call fcn.00403b7c
push eax
push esi
mov eax, edi
call fcn.00403b7c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403b7c
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x405a5e
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00403b7c
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.004088a0
mov eax, dword [ebp - 8]
call fcn.00403b7c
push eax
mov eax, edi
call fcn.00403b7c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403b7c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a7b
lea eax, [ebp - 8]
call fcn.004036e0
ret

Function at 0x405a88
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp byte [ebx + 0x18], 0
jne 0x405af0
mov byte [ebp - 0x1000], 0
mov eax, dword [ebx + 0x19]
call fcn.00403b7c
push eax
push 0x1000
lea eax, [ebp - 0x1000]
push eax
mov eax, esi
call fcn.00403b7c
push eax
mov eax, edi
call fcn.00403b7c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403b7c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1000]
mov ecx, 0x1000
call fcn.00403950
jmp 0x405b21
mov eax, dword [ebp + 8]
mov edx, esi
call fcn.00403734
mov eax, dword [ebx + 0x19]
call fcn.00403b7c
push eax
mov eax, esi
call fcn.00403b7c
push eax
mov eax, edi
call fcn.00403b7c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403b7c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408984
Capabilities:
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x408993
dec eax
and al, 0x10
setne al
ret

Function at 0x40ce98
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 0x40ced1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004037d0
jmp 0x40ceda
mov eax, ebx
mov edx, esi
call fcn.00403734
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d404
mov eax, dword [0x416754]
cmp byte [eax], 0
je 0x40d608
mov eax, dword [0x41669c]
call fcn.004026d4
call fcn.004025fc
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.0040c2ec
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 0x40d650
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d63e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41667c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x417660]
call fcn.004040f8
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 0x40e0d4
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 0x40e138
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.00403950
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040bf58
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e13f
lea eax, [ebp - 0xc]
call fcn.004036e0
ret

Function at 0x40f4c8
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004036e0
push esp
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x40f514
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA_1
test eax, eax
je 0x40f50b
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00403950
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree_1
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x410604
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41067e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403c5c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403b7c
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x41065c
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403bd4
jmp 0x410668
mov eax, ebx
mov edx, 0x410694
call fcn.00403734
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410685
lea eax, [ebp - 4]
call fcn.004036e0
ret
Function at 0x411d68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403b6c
mov eax, dword [ebp - 8]
call fcn.00403b6c
xor eax, eax
push ebp
push 0x411eb1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402774
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.0040bd74
mov eax, dword [ebp - 0x60]
mov edx, 0x411ec8
call fcn.00403ac8
jne 0x411de0
mov word [ebp - 0x1c], 4
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 8]
call fcn.0040bd74
mov eax, dword [ebp - 0x64]
mov edx, 0x411ed8
call fcn.00403ac8
jne 0x411e00
mov word [ebp - 0x1c], 3
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 8]
call fcn.0040bd74
mov eax, dword [ebp - 0x68]
mov edx, 0x411eec
call fcn.00403ac8
jne 0x411e20
mov word [ebp - 0x1c], 6
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 8]
call fcn.0040bd74
mov eax, dword [ebp - 0x6c]
mov edx, 0x411f00
call fcn.00403ac8
jne 0x411e40
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403b7c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test bl, bl
je 0x411e89
jmp 0x411e7a
mov eax, dword [0x417960]
mov eax, dword [eax + 0x18]
call fcn.0040a1c4
push 0x32
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x411e6d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411eb8
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.00403704
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403704
ret