joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e90
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409eb1
mov al, byte [esp]
jmp 0x409eb3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b564
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0xa
push 0x40b5dc
push ebx
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x40b5d3
push eax
push ebx
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b5d3
xor eax, eax
push ebp
push 0x40b5cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00406788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b5d3
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
ret
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41363c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
dec eax
jne 0x41364f
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x435204
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x43520a
ret

Function at 0x43a070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45a8b4
cmp dword [edi], 0
jne 0x43a0ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45a8b0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x459848
mov ecx, 2
call fcn.004027d8
mov edx, 0x43a048
lea eax, [esi + 5]
call fcn.0043a068
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043a068
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43a0c1
mov dword [0x45a8b0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43a210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43a260]
test si, 4
je 0x43a224
or bl, 1
test si, 8
je 0x43a22e
or bl, 4
test si, 1
je 0x43a238
or bl, 8
test si, 2
je 0x43a242
or bl, 0x10
test si, 0x10
je 0x43a24c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a25b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43a264
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43a29c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a27d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a28c
or bl, 4
test esi, 0x20000000
je 0x43a297
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43e6bc
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 0x43e861
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40d9d0]
call fcn.00402dcc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004039dc
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43e837
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.00448134
test al, al
je 0x43e82a
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x43e870
lea eax, [ebp - 0x254]
call fcn.0040821c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e82a
xor eax, eax
push ebp
push 0x43e823
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 0x43e8a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43e80c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c08
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 + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x43e80c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e82a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43e72d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00410850
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e868
lea eax, [ebp - 0x260]
call fcn.004039dc
ret
Function at 0x43eadc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45a888]
cmp byte [eax + 0x91], 0
jne 0x43eb4d
cmp dword [0x45a8c0], 0
jne 0x43eb0e
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x43ea98
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45a8c0], eax
cmp dword [0x45a8bc], 0
jne 0x43eb29
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45a8bc], eax
cmp dword [0x45a8c4], 0
jne 0x43eb4d
push esp
push 0
push 0
push 0x43ea3c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45a8c4], eax
pop edx
ret

Function at 0x43ec3c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43ec53
add esp, 0xfffffff0
call fcn.00403030
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004136b8
mov dl, 1
mov eax, dword [0x40d710]
call fcn.00402dcc
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x40d710]
call fcn.00402dcc
mov dword [ebx + 0x94], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x64], 0x1f4
mov dword [ebx + 0x68], 0x32
mov dword [ebx + 0x6c], 0x9c4
mov byte [ebx + 0x74], 0
mov byte [ebx + 0x89], 1
mov dl, 1
mov eax, dword [0x4350e8]
call fcn.0043801c
mov esi, eax
mov dword [ebx + 0x84], esi
push 0x43edb8
mov eax, dword [0x459c20]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004383b4
mov eax, dword [ebx + 0x84]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4404a0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x459c20]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0040b450
test eax, eax
je 0x43ed3d
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407c1c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b478
test eax, eax
je 0x43ed51
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x78]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c08
mov eax, dword [0x459b84]
cmp byte [eax], 0
jne 0x43ed82
mov eax, ebx
call fcn.0043eea0
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8a], 1
xor eax, eax
mov dword [ebx + 0x8c], eax
cmp byte [ebp - 1], 0
je 0x43edad
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f0f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45a888]
cmp dword [eax + 0x30], 0
je 0x43f18e
cmp dword [ebx + 0x80], 0
jne 0x43f188
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43f088
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x7c]
cmp dword [eax + 8], 0
je 0x43f188
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 0x43f157
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x7c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43f188
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x7c]
call fcn.0040ead8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43f163
inc dword [ebx + 0x80]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x43fa80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x90], 0
je 0x43fab5
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.00403ac0
jmp 0x43fabf
mov eax, esi
mov edx, dword [ebx + 0x78]
call fcn.00403a74
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x440710
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x70]
test esi, esi
je 0x440748
mov eax, esi
call fcn.00447120
test al, al
je 0x440748
mov eax, dword [ebx + 0x70]
call fcn.00446f88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x440748
push 0
mov eax, dword [ebx + 0x70]
call fcn.00446f88
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x445974
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x120], 0
je 0x445990
cmp dword [esi + 4], 0
je 0x4459bd
mov eax, ebx
call fcn.00444ab0
test eax, eax
jne 0x4459af
test byte [ebx + 0x21], 1
jne 0x4459af
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x445acd
mov edx, esi
mov eax, ebx
call fcn.004455d4
jmp 0x445acd
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x445ac6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00446f88
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00443938
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00445974
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00446f88
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445acd
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448a00
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.004039dc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x448a61
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x448a61
cmp byte [ebp - 0x102], 0
je 0x448a61
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403c08
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449f18
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x34], 0
je 0x449fa0
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449f4a
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449f5c
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x449f68
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00449d9c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x449f94
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x3c], 1
push ebp
mov eax, dword [ebp - 4]
call fcn.00449e88
pop ecx
mov ebx, eax
cmp bl, 2
je 0x449f68
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402000
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aab08
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea eax, [ebp - 0x71]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402ce0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00401ca0
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x402053
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x48]
mov eax, dword [eax + 4]
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push dword [ebp - 0x54]
call fcn.004593fa
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4c]
call edi
cmp dword [ebp - 0x58], 8
jb 0x4020a2
push dword [ebp - 0x6c]
call edi
xor eax, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x70]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x4d8b4f], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jne 0x40214d
push 0
push 0
push 0
push esi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
call eax
push 0
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40211b
cmp dword [ebp - 0x7c], 2
jne 0x40211b
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x4d8b4f], al
jmp 0x402120
mov al, byte [0x4d8b4f]
test al, al
jne 0x402141
push 0
lea eax, [ebp - 0x84]
push eax
push 2
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [0x4d8b4f], 1
push 2
push 0
push 0
push esi
call eax
cmp dword [ebp - 0x28], 8
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x402188
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402188
push esi
call eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x18]
mov eax, dword [eax + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.004593fa
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x4021b6
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458e9f
mov esp, ebp
pop ebp
ret
Function at 0x40ab61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40abd7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40ab99
push 0
push 0
jmp 0x40abd9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x40ab93
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
test eax, eax
je 0x40ab93
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.004594d0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.00458eae
int3
Function at 0x40b30d
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x3c4
mov eax, 0x49eeef
call fcn.0045a4e9
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
push 0x104
mov dword [ebp - 0x3d0], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40b359
lea ecx, [ebp - 0x234]
call fcn.0040b827
push 0x4c4a28
lea eax, [ebp - 0x234]
push eax
call fcn.00458eae
push pe_nt_image_headers32
lea eax, [ebp - 0x3c4]
push ebx
push eax
call fcn.00458f10
add esp, 0xc
lea eax, [ebp - 0x3c8]
push eax
mov dword [ebp - 0x3c8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, 0x4ac9c4
test eax, eax
je 0x40b4b9
cmp dword [ebp - 0x3b8], 1
jne 0x40b4b9
push ebx
lea eax, [ebp - 0x3c9]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x220], 0x4ac9cc
call fcn.00408f6d
push str.123.tmp
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.0040b9f3
cmp dword [ebp - 0x230], 8
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40b488
lea eax, [ebp - 0x278]
push ebx
push eax
call fcn.0040b51f
pop ecx
pop ecx
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040dbcc
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.004095e2
lea ecx, [ebp - 0x2b4]
call fcn.00401b80
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], bl
call fcn.00401b80
push str.temp
lea ecx, [ebp - 0x248]
call fcn.0040b9f3
push ebx
lea eax, [ebp - 0x248]
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], 0x4ac9cc
call fcn.00408e82
lea ecx, [ebp - 0x248]
jmp 0x40b512
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00401b80
push ebx
lea eax, [ebp - 0x3c9]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x250], 0x4ac9cc
call fcn.00408f6d
push 0x4ac8e8
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], 3
call fcn.0040b9f3
push ebx
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], 0x4ac9cc
call fcn.00408e82
lea ecx, [ebp - 0x278]
call fcn.00401b80
mov eax, esi
call fcn.0045a498
ret

Function at 0x40d6c2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x74736e49
mov dword [ebp - 0x18], 0x536c6c61
mov dword [ebp - 0x14], 0x6c656968
mov word [ebp - 0x10], 0x64
cmp byte [ebp + 0xc], al
je 0x40d709
mov dword [ebp - 0xf], 0x7a695720
mov dword [ebp - 0xb], 0x647261
push 1
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004090b1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00458e9f
leave
ret 8
Function at 0x40f29e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fa29
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.0045aa10
mov eax, dword [0x4d5e88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10a9]
push eax
lea ecx, [ebp - 0x1050]
mov dword [ebp - 0x10b8], ebx
mov dword [ebp - 0x1050], 0x4c0ee0
mov dword [ebp - 0x1028], 0x4c13e4
call fcn.00403f50
or dword [ebp - 0x10b0], 0xffffffff
mov dword [ebp - 4], ebx
add esi, 4
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x40f31e
mov esi, dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f416
lea ecx, [ebp - 0x10b0]
call fcn.00412b65
lea eax, [ebp - 0x10a8]
push eax
mov dword [ebp - 0x10b0], esi
call fcn.0044eb96
pop ecx
push ebx
lea eax, [ebp - 0x10b4]
push eax
push 0x1000
lea eax, [ebp - 0x1020]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f3a2
push dword [ebp - 0x10b4]
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x10a8]
push eax
call fcn.0044f27b
add esp, 0xc
cmp dword [ebp - 0x10b4], 0
ja 0x40f35e
lea eax, [ebp - 0x10a8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0044eb19
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
lea eax, [ebp - 0x1050]
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call fcn.00403b50
add esp, 0x50
push ebx
lea eax, [ebp - 0x1050]
push eax
mov ecx, edi
mov dword [edi], 0x4c0ee0
mov dword [edi + 0x28], 0x4c13e4
call fcn.004053a0
lea ecx, [ebp - 0x10b0]
call fcn.00412b65
lea ecx, [ebp - 0x1050]
call fcn.00401ac0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458e9f
leave
ret 8