joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, dword [0x1001f940]
push esi
push edi
xor edi, edi
xor edx, edx
test ebp, ebp
mov esi, 0x40
jle 0x10006083
push ebx
mov ebx, dword [0x1001f930]
lea ecx, [ecx]
mov eax, ebx
test eax, eax
mov ecx, edx
je 0x10006066
test ecx, ecx
je 0x1000606b
mov eax, dword [eax + 8]
sub ecx, 1
test eax, eax
jne 0x10006058
mov eax, 0x1001f908
mov eax, dword [eax]
mov ecx, dword [eax]
cmp ecx, esi
jae 0x10006077
mov esi, ecx
mov edi, eax
add edx, 1
cmp edx, ebp
jl 0x10006050
test edi, edi
pop ebx
jne 0x100060c8
push 0x104
call fcn.10008ed7
add esp, 4
push 0
mov edx, eax
push 0
push edx
xor eax, eax
push 0x10005e10
lea edi, [edx + 8]
mov ecx, 0x3f
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0x800
push 0
mov dword [edx + 4], eax
mov dword [edx], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
ret 4
xor eax, eax
lea ecx, [edi + 4]
lea ecx, [ecx]
cmp dword [ecx], 0
je 0x100060e6
add eax, 1
add ecx, 4
cmp eax, 0x40
jl 0x100060d0
pop edi
pop esi
pop ebp
ret 4
mov ecx, dword [esp + 0x10]
mov dword [edi + eax*4 + 4], ecx
add dword [edi], 1
pop edi
pop esi
pop ebp
ret 4

Function at 0x10008150
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1001e390]
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x19c]
sub eax, 1
jne 0x1000817c
lea eax, [esp]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
mov ecx, dword [esp + 0x190]
mov eax, 1
call fcn.1000987a
add esp, 0x194
ret 0xc
Function at 0x1000aae1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000abd1
mov eax, 0x94
call fcn.1000a790
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000ac46
mov ecx, dword [esi + 0x10]
mov dword [0x1001fce8], ecx
mov eax, dword [esi + 4]
mov dword [0x1001fcf4], eax
mov edx, dword [esi + 8]
mov dword [0x1001fcf8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1001fcec], esi
je 0x1000ab4c
or esi, 0x8000
mov dword [0x1001fcec], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1001fcf0], eax
call fcn.1000c5d8
test eax, eax
pop ecx
je 0x1000ac46
call fcn.1000eba2
test eax, eax
jne 0x1000ab79
call fcn.1000c629
jmp 0x1000ac46
call fcn.100109bf
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10021378], eax
call fcn.1001089d
mov dword [0x1001fb04], eax
call fcn.1001037e
test eax, eax
jl 0x1000abca
call fcn.100107fb
test eax, eax
jl 0x1000abc5
call fcn.100105c8
test eax, eax
jl 0x1000abc5
push 0
call fcn.1000fc86
test eax, eax
pop ecx
jne 0x1000abc5
inc dword [0x1001fb00]
jmp 0x1000ac57
call fcn.1001057c
call fcn.1000e98b
jmp 0x1000ab6f
test eax, eax
jne 0x1000ac01
cmp dword [0x1001fb00], eax
jle 0x1000ac46
dec dword [0x1001fb00]
cmp dword [0x1001fd24], eax
jne 0x1000abf0
call fcn.1000fdc4
call fcn.1001057c
call fcn.1000e98b
call fcn.1000c629
jmp 0x1000ac57
cmp eax, 2
jne 0x1000ac4a
push 0x8c
push 1
call fcn.100102c3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000ac46
push esi
push dword [0x1001e714]
call dword [0x1001fcd4]
test eax, eax
push esi
je 0x1000ac40
call fcn.1000e9a8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000ac57
call fcn.1000945d
pop ecx
xor eax, eax
jmp 0x1000ac5a
cmp eax, 3
jne 0x1000ac57
push 0
call fcn.1000eb73
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1000ef46
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1001e390]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1000ef77
xor eax, eax
jmp 0x1000f100
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10020220]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1000efb3
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.100133d2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000f08e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1000f0cc
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1000f017
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1000f008
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1000efe8
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000f057
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1000f060
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1000efd9
jmp 0x1000f062
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1000f0fb
cmp dword [ebp - 0x6c], edi
je 0x1000f0cc
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1000f0c1
call fcn.1000f57c
mov dword [eax], 9
call fcn.1000f585
mov dword [eax], esi
jmp 0x1000f0f6
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000f0b6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1000f062
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1000f062
push dword [ebp - 0x6c]
call fcn.1000f58e
pop ecx
jmp 0x1000f0f6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1000f0e4
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1000f0e4
xor eax, eax
jmp 0x1000f0fe
call fcn.1000f57c
mov dword [eax], 0x1c
call fcn.1000f585
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1000f0fe
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000987a
add ebp, 0x3a0
leave
ret
Function at 0x1000fcf0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10017430
call fcn.1000c3d0
push 8
call fcn.1000b558
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1001fd28], esi
jne 0x1000fd24
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1001fd24], esi
mov al, byte [ebp + 0x10]
mov byte [0x1001fd20], al
cmp dword [ebp + 0xc], edi
jne 0x1000fd6e
cmp dword [0x10020328], edi
je 0x1000fd5e
mov eax, dword [0x10020324]
sub eax, 4
mov dword [0x10020324], eax
cmp eax, dword [0x10020328]
jb 0x1000fd5e
mov eax, dword [eax]
cmp eax, edi
je 0x1000fd3f
call eax
jmp 0x1000fd3f
push 0x1001a054
mov eax, 0x1001a04c
call fcn.1000fc6e
pop ecx
push 0x1001a060
mov eax, 0x1001a058
call fcn.1000fc6e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000fd9f
cmp dword [ebp + 0x10], edi
jne 0x1000fdad
mov dword [0x1001fd28], esi
push dword [ebp + 8]
call fcn.1000fc2c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000fdac
push 8
call fcn.1000b4a3
pop ecx
ret
call fcn.1000c40b
ret

Function at 0x10010bc6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001e390]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1001ebd0]
je 0x10010bfb
inc eax
cmp eax, 0x13
jb 0x10010bec
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1001ebd0]
jne 0x10010d21
mov eax, dword [0x1001fb0c]
cmp eax, 1
je 0x10010cf9
cmp eax, edx
jne 0x10010c2b
cmp dword [0x1001fb10], 1
je 0x10010cf9
cmp ecx, 0xfc
je 0x10010d21
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10010c61
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000d5b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1000c4e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10010c95
mov eax, edi
push eax
call fcn.1000c4e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x100170a4
push edi
call fcn.10011fb0
add esp, 0x10
push edi
call fcn.1000c4e0
push dword [esi + 0x1001ebd4]
mov ebx, eax
call fcn.1000c4e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000a790
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000d5b0
push edi
push ebx
call fcn.1000d5c0
push 0x100170a0
push ebx
call fcn.1000d5c0
push dword [esi + 0x1001ebd4]
push ebx
call fcn.1000d5c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10012bb7
add esp, 0x2c
jmp 0x10010d21
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1001ebd4]
push dword [esi]
call fcn.1000c4e0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1000987a
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10010fec
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000a790
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10011087
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1001fce8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10011087
cmp eax, 1
je 0x100110a8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10011087
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10011054
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10011083
xor eax, eax
inc eax
jmp 0x100110c7
cmp edi, eax
jae 0x1001108b
xor eax, eax
jmp 0x100110c7
cmp eax, esi
jae 0x10011092
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1001fce8]
jmp 0x100110ab
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012bb7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001fed8], ebx
push esi
push edi
jne 0x10012c37
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10012c72
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1001fed8], eax
je 0x10012c72
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1001fedc], eax
call esi
cmp dword [0x1001fce8], 2
mov dword [0x1001fee0], eax
jne 0x10012c37
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1001fee8], eax
je 0x10012c37
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1001fee4], eax
mov eax, dword [0x1001fee4]
test eax, eax
je 0x10012c7c
call eax
test eax, eax
je 0x10012c63
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001fee8]
test eax, eax
je 0x10012c63
test byte [ebp - 8], 1
jne 0x10012c7c
cmp dword [0x1001fcf4], 4
jb 0x10012c76
or byte [ebp + 0x12], 0x20
jmp 0x10012c9b
xor eax, eax
jmp 0x10012cab
or byte [ebp + 0x12], 4
jmp 0x10012c9b
mov eax, dword [0x1001fedc]
test eax, eax
je 0x10012c9b
call eax
mov ebx, eax
test ebx, ebx
je 0x10012c9b
mov eax, dword [0x1001fee0]
test eax, eax
je 0x10012c9b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001fed8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013695
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x10013869
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10020220]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x10013869
test cl, 0x48
je 0x10013700
cmp byte [eax + 5], 0xa
je 0x10013700
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10013752
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1001373a
call fcn.1000f57c
mov dword [eax], 9
call fcn.1000f585
mov dword [eax], esi
jmp 0x1001374a
cmp eax, 0x6d
je 0x10013869
push eax
call fcn.1000f58e
pop ecx
or eax, 0xffffffff
jmp 0x1001386b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x10013864
test eax, eax
je 0x10013779
cmp byte [ebx], 0xa
jne 0x10013779
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x10013782
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1001385e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1001384e
cmp al, 0xd
je 0x100137b4
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x10013840
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x100137ce
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x100137c9
add dword [ebp + 0x10], 2
jmp 0x10013822
mov dword [ebp + 0x10], eax
jmp 0x1001383c
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100137f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001383c
cmp dword [ebp - 0xc], 0
je 0x1001383c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10013817
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10013822
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1001383f
cmp ebx, dword [ebp + 0xc]
jne 0x10013827
cmp byte [ebp - 1], 0xa
jne 0x10013827
mov byte [ebx], 0xa
jmp 0x1001383f
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000f601
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x10013840
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10013798
jmp 0x1001385e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1001385e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1001386b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10014139
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x100188f8
call fcn.1000c3d0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1001fef0], edi
jne 0x1001417d
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10014168
mov dword [0x1001fef0], ebx
jmp 0x1001417d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1001417d
mov dword [0x1001fef0], 2
mov eax, dword [0x1001fef0]
cmp eax, ebx
jne 0x1001419d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x10014260
cmp eax, 2
je 0x100141a6
cmp eax, edi
jne 0x100141ce
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x100141b9
mov eax, dword [0x1001fe58]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x100141d5
xor eax, eax
jmp 0x10014260
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.1000a790
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x10014208
cmp esi, edi
jne 0x1001421e
push dword [ebp - 0x20]
call fcn.1000944b
pop ecx
mov esi, eax
cmp esi, edi
je 0x100141ce
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10014251
cmp dword [ebp + 0x14], edi
jne 0x1001423b
push edi
push edi
jmp 0x10014241
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x1001425d
push esi
call fcn.1000945d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.1000c40b
ret
Function at 0x10014269
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10018908
call fcn.1000c3d0
xor esi, esi
cmp dword [0x1001fef4], esi
jne 0x100142ad
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10014298
mov dword [0x1001fef4], edi
jmp 0x100142ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100142ad
mov dword [0x1001fef4], 2
mov eax, dword [0x1001fef4]
cmp eax, 2
je 0x1001438e
cmp eax, esi
je 0x1001438e
cmp eax, 1
jne 0x100142f2
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x100142db
mov eax, dword [0x1001fe58]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x100142f9
xor eax, eax
jmp 0x100143a0
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.1000a790
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1001432f
cmp edi, esi
jne 0x1001434a
lea eax, [ebx + ebx]
push eax
call fcn.1000944b
pop ecx
mov edi, eax
cmp edi, esi
je 0x100142f2
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001437d
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x10014367
push esi
push esi
jmp 0x1001436d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x10014389
push edi
call fcn.1000945d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x100143a0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.1000c40b
ret
Function at 0x401250
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0040eef0
push esi
push 0x40f4f0
push str._s___
push 6
call fcn.0040a380
add esp, 0xc
mov dword [esp + 4], 0
push 0
push 0x80000080
push 2
push 0
push 0
push 0xc0000000
push str.results.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40f4f0
push str._s:___FALSE
push 6
call fcn.0040a380
add esp, 0xc
lea ecx, [esp + 0x100c]
call fcn.0040eb62
xor eax, eax
pop esi
add esp, 0x1004
ret
mov ecx, dword [esp + 0x100c]
push 0
push 0
lea edx, [esp + 0x10]
mov eax, dword [ecx - 8]
inc eax
push eax
push edx
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x100c]
lea eax, [esp + 4]
push 0
push eax
mov edx, dword [ecx - 8]
lea eax, [esp + 0x10]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40f4f0
push str._s:___TRUE
push 6
call fcn.0040a380
add esp, 0xc
lea ecx, [esp + 0x100c]
call fcn.0040eb62
mov eax, 1
pop esi
add esp, 0x1004
ret

Function at 0x4017c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, ecx
test ebp, ebp
mov eax, ebp
jne 0x4017d5
mov eax, 0x412b48
push eax
push 0x40f6bc
push 0x412b30
push 6
call fcn.0040a790
add esp, 0x10
lea esi, [edi + 0xa0]
mov ecx, esi
mov byte [edi + 0x274], 0
push 0xffffffffffffffff
push 0
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
mov eax, dword [edi + 0xc0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x412b2c
push 0
push 0xc2
push eax
call ebx
push 0x40f6a8
push str._s:_1
push 5
call fcn.0040a380
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
push 0
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0xd
mov ecx, esi
call fcn.00406990
push 0x40f6a8
push str._s:_2
push 5
call fcn.0040a380
add esp, 0xc
mov ecx, esi
push 0
push 0
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 2
mov ecx, esi
call fcn.00406990
push 1
mov ecx, esi
call fcn.00406900
mov ecx, dword [edi + 0xc0]
push ebp
push 0
push 0xc2
push ecx
call ebx
mov edi, 0x412b14
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x16
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x412b0c
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov ecx, esi
push edx
push eax
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0xff0000
mov ecx, esi
call fcn.00406a60
push 0x40f6a8
push str._s:__
push 6
call fcn.0040a380
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 4