joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ec0a
Capabilities:
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 0x43ec47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x43ec28
mov dl, 1
mov eax, dword [0x40c04c]
call fcn.00402c80
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403920
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43ec17
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.0042d43c
test al, al
je 0x43ec0a
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, 0x43ec58
lea eax, [ebp - 0x254]
call fcn.00408624
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43ec0a
xor eax, eax
push ebp
push 0x43ec03
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 0x43ec90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43ebec
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b50
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43ebec
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ec0a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43eb0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ecd0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ec4e
lea eax, [ebp - 0x260]
call fcn.00403920
ret

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

Disassembly:
push ecx
mov eax, dword [0x445f6c]
cmp byte [eax + 0x95], 0
jne 0x43f505
cmp dword [0x445f88], 0
jne 0x43f4c6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43f450
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x445f88], eax
cmp dword [0x445f84], 0
jne 0x43f4e1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x445f84], eax
cmp dword [0x445f8c], 0
jne 0x43f505
push esp
push 0
push 0
push 0x43f3f4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x445f8c], eax
pop edx
ret
Function at 0x43fae4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x445f6c]
cmp dword [eax + 0x24], 0
je 0x43fb87
cmp dword [ebx + 0x84], 0
jne 0x43fb81
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43fa74
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x43fb81
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 0x43fb4a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43fb81
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d410
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43fb59
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x440594
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x4405c9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call int.00403a08
jmp 0x4405d3
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403974
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x441324
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x44135c
mov eax, esi
call fcn.0042933c
test al, al
je 0x44135c
mov eax, dword [ebx + 0x74]
call fcn.00429040
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44135c
push 0
mov eax, dword [ebx + 0x74]
call fcn.00429040
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x441ad0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00441a84
test al, al
jne 0x441af1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x441b3d
xor eax, eax
push ebp
push 0x441b2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403d64
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441b34
lea eax, [ebp - 0xc]
call fcn.00441ac0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441e7c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x441e84
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x441f71
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00414324
mov edx, dword [ebp - 8]
mov ecx, 0x441f88
xor eax, eax
call fcn.00441d6c
push 0
mov eax, dword [ebp - 4]
call fcn.00403d64
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x441f3f
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x441e9e
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00416658
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407cd8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call int.004147f8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.00416628
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406f5c]
call fcn.00408fb4
call fcn.004033f0
jmp 0x441e9e
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441f78
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403944
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403944
ret

Function at 0x441f98
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x444d98]
cmp dword [eax], 2
jne 0x442000
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x441fbb
xor eax, eax
jmp 0x44200f
lea eax, [esp + 8]
push eax
push 0x442014
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x442000
xor eax, eax
jmp 0x44200f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x442028
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x442082
inc esi
xor edi, edi
cmp edi, 1
jne 0x44204e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x44205c
cmp edi, 1
jle 0x44205c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00441ad0
test eax, eax
jne 0x442082
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x442082
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x442082
inc edi
dec esi
jne 0x44203e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x442354
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
cmp dword [0x445fa8], 0
je 0x44239d
mov edi, dword [0x4460e0]
dec edi
test edi, edi
jl 0x44239d
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x4460dc]
mov edx, dword [edx + eax]
mov eax, dword [0x445fa8]
call fcn.00407b38
test eax, eax
jne 0x442399
mov eax, esi
call fcn.00442308
jmp 0x442462
inc esi
dec edi
jne 0x44236f
mov al, byte [0x4460c8]
sub al, 1
jb 0x4423aa
je 0x4423b3
jmp 0x4423bc
call fcn.004145a4
mov ebp, eax
jmp 0x4423be
call sub.kernel32.dll_GetUserDefaultLangID
mov ebp, eax
jmp 0x4423be
xor ebp, ebp
test bp, bp
je 0x44245b
mov edi, dword [0x4460e0]
dec edi
test edi, edi
jl 0x44240a
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x4460dc]
lea ebx, [edx + eax]
movzx eax, bp
cmp eax, dword [ebx + 0x28]
jne 0x442406
cmp dword [ebx + 0x2c], 0
je 0x4423fd
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x442406
mov eax, esi
call fcn.00442308
jmp 0x442462
inc esi
dec edi
jne 0x4423d5
mov edi, dword [0x4460e0]
dec edi
test edi, edi
jl 0x44245b
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x4460dc]
lea ebx, [edx + eax]
mov eax, dword [ebx + 0x28]
and eax, 0x3ff
mov edx, ebp
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x442457
cmp dword [ebx + 0x2c], 0
je 0x44244e
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x442457
mov eax, esi
call fcn.00442308
jmp 0x442462
inc esi
dec edi
jne 0x442418
xor eax, eax
call fcn.00442308
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4424f4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4425c9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4425e0
push ebx
push 0x4425ec
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403c60
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004029b0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403d64
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x442574
mov al, 0x62
call fcn.004420c4
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004424c8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x44257d
call fcn.004424c8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4425d0
lea eax, [ebp - 4]
call fcn.00403920
ret
Function at 0x44268c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x442740
jmp 0x442735
cmp dword [esi + 0x10], 0x1000
jne 0x442721
test byte [esi + 0x15], 1
jne 0x442721
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4426e0
cmp eax, 2
je 0x4426e0
cmp eax, 0x10
je 0x4426e0
cmp eax, 0x20
jne 0x4426f5
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4426f5
mov bl, 1
xor ebp, ebp
jmp 0x442706
mov eax, dword [esi]
add eax, ebp
call fcn.00442684
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4426f9
test bl, bl
je 0x442721
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x442740
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4426b8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401385
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4013b8
push 0xfffffffffffffffe
pop eax
jmp 0x40152a
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 0xa]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4013e1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4013fd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401405
or eax, 0xffffffff
jmp 0x40152a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi], 0x42
jne 0x401513
cmp byte [esi + 1], 0x4d
jne 0x401513
push 0
sub edi, 0xe
pop eax
je 0x401433
mov cl, byte [eax + esi + 0xe]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x401427
cmp dword [esi + 0x10], 0
je 0x401440
push 0xfffffffffffffff0
jmp 0x401515
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
and dword [edi + 4], 0
mov dword [edi + 0xc], eax
movzx eax, word [esi + 0xe]
dec eax
je 0x40147c
sub eax, 3
je 0x401478
sub eax, 4
je 0x401471
sub eax, 0x10
jne 0x401513
xor eax, eax
jmp 0x40147f
mov eax, 0x400
jmp 0x40147f
push 0x40
jmp 0x40147e
push 8
pop eax
mov ebx, dword [esi]
push 0
add ebx, eax
add ebx, esi
call dword [sym.imp.USER32.dll_GetDC]
and dword [ebp + 0xc], 0
push 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 8
jne 0x4014a9
mov dword [ebp + 0xc], 1
cmp word [esi + 0xe], 8
jne 0x4014d8
cmp dword [ebp + 0xc], 0
je 0x4014d8
push esi
call fcn.00401531
pop ecx
mov dword [edi + 4], eax
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
push esi
push ebx
push 4
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [edi], eax
cmp word [esi + 0xe], 8
jne 0x401505
cmp dword [ebp + 0xc], 0
je 0x401505
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x401516
push 0xfffffffffffffff8
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40171b
Capabilities:
Get file size

Disassembly:
mov eax, 0x46209c
call fcn.004341ac
sub esp, 0x134
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4017e8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x4017e1
push edi
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4017d7
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
call fcn.00401a6d
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00401c5e
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.004341d0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.00401306
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x14]
push edi
call fcn.004016bd
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4018aa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x401907
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4018ff
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040180d
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40190d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.004342c0
mov esi, eax
pop ecx
test esi, esi
je 0x40195b
xor edx, edx
test ebx, ebx
jbe 0x40195b
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x401945
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4044fd
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x404612
cmp byte [ebp + 0xc], bl
jne 0x40457d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [edi + 1]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404612
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x404608
call fcn.00434610
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.004053f3
push dword [ebp + 0xc]
jmp 0x4045fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [edi + 3]
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x404612
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x404608
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
add eax, 3
and al, 0xfc
call fcn.004349d0
mov edi, esp
push ebx
push ebx
push dword [ebp + 8]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call fcn.00434610
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push edi
call fcn.004053f3
push dword [ebp + 0xc]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x404614
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4051ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x40525c
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x40523f
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x40523f
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x40523f
mov byte [ebp - 1], 1
jmp 0x40525c
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x40525c
cmp byte [ebp - 1], bl
jne 0x40525c
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x405246
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x407597
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401083
mov ecx, eax
call fcn.00427513
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4075d8
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.0040762d
test eax, eax
jne 0x407624
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x4075f4
push esi
push edi
mov ecx, ebx
call fcn.0040762d
test eax, eax
jne 0x407624
push 0x48391c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.0042ff29
add esp, 0xc
test eax, eax
jge 0x407624
push edi
push esi
push 4
call fcn.0042ff29
add esp, 0xc
test eax, eax
jge 0x407624
xor eax, eax
jmp 0x407627
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x409ee6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x409f0c
push ebx
push ebx
call fcn.00435895
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x409f24
push ebx
push ebx
call fcn.00435895
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jne 0x409f3b
push ebx
push ebx
call fcn.00435895
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x409f51
push ebx
push ebx
call fcn.00435895
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00434be0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc