joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458300
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4584ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45848c
mov dl, 1
mov eax, dword [0x412294]
call fcn.004039d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404814
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45847b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00449984
test al, al
je 0x45846e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4584bc
lea eax, [ebp - 0x254]
call fcn.0040927c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45846e
xor eax, eax
push ebp
push 0x458467
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4584f4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458450
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x458450
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45846e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458371
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415f6c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4584b2
lea eax, [ebp - 0x260]
call fcn.00404814
ret

Function at 0x458e24
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x465c94]
cmp byte [eax + 0xad], 0
jne 0x458e95
cmp dword [0x465cb0], 0
jne 0x458e56
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458de0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x465cb0], eax
cmp dword [0x465cac], 0
jne 0x458e71
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x465cac], eax
cmp dword [0x465cb4], 0
jne 0x458e95
push esp
push 0
push 0
push 0x458d84
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x465cb4], eax
pop edx
ret
Function at 0x459098
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4590af
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a0c0
mov eax, dword [0x460990]
cmp word [eax + 2], 0
jne 0x4590d7
mov eax, dword [0x460990]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ad88
mov eax, dword [0x460a38]
cmp word [eax + 2], 0
jne 0x4590f1
mov eax, dword [0x460a38]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045af94
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e70]
call fcn.004039d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e70]
call fcn.004039d0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411e70]
call fcn.004039d0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e65c]
call fcn.004245a0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4592a8
mov eax, dword [0x4608b8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424974
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b658
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4608b8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c9b8
test eax, eax
je 0x4591f8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c34
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c9ec
test eax, eax
je 0x45920c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov byte [ebx + 0xd4], 0
push ebx
push 0x45a814
call fcn.0041b23c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4607c4]
cmp byte [eax], 0
jne 0x45925d
mov eax, ebx
call fcn.004593ec
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045b86c
mov eax, ebx
call fcn.0045c3d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45929d
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45966c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45970b
cmp dword [ebx + 0x94], 0
jne 0x459705
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4595f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459705
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4596cb
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459705
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414214
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4596da
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459924
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x465c94]
cmp dword [eax + 0x30], 0
je 0x459a81
test bl, bl
jne 0x4599d2
cmp dword [esi + 0x9c], 0
jne 0x4599c7
mov eax, esi
call fcn.0045c24c
push eax
push 0x459850
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x459998
mov eax, dword [0x465c94]
call fcn.0045c92c
test al, al
je 0x459998
mov eax, dword [0x465cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x459998
push 0
mov eax, dword [0x465cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x459982
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4599c7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414214
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4599a7
inc dword [esi + 0x9c]
jmp 0x459a81
cmp dword [esi + 0x9c], 0
jle 0x459a81
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x459a81
cmp dword [esi + 0x44], 0
je 0x459a2d
mov eax, dword [0x465c94]
call fcn.0045c92c
test al, al
je 0x459a2d
mov eax, dword [0x465cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x459a2d
push 5
mov eax, dword [0x465cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x459a17
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x459a5c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414214
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x459a3c
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x465cb8
mov ecx, 1
mov edx, dword [0x459830]
call fcn.00405884
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45a568
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45a5d2
mov eax, ebx
call fcn.0045c92c
test al, al
jne 0x45a5d2
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404904
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45a5bf
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45a5df
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
jmp 0x45a5df
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45ba50
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45babe
mov eax, esi
call fcn.0044456c
test al, al
je 0x45babe
mov eax, dword [ebx + 0x84]
call fcn.004441cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45babe
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45bab2
push 0
mov eax, dword [ebx + 0x84]
call fcn.004441cc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043c048
jmp 0x45babe
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045b88c
pop esi
pop ebx
ret
Function at 0x4017e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
clc
jae 0x4017eb
call 0x63d0cf
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x4017f9
call 0x3dcb7c72
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x49e400], eax
mov edx, 0xda4c2ca8
call fcn.00401160
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
stc
jb 0x401829
jmp 0xe84882a7
push 8
call fcn.0040231a
push 4
mov esi, eax
call fcn.0040231a
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401ac0
push 0
push 0
mov dword [eax], 0x4016f0
call fcn.004053af
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x401889
cmp dword [edi], 0
je 0x401896
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
je 0x40189d
push 0
push dword [esi + 4]
push dword [esi]
call fcn.0040215e
add esp, 0xc
test eax, eax
jne 0x4018a4
pop edi
mov dword [esi], eax
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.00401f00
push 1
call fcn.00401f00
push 5
call fcn.00401f00
push 2
call fcn.00401f00
int3

Function at 0x402c87
Capabilities:
Parse pe header

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

Function at 0x407855
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41226c
push 0x412264
push str.FlsAlloc
push 0x1e
call fcn.004076d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407889
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
jmp 0x40788f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4078d3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41227c
push 0x412274
push str.FlsGetValue
push 0x20
call fcn.004076d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40790a
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40f160
Capabilities:
Parse pe header

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

Function at 0x4016e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401706
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40179a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401755
cmp eax, 0x40
je 0x401755
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4016f9
cmp eax, 0x40
je 0x4016f9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4016f9
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x3d2cd0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.003d4114
test esi, esi
jne 0x3d2d07
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.003d4204
jmp 0x3d2d28
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.003d2b6c
mov dword [esp], eax
test esi, esi
je 0x3d2d28
cmp dword [ebx], 0
je 0x3d2d28
dec esi
jmp 0x3d2d0f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x3d32a4
Capabilities:
Query or enumerate registry value

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

Function at 0x3d3f90
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x3ea044], 0
je 0x3d3ff1
cmp word [0x3ea218], 0xd7b2
jne 0x3d3fb9
cmp dword [0x3ea220], 0
jbe 0x3d3fb9
mov eax, 0x3ea214
call dword [fcn.003ea230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x3e906c
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 0x3d4018
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x3e9030], 0
jne 0x3d400d
push 0
push 0x3e9064
push 0x3e906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x3d5ca4
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 0x3d5d0a
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.003d4384
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.003d2e98
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x3d5cf4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3d5d11
lea eax, [ebp - 0x10]
call fcn.003d4114
ret

Function at 0x3da298
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x3da2d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.003d4204
jmp 0x3da2da
mov eax, ebx
mov edx, esi
call fcn.003d4168
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x3da99c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x3da804
mov eax, dword [0x3e9c88]
cmp byte [eax], 0
je 0x3daa18
mov eax, dword [0x3e9ba4]
call fcn.003d2da4
call fcn.003d2a98
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.003d7ab0
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 0x3daa60
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x3daa4e
push pe_nt_image_headers32
lea eax, [esp + 8]
push eax
mov eax, dword [0x3e9b7c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x3ea660]
call fcn.003d514c
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 0x3db760
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 0x3db7c4
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.003d4384
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.003d75b8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3db7cb
lea eax, [ebp - 0xc]
call fcn.003d4114
ret

Function at 0x3dc300
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.003d4114
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.003d45b0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x3dc345
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.003d4204
jmp 0x3dc35e
mov edx, ebx
dec edx
mov eax, esi
call fcn.003d46e0
push ebx
mov eax, dword [esi]
call fcn.003d45b0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x3e7d14
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x105
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.003d4384
add esp, 0x108
pop ebx
ret
Function at 0x3e7e7c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov eax, 0x3e7dfc
call fcn.003d5f8c
mov ebx, 0x3ea8a8
xor eax, eax
push ebp
push 0x3e8072
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
call fcn.003e7d14
push dword [ebp - 0x44]
push 0x3e8088
lea eax, [ebp - 0x4c]
call fcn.003e7d44
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.003d79bc
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.003d4470
mov eax, dword [ebp - 0x40]
call fcn.003d45b0
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x3e7fca
push 0x3e808c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
push 0x3e8098
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x3ea880], eax
push 0x3e80a4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x3ea884], eax
push 0x3e80b0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x3ea888], eax
push 0x3e80bc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x3ea88c], eax
push 0x3e80c4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [fcn.003ea890], eax
push 0x3e80d8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x3ea894], eax
push 0x3e80e8
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [fcn.003ea898], eax
push 0x3e80fc
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x3ea89c], eax
push 0x3e810c
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x3ea8a0], eax
push 0x3e8118
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x3ea8a4], eax
lea edx, [ebp - 0x54]
xor eax, eax
call fcn.003d2cd0
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.003d7988
mov edx, dword [ebp - 0x50]
mov eax, 0x3ea8ac
mov ecx, 0x3e812c
call fcn.003d43fc
mov eax, dword [0x3ea8ac]
call fcn.003d7928
test al, al
jne 0x3e801e
lea edx, [ebp - 0x58]
mov eax, 0x3e8140
call fcn.003dc300
mov edx, dword [ebp - 0x58]
mov eax, 0x3ea8ac
mov ecx, 0x3e812c
call fcn.003d43fc
mov ecx, dword [0x3ea8ac]
mov dl, 1
mov eax, dword [0x3e367c]
call fcn.003e45ac
mov dword [0x3ea8b0], eax
lea edx, [ebp - 0x60]
xor eax, eax
call fcn.003d2cd0
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.003d79bc
mov edx, dword [ebp - 0x5c]
mov eax, 0x3ea8ac
call fcn.003d4168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3e8079
lea eax, [ebp - 0x60]
mov edx, 9
call fcn.003d4138
ret