joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4425f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44262c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44260d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44261c
or bl, 4
test esi, 0x20000000
je 0x442627
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x448cd4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x448ce6
add esp, 0xfffffff0
call fcn.00403530
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419064
mov eax, dword [0x44ee0c]
mov dword [eax + 4], ebx
mov dword [eax], 0x449078
mov eax, dword [0x44ee18]
mov dword [eax + 4], ebx
mov dword [eax], 0x449084
mov eax, ebx
call fcn.00449090
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41135c]
call fcn.004031f4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41135c]
call fcn.004031f4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41135c]
call fcn.004031f4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41135c]
call fcn.004031f4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41135c]
call fcn.004031f4
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, 0x4454ac
push eax
push 0
push 0
mov eax, dword [0x44ef58]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41aa88]
call fcn.0041becc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41aa88]
call fcn.0041becc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41aa88]
call fcn.0041becc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004494b0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44938c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44938c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44938c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x448e23
call fcn.00403588
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449170
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 0x44931b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4492fc
mov dl, 1
mov eax, dword [0x411778]
call fcn.004031f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f5c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4492eb
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.004371a4
test al, al
je 0x4492de
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, 0x44932c
lea eax, [ebp - 0x254]
call fcn.00408910
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4492de
xor eax, eax
push ebp
push 0x4492d7
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 0x449364
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4492c0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
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 0x4492c0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4492de
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4491e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415254
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 0x449322
lea eax, [ebp - 0x260]
call fcn.00403f5c
ret

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

Disassembly:
push ecx
mov eax, dword [0x450bb0]
cmp byte [eax + 0xa5], 0
jne 0x449cc1
cmp dword [0x450bc8], 0
jne 0x449c82
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x449c0c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x450bc8], eax
cmp dword [0x450bc4], 0
jne 0x449c9d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x450bc4], eax
cmp dword [0x450bcc], 0
jne 0x449cc1
push esp
push 0
push 0
push 0x449bb0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x450bcc], eax
pop edx
ret
Function at 0x449db8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x449dcf
add esp, 0xfffffff0
call fcn.00403530
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419064
mov eax, dword [0x44ef44]
cmp word [eax + 2], 0
jne 0x449df7
mov eax, dword [0x44ef44]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b490
mov eax, dword [0x44efec]
cmp word [eax + 2], 0
jne 0x449e11
mov eax, dword [0x44efec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044b688
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41135c]
call fcn.004031f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41135c]
call fcn.004031f4
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 [0x41b238]
call fcn.00420e80
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x449f98
mov eax, dword [0x44ee6c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421250
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44bc38
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44ee6c]
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.0040bf4c
test eax, eax
je 0x449f06
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408304
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf74
test eax, eax
je 0x449f1a
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.004041cc
mov eax, dword [0x44ed70]
cmp byte [eax], 0
jne 0x449f4e
mov eax, ebx
call fcn.0044a0c0
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.0044be14
mov eax, ebx
call fcn.0044c7d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x449f8e
call fcn.00403588
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a340
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450bb0]
cmp dword [eax + 0x30], 0
je 0x44a3ea
cmp dword [ebx + 0x94], 0
jne 0x44a3e4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a2d0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a3e4
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 0x44a3aa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a3e4
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.004136c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a3b9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44af4c
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 0x44af81
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.0040404c
jmp 0x44af8e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fb0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44bff0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c031
mov eax, esi
call fcn.004329ac
test al, al
je 0x44c031
mov eax, dword [ebx + 0x84]
call fcn.0043274c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c031
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043274c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44cad4
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebx
add esp, 0xffffffe0
mov dword [0x450bdc], 0x94
push 0x450bdc
call sub.kernel32.dll_GetVersionExA
cmp dword [0x450be0], 5
je 0x44cafc
xor eax, eax
jmp 0x44cbde
mov eax, dword [0x450be4]
sub eax, 1
jb 0x44cb0a
je 0x44cb11
jmp 0x44cb18
mov ebx, 0x30000
jmp 0x44cb1f
mov ebx, 0x39000
jmp 0x44cb1f
xor eax, eax
jmp 0x44cbde
push 0x44cbe4
lea eax, [esp + 4]
push eax
call dword [0x44ed34]
mov dword [esp + 8], 0x18
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, esp
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
push 6
push 0x44ed44
call dword [0x44ed38]
cmp eax, 0xc0000022
jne 0x44cbaa
lea eax, [esp + 8]
push eax
push 0x60000
push 0x44ed44
call dword [0x44ed38]
mov eax, dword [0x44ed44]
call fcn.0044c9c8
mov eax, dword [0x44ed44]
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [esp + 8]
push eax
push 6
push 0x44ed44
call dword [0x44ed38]
test eax, eax
jge 0x44cbb2
xor eax, eax
jmp 0x44cbde
push 0x1000
push ebx
push 0
push 6
mov eax, dword [0x44ed44]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x44ed40], eax
cmp dword [0x44ed40], 0
jne 0x44cbd9
xor eax, eax
jmp 0x44cbde
mov eax, dword [0x44ed44]
add esp, 0x20
pop ebx
ret

Function at 0x44cc14
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, edx
mov edx, esi
shr edx, 0x16
shl edx, 2
add edx, eax
mov ebx, dword [edx]
test bl, 1
jne 0x44cc2e
xor eax, eax
pop esi
pop ebx
ret
mov eax, ebx
and eax, 0x80
test eax, eax
je 0x44cc4b
and ebx, 0xffc00000
and esi, 0x3fffff
add ebx, esi
mov esi, ebx
jmp 0x44cc97
push 0x1000
and ebx, 0xfffff000
push ebx
push 0
push 4
mov eax, dword [0x44ed44]
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov eax, esi
and eax, 0x3ff000
shr eax, 0xc
shl eax, 2
add eax, ebx
mov eax, dword [eax]
test al, 1
jne 0x44cc82
xor eax, eax
pop esi
pop ebx
ret
and eax, 0xfffff000
and esi, 0xfff
add eax, esi
mov esi, eax
push ebx
call sub.kernel32.dll_UnmapViewOfFile
mov eax, esi
pop esi
pop ebx
ret

Function at 0x44cc9c
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, eax
mov edx, ebx
mov eax, dword [0x44ed40]
call fcn.0044cc14
mov ebx, eax
push 0x1000
mov eax, ebx
and eax, 0xfffff000
push eax
push 0
push 6
mov eax, dword [0x44ed44]
push eax
call sub.kernel32.dll_MapViewOfFile
test eax, eax
jne 0x44ccd1
xor eax, eax
pop ebx
ret
and ebx, 0xfff
shr ebx, 2
mov edx, ebx
shl edx, 2
add edx, eax
mov ebx, dword [edx]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
pop ebx
ret
Function at 0x487f60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x487ff3
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 0x61
lea eax, [ebp - 4]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 4]
lea eax, [ebp - 8]
call fcn.00402ac8
mov edx, 0x488000
lea eax, [ebp - 8]
mov cl, 2
call fcn.00402a98
lea edx, [ebp - 8]
mov eax, esi
call fcn.00403dd4
mov edx, dword [esi]
lea eax, [ebp - 0xc]
mov ecx, 0x48800c
call fcn.00403e7c
mov eax, dword [ebp - 0xc]
call fcn.00403ff4
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 5
je 0x487fdd
mov eax, esi
call fcn.00403bb0
inc ebx
cmp bl, 0x7b
jne 0x487f7f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487ffa
lea eax, [ebp - 0xc]
call fcn.00403bb0
ret
Function at 0x4908a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ff4
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4908b9
test al, 0x10
jne 0x4908bd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4994d4
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4996e2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0xd54], 0
je 0x4996cc
mov eax, dword [0x49eea4]
cmp dword [eax], 2
je 0x499524
cmp dword [ebx + 0x21cc], 0
je 0x499524
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0xb94]
push eax
push 0x61
call sub.user32.dll_SystemParametersInfoA
mov eax, dword [ebx + 0xcc8]
test eax, eax
je 0x499534
push eax
call sub.user32.dll_UnhookWindowsHookEx
mov eax, dword [ebx + 0xccc]
test eax, eax
je 0x499544
push eax
call sub.user32.dll_UnhookWindowsHookEx
mov eax, dword [ebx + 0xcc0]
test eax, eax
je 0x499554
push eax
call sub.user32.dll_UnhookWindowsHookEx
cmp dword [ebx + 0x21c8], 0
je 0x49957b
push 0xfffffffffffffffe
mov eax, ebx
call fcn.0043afa4
push eax
call sub.user32.dll_UnregisterHotKey
push 0xffffffffffffffff
mov eax, ebx
call fcn.0043afa4
push eax
call sub.user32.dll_UnregisterHotKey
cmp dword [ebx + 0x21cc], 0
je 0x499593
push 1
mov eax, ebx
call fcn.0043afa4
push eax
call sub.user32.dll_UnregisterHotKey
cmp dword [ebx + 0x21bc], 0
je 0x4995e8
push 2
mov eax, ebx
call fcn.0043afa4
push eax
call sub.user32.dll_UnregisterHotKey
push 3
mov eax, ebx
call fcn.0043afa4
push eax
call sub.user32.dll_UnregisterHotKey
push 4
mov eax, ebx
call fcn.0043afa4
push eax
call sub.user32.dll_UnregisterHotKey
push 5
mov eax, ebx
call fcn.0043afa4
push eax
call sub.user32.dll_UnregisterHotKey
mov eax, dword [ebx + 0xcc4]
test eax, eax
je 0x4995e8
push eax
call sub.user32.dll_UnhookWindowsHookEx
mov eax, dword [ebx + 0xcac]
test eax, eax
je 0x4995f8
push eax
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebx + 0xbb0]
test eax, eax
je 0x49963e
xor edx, edx
mov dword [eax + 0x20], edx
xor edx, edx
mov dword [eax + 0x24], edx
xor edx, edx
mov dword [eax + 0x38], edx
xor edx, edx
mov dword [eax + 0x3c], edx
xor edx, edx
mov dword [eax + 0x40], edx
mov byte [eax + 0x44], 0
mov byte [eax + 0x45], 0
push 0x6f
call sub.KERNEL32.DLL_Sleep
mov eax, dword [ebx + 0xbb0]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
xor eax, eax
mov dword [ebx + 0xbb0], eax
mov eax, dword [ebx + 0xb90]
test eax, eax
je 0x49964e
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebx + 0xd54]
call fcn.00408ab4
test al, al
je 0x4996c1
mov dword [ebp - 4], 1
mov eax, dword [ebx + 0xd54]
call fcn.00403ff4
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403d68
mov eax, dword [ebp - 8]
call fcn.00408bb8
test al, al
jne 0x4996c1
cmp dword [ebp - 4], 4
jne 0x4996a2
push 4
push 0
mov eax, dword [ebx + 0xd54]
call fcn.00403ff4
push eax
call sub.KERNEL32.DLL_MoveFileExA
jmp 0x4996ac
push 0x22b
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x49ed4c]
mov eax, dword [eax]
call fcn.0042edc4
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jne 0x499664
lea eax, [ebx + 0xd54]
call fcn.00403bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4996e9
lea eax, [ebp - 8]
call fcn.00403bb0
ret
Function at 0x40f22e
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f2cb
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f2cb
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f2cb
push 4
push 0xffffffffffffffff
push esi
push 0x40f9e5
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f2cb
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f296
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f2cb
push dword [esi + 0x9c]
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0x40f2d1
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f2cd

Function at 0x413ca1
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x413cb1
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x413cb7
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x413cdf
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x438830]
test ax, ax
jne 0x413cc6
mov esi, ecx
jmp 0x413ce2
movzx esi, si
pop edi
cmp cx, si
je 0x413cff
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x438830]
test cx, cx
jne 0x413ce3
mov eax, 0x437338
jmp 0x413d07
imul eax, edx, 0x1a
add eax, 0x438832
push eax
mov ecx, ebx
call main
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x41c8f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x41c905
pop dword [ebp - 0x20]
mov eax, 0x41c905
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x4225c
push 0
mov eax, 0xb5111a6c
add eax, 0x4b31a890
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x4530
xor edi, edi
add edi, eax
mov ebx, 0x448800
add ebx, dword [ebp - 0x20]
mov edx, 0x9cdf744b
sub edx, 0xe4145529
mov esi, dword [ebx]
sub dword [ebp - 0xc], 0x6ed30204
add esi, edx
xor dword [ebp - 0x1c], edi
mov dword [edi], esi
sub dword [ebp - 0x14], 0x23b4172e
add edi, 4
add ebx, 0x6bbf74e5
sub ebx, 0x6bbf74e1
loop 0x41c955
add eax, 0x4d8508d0
sub eax, 0x4d84013d
xor ebx, ebx
add ebx, eax
add eax, 0x441ede38
add eax, 0xbbe121cd
mov ecx, 0xb1701f25
add ecx, 0x4ecfe0db
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x402c10
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 0x4fe0]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0x4fd8]
mov ebx, dword [esi + 0x4fdc]
shr ecx, 0x1c
mov eax, edi
and eax, 0xf
shl ebx, 4
add ecx, ebx
mov edx, edi
shr edx, 4
shl eax, 0x1c
cmp edi, ecx
sbb ecx, ecx
and ecx, 0x10000000
push ecx
push eax
push edx
mov edx, dword [esi + 0x28]
push 4
push edx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x4fe0], eax
je 0x402c72
mov dword [esi + 0x18], edi
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x43b52c]
push 0x432bec
push str.Debug.txt
mov esi, eax
call fcn.0041bc24
push esi
push esi
push str.LastError
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0041bc37
mov eax, dword [edi]
push eax
call fcn.0041bd27
mov ecx, dword [0x43c548]
mov edx, dword [0x43b4b0]
add esp, 0x20
push pe_nt_image_headers32
shl ecx, 9
add ecx, 0x43b548
push ecx
push 0xdf
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x402cea
dec ecx
or ecx, 0xfffffff8
inc ecx
shl eax, 9
add eax, 0x43b548
push eax
mov dword [0x43c548], ecx
call fcn.00417330
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x403bb0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403bbe
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x4fe0]
push eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x403c02
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x403c02
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esi + 0x48], 0x7e
lea eax, [esi + 0x48]
mov dword [esi + 0x10], 0
jne 0x403c02
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x419fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push esi
xor esi, esi
cmp word [0x43cb70], si
push edi
mov edi, eax
jne 0x419ff4
push 0x43cb70
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x41a00a
push 0x5c
push 0x43cb70
call fcn.0041be32
add esp, 8
cmp eax, esi
je 0x41a00a
mov word [eax], si
push 0x43cb70
call fcn.0041b76a
add esp, 4
cmp eax, 3
jne 0x41a02d
cmp word [0x43cb74], 0x5c
jne 0x41a02d
mov word [0x43cb74], si
cmp edi, esi
je 0x41a03f
push edi
push 0x43cb70
call fcn.0041bcbf
add esp, 8
mov eax, dword [esp + 0x64]
push eax
push 0x43cb70
call fcn.0041bc95
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push 0x432c5c
push ebx
mov dword [esp + 0x18], 0x4c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x43cb70
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x88002c
mov word [esp + 0x50], si
mov word [esp + 0x52], si
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0x419ea0
mov dword [esp + 0x60], esi
call fcn.0041c276
add esp, 0x10
test eax, eax
jne 0x41a0e9
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
mov edi, eax
jmp 0x41a0ed
mov edi, dword [esp + 0x58]
push 0x432cd0
push ebx
call fcn.0041c276
add esp, 8
test eax, eax
jne 0x41a10c
lea edx, [esp + 8]
push edx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
mov edi, eax
cmp edi, esi
jne 0x41a118
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret
push 0x432cd0
push ebx
call fcn.0041c276
add esp, 8
test eax, eax
jne 0x41a165
cmp word [esp + 0x42], si
mov edx, dword [esp + 0x14]
jne 0x41a165
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + ecx - 1]
cmp ecx, esi
jbe 0x41a154
mov si, word [edx]
add edx, 2
test si, si
jne 0x41a141
inc eax
movzx esi, ax
cmp esi, ecx
jb 0x41a141
add edx, 2
push edx
push 0x43cb70
call fcn.0041bc95
add esp, 8
pop edi
mov eax, 0x43cb70
pop esi
add esp, 0x4c
ret

Function at 0x41a2d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41a2ec
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41a2fe
xor eax, eax
jmp 0x41a330
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x41a322
cmp esi, eax
jae 0x41a2fa
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41a314
cmp esi, eax
jae 0x41a2fa
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret