joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b5508
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b56b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5b5694
mov dl, 1
mov eax, dword [0x440b94]
call fcn.00468ec8
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040a1c8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5b5683
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.00521c90
test al, al
je 0x5b5676
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5b56c4
lea eax, [ebp - 0x394]
call fcn.00424440
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5b5676
xor eax, eax
push ebp
push 0x5b566f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5b5734
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5b5658
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b318
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5b5658
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b5676
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5b5579
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.00468df0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b56ba
lea eax, [ebp - 0x3a0]
call fcn.0040a1c8
ret

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

Disassembly:
push ecx
mov eax, dword [0x6d779c]
cmp byte [eax + 0xc5], 0
jne 0x5b6332
cmp dword [0x6d77c0], 0
jne 0x5b62f2
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x6cec9c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6d77c0], eax
cmp dword [0x6d77bc], 0
jne 0x5b630d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x6d77bc], eax
cmp dword [0x6d77c4], 0
jne 0x5b6332
push esp
push 0
push 0
mov eax, dword [0x6cec98]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x6d77c4], eax
pop edx
ret
Function at 0x60c2fc
Capabilities:
Create directory

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.0060c2b0
test al, al
jne 0x60c31d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60c36b
xor eax, eax
push ebp
push 0x60c35b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c362
lea eax, [ebp - 0xc]
call fcn.0060c2ec
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60c374
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0060c2b0
test al, al
jne 0x60c398
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60c3fe
xor eax, eax
push ebp
push 0x60c3ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
push edi
push esi
call sub.kernel32.dll_CreateProcessW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c3f5
lea eax, [ebp - 0xc]
call fcn.0060c2ec
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x60c40c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0060c2b0
test al, al
jne 0x60c430
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60c488
xor eax, eax
push ebp
push 0x60c478
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.0040b278
push eax
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_CopyFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c47f
lea eax, [ebp - 0xc]
call fcn.0060c2ec
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x60c494
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.0060c2b0
test al, al
jne 0x60c4b5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60c501
xor eax, eax
push ebp
push 0x60c4f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c4f8
lea eax, [ebp - 0xc]
call fcn.0060c2ec
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60c66c
Capabilities:
Get file attributes

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.0060c2b0
test al, al
jne 0x60c68f
mov dword [ebp - 4], 0xffffffff
jmp 0x60c6db
xor eax, eax
push ebp
push 0x60c6cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c6d2
lea eax, [ebp - 0xc]
call fcn.0060c2ec
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60c810
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0060c2b0
test al, al
jne 0x60c834
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60c888
xor eax, eax
push ebp
push 0x60c878
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040b278
push eax
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_MoveFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c87f
lea eax, [ebp - 0xc]
call fcn.0060c2ec
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60c894
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
test edi, edi
jne 0x60c8b7
test esi, 4
je 0x60c8b7
xor edi, edi
jmp 0x60c8c0
mov eax, edi
call fcn.0040b278
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.0060c2b0
test al, al
jne 0x60c8d5
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x60c924
xor eax, eax
push ebp
push 0x60c914
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.0040b278
push eax
call sub.kernel32.dll_MoveFileExW
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60c91b
lea eax, [ebp - 0x10]
call fcn.0060c2ec
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x60c9a0
Capabilities:
Delete directory

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.0060c2b0
test al, al
jne 0x60c9c1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60ca0d
xor eax, eax
push ebp
push 0x60c9fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_RemoveDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60ca04
lea eax, [ebp - 0xc]
call fcn.0060c2ec
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x60ca18
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0060c2b0
test al, al
jne 0x60ca3c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x60ca89
xor eax, eax
push ebp
push 0x60ca79
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.0040b278
push eax
call sub.kernel32.dll_SetFileAttributesW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60ca80
lea eax, [ebp - 0xc]
call fcn.0060c2ec
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x60fc70
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x60fc9e
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.0040b318
jmp 0x60fca5
mov eax, ebx
call fcn.0040a1c8
add esp, 0x24
pop ebx
ret

Function at 0x60fcac
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x60fcdd
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.0040b318
jmp 0x60fce4
mov eax, ebx
call fcn.0040a1c8
add esp, 0x208
pop ebx
ret

Function at 0x60fcf4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
call fcn.00429d30
cmp eax, 2
jne 0x60fd5c
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x60fd17
xor eax, eax
jmp 0x60fd6b
lea eax, [esp + 8]
push eax
push 0x60fd70
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
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
test eax, eax
je 0x60fd5c
xor eax, eax
jmp 0x60fd6b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret

Function at 0x60fd98
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 0x60fdf2
inc esi
xor edi, edi
cmp edi, 1
jne 0x60fdbe
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x60fdcc
cmp edi, 1
jle 0x60fdcc
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0060c494
test eax, eax
jne 0x60fdf2
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x60fdf2
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x60fdf2
inc edi
dec esi
jne 0x60fdae
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x61065c
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, edx
mov edi, eax
test cl, cl
je 0x61066f
mov ebx, 0x80000001
jmp 0x610674
mov ebx, 0x80000002
push 0
push 2
lea eax, [esp + 8]
push eax
call fcn.005c7834
and eax, 0x7f
mov ecx, dword [eax*4 + 0x6cefc0]
mov edx, ebx
xor eax, eax
call fcn.005c7a60
test eax, eax
jne 0x6106b4
mov eax, edi
call fcn.0040b278
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, esi
call fcn.0040b278
push eax
call sub.gdi32.dll_RemoveFontResourceW
test eax, eax
je 0x6106d5
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x405a1e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ce9
test bl, 8
mov dword [ebp - 8], eax
je 0x405a5d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8ae8], eax
jmp 0x405bda
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a77
test eax, eax
je 0x405b88
test bl, 2
je 0x405b88
mov esi, 0x7a3f30
push edi
push esi
call fcn.0040630c
cmp dword [ebp + 8], 0
je 0x405a96
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a9c
push edi
call fcn.00405c2d
cmp word [edi], 0
jne 0x405aac
cmp word [0x7a3f30], 0x5c
jne 0x405ab7
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b7d
cmp word [ebp - 0x22c], 0x2e
jne 0x405b01
cmp word [ebp - 0x22a], 0
je 0x405b60
cmp word [ebp - 0x22a], 0x2e
jne 0x405b01
cmp word [ebp - 0x228], 0
je 0x405b60
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040630c
test byte [ebp - 0x258], 0x10
je 0x405b2c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b60
push dword [ebp + 0xc]
push edi
call fcn.00405a1e
jmp 0x405b60
push dword [ebp - 4]
push edi
call fcn.004059d6
test eax, eax
jne 0x405b58
cmp dword [ebp - 4], eax
je 0x405b50
push edi
push 0xfffffffffffffff1
call fcn.00405374
push 0
push edi
call fcn.004060d2
jmp 0x405b60
inc dword [0x7a8ae8]
jmp 0x405b60
push edi
push 0xfffffffffffffff2
call fcn.00405374
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ad9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b88
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bda
cmp dword [ebp - 8], esi
jne 0x405b9c
inc dword [0x7a8ae8]
jmp 0x405bda
push edi
call fcn.0040664f
test eax, eax
je 0x405bda
push edi
call fcn.00405be1
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059d6
test eax, eax
jne 0x405bd2
cmp dword [ebp - 4], esi
je 0x405b94
push edi
push 0xfffffffffffffff1
call fcn.00405374
push esi
push edi
call fcn.004060d2
jmp 0x405bda
push edi
push 0xffffffffffffffe5
call fcn.00405374
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x521a40
Capabilities:
Encode data using xor

Disassembly:
and dword [edi + 0x7cd1bbf6], eax
xor esi, eax
push ds
out 0xc5, eax
sahf
sub dword [edi - 0x14], ebx
std
push ebx
dec ecx
mov eax, 0x95f6453a
add dl, byte [esi + 0xa549fb8]
or bl, dl
pop ebx
mov eax, dword [0xca50dee5]
call 0x5890dc9d
test al, 0x57
sub ecx, dword [ebx - 0x14a1c405]
lahf
sbb al, 0x3e
sub al, 0xeb
fisubr word [ecx + esi*8]
xor eax, 0x10fe87d1
stosd dword es:[edi], eax
xchg ebx, eax
mov al, byte [0x93f6e8d8]
aaa
fsubr st(5)
outsd dx, dword [esi]
pop edx
fidivr word [ecx]
outsb dx, byte [esi]
cmpsb byte [esi], byte es:[edi]
daa
invalid

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x402a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 0xfffff000
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 0x1000
mov edx, dword [ebp - 0x10]
mov word [ebp - 0x1a], 0x508a
mov dword [ebp - 0x28], 0x4550
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x4c], 0x5a4d
mov edi, dword [ebp - 0x4c]
mov byte [ebp - 0x35], 1
mov bl, byte [ebp - 0x35]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov word [ebp - 0x2a], 0x1a93
cmp eax, 0
mov byte [ebp - 0x4d], bl
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], edi
jne 0x402ab4
mov eax, 0
mov dword [ebp - 0x14], 0
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0
jmp 0x402ba2
mov ax, word [ebp - 0x2a]
or ax, 0x37c4
mov word [ebp - 0x2a], ax
mov eax, 0
mov ecx, dword [ebp - 0x18]
mov edx, eax
sub edx, dword [ebp - 0x30]
movzx ecx, word [ecx]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x60]
cmp ecx, eax
jne 0x402b32
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x5c]
cmp dword [ecx + eax], edx
jne 0x402b1b
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x3c]
or ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x402ba2
lea eax, [ebp - 0x2a]
mov cx, 0x5b48
sub cx, word [ebp - 0x2a]
mov edx, dword [ebp - 0x3c]
xor edx, eax
mov dword [ebp - 0x3c], edx
mov word [ebp - 0x2a], cx
lea eax, [ebp - 0x20]
mov cx, word [ebp - 0x1a]
add cx, 0xf3
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x58]
sub edx, esi
mov word [ebp - 0x1a], cx
mov edi, dword [ebp - 0x54]
and edx, edi
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
xor edx, eax
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x2a]
mov cx, word [ebp - 0x1a]
mov dx, ax
xor cx, dx
mov word [ebp - 0x1a], cx
mov word [ebp - 0x1a], 0x2042
mov bl, byte [ebp - 0x4d]
test bl, 1
jne 0x402ac0
mov ax, 0
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
sub ax, word [ebp - 0x1a]
sub ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], ecx
mov word [ebp - 0x1a], ax
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov cx, word [ebp - 0x2a]
xor cx, 0x2374
mov word [ebp - 0x2a], cx
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x5239f4]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0x10c], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x405e0e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405e0e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405e0e
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x405df9
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x405d6e
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.00406ef0
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x405de6
push eax
call fcn.004a700a
add esp, 4
jmp 0x405de6
cmp dx, ax
jne 0x405deb
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x134], 1
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.00406ef0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x405dc0
push eax
call fcn.004a700a
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x405ce6
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a63c4
mov esp, ebp
pop ebp
ret 4

Function at 0x409fa0
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 0x409fb5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409ff4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x409ff0
lea ebx, [ebx]
cmp esi, edx
jae 0x409ff4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x409fe0
cmp esi, edx
jb 0x409ff9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret