joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439628
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x439644
cmp dword [esi + 4], 0
je 0x439671
test byte [ebx + 0x55], 1
jne 0x439663
mov eax, ebx
call fcn.00438280
test eax, eax
jne 0x439663
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x439781
mov edx, esi
mov eax, ebx
call fcn.00439148
jmp 0x439781
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43977a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043b3f8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00435f2c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00439628
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043b3f8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439781
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43fca8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45b06c]
cmp byte [eax + 0xc], 0
je 0x43fe15
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43fe0e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45cbe4], 0
jne 0x43fcfc
push 0x43fe1c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43fe24
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbe4], eax
cmp dword [0x45aa44], 0
jne 0x43fdf7
push 0x43fe34
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45aa44], eax
cmp dword [0x45aa44], 0
je 0x43fdf7
push 0x43fe40
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbe8], eax
push 0x43fe50
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbec], eax
push 0x43fe64
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbf0], eax
push 0x43fe7c
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbf4], eax
push 0x43fe94
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbf8], eax
push 0x43fea8
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cbfc], eax
push 0x43fec0
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cc00], eax
push 0x43fed8
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cc04], eax
push 0x43fef4
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cc08], eax
push 0x43ff00
mov eax, dword [0x45aa44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cc0c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fe15
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x443ee0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004044fc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x443f2f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404764
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44bd70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44bdc0]
test si, 4
je 0x44bd84
or bl, 1
test si, 8
je 0x44bd8e
or bl, 4
test si, 1
je 0x44bd98
or bl, 8
test si, 2
je 0x44bda2
or bl, 0x10
test si, 0x10
je 0x44bdac
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bdbb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44bdc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44bdfc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bddd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bdec
or bl, 4
test esi, 0x20000000
je 0x44bdf7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452400
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452412
add esp, 0xfffffff0
call fcn.00403af4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b900
mov eax, dword [0x45ad84]
mov dword [eax + 4], ebx
mov dword [eax], 0x4527a4
mov eax, dword [0x45ad90]
mov dword [eax + 4], ebx
mov dword [eax], 0x4527b0
mov eax, ebx
call fcn.004527bc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411948]
call fcn.00403760
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411948]
call fcn.00403760
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411948]
call fcn.00403760
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411948]
call fcn.00403760
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411948]
call fcn.00403760
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44ec84
push eax
push 0
push 0
mov eax, dword [0x45aeb4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d318]
call fcn.0041e9ec
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d318]
call fcn.0041e9ec
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d318]
call fcn.0041e9ec
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452bdc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452ab8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452ab8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452ab8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45254f
call fcn.00403b4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45289c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452a47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452a28
mov dl, 1
mov eax, dword [0x411e38]
call fcn.00403760
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044fc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452a17
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440008
test al, al
je 0x452a0a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x452a58
lea eax, [ebp - 0x254]
call fcn.004091cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452a0a
xor eax, eax
push ebp
push 0x452a03
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452a90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4529ec
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404764
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4529ec
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452a0a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45290d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415f98
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452a4e
lea eax, [ebp - 0x260]
call fcn.004044fc
ret

Function at 0x45337c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45cc28]
cmp byte [eax + 0xa5], 0
jne 0x4533ed
cmp dword [0x45cc40], 0
jne 0x4533ae
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453338
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45cc40], eax
cmp dword [0x45cc3c], 0
jne 0x4533c9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45cc3c], eax
cmp dword [0x45cc44], 0
jne 0x4533ed
push esp
push 0
push 0
push 0x4532dc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45cc44], eax
pop edx
ret
Function at 0x4534e4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4534fb
add esp, 0xfffffff0
call fcn.00403af4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b900
mov eax, dword [0x45aea4]
cmp word [eax + 2], 0
jne 0x453523
mov eax, dword [0x45aea4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454ba8
mov eax, dword [0x45af30]
cmp word [eax + 2], 0
jne 0x45353d
mov eax, dword [0x45af30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454da0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411948]
call fcn.00403760
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411948]
call fcn.00403760
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41dd98]
call fcn.0042512c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4536c4
mov eax, dword [0x45addc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004254fc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455310
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45addc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ab54
test eax, eax
je 0x453632
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b14
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ab7c
test eax, eax
je 0x453646
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404764
mov eax, dword [0x45ace4]
cmp byte [eax], 0
jne 0x45367a
mov eax, ebx
call fcn.004537ec
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004554ec
mov eax, ebx
call fcn.00455e2c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4536ba
call fcn.00403b4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453a60
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45cc28]
cmp dword [eax + 0x30], 0
je 0x453b0a
cmp dword [ebx + 0x94], 0
jne 0x453b04
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4539f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453b04
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453aca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453b04
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413fe8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453ad9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4545e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45461d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045ec
jmp 0x45462a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404550
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4556c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455709
mov eax, esi
call fcn.0043b6fc
test al, al
je 0x455709
mov eax, dword [ebx + 0x84]
call fcn.0043b3f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455709
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b3f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x402460
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x2c]
push edi
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
push eax
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x38], 0x402620
mov dword [esp + 0x44], esi
mov dword [esp + 0x58], str.NotepadClass
mov dword [esp + 0x50], 6
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExW]
push esi
push 0
push 0
push 0x258
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Notepad
push str.NotepadClass
push 0
call edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40260c
push 0
push esi
push 0
push eax
push 0x258
push 0x320
push 0
push 0
push 0x50200044
push 0x42710c
push str.EDIT
push 0x200
call edi
mov dword [0x42be00], eax
test eax, eax
je 0x40260c
mov esi, dword [sym.imp.USER32.dll_CreateMenu]
call esi
mov ebx, eax
call esi
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
mov esi, eax
push str.Open
push 1
push 0
push esi
call edi
push str.Save
push 2
push 0
push esi
call edi
push str.File
push esi
push 0x10
push ebx
call edi
push str.Font
push 3
push 0
push ebx
call edi
mov esi, dword [esp + 0x10]
push ebx
push esi
call dword [sym.imp.USER32.dll_SetMenu]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [0x42bdfc], 0
jne 0x4025ba
call dword [sym.imp.libraryhelptools.dll_check_new_version]
test al, al
jne 0x4025b3
push 0
push 0x42707c
push str.not_found_new_version
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [0x42bdfc], 1
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x14]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x4025ff
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
lea eax, [esp + 0x14]
push eax
call edi
lea eax, [esp + 0x14]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x4025e0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41eff0
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004072d5
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00406bab
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00405610
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407cea
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4234b0
push 0x4234a8
push str.FlsAlloc
push 0x1f
call fcn.00413d6b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413ed7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4201a0]
call esi
jmp 0x413edd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x413f21
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4234c0
push 0x4234b8
push str.FlsGetValue
push 0x21
call fcn.00413d6b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413f58
push dword [ebp + 8]
mov ecx, esi
call dword [0x4201a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x413f60
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4234c8
push 0x4234c0
push str.FlsSetValue
push 0x22
call fcn.00413d6b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413f9a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4201a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4147c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408040
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411801
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414808
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414964
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041eb20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42b9d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00414beb
mov ecx, dword [esi*4 + 0x42b9d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41495d
cmp eax, dword [ecx + edi + 0x24]
jne 0x41495d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41495d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414beb
add esp, 0x14
test edx, edx
jl 0x41495d
jg 0x4148d3
test eax, eax
jb 0x41495d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41495d
jl 0x4148ed
cmp dword [ebp - 0x1008], eax
ja 0x41495d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41490b
test ebx, ebx
je 0x414944
cmp ecx, edi
jae 0x414944
mov al, byte [ecx]
cmp al, 0xd
jne 0x414925
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414931
cmp byte [ecx + 1], 0xa
jne 0x414931
inc ecx
jmp 0x414931
movzx eax, al
movsx eax, byte [eax + 0x42aa00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41490b
cmp edx, ebx
jne 0x41490b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414962
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004077db
leave
ret
Function at 0x41814a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4181e7
push ebx
push esi
call fcn.00418113
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00416d6b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418194
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4181e6
push edi
push eax
call fcn.00414c67
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4181b4
call fcn.00412957
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4181e5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00416d6b
add esp, 0x20
test eax, eax
jne 0x4181d3
push edi
call fcn.00412957
jmp 0x4181db
push ebx
call fcn.00412957
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41a62f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041266c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41a69e
cmp esi, dword [ebp - 4]
je 0x41a699
cmp dword [ebp + 0xc], 0
je 0x41a699
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a676
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041a181
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41a6a0
xor eax, eax
inc eax
jmp 0x41a6a0
xor eax, eax
pop edi
pop esi
leave
ret