joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4401d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45a2b4]
cmp byte [eax + 0xc], 0
je 0x44033d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440336
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45bb94], 0
jne 0x440224
push 0x440344
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44034c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb94], eax
cmp dword [0x459bc0], 0
jne 0x44031f
push 0x44035c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x459bc0], eax
cmp dword [0x459bc0], 0
je 0x44031f
push 0x440368
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb98], eax
push 0x440378
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb9c], eax
push 0x44038c
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bba0], eax
push 0x4403a4
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bba4], eax
push 0x4403bc
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bba8], eax
push 0x4403d0
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bbac], eax
push 0x4403e8
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bbb0], eax
push 0x440400
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bbb4], eax
push 0x44041c
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bbb8], eax
push 0x440428
mov eax, dword [0x459bc0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bbbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44033d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4441c8
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.0040408c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x444217
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.004042fc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44b954
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b9a4]
test si, 4
je 0x44b968
or bl, 1
test si, 8
je 0x44b972
or bl, 4
test si, 1
je 0x44b97c
or bl, 8
test si, 2
je 0x44b986
or bl, 0x10
test si, 0x10
je 0x44b990
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b99f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b9a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b9e0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b9c1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b9d0
or bl, 4
test esi, 0x20000000
je 0x44b9db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452088
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45209a
add esp, 0xfffffff0
call fcn.004035dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a8d0
mov eax, dword [0x459f50]
mov dword [eax + 4], ebx
mov dword [eax], 0x45242c
mov eax, dword [0x459f5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x452438
mov eax, ebx
call fcn.00452444
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b88]
call fcn.00403288
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b88]
call fcn.00403288
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b88]
call fcn.00403288
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b88]
call fcn.00403288
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b88]
call fcn.00403288
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, 0x44e860
push eax
push 0
push 0
mov eax, dword [0x45a0a4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c9b4]
call fcn.0041e128
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c9b4]
call fcn.0041e128
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c9b4]
call fcn.0041e128
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004528f4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452788
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452788
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452788
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4521d7
call fcn.00403634
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45256c
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 0x452717
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4526f8
mov dl, 1
mov eax, dword [0x412130]
call fcn.00403288
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040408c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4526e7
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.00440530
test al, al
je 0x4526da
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, 0x452728
lea eax, [ebp - 0x254]
call fcn.00408dac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4526da
xor eax, eax
push ebp
push 0x4526d3
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 0x452760
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4526bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042fc
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 0x4526bc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4526da
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4525dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041654c
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 0x45271e
lea eax, [ebp - 0x260]
call fcn.0040408c
ret

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

Disassembly:
push ecx
mov eax, dword [0x45bbe0]
cmp byte [eax + 0xa5], 0
jne 0x453105
cmp dword [0x45bbf8], 0
jne 0x4530c6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453050
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45bbf8], eax
cmp dword [0x45bbf4], 0
jne 0x4530e1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45bbf4], eax
cmp dword [0x45bbfc], 0
jne 0x453105
push esp
push 0
push 0
push 0x452ff4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45bbfc], eax
pop edx
ret
Function at 0x4531fc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453213
add esp, 0xfffffff0
call fcn.004035dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a8d0
mov eax, dword [0x45a090]
cmp word [eax + 2], 0
jne 0x45323b
mov eax, dword [0x45a090]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004548d4
mov eax, dword [0x45a154]
cmp word [eax + 2], 0
jne 0x453255
mov eax, dword [0x45a154]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454acc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411b88]
call fcn.00403288
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411b88]
call fcn.00403288
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], 0xff000018
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 [0x41d494]
call fcn.0042480c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4533dc
mov eax, dword [0x459fb0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424bdc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45506c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x459fb0]
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.0040c47c
test eax, eax
je 0x45334a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408774
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c4a4
test eax, eax
je 0x45335e
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.004042fc
mov eax, dword [0x459e98]
cmp byte [eax], 0
jne 0x453392
mov eax, ebx
call fcn.00453504
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.00455248
mov eax, ebx
call fcn.00455c0c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4533d2
call fcn.00403634
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453784
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bbe0]
cmp dword [eax + 0x30], 0
je 0x45382e
cmp dword [ebx + 0x94], 0
jne 0x453828
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453714
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453828
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 0x4537ee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453828
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.00414214
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4537fd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454390
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 0x4543c5
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.0040417c
jmp 0x4543d2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040e0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455424
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455465
mov eax, esi
call fcn.0043bb5c
test al, al
je 0x455465
mov eax, dword [ebx + 0x84]
call fcn.0043b858
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455465
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b858
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4569b4
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040453c
xor eax, eax
push ebp
push 0x456a32
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040454c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x4569fd
mov eax, dword [ebx + 4]
call fcn.0040454c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456a39
lea eax, [ebp - 4]
call fcn.0040408c
ret
Function at 0x457a04
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x457ba1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402a54
cmp word [ebx + 0xa2], 0
je 0x457a4d
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x457a61
lea esi, [ebp - 8]
jmp 0x457a63
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x457a70
xor edi, edi
jmp 0x457a7d
mov eax, dword [ebx + 0x80]
call fcn.0040454c
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.0040454c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0045716c
mov eax, dword [ebp - 0x14]
call fcn.0040454c
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.0040454c
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040454c
push eax
mov eax, ebx
call fcn.004572a0
push eax
mov eax, ebx
call fcn.00457274
push eax
mov eax, ebx
call fcn.00457228
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00457038
mov eax, dword [ebp - 0x18]
call fcn.0040454c
push eax
mov eax, dword [ebx + 8]
call fcn.0040454c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x457b06
call fcn.0040cd08
xor edx, edx
push ebp
push 0x457b7f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x457b44
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x457b3a
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x457b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457b86
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x457bb0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x457bdc
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040454c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x457c01
call fcn.0040cd08
xor eax, eax
push ebp
push 0x457c38
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x457c21
call fcn.0040cd08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457c3f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4122a4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4122f9
push dword [esp + 0x10]
push 0x412223
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x45b314]
test esi, esi
je 0x412352
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4122f1
cmp byte [esi + 0x10], 0
je 0x4122f1
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4122cd
jmp 0x412352
mov esi, dword [0x45b314]
test esi, esi
je 0x412352
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x41234b
cmp byte [esi + 0x11], 0
je 0x412327
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41233e
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x45b314
call fcn.0043c1a8
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x412306
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42ea30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x42ea95
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x42ea8d
push dword [esp + 0x10]
push dword [0x45b9ec]
call fcn.0043ba38
test eax, eax
je 0x42ea83
cmp dword [eax + 4], 0
je 0x42ea72
push edi
push esi
push eax
call fcn.0042f000
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x42eb10
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x42eb4c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x42eb90
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push ebx
push dword [0x45b9ec]
mov dword [esp + 0x10], 0
call fcn.0043ba38
mov ebp, eax
test ebp, ebp
je 0x42ecec
push esi
push edi
push ebx
call fcn.0042f110
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x42ebdc
push 4
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.0042f180
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x42ebf7
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, 2
jl 0x42ec25
lea edx, [esp + 0x18]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x42ec25
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.0042ee10
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
pop ecx
ret 4
cmp ecx, 3
jl 0x42ec56
lea edx, [esp + 0x18]
cmp word [edx], 0xbbef
jne 0x42ec56
cmp byte [edx + 2], 0xbf
jne 0x42ec56
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.0042ee10
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 4
cmp ecx, 2
jl 0x42ec84
lea edx, [esp + 0x18]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x42ec84
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.0042ee10
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret 4
cmp ecx, 4
jl 0x42ecd7
lea eax, [esp + 0x18]
cmp dword [eax], 0xfeff
jne 0x42ecb0
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.0042ee10
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
cmp dword [eax], 0xfffe0000
jne 0x42ecd7
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.0042ee10
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret 4
push edi
push esi
push ebx
call fcn.0042ee10
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
Function at 0x42ef90
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x42ef88
cmp word [edx], 0
je 0x42ef88
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x42eeae
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x42ef0d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x42eee0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42eec0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0042f000
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42eee0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.0042f750
mov edi, eax
test edi, edi
je 0x42ef03
cmp dword [esi + 4], 0
je 0x42ef5b
push dword [esp + 0x14]
push edi
push esi
call fcn.0042f000
push edi
push 0
push dword [0x45af5c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x45af5c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
push dword [esp + 4]
push dword [0x45b9ec]
call fcn.0043ba38
test eax, eax
je 0x42efac
mov dword [esp + 4], eax
jmp 0x42ee80
xor eax, eax
ret 0xc
Function at 0x42f000
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x42f107
cmp dword [esi + 0x14], 1
jne 0x42f04b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x42f0c8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x42f0b3
dec eax
je 0x42f09c
sub eax, 2
je 0x42f087
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.0042eb10
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x42f0f5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x42f071
xor eax, eax
pop esi
add esp, 0xc
ret 0xc