joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475420
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, esp
call fcn.00486698
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47546a
jmp 0x475592
mov ecx, dword [ebp - 4]
shl ecx, 1
mov esi, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp esi, esp
call fcn.00486698
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4754a1
push str.Win32:_Failed_to_allocate_global_handle_for_clipboard
push 0x10008
call fcn.0047eea0
add esp, 8
jmp 0x475592
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, esp
call fcn.00486698
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4754e7
push 0x4b8d2c
push 0x10008
call fcn.0047eea0
add esp, 8
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, esp
call fcn.00486698
jmp 0x475592
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, esp
call fcn.00486698
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00486698
mov esi, esp
mov edx, dword [0x56ccb8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp esi, esp
call fcn.00486698
test eax, eax
jne 0x47555f
push 0x4b8d50
push 0x10008
call fcn.0047eea0
add esp, 8
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, esp
call fcn.00486698
jmp 0x475592
mov esi, esp
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp esi, esp
call fcn.00486698
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp esi, esp
call fcn.00486698
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call fcn.00486698
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.00486698
mov esp, ebp
pop ebp
ret
Function at 0x4755b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
mov eax, dword [0x56ccb8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp esi, esp
call fcn.00486698
test eax, eax
jne 0x4755f7
push str.Win32:_Failed_to_open_clipboard
push 0x10008
call fcn.0047eea0
add esp, 8
xor eax, eax
jmp 0x4756cb
mov esi, esp
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp esi, esp
call fcn.00486698
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x475639
push str.Win32:_Failed_to_convert_clipboard_to_string
push 0x10009
call fcn.0047eea0
add esp, 8
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call fcn.00486698
xor eax, eax
jmp 0x4756cb
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, esp
call fcn.00486698
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47567a
push str.Win32:_Failed_to_lock_global_handle
push 0x10008
call fcn.0047eea0
add esp, 8
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call fcn.00486698
xor eax, eax
jmp 0x4756cb
mov esi, esp
mov edx, dword [0x56ccc8]
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp esi, esp
call fcn.00486698
mov eax, dword [ebp - 8]
push eax
call fcn.0047ea80
add esp, 4
mov dword [0x56ccc8], eax
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.00486698
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call fcn.00486698
mov eax, dword [0x56ccc8]
pop esi
add esp, 8
cmp ebp, esp
call fcn.00486698
mov esp, ebp
pop ebp
ret

Function at 0x4763e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, esp
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2ac]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.00486698
pop esi
cmp ebp, esp
call fcn.00486698
pop ebp
ret
Function at 0x477e90
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, 1
mov word [ebp - 0x10], ax
mov ecx, 2
mov word [ebp - 0xe], cx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2ac]
mov dword [ebp - 8], eax
mov esi, esp
push 0xc
push 1
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
cmp esi, esp
call fcn.00486698
test eax, eax
jne 0x477efd
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.0047eea0
add esp, 8
push edx
mov ecx, ebp
push eax
lea edx, [0x477f20]
call fcn.00486644
pop eax
pop edx
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00486698
mov esp, ebp
pop ebp
ret

Function at 0x477f40
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, 1
mov word [ebp - 0x10], ax
mov ecx, 2
mov word [ebp - 0xe], cx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
mov esi, esp
push 0xc
push 1
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
cmp esi, esp
call fcn.00486698
test eax, eax
jne 0x477fa8
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.0047eea0
add esp, 8
push edx
mov ecx, ebp
push eax
lea edx, [0x477fc8]
call fcn.00486644
pop eax
pop edx
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00486698
mov esp, ebp
pop ebp
ret
Function at 0x478580
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486698
cwde
and eax, 0x8000
je 0x4785b6
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486698
movsx edx, ax
and edx, 0x8000
je 0x4785db
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
mov esi, esp
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486698
movsx ecx, ax
and ecx, 0x8000
je 0x478600
mov edx, dword [ebp - 4]
or edx, 4
mov dword [ebp - 4], edx
mov esi, esp
push 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486698
movsx esi, ax
mov edi, esp
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cmp edi, esp
call fcn.00486698
cwde
or esi, eax
and esi, 0x8000
je 0x478639
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
mov esi, esp
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486698
movsx edx, ax
and edx, 1
je 0x47865b
mov eax, dword [ebp - 4]
or eax, 0x10
mov dword [ebp - 4], eax
mov esi, esp
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00486698
movsx ecx, ax
and ecx, 1
je 0x478680
mov edx, dword [ebp - 4]
or edx, 0x20
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
pop edi
pop esi
add esp, 4
cmp ebp, esp
call fcn.00486698
mov esp, ebp
pop ebp
ret

Function at 0x47d240
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x47d26a
mov esi, esp
push 0x29
push 0x4b9ba0
push str.tls__win32.allocated__GLFW_FALSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.00486698
mov esi, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp esi, esp
call fcn.00486698
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffff
jne 0x47d29e
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.0047eea0
add esp, 8
xor eax, eax
jmp 0x47d2ac
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov eax, 1
pop esi
cmp ebp, esp
call fcn.00486698
pop ebp
ret

Function at 0x47d300
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x47d32a
mov esi, esp
push 0x40
push 0x4b9c70
push 0x4b9cd0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.00486698
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, esp
call fcn.00486698
pop esi
cmp ebp, esp
call fcn.00486698
pop ebp
ret
Function at 0x47d350
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
cmp dword [eax], 1
je 0x47d37a
mov esi, esp
push 0x46
push 0x4b9d18
push str.tls__win32.allocated__GLFW_TRUE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
cmp esi, esp
call fcn.00486698
mov esi, esp
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp esi, esp
call fcn.00486698
pop esi
cmp ebp, esp
call fcn.00486698
pop ebp
ret
Function at 0x480350
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
lea edi, [ebp - 0x50]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
mov edi, esp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, esp
call fcn.00486698
push eax
push 0
push 0
push 1
push 1
push 0
push 0
push 0x6000000
push str.GLFW_message_window
push str.GLFW30
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp esi, esp
call fcn.00486698
mov dword [0x56ccb8], eax
cmp dword [0x56ccb8], 0
jne 0x4803db
push str.Win32:_Failed_to_create_helper_window
push 0x10008
call fcn.0047eea0
add esp, 8
xor eax, eax
jmp 0x4804a5
mov esi, esp
push 0
mov eax, dword [0x56ccb8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.00486698
push 0x20
push 0
lea ecx, [ebp - 0x4c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4c], 0x20
mov dword [ebp - 0x48], 5
mov edx, dword [0x48a6c8]
mov dword [ebp - 0x40], edx
mov eax, dword [0x48a6cc]
mov dword [ebp - 0x3c], eax
mov ecx, dword [0x48a6d0]
mov dword [ebp - 0x38], ecx
mov edx, dword [0x48a6d4]
mov dword [ebp - 0x34], edx
mov esi, esp
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [0x56ccb8]
push ecx
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
cmp esi, esp
call fcn.00486698
mov dword [0x56ccbc], eax
mov esi, esp
push 1
push 0
push 0
mov edx, dword [0x56ccb8]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp esi, esp
call fcn.00486698
test eax, eax
je 0x4804a0
mov esi, esp
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp esi, esp
call fcn.00486698
mov esi, esp
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp esi, esp
call fcn.00486698
jmp 0x480454
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4804d0]
call fcn.00486644
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485c99
add esp, 0x50
cmp ebp, esp
call fcn.00486698
mov esp, ebp
pop ebp
ret
Function at 0x4849d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], str.libOSMesa.dll
mov dword [ebp - 0x14], str.OSMesa.dll
mov dword [ebp - 0x10], 0
cmp dword [0x56dbe0], 0
je 0x484a23
mov eax, 1
jmp 0x484bbe
mov dword [ebp - 8], 0
jmp 0x484a35
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ebp + ecx*4 - 0x18], 0
je 0x484a68
mov esi, esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbe0], eax
cmp dword [0x56dbe0], 0
je 0x484a66
jmp 0x484a68
jmp 0x484a2c
cmp dword [0x56dbe0], 0
jne 0x484a8a
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.00474810
add esp, 8
xor eax, eax
jmp 0x484bbe
mov esi, esp
push str.OSMesaCreateContextExt
mov ecx, dword [0x56dbe0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbe4], eax
mov esi, esp
push str.OSMesaCreateContextAttribs
mov edx, dword [0x56dbe0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbe8], eax
mov esi, esp
push str.OSMesaDestroyContext
mov eax, dword [0x56dbe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbec], eax
mov esi, esp
push str.OSMesaMakeCurrent
mov ecx, dword [0x56dbe0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbf0], eax
mov esi, esp
push str.OSMesaGetColorBuffer
mov edx, dword [0x56dbe0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbf4], eax
mov esi, esp
push str.OSMesaGetDepthBuffer
mov eax, dword [0x56dbe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbf8], eax
mov esi, esp
push str.OSMesaGetProcAddress
mov ecx, dword [0x56dbe0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbfc], eax
cmp dword [0x56dbe4], 0
je 0x484b9e
cmp dword [0x56dbec], 0
je 0x484b9e
cmp dword [0x56dbf0], 0
je 0x484b9e
cmp dword [0x56dbf4], 0
je 0x484b9e
cmp dword [0x56dbf8], 0
je 0x484b9e
cmp dword [0x56dbfc], 0
jne 0x484bb9
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.00474810
add esp, 8
call fcn.00484c10
xor eax, eax
jmp 0x484bbe
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x484be8]
call fcn.00486644
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485c99
add esp, 0x1c
cmp ebp, esp
call fcn.00486698
mov esp, ebp
pop ebp
ret
Function at 0x485bbb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x485be2
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x485be5
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00485b97
pop esi
leave
ret 8

Function at 0x486cd8
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
push ebx
push esi
push edi
push 0x27
call fcn.00401f84
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x900]
push eax
call edi
and dword [ebp + 8], 0
add esp, 0x14
cmp dword [esi + 0x10], 0
jbe 0x401070
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x100]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40103b
lea eax, [ebp - 0x900]
push eax
call fcn.00407cd0
pop ecx
call fcn.00403e51
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401bc6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41772c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401c0a
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401c30
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401c1b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401c30
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x401caa
cmp dword [0x41773c], 0
jne 0x401ca8
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41773c], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41772c]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x401c9d
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401ca8
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f84
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x417058], ebx
je 0x401fb7
mov eax, 0x417058
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x401fb7
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x417058]
cmp dword [eax], ebx
jne 0x401fa0
shl esi, 4
cmp dword [esi + 0x417058], ebx
jne 0x401fcc
mov eax, 0x41338c
jmp 0x40213e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40207c
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x402073
call edi
test eax, eax
jne 0x402073
mov eax, dword [esi + 0x417064]
test eax, eax
je 0x402068
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402065
push dword [esi + 0x417064]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x417064], edi
jmp 0x40207b
push edi
jmp 0x402076
mov eax, dword [ebp - 8]
mov dword [esi + 0x417064], eax
jmp 0x40207c
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x417064]
test eax, eax
jne 0x40213d
mov ebx, dword [esi + 0x41705c]
lea edi, [esi + 0x417060]
cmp dword [edi], eax
je 0x4020b2
call fcn.00401f2e
cmp eax, dword [0x414094]
jne 0x4020b2
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x417054], 0xffffffff
pop ecx
mov dword [esi + 0x417064], eax
jne 0x40211d
and dword [0x417054], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x41772c]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40211d
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x417054], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x417064]
push edi
push ebx
push 0
push dword [0x417054]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x417064]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402236
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402293
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4024a1
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4024b1
xor eax, eax
leave
ret
test byte [0x41776c], 2
mov dword [ebp - 0x40], 0x40
jne 0x402506
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402506
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402506
jb 0x4024e2
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402506
push 0x2b
call fcn.00401f84
push eax
call fcn.00407d3f
cmp eax, 1
pop ecx
pop ecx
je 0x4024ff
or dword [0x41776c], 0xffffffff
jmp 0x4024ad
or dword [0x41776c], 2
xor eax, eax
inc eax
leave
ret