joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a30e3b1
Capabilities:
Terminate thread

Disassembly:
push 0xc
mov eax, 0x2a3549f2
call fcn.2a30266e
mov ebx, ecx
xor ecx, ecx
cmp dword [ebx], 0xb
mov edi, ecx
mov dword [ebp - 0x14], edi
jne 0x2a30e4a2
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
or dword [ebx + 0x1a0], 0xffffffff
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
lea esi, [eax + 0x12c]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, esi
jae 0x2a30e45b
mov edi, esi
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebx + 0x2d8]
mov esi, dword [ebx]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp esi, 0xb
jne 0x2a30e458
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, edi
jb 0x2a30e41f
mov edi, dword [ebp - 0x14]
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp dword [ebx], 0xb
jne 0x2a30e482
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_TerminateThread]
xor edi, edi
inc edi
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebx + 0x2d8], ecx
cmp dword [ebx + 0x18], 0
lea esi, [ebx + 0x1a0]
mov dword [esi], ecx
je 0x2a30e4d7
test di, di
jne 0x2a30e4d4
push esi
push dword [ebx + 0x18]
call fcn.2a33518f
xor ecx, ecx
cmp dword [esi], ecx
jne 0x2a30e4d7
push esi
push dword [ebx + 0x14]
mov dword [ebx + 0x18], ecx
call fcn.2a33518f
xor ecx, ecx
jmp 0x2a30e4d7
mov dword [ebx + 0x18], ecx
cmp word [ebx + 0x144], cx
je 0x2a30e55e
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.2a33518f
mov edi, dword [0x2a36db18]
xor eax, eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebx + 0x40]
push eax
mov eax, dword [0x2a36db04]
push str.Cstring
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [str.Pv0]
call esi
mov esi, dword [edi + 0xd0]
pop ecx
movzx eax, ax
mov ecx, esi
push eax
push 0
call dword [str.Pv0]
call esi
add esp, 0x10
lea ecx, [ebp - 0x18]
push 0
push eax
call fcn.2a33518f
cmp dword [ebp - 0x14], 0
je 0x2a30e550
lea ecx, [ebp - 0x18]
call fcn.2a33518f
test al, al
je 0x2a30e550
lea ecx, [ebp - 0x18]
call fcn.2a33f665
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.2a33518f
xor ecx, ecx
cmp dword [ebx + 0x34], 0
je 0x2a30e582
mov eax, dword [0x2a36d7bc]
push dword [ebx + 0x34]
mov esi, dword [eax + 0x284]
mov ecx, esi
call dword [str.Pv0]
call esi
pop ecx
xor ecx, ecx
mov dword [ebx + 0x34], ecx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x2a30e5b6
push eax
mov eax, dword [0x2a36dabc]
cmp word [ebx + 0x196], cx
je 0x2a30e5a0
mov esi, dword [eax + 0x124]
jmp 0x2a30e5a6
mov esi, dword [eax + 0x11c]
mov ecx, esi
call dword [str.Pv0]
call esi
xor eax, eax
pop ecx
mov dword [ebx + 0x20], eax
mov dword [ebx], 2
call fcn.2a302b96
ret
Function at 0x2a32d61e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x2a35670e
call fcn.2a3041d5
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x2a32d83f
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.2a33518f
add esp, 0x10
test eax, eax
js 0x2a32d839
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x2a32d6c2
push edi
call fcn.2a32eb0c
pop ecx
test al, al
je 0x2a32d6c2
mov eax, edi
call fcn.2a3534e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x2a32d6d4
push edi
lea ecx, [ebp - 0x424]
call fcn.2a33518f
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.2a33518f
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x2a32d839
push 0x60
push ebx
push eax
call fcn.2a32edc8
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x2a32d72c
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.2a32edc8
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x2a32d72c
call fcn.2a32be19
mov ebx, eax
jmp 0x2a32d808
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x2a32d753
call fcn.2a32be19
jmp 0x2a32d7fb
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x2a32d749
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x2a32d786
mov ebx, 0x8007000e
jmp 0x2a32d7fd
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.2a33518f
jmp 0x2a32d7ac
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x2a32d77f
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.2a33518f
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.2a33518f
mov ebx, eax
test edi, edi
je 0x2a32d808
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a32d821
lea ecx, [ebp - 0x418]
call fcn.2a32c4ed
or dword [ebp - 4], 0xffffffff
jmp 0x2a32d831
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x2a32d827
mov eax, ebx
jmp 0x2a32d86d
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x2a32d854
lea ecx, [ebp - 0x418]
call fcn.2a32c4ed
or dword [ebp - 4], 0xffffffff
jmp 0x2a32d864
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x2a32d85a
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.2a30420f
ret 0x10
Function at 0x2a33518f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x2a33519e
pop dword [ebp - 0xc]
mov eax, 0x25fd6d87
sub eax, 0xfbca1be9
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xd03bba4e
sub dword [ebp - 0x1c], 0x81e97503
mov dword [ebp - 0x18], 0x2ab691a
add dword [ebp - 0x18], 0x2f87e32b
mov dword [ebp - 0x14], 0xa672c3fb
sub dword [ebp - 0x14], 0x5a267fcd
mov dword [ebp - 0x10], 0xb4d99424
sub dword [ebp - 0x10], 0xb4d99424
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xd74021f0
add eax, 0x52f57e94
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xf53f9a60
sub dword [ebp - 0x1c], 0x80cd310a
mov dword [ebp - 0x18], 0x80fa6838
add dword [ebp - 0x18], 0xc071f93d
mov dword [ebp - 0x14], 0xa002d5a8
add dword [ebp - 0x14], 0xc36c96c4
mov dword [ebp - 0x10], 0x3e7f6aa6
add dword [ebp - 0x10], 0xc180955a
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x8a593a5c
sub eax, 0x602399d0
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x4d286
push 0
call eax
mov ecx, 0x70258df4
sub ecx, 0x70253b3e
mov esi, eax
mov edi, 0x979ccec6
sub edi, 0x6d64b8c6
add edi, dword [ebp - 0xc]
mov edx, 0x5ea84d90
add edx, 0x92514e60
sub dword [ebp - 8], eax
mov ebx, dword [edi]
xor dword [ebp - 4], 0x140495a5
xor ebx, edx
xor dword [ebp - 8], esi
mov dword [esi], ebx
add esi, 0xa00d44ea
sub esi, 0xa00d44e6
add edi, 0xc5ddc290
add edi, 0x3a223d74
loop 0x2a3352c0
add eax, 0x32e7b1f3
add eax, 0xcd198bb8
xor ebx, ebx
add ebx, eax
add eax, 0xa9d807af
add eax, 0x5627f856
mov ecx, 0x2a300000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4028b0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00402970
cmp dword [0x4196e0], 1
mov esi, dword [esp + 0x10]
jne 0x4028d3
push esi
call dword [0x41f644]
push eax
call dword [0x41f534]
mov dword [0x4196dc], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4196d8], bl
jne 0x40292d
cmp dword [0x41e868], 0
je 0x40291b
mov edi, dword [0x41e864]
sub edi, 4
cmp edi, dword [0x41e868]
jb 0x40291b
mov eax, dword [edi]
test eax, eax
je 0x402910
call eax
sub edi, 4
cmp edi, dword [0x41e868]
jae 0x402908
push 0x419070
push 0x419068
call fcn.00402990
add esp, 8
push 0x419078
push 0x419074
call fcn.00402990
add esp, 8
test ebx, ebx
je 0x40294c
call fcn.00402980
pop edi
pop esi
pop ebx
ret
mov dword [0x4196e0], 1
push esi
call dword [0x41f558]
pop edi
pop esi
pop ebx
ret

Function at 0x404130
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004050e0
call dword [0x41f620]
mov dword [0x419b70], eax
cmp eax, 0xffffffff
jne 0x40414a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.00405c20
add esp, 8
mov esi, eax
test esi, esi
je 0x40418c
push esi
mov eax, dword [0x419b70]
push eax
call dword [0x41f608]
test eax, eax
je 0x40418c
push esi
call fcn.00404190
add esp, 4
call dword [0x41f638]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4041b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [0x41f62c]
mov esi, eax
mov eax, dword [0x419b70]
push eax
call dword [0x41f600]
mov edi, eax
test edi, edi
jne 0x404213
push 0x74
push 1
call fcn.00405c20
add esp, 8
mov edi, eax
test edi, edi
je 0x404209
push edi
mov eax, dword [0x419b70]
push eax
call dword [0x41f608]
test eax, eax
je 0x404209
push edi
call fcn.00404190
add esp, 4
call dword [0x41f638]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x404213
push 0x10
call fcn.00402770
add esp, 4
push esi
call dword [0x41f5e8]
mov eax, edi
pop edi
pop esi
ret
Function at 0x404a10
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [0x41f56c]
cmp dword [0x419e1c], ebx
jne 0x404a5f
call esi
cmp eax, ebx
mov edi, eax
je 0x404a3d
mov dword [0x419e1c], 1
jmp 0x404a5f
call dword [0x41f564]
mov ebx, eax
test ebx, ebx
je 0x404a55
mov dword [0x419e1c], 2
jmp 0x404a5f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x419e1c], 1
jne 0x404b0e
test edi, edi
jne 0x404a82
call esi
mov edi, eax
test edi, edi
jne 0x404a82
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x404a9c
add esi, 2
cmp word [esi], 0
jne 0x404a8a
add esi, 2
cmp word [esi], 0
jne 0x404a8a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [0x41f648]
mov ebp, eax
test ebp, ebp
je 0x404afd
push ebp
call fcn.00402b30
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x404afd
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [0x41f648]
test eax, eax
jne 0x404aec
push ebx
call fcn.004029b0
add esp, 4
xor ebx, ebx
push edi
call dword [0x41f568]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [0x41f568]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x419e1c], 2
jne 0x404b92
test ebx, ebx
jne 0x404b31
call dword [0x41f564]
mov ebx, eax
test ebx, ebx
jne 0x404b31
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x404b46
inc ebp
cmp byte [ebp], 0
jne 0x404b38
inc ebp
cmp byte [ebp], 0
jne 0x404b38
sub ebp, ebx
inc ebp
push ebp
call fcn.00402b30
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x404b6b
push ebx
call dword [0x41f674]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x41f674]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x404ee0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x419e48
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x404f07
add eax, 8
inc ecx
cmp eax, 0x419ed8
jb 0x404ef8
cmp dword [ecx*8 + 0x419e48], edx
lea ebx, [ecx*8]
jne 0x4050cb
cmp dword [0x419680], 1
je 0x405087
cmp dword [0x419680], 0
jne 0x404f3e
cmp dword [0x419684], 1
je 0x405087
cmp edx, 0xfc
je 0x4050cb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [0x41f514]
push 0
call ebp
test eax, eax
jne 0x404f7b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x404fbf
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x415d80
push ebp
call fcn.004064f0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x415d60
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x419e4c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00406450
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x41e760], 0
je 0x40509d
mov eax, dword [0x41e760]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4050a7
push 0xfffffffffffffff4
call dword [0x41f628]
mov esi, eax
mov edx, dword [ebx + 0x419e4c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [0x41f5b8]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x407e20
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x41b5cc]
push esi
test eax, eax
push edi
push ebp
jne 0x407e68
push 0
mov esi, dword [0x41f5a4]
push 0
push 1
push 0
call esi
test eax, eax
je 0x407e48
mov eax, 1
jmp 0x407e6e
push 0
push 0
push 1
push 0
call dword [0x41f5a0]
test eax, eax
je 0x407e61
mov eax, 2
jmp 0x407e6e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [0x41f5a4]
mov dword [0x41b5cc], eax
cmp eax, 1
jne 0x407e93
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x41b5cc], eax
cmp eax, 2
jne 0x407f21
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x407eaf
mov edi, dword [0x41a7f0]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [0x41f5a0]
mov ebp, eax
test ebp, ebp
jne 0x407ed0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.00402b30
add esp, 4
mov esi, eax
test esi, esi
jne 0x407ee6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [0x41f5a0]
test eax, eax
je 0x407f16
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x407f26
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [0x41f64c]
mov edi, eax
test edi, edi
jne 0x407f3e
push esi
call fcn.004029b0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [0x41f64c]
mov edi, eax
test edi, edi
je 0x407f16
push esi
call fcn.004029b0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407f50
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x41b5d0]
push esi
test eax, eax
push edi
push ebp
jne 0x407f98
push 0
mov esi, dword [0x41f5a0]
push 0
push 1
push 0
call esi
test eax, eax
je 0x407f78
mov eax, 2
jmp 0x407f9e
push 0
push 0
push 1
push 0
call dword [0x41f5a4]
test eax, eax
je 0x407f91
mov eax, 1
jmp 0x407f9e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [0x41f5a0]
mov dword [0x41b5d0], eax
cmp eax, 2
jne 0x407fc3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x41b5d0], eax
cmp eax, 1
jne 0x40805f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x407fdf
mov edi, dword [0x41a7f0]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [0x41f5a4]
mov ebp, eax
test ebp, ebp
jne 0x408000
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.00402b30
add esp, 4
mov esi, eax
test esi, esi
jne 0x40801d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [0x41f5a4]
test eax, eax
je 0x408054
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x408064
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [0x41f648]
mov edi, eax
test edi, edi
jne 0x40807f
push esi
call fcn.004029b0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [0x41f648]
mov edi, eax
test edi, edi
je 0x408054
push esi
call fcn.004029b0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret