joyce8/EMBER2024-capa huggingface dataset:
Function at 0x76b37f50
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
xor esi, esi
pop eax
mov dword [ebp - 0xc], esi
call fcn.76b59720
mov eax, esp
lea ecx, [ebp - 0x34]
push 0x1c
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test eax, eax
je 0x76b38035
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x54]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x76b37fbc
cmp dword [ebp - 0xc], esi
jbe 0x76b37fbc
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push esi
call fcn.76b37f1a
add esp, 0xc
test eax, eax
js 0x76b38035
mov esi, dword [ebp - 8]
not edi
and esi, edi
mov dword [ebp - 8], esi
je 0x76b37ff2
lea eax, [ebp - 8]
push eax
push ebx
push esi
call fcn.76b37f1a
add esp, 0xc
test eax, eax
js 0x76b38035
mov esi, dword [ebp - 8]
lea eax, [ebx + ebx]
cmp esi, eax
jae 0x76b37ffb
mov esi, eax
and edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
sub edi, esi
add eax, ebx
cmp edi, eax
jb 0x76b38035
push 4
push 0x1000
push esi
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
test eax, eax
je 0x76b38035
lea eax, [ebp - 0x18]
push eax
push 0x104
push esi
push edi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
neg eax
sbb eax, eax
neg eax
jmp 0x76b38037
xor eax, eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.76b4dc60
leave
ret
Function at 0x76b39242
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 1
push ebx
push ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.76b3bf3b
mov ecx, eax
mov dword [ebp - 0x18], eax
and ecx, edx
mov dword [ebp - 0x14], edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x76b392ca
push 2
push ebx
push ebx
push edi
call fcn.76b3bf3b
mov ecx, eax
add esp, 0x10
and ecx, edx
cmp ecx, 0xffffffff
je 0x76b392ca
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
sub esi, eax
sbb ebx, edx
js 0x76b39387
jg 0x76b392a4
test esi, esi
je 0x76b39387
push 0x1000
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x76b392d6
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
call sym.msvcrt.dll__errno
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.76b3b10e
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test ebx, ebx
jne 0x76b392f4
mov eax, esi
cmp esi, 0x1000
jb 0x76b392f9
mov eax, 0x1000
push eax
push dword [ebp - 4]
push edi
call fcn.76b3e561
add esp, 0xc
cmp eax, 0xffffffff
je 0x76b3931a
cdq
sub esi, eax
sbb ebx, edx
js 0x76b39338
jg 0x76b392e6
test esi, esi
je 0x76b39338
jmp 0x76b392e6
call sym.msvcrt.dll___doserrno
cmp dword [eax], 5
jne 0x76b3932f
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
or eax, 0xffffffff
or dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
push edi
call fcn.76b3b10e
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov eax, dword [ebp - 8]
and eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x76b392ca
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.76b3bf3b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x76b392ca
xor eax, eax
jmp 0x76b392d1
test ebx, ebx
jg 0x76b39364
jl 0x76b39391
test esi, esi
jae 0x76b39364
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.76b3bf3b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x76b392ca
push edi
call sym.msvcrt.dll__get_osfhandle
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
and eax, edx
cmp eax, 0xffffffff
jne 0x76b39364
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
call sym.msvcrt.dll___doserrno
mov esi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [esi], eax
jmp 0x76b392ca
Function at 0x76b4da80
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x76baab94]
call fcn.76b57e3c
mov ebx, eax
mov eax, dword [ebp + 8]
pop ecx
test eax, eax
jne 0x76b4dabe
call sym.msvcrt.dll__errno
xor edi, edi
push 0x16
pop esi
push edi
push edi
push edi
push edi
push edi
mov dword [eax], esi
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
mov eax, esi
jmp 0x76b4db6e
xor edi, edi
mov dword [eax], edi
test ebx, ebx
jne 0x76b4db4d
push edi
push edi
push 0x76af62ac
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x76b4dae5
call sym.msvcrt.dll__errno
jmp 0x76b4daa5
push 0x76af62c8
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x76b4db28
call sym.msvcrt.dll__errno
mov esi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b26375
push edi
push edi
push edi
push edi
push edi
mov dword [esi], eax
call sym.msvcrt.dll__invalid_parameter
add esp, 0x18
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b26375
pop ecx
jmp 0x76b4db6e
push ebx
call fcn.76b57e52
pop ecx
mov esi, eax
call fcn.76b57e68
mov ecx, 0x76baab94
xchg dword [ecx], esi
cmp esi, eax
je 0x76b4db4a
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov eax, dword [ebp + 8]
push 4
push eax
mov ecx, ebx
call dword [0x76bad2b0]
call ebx
test al, al
jne 0x76b4db6c
call sym.msvcrt.dll__errno
push 0xc
pop ecx
mov dword [eax], ecx
mov eax, ecx
jmp 0x76b4db6e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x76b4ddbd
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x76b9e1b8
call fcn.76b4e0a8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x76b4de1d
cmp eax, 0xffffffff
je 0x76b4de1d
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x76b4de16
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x76b4de16
cmp edx, 0x10000000
jae 0x76b4de16
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x76b4de13
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x76b4df94
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x76b4dff6
push ebx
xor ebx, ebx
push esi
mov esi, edi
cmp word [edi], bx
je 0x76b4dfca
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x76b4dfc5
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x76b4dfb2
sub esi, edi
add esi, 2
push esi
call fcn.76b38776
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x76b4dfeb
push esi
push edi
push eax
call sym.msvcrt.dll_memcpy
mov ebx, dword [ebp - 4]
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
pop esi
mov eax, ebx
pop ebx
pop edi
leave
ret

Function at 0x76b4dfff
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x76b4e091
xor edx, edx
push esi
mov esi, edi
cmp word [edi], dx
je 0x76b4e034
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x76b4e02f
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x76b4e01c
push ebx
push edx
push edx
push edx
sub esi, edi
push edx
sar esi, 1
inc esi
push esi
push edi
push edx
push edx
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x76b4e086
push eax
call fcn.76b38776
mov ebx, eax
pop ecx
test ebx, ebx
je 0x76b4e086
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
test eax, eax
jne 0x76b4e07b
push ebx
call sym.msvcrt.dll_free
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x76b4e08f
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret
Function at 0x76b4e439
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x90], ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
cmp eax, 1
jne 0x76b4e573
xor esi, esi
lea edi, [ebp - 0x84]
push esi
push 0x80
mov eax, edi
mov dword [ebp - 0x8c], esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
call fcn.76b51568
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x76b4e509
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x76b4e52a
push esi
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x90]
call fcn.76b51568
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
je 0x76b4e52a
push 1
push eax
call fcn.76b38729
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x76b4e52a
push esi
push dword [ebp - 0x88]
mov dword [ebp - 0x8c], 1
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x90]
call fcn.76b51568
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
je 0x76b4e523
push 1
push eax
call fcn.76b38729
mov edx, eax
mov dword [ebx], edx
pop ecx
pop ecx
test edx, edx
jne 0x76b4e53c
cmp dword [ebp - 0x8c], esi
je 0x76b4e52a
push edi
call sym.msvcrt.dll_free
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.76b4dc60
leave
ret
mov ecx, dword [ebp - 0x88]
lea eax, [ecx - 1]
push eax
push edi
push ecx
push edx
call sym.msvcrt.dll_strncpy_s
add esp, 0x10
test eax, eax
je 0x76b4e562
push esi
push esi
push esi
push esi
push esi
call fcn.76b4977b
add esp, 0x14
cmp dword [ebp - 0x8c], esi
je 0x76b4e5b2
push edi
call sym.msvcrt.dll_free
pop ecx
jmp 0x76b4e5b2
cmp eax, 2
jne 0x76b4e5c8
xor esi, esi
push esi
push esi
push dword [ebp + 0x14]
mov dword [ebx], esi
push dword [ebp + 0x10]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
je 0x76b4e5b9
push 2
push edi
call fcn.76b38729
mov dword [ebx], eax
pop ecx
pop ecx
test eax, eax
je 0x76b4e5b9
push edi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x76b4e5b9
xor eax, eax
jmp 0x76b4e52d
push dword [ebx]
call sym.msvcrt.dll_free
pop ecx
mov dword [ebx], esi
jmp 0x76b4e52a
test eax, eax
jne 0x76b4e52a
and dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push 2
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x76b4e52a
mov al, byte [ebp - 0x88]
mov byte [ebx], al
jmp 0x76b4e5b2
Function at 0x76b5009a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x7c]
push 0x78
push eax
mov eax, dword [ebp + 8]
and eax, 0x3ff
push 1
or eax, 0x400
push eax
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoA]
test eax, eax
je 0x76b5010d
lea eax, [ebp - 0x7c]
push eax
call fcn.76b4ff77
pop ecx
cmp dword [ebp + 8], eax
je 0x76b50108
cmp dword [ebp + 0xc], 0
je 0x76b50108
push esi
mov esi, dword [edi]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x76b500eb
push dword [edi]
sub esi, ecx
call fcn.76b4fc60
pop ecx
xor ecx, ecx
cmp eax, esi
pop esi
setne cl
mov eax, ecx
jmp 0x76b5010f
xor eax, eax
inc eax
jmp 0x76b5010f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.76b4dc60
leave
ret
Function at 0x76b5039d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], eax
call fcn.76b57e68
xor esi, esi
mov ebx, eax
cmp dword [0x76baaeb4], esi
jne 0x76b5047d
push esi
push esi
push 0x76af68bc
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x76b5055f
push 0x76af68d4
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test eax, eax
je 0x76b5055f
push eax
call fcn.76b57e52
mov dword [esp], 0x76af68e0
push edi
mov dword [0x76baaeb4], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push eax
call fcn.76b57e52
mov dword [esp], 0x76af68f0
push edi
mov dword [0x76baaeb8], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push eax
call fcn.76b57e52
mov dword [esp], 0x76af6904
push edi
mov dword [0x76baaebc], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push eax
call fcn.76b57e52
pop ecx
mov ecx, eax
mov dword [0x76baaec4], ecx
test ecx, ecx
je 0x76b50476
push 0x76af6920
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push eax
call fcn.76b57e52
pop ecx
mov dword [0x76baaec0], eax
jmp 0x76b50482
mov eax, dword [0x76baaec0]
jmp 0x76b50488
mov eax, dword [0x76baaec0]
mov ecx, dword [0x76baaec4]
cmp eax, ebx
je 0x76b504ee
cmp ecx, ebx
je 0x76b504ee
push eax
call fcn.76b57e3c
push dword [0x76baaec4]
mov dword [ebp - 0x14], eax
call fcn.76b57e3c
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x76b504ee
test edi, edi
je 0x76b504ee
mov ecx, eax
call dword [0x76bad2b0]
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
je 0x76b504e5
lea ecx, [ebp - 0x20]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
mov ecx, edi
call dword [0x76bad2b0]
call edi
test eax, eax
je 0x76b504e5
test byte [ebp - 8], 1
jne 0x76b504ee
or dword [ebp + 0x10], 0x200000
jmp 0x76b50537
mov eax, dword [0x76baaeb8]
cmp eax, ebx
je 0x76b50537
push eax
call fcn.76b57e3c
mov edi, eax
pop ecx
test edi, edi
je 0x76b50537
mov ecx, edi
call dword [0x76bad2b0]
call edi
mov esi, eax
test esi, esi
je 0x76b50537
mov eax, dword [0x76baaebc]
cmp eax, ebx
je 0x76b50537
push eax
call fcn.76b57e3c
mov edi, eax
pop ecx
test edi, edi
je 0x76b50537
push esi
mov ecx, edi
call dword [0x76bad2b0]
call edi
mov esi, eax
push dword [0x76baaeb4]
call fcn.76b57e3c
mov edi, eax
pop ecx
test edi, edi
je 0x76b5055f
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call dword [0x76bad2b0]
call edi
jmp 0x76b50561
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.76b4dc60
leave
ret
Function at 0x76b51155
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], eax
call fcn.76b57e68
xor esi, esi
mov ebx, eax
cmp dword [0x76baaf50], esi
jne 0x76b51235
push esi
push esi
push 0x76af68bc
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x76b51317
push 0x76af6938
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test eax, eax
je 0x76b51317
push eax
call fcn.76b57e52
mov dword [esp], 0x76af68e0
push edi
mov dword [0x76baaf50], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push eax
call fcn.76b57e52
mov dword [esp], 0x76af68f0
push edi
mov dword [0x76baaf54], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push eax
call fcn.76b57e52
mov dword [esp], 0x76af6944
push edi
mov dword [0x76baaf58], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push eax
call fcn.76b57e52
pop ecx
mov ecx, eax
mov dword [0x76baaf60], ecx
test ecx, ecx
je 0x76b5122e
push 0x76af6920
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
push eax
call fcn.76b57e52
pop ecx
mov dword [0x76baaf5c], eax
jmp 0x76b5123a
mov eax, dword [0x76baaf5c]
jmp 0x76b51240
mov eax, dword [0x76baaf5c]
mov ecx, dword [0x76baaf60]
cmp eax, ebx
je 0x76b512a6
cmp ecx, ebx
je 0x76b512a6
push eax
call fcn.76b57e3c
push dword [0x76baaf60]
mov dword [ebp - 0x14], eax
call fcn.76b57e3c
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x76b512a6
test edi, edi
je 0x76b512a6
mov ecx, eax
call dword [0x76bad2b0]
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
je 0x76b5129d
lea ecx, [ebp - 0x20]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
mov ecx, edi
call dword [0x76bad2b0]
call edi
test eax, eax
je 0x76b5129d
test byte [ebp - 8], 1
jne 0x76b512a6
or dword [ebp + 0x10], 0x200000
jmp 0x76b512ef
mov eax, dword [0x76baaf54]
cmp eax, ebx
je 0x76b512ef
push eax
call fcn.76b57e3c
mov edi, eax
pop ecx
test edi, edi
je 0x76b512ef
mov ecx, edi
call dword [0x76bad2b0]
call edi
mov esi, eax
test esi, esi
je 0x76b512ef
mov eax, dword [0x76baaf58]
cmp eax, ebx
je 0x76b512ef
push eax
call fcn.76b57e3c
mov edi, eax
pop ecx
test edi, edi
je 0x76b512ef
push esi
mov ecx, edi
call dword [0x76bad2b0]
call edi
mov esi, eax
push dword [0x76baaf50]
call fcn.76b57e3c
mov edi, eax
pop ecx
test edi, edi
je 0x76b51317
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call dword [0x76bad2b0]
call edi
jmp 0x76b51319
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.76b4dc60
leave
ret
Function at 0x76b5147b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0x1c], esi
jne 0x76b514a0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
mov ebx, eax
test ebx, ebx
jle 0x76b5154e
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ebx
cmp eax, 2
jb 0x76b5154e
lea ecx, [ebx*2 + 8]
lea eax, [ebx + ebx]
cmp ecx, eax
jbe 0x76b5150b
cmp ecx, 0x400
ja 0x76b514f3
mov eax, ecx
call fcn.76b596e0
mov edi, esp
test edi, edi
je 0x76b5154e
mov dword [edi], 0xcccc
jmp 0x76b51506
push ecx
call sym.msvcrt.dll_malloc
mov edi, eax
pop ecx
test edi, edi
je 0x76b5154e
mov dword [edi], 0xdddd
add edi, 8
jmp 0x76b5150d
mov edi, esi
test edi, edi
je 0x76b5154e
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x76b51543
push esi
push esi
cmp dword [ebp + 0x18], esi
jne 0x76b5152e
push esi
push esi
jmp 0x76b51534
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov esi, eax
push edi
call sym.msvcrt.dll__freea
pop ecx
mov eax, esi
jmp 0x76b51550
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.76b4dc60
leave
ret

Function at 0x76b515b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x76b515ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x76b515e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x76b515f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x76b515d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x76b51600
Capabilities:
Parse pe header

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