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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x430970
mov eax, esi
call fcn.004462a8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x430970
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x430970
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x430ab4
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4309b0
cmp eax, 0x108
ja 0x4309b0
mov eax, esi
call fcn.004462a8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x430aab
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x430ab4
jmp 0x430aab
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x430a92
cmp eax, 0x20a
ja 0x430a92
test byte [esi + 0x50], 0x80
jne 0x4309e2
sub eax, 0x203
je 0x4309df
sub eax, 3
je 0x4309df
sub eax, 3
jne 0x4309e2
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4309f6
dec eax
je 0x430a0b
dec eax
je 0x430a2b
dec eax
je 0x430a0b
jmp 0x430a32
mov ecx, ebx
mov eax, dword [0x452e48]
mov eax, dword [eax]
mov edx, esi
call fcn.0044f96c
jmp 0x430aab
cmp byte [esi + 0x5d], 1
jne 0x430a21
mov eax, esi
mov si, 0xffed
call fcn.00403720
jmp 0x430ab4
or word [esi + 0x54], 1
jmp 0x430aab
and word [esi + 0x54], 0xfffe
jmp 0x430aab
mov eax, dword [0x453b64]
cmp byte [eax + 0x20], 0
je 0x430aab
mov eax, dword [0x453b64]
cmp dword [eax + 0x1c], 0
je 0x430aab
mov eax, dword [ebx]
mov edx, dword [0x453b64]
cmp eax, dword [edx + 0x1c]
jne 0x430aab
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004461ec
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403720
jmp 0x430ab4
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x430aab
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042f250
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433f54
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 + 0x1f8], 0
je 0x433f70
cmp dword [esi + 4], 0
je 0x433f9d
test byte [ebx + 0x55], 1
jne 0x433f8f
mov eax, ebx
call fcn.00432bac
test eax, eax
jne 0x433f8f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4340ad
mov edx, esi
mov eax, ebx
call fcn.00433a74
jmp 0x4340ad
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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 0x4340a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00435d24
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.00430858
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00433f54
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 + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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.00435d24
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4340ad
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 0x43a54c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x452f8c]
cmp byte [eax + 0xc], 0
je 0x43a6b9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a6b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x453bb8], 0
jne 0x43a5a0
push 0x43a6c0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43a6c8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bb8], eax
cmp dword [0x4529c8], 0
jne 0x43a69b
push 0x43a6d8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4529c8], eax
cmp dword [0x4529c8], 0
je 0x43a69b
push 0x43a6e4
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bbc], eax
push 0x43a6f4
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bc0], eax
push 0x43a708
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bc4], eax
push 0x43a720
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bc8], eax
push 0x43a738
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bcc], eax
push 0x43a74c
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bd0], eax
push 0x43a764
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bd4], eax
push 0x43a77c
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bd8], eax
push 0x43a798
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453bdc], eax
push 0x43a7a4
mov eax, dword [0x4529c8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453be0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a6b9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43e2cc
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.00404278
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43e31b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044e0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44615c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4461ac]
test si, 4
je 0x446170
or bl, 1
test si, 8
je 0x44617a
or bl, 4
test si, 1
je 0x446184
or bl, 8
test si, 2
je 0x44618e
or bl, 0x10
test si, 0x10
je 0x446198
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4461a7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4461b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4461e8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4461c9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4461d8
or bl, 4
test esi, 0x20000000
je 0x4461e3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c7ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c7fe
add esp, 0xfffffff0
call fcn.00403870
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b330
mov eax, dword [0x452cc4]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cb90
mov eax, dword [0x452cd0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44cb9c
mov eax, ebx
call fcn.0044cba8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411390]
call fcn.004034f4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411390]
call fcn.004034f4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411390]
call fcn.004034f4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411390]
call fcn.004034f4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411390]
call fcn.004034f4
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, 0x449070
push eax
push 0
push 0
mov eax, dword [0x452de4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ccc0]
call fcn.0041e0c4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ccc0]
call fcn.0041e0c4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ccc0]
call fcn.0041e0c4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044cfc8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cea4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cea4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cea4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c93b
call fcn.004038c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44cc88
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 0x44ce33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ce14
mov dl, 1
mov eax, dword [0x411880]
call fcn.004034f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404278
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ce03
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.0043a8ac
test al, al
je 0x44cdf6
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, 0x44ce44
lea eax, [ebp - 0x254]
call fcn.00408e7c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44cdf6
xor eax, eax
push ebp
push 0x44cdef
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 0x44ce7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44cdd8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e0
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 0x44cdd8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cdf6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ccf9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004159c8
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 0x44ce3a
lea eax, [ebp - 0x260]
call fcn.00404278
ret

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

Disassembly:
push ecx
mov eax, dword [0x453bfc]
cmp byte [eax + 0xa5], 0
jne 0x44d7d9
cmp dword [0x453c14], 0
jne 0x44d79a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d724
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453c14], eax
cmp dword [0x453c10], 0
jne 0x44d7b5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453c10], eax
cmp dword [0x453c18], 0
jne 0x44d7d9
push esp
push 0
push 0
push 0x44d6c8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453c18], eax
pop edx
ret
Function at 0x44d8d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44d8e7
add esp, 0xfffffff0
call fcn.00403870
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b330
mov eax, dword [0x452dd4]
cmp word [eax + 2], 0
jne 0x44d90f
mov eax, dword [0x452dd4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ef94
mov eax, dword [0x452e5c]
cmp word [eax + 2], 0
jne 0x44d929
mov eax, dword [0x452e5c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f18c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411390]
call fcn.004034f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411390]
call fcn.004034f4
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], 0x80000018
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 [0x41d470]
call fcn.0042307c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44dab0
mov eax, dword [0x452d18]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042344c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f6fc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x452d18]
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.0040a6f8
test eax, eax
je 0x44da1e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004087d8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a720
test eax, eax
je 0x44da32
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.004044e0
mov eax, dword [0x452c44]
cmp byte [eax], 0
jne 0x44da66
mov eax, ebx
call fcn.0044dbd8
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.0044f8d8
mov eax, ebx
call fcn.00450218
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44daa6
call fcn.004038c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44de4c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bfc]
cmp dword [eax + 0x30], 0
je 0x44def6
cmp dword [ebx + 0x94], 0
jne 0x44def0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44dddc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44def0
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 0x44deb6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44def0
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.00413a30
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44dec5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e9d4
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 0x44ea09
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.00404368
jmp 0x44ea16
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44fab4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44faf5
mov eax, esi
call fcn.00436028
test al, al
je 0x44faf5
mov eax, dword [ebx + 0x84]
call fcn.00435d24
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44faf5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435d24
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x450350
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, ebx
call fcn.00404728
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x450402
xor eax, eax
push ebp
push 0x4503fb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, 2
call fcn.004502e8
push eax
xor eax, eax
call fcn.004502e8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4503c8
mov eax, 2
call fcn.004502e8
cmp eax, dword [ebp - 0xc]
je 0x4503cc
xor eax, eax
jmp 0x4503ce
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x4503e4
mov eax, ebx
call fcn.00404728
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450402
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45040c
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x450544
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.0040486c
push 0x104
lea eax, [ebp - 8]
call fcn.00404780
push eax
push 0x450558
call sub.kernel32.dll_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 8]
call fcn.0040486c
mov eax, dword [ebp - 8]
call fcn.00404530
test eax, eax
jle 0x450526
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402dcc
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push dword [ebp - 8]
push 0x450568
push ebx
push 0x450578
push esi
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.004045f0
mov eax, dword [ebp - 0x60]
call fcn.00404728
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x450526
xor eax, eax
push ebp
push 0x45051f
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450526
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45054b
lea eax, [ebp - 0x60]
call fcn.00404278
lea eax, [ebp - 8]
call fcn.00404278
ret

Function at 0x45057c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404728
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x450599
and eax, 0x10
cmp eax, 0x10
je 0x45059d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x401290
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4149a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x41d004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 2
jge 0x4012eb
push str.synchronizer__id__n
push 2
call fcn.00405636
add esp, 4
push eax
call fcn.00401260
add esp, 8
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x190
mov esi, eax
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401399
push edi
push esi
call ebx
test eax, eax
je 0x401399
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401399
push edi
lea ecx, [ebp - 0x24]
call fcn.00401200
push edi
push dword [ebp + 8]
push dword [ebp - 0x24]
call fcn.00402fa0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebp - 0x24]
xor ecx, ecx
sub eax, edx
je 0x401399
xor byte [edx + ecx], 0x55
inc ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
sub eax, edx
cmp ecx, eax
jb 0x401388
push 0x190
push 0xc8
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401402
push edi
push esi
call ebx
test eax, eax
je 0x401402
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x401402
push esi
lea ecx, [ebp - 0x18]
call fcn.00401200
push esi
push ebx
push dword [ebp - 0x18]
call fcn.00402fa0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x18]
xor ecx, ecx
sub eax, edx
je 0x401402
xor byte [edx + ecx], 0x55
inc ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, edx
cmp ecx, eax
jb 0x4013f1
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call fcn.0040552f
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00401510
add esp, 0x10
test al, al
je 0x40143e
push str.success_n
push 2
call fcn.00405636
add esp, 4
push eax
call fcn.00401260
add esp, 8
xor esi, esi
jmp 0x401459
push str.failed_n
push 2
call fcn.00405636
add esp, 4
push eax
call fcn.00401260
add esp, 8
or esi, 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401140
lea ecx, [ebp - 0x24]
call fcn.00401140
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4014c0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call fcn.004014d8