joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52c329
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x63da6c]
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ebx, eax
test eax, eax
jne 0x52c363
push str.No_XMLHttpRequestFactory.
lea esi, [esp + 0xc]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadgetgadget_base.cc
mov dword [esp + 0x14], 0x66
call fcn.00491eb0
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
call edx
test eax, eax
je 0x52c3cd
mov eax, dword [eax]
mov ecx, dword [eax]
test cl, 0x28
je 0x52c3cd
test byte [eax + 4], 0x28
je 0x52c3cd
mov eax, dword [0x62b6dc]
push edi
cmp eax, 0xffffffff
jne 0x52c38c
xor edi, edi
jmp 0x52c39b
mov ecx, dword [0x62b6dc]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [esi + 4]
cmp dword [esi + 8], 0
jne 0x52c3b8
mov ecx, dword [0x63da6c]
test ecx, ecx
je 0x52c3b8
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 8], eax
mov esi, dword [esi + 8]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push edi
push esi
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push str.No_permission_to_access_network.
lea esi, [esp + 0x18]
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadgetgadget_base.cc
mov dword [esp + 0x20], 0x70
call fcn.00491eb0
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret

Function at 0x52c401
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov bl, byte [eax + 0x20]
mov cl, byte [esp + 0xc]
mov byte [eax + 0x20], cl
test bl, bl
je 0x52c446
test cl, cl
jne 0x52c446
mov eax, dword [0x62b26c]
cmp eax, 0xffffffff
jne 0x52c427
xor eax, eax
jmp 0x52c434
mov ecx, dword [0x62b26c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov esi, dword [esi + 4]
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x52d670
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
mov eax, dword [0x630bc4]
cmp eax, 0xffffffff
je 0x52d697
mov ecx, dword [0x630bc4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x52d6c8
push 0x10
call fcn.00548a50
add esp, 4
test eax, eax
je 0x52d6bb
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x52d6bd
xor eax, eax
push eax
mov esi, eax
call fcn.0052e620
add esp, 4
cmp ebx, dword [esi]
jae 0x52d6d4
add dword [esi + 8], 0
adc dword [esi + 0xc], 1
mov eax, ebx
xor edx, edx
add eax, dword [esi + 8]
mov dword [esi], ebx
adc edx, dword [esi + 0xc]
pop esi
pop ebx
ret
Function at 0x1000b20e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10007fb8]
jne 0x1004a9f3
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10057fc0], eax
mov dword [0x10057fbc], ecx
mov dword [0x10057fb8], edx
mov dword [0x10057fb4], ebx
mov dword [0x10057fb0], esi
mov dword [0x10057fac], edi
mov word [0x10057fd8], ss
mov word [0x10057fcc], cs
mov word [0x10057fa8], ds
mov word [0x10057fa4], es
mov word [0x10057fa0], fs
mov word [0x10057f9c], gs
pushfd
pop dword [0x10057fd0]
mov eax, dword [ebp]
mov dword [0x10057fc4], eax
mov eax, dword [ebp + 4]
mov dword [0x10057fc8], eax
lea eax, [ebp + 8]
mov dword [0x10057fd4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10057f10], 0x10001
mov eax, dword [0x10057fc8]
mov dword [0x10057ec4], eax
mov dword [0x10057eb8], 0xc0000409
mov dword [0x10057ebc], 1
mov eax, dword [0x10007fb8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10054954]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10057f08], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x100081a4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10057f08], 0
jne 0x1004aadf
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x1000e241
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x1004b470
call fcn.1000d553
xor ebx, ebx
push 0x100055fc
mov esi, ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, eax
mov eax, dword [0x10055ef4]
test al, 1
jne 0x1000e280
or eax, 1
push 0x1004cca7
mov dword [0x10055ef4], eax
mov dword [0x10055ef0], ebx
call fcn.1004470b
pop ecx
cmp edi, 0xffffffff
jne 0x1000e28f
mov esi, 0x80004005
jmp 0x1000e3f5
mov ebx, dword [ebp + 8]
movzx eax, bx
push 0x10005614
push eax
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1000e2b3
mov eax, 0x80070057
jmp 0x1000e3f7
push eax
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1000e285
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
cmp ebx, 2
je 0x1000e2ee
cmp ebx, 1
jne 0x1000e3f5
xor ebx, ebx
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
push eax
push dword [edi]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.1000e3ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x1000e33a
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1000e3f5
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
jmp 0x1000e3f5
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x10055efc]
jb 0x1000e39e
ja 0x1000e352
mov esi, dword [0x10055ef8]
cmp dword [ebp - 0x14], esi
jbe 0x1000e3a4
push dword [0x10055ef0]
xorps xmm0, xmm0
movlpd qword [0x10055ef8], xmm0
call fcn.1004470b
push dword [ebp - 0x14]
mov dword [0x10055ef0], ebx
call fcn.1004470b
pop ecx
pop ecx
mov ecx, eax
mov dword [0x10055ef0], ecx
test ecx, ecx
jne 0x1000e38b
mov esi, 0x8007000e
jmp 0x1000e3e4
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [0x10055ef8], esi
mov dword [0x10055efc], eax
jmp 0x1000e3aa
mov esi, dword [0x10055ef8]
mov ecx, dword [0x10055ef0]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
lea ebx, [ebp + 0xc]
push ebx
push esi
push ecx
xor ebx, ebx
push ebx
push ebx
push eax
call dword [edx + 0xc]
mov esi, eax
test esi, esi
js 0x1000e3e4
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x1000e3df
cmp ebx, dword [ebp - 0x10]
jne 0x1000e3df
mov eax, dword [0x10055ef0]
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x1000e3e4
mov esi, 0x80004005
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1000e3f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.1000d5f3
ret 0xc
Function at 0x100388bf
Capabilities:
Enumerate gui resources

Disassembly:
push 0x624
mov eax, 0x1004af99
call fcn.1001de1b
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x61c], ebx
mov dword [ebp - 0x624], edi
mov dword [ebp - 0x618], esi
cmp dword [0x10055e84], esi
jne 0x100388fc
push esi
push 0x100396b2
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, 0x10055e88
call fcn.100416b0
test eax, eax
je 0x10038bdf
inc dword [0x10055e84]
push 0x100
lea eax, [ebp - 0x214]
push eax
push 0x1ff
lea eax, [ebp - 0x614]
push eax
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.MSVCR100.dll__wsplitpath_s]
add esp, 0x24
push 0x1ff
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSO.dll_Ordinal_6137]
mov ecx, dword [0x10055e88]
lea eax, [ebp - 0x614]
push eax
mov dword [ebp - 0x620], ecx
mov dword [ebp - 4], esi
call fcn.1004470b
or dword [ebp - 4], 0xffffffff
mov ebx, eax
jmp 0x10038a45
mov ecx, 0x10055e88
mov dword [edi + 0xc], ebx
call fcn.100416fb
lea ecx, [ebp - 0x630]
mov dword [edi + 4], eax
call fcn.100416a3
mov dword [ebp - 4], 4
mov ecx, ebx
mov dword [ebp - 0x618], esi
mov byte [ebp - 4], 5
call fcn.10041c26
mov ebx, eax
push ebx
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x618], ebx
call fcn.1004470b
test ebx, ebx
je 0x10038a9e
mov ecx, ebx
call fcn.10040ea3
push ebx
call fcn.1004470b
pop ecx
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x630]
call fcn.10041bba
mov ebx, eax
mov dword [ebp - 0x618], ebx
test ebx, ebx
je 0x10038b10
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.1004470b
push eax
push edi
mov dword [ebp - 0x620], eax
call fcn.1004470b
push dword [ebp - 0x620]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10038a90
push 0x14
call fcn.1004470b
mov ebx, eax
test ebx, ebx
jne 0x10038b21
push 0xfffffffffffffffe
jmp 0x10038b7f
lea eax, [ebx + 8]
push eax
push 0x100549b0
push 0x1000473c
call fcn.1004470b
test eax, eax
jne 0x10038b1d
push 0x10053448
mov dword [ebx + 4], esi
push edi
mov dword [edi + 0x5c], ebx
call fcn.1004470b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x630]
call fcn.100414da
xor eax, eax
jmp 0x10038be2
or dword [ebp - 4], 0xffffffff
pop esi
lea ecx, [ebp - 0x630]
call fcn.100414da
mov eax, esi
jmp 0x10038be2
push 0xfffffffffffffffa
pop eax
call fcn.1001df2e
ret 0x10
Function at 0x1003c427
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1004b3b4
call fcn.1001de1b
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1003c488
call fcn.1003a493
mov esi, eax
jmp 0x1003c560
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1003c4a6
call fcn.1003a493
jmp 0x1003c557
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1003c49c
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x1003c4d9
mov esi, 0x8007000e
jmp 0x1003c559
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1004470b
mov dword [ebp - 4], 1
jmp 0x1003c50d
cmp dword [ebp - 0x418], 0
je 0x1003c4cf
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1003c49c
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.1004470b
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1003c579
lea ecx, [ebp - 0x418]
call fcn.1003c65f
lea ecx, [ebp - 0x428]
call fcn.1003a479
mov eax, esi
call fcn.1001df2e
ret 0x10
Function at 0x1003c69d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 8
mov eax, 0x1004b42a
call fcn.1000d553
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1003c6ee
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x1003c6d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003c6e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x1003c7be
cmp dword [ebp + 0xc], 0
jne 0x1003c6fe
mov esi, 0x80004003
jmp 0x1003c795
lea eax, [ebp - 0x10]
push eax
call fcn.1004470b
mov esi, eax
test esi, esi
js 0x1003c795
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
test eax, eax
je 0x1003c795
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x1003c733
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1003c6f4
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], esp
test eax, eax
je 0x1003c74b
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
push esi
call fcn.1003cef1
mov esi, eax
test esi, esi
js 0x1003c795
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.MSO.dll_Ordinal_469]
mov esi, eax
test esi, esi
js 0x1003c795
push dword [ebp - 0x14]
call fcn.1004470b
test eax, eax
jne 0x1003c784
mov esi, 0x80004005
jmp 0x1003c795
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
cmp dword [ecx], eax
je 0x1003c795
push eax
push ecx
call fcn.1004470b
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x1003c7ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003c7bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.1000d5f3
ret 8
Function at 0x4028c8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402905
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402925
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404510
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402a8c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004042a0
test esi, esi
jne 0x402ac2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404390
jmp 0x402ae0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029a0
mov edi, eax
test esi, esi
je 0x402ae0
cmp dword [ebx], 0
je 0x402ae0
dec esi
jmp 0x402ac9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403344
Capabilities:
Query or enumerate registry value

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

Function at 0x4040a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x488048], 0
je 0x404101
cmp word [0x48821c], 0xd7b2
jne 0x4040c9
cmp dword [0x488224], 0
jbe 0x4040c9
mov eax, 0x488218
call dword [0x488234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48506c
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 0x404128
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x485030], 0
jne 0x40411d
push 0
push 0x485064
push 0x48506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404254
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x488049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40421c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40570c
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 0x40593c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40578f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40593c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40578f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405958
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405818
xor eax, eax
push ebp
push 0x405811
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405554
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 0x4057f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405978
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057f6
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 0x405818
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 0x405932
cmp byte [ebp - 0xd], 0
jne 0x40585f
cmp byte [ebp - 0x12], 0
je 0x405932
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405878
dec ebx
cmp byte [ebx], 0x2e
je 0x405887
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405877
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405932
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4058c4
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 0x405932
cmp byte [ebp - 0xd], 0
je 0x405932
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 0x405932
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 0x406038
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 0x40609e
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.00404510
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ed8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406088
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060a5
lea eax, [ebp - 0x10]
call fcn.004042a0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404760
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c75
test al, 0x10
jne 0x408c79
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bb40
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 0x40bb79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404390
jmp 0x40bb82
mov eax, ebx
mov edx, esi
call fcn.004042f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c234
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0ac
mov eax, dword [0x486fb0]
cmp byte [eax], 0
je 0x40c2b0
mov eax, dword [0x486cb8]
call fcn.00402ba4
call fcn.00402854
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.004091a4
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 0x40c2f8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c2e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x486c40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x488664]
call fcn.00405518
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