joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438bdc
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 0x438bf8
cmp dword [esi + 4], 0
je 0x438c25
test byte [ebx + 0x55], 1
jne 0x438c17
mov eax, ebx
call fcn.0043777c
test eax, eax
jne 0x438c17
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x438d35
mov edx, esi
mov eax, ebx
call fcn.00438700
jmp 0x438d35
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 0x438d2e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043aa4c
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.00435404
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00438bdc
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.0043aa4c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438d35
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 0x43f380
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x483054]
cmp byte [eax + 0xc], 0
je 0x43f4ed
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f4e6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x484b24], 0
jne 0x43f3d4
push 0x43f4f4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f4fc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b24], eax
cmp dword [0x481b18], 0
jne 0x43f4cf
push 0x43f50c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x481b18], eax
cmp dword [0x481b18], 0
je 0x43f4cf
push 0x43f518
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b28], eax
push 0x43f528
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b2c], eax
push 0x43f53c
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b30], eax
push 0x43f554
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b34], eax
push 0x43f56c
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b38], eax
push 0x43f580
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b3c], eax
push 0x43f598
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b40], eax
push 0x43f5b0
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b44], eax
push 0x43f5cc
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b48], eax
push 0x43f5d8
mov eax, dword [0x481b18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x484b4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f4ed
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4433a0
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.0040424c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4433ef
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.004044bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44abec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ac3c]
test si, 4
je 0x44ac00
or bl, 1
test si, 8
je 0x44ac0a
or bl, 4
test si, 1
je 0x44ac14
or bl, 8
test si, 2
je 0x44ac1e
or bl, 0x10
test si, 0x10
je 0x44ac28
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ac37
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44ac40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ac78]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ac59
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ac68
or bl, 4
test esi, 0x20000000
je 0x44ac73
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45133c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45134e
add esp, 0xfffffff0
call fcn.004037d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419dac
mov eax, dword [0x482d04]
mov dword [eax + 4], ebx
mov dword [eax], 0x4516e0
mov eax, dword [0x482d14]
mov dword [eax + 4], ebx
mov dword [eax], 0x4516ec
mov eax, ebx
call fcn.004516f8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411f68]
call fcn.00403470
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411f68]
call fcn.00403470
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411f68]
call fcn.00403470
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411f68]
call fcn.00403470
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411f68]
call fcn.00403470
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, 0x44db10
push eax
push 0
push 0
mov eax, dword [0x482e6c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b864]
call fcn.0041d020
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b864]
call fcn.0041d020
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b864]
call fcn.0041d020
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451bfc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451a7c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451a7c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451a7c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45148b
call fcn.00403830
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451860
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 0x451a0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4519ec
mov dl, 1
mov eax, dword [0x412384]
call fcn.00403470
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040424c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4519db
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.0043f6e0
test al, al
je 0x4519ce
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, 0x451a1c
lea eax, [ebp - 0x254]
call fcn.00409194
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4519ce
xor eax, eax
push ebp
push 0x4519c7
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 0x451a54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4519b0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044bc
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 0x4519b0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4519ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4518d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415f44
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 0x451a12
lea eax, [ebp - 0x260]
call fcn.0040424c
ret

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

Disassembly:
push ecx
mov eax, dword [0x484b70]
cmp byte [eax + 0xa5], 0
jne 0x45240d
cmp dword [0x484b88], 0
jne 0x4523ce
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452358
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x484b88], eax
cmp dword [0x484b84], 0
jne 0x4523e9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x484b84], eax
cmp dword [0x484b8c], 0
jne 0x45240d
push esp
push 0
push 0
push 0x4522fc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x484b8c], eax
pop edx
ret
Function at 0x452aa0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x484b70]
cmp dword [eax + 0x30], 0
je 0x452b4a
cmp dword [ebx + 0x94], 0
jne 0x452b44
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452a30
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452b44
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 0x452b0a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452b44
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.004142e4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452b19
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4536a8
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 0x4536dd
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.0040433c
jmp 0x4536ea
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4547fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45483d
mov eax, esi
call fcn.0043ad50
test al, al
je 0x45483d
mov eax, dword [ebx + 0x84]
call fcn.0043aa4c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45483d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043aa4c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45a72c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45a75a
mov eax, ebx
call fcn.0045b1e0
cmp dword [ebx + 0x40], 0
je 0x45a753
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45a7cb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45a7bd
cmp dword [ebx + 8], 0
je 0x45a77c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45a78e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45a7bd
cmp dword [ebx + 8], 0
je 0x45a76f
cmp eax, 3
je 0x45a7a1
dec eax
jne 0x45a76f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45a76f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45a76f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45a7e9
cmp dword [ebx + 0x14], 0xcc
je 0x45a7e9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045a7f4
pop ebx
ret
Function at 0x473c00
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x290], 1
push 0
mov eax, ebx
call fcn.0043aa4c
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebx + 0x211], 0
je 0x473c38
mov edx, dword [ebx + 0x294]
mov eax, ebx
call fcn.004339fc
mov byte [ebx + 0x211], 0
jmp 0x473c41
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x294], eax
mov byte [ebx + 0x234], 0
xor edx, edx
mov eax, dword [ebx + 0x28c]
call fcn.0042b8a4
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x22c], eax
cmp byte [ebx + 0x244], 0
jne 0x473c81
call fcn.004723e4
mov edx, eax
mov dword [ebx + 0x240], edx
mov eax, edx
add eax, dword [ebx + 0x22c]
call fcn.0047243c
mov al, byte [0x473cbc]
mov byte [ebx + 0x21c], al
mov byte [ebx + 0x290], 0
mov byte [ebx + 0x244], 1
xor edx, edx
mov eax, ebx
call fcn.004339fc
mov byte [ebx + 0x211], 1
mov dl, 1
mov eax, dword [ebx + 0x28c]
call fcn.0042b8a4
pop ebx
ret

Function at 0x4740d0
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffcc
mov ebx, edx
push 0
push 0x47415c
call sub.user32.dll_FindWindowA
mov dword [esp + 4], eax
mov dword [esp], 0x24
push esp
push 5
call sub.shell32.dll_SHAppBarMessage
test eax, eax
jne 0x474143
mov esi, 3
mov eax, dword [0x48302c]
mov eax, dword [eax]
call fcn.0045155c
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x48302c]
mov eax, dword [eax]
call fcn.00451568
push eax
mov eax, dword [0x48302c]
mov eax, dword [eax]
call fcn.0045155c
mov edx, eax
xor eax, eax
pop ecx
call fcn.004062e8
push esi
lea esi, [esp + 0x28]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
jmp 0x474153
mov esi, dword [esp + 0xc]
push esi
mov edi, ebx
lea esi, [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov eax, esi
add esp, 0x34
pop edi
pop esi
pop ebx
ret
Function at 0x40a023
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40a0c3
cmp byte [esi + 0x5c], 0x77
jne 0x40a0c3
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push edi
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ebx
je 0x40a0a7
mov edi, 0x4000
cmp dword [esi + 0x10], 0
jne 0x40a074
push dword [esi + 0x40]
mov eax, dword [esi + 0x48]
mov dword [esi + 0xc], eax
push edi
push 1
push eax
call fcn.0040f743
add esp, 0x10
cmp eax, edi
jne 0x40a0a3
mov dword [esi + 0x10], edi
mov eax, dword [esi + 4]
push 0
add dword [esi + 0x64], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push esi
call fcn.0040a5c3
mov edx, dword [esi + 0x10]
pop ecx
sub dword [esi + 0x68], edx
pop ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x38], eax
sub dword [esi + 0x64], ecx
test eax, eax
jne 0x40a0a7
test ecx, ecx
jne 0x40a052
jmp 0x40a0a7
or dword [esi + 0x38], 0xffffffff
push ebx
push dword [esp + 0x18]
push dword [esi + 0x4c]
call fcn.0040ba5b
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, ebx
sub eax, dword [esi + 4]
pop edi
pop ebx
pop esi
ret
push 0xfffffffffffffffe
pop eax
pop esi
ret

Function at 0x40a0c8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x40a172
cmp byte [esi + 0x5c], 0x77
jne 0x40a172
mov dword [esi + 4], ebx
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x40a112
push dword [esi + 0x40]
push edi
push 1
push dword [esi + 0x48]
call fcn.0040f743
add esp, 0x10
cmp eax, edi
jne 0x40a15c
mov eax, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], eax
test ebx, ebx
jne 0x40a164
push dword [esp + 0x14]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push esi
call fcn.0040a5c3
pop ecx
mov dword [esi + 0x38], eax
pop ecx
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
test edi, edi
jne 0x40a13d
cmp eax, 0xfffffffb
jne 0x40a13d
and dword [esi + 0x38], edi
test ecx, ecx
jne 0x40a14b
cmp dword [esi + 0x38], 1
je 0x40a14b
xor ebx, ebx
jmp 0x40a14e
push 1
pop ebx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40a0e6
cmp eax, 1
jne 0x40a164
jmp 0x40a0e6
or eax, 0xffffffff
mov dword [esi + 0x38], eax
jmp 0x40a175
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
jmp 0x40a175
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x40b04e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x40b0d6
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00410170
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x40b099
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x40b0bb
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x40b131
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.0040b136
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x40b11d
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x40b131
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40b05a
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x643730
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x150000]
push edi
jmp 0x64374a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x643751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643740
mov eax, 1
add ebx, ebx
jne 0x643763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x643774
jne 0x643793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643793
dec eax
add ebx, ebx
jne 0x643780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x643758
add ebx, ebx
jne 0x64378f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6437e5
xor ecx, ecx
sub eax, 3
jb 0x6437ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x64381a
sar eax, 1
mov ebp, eax
jmp 0x6437b6
add ebx, ebx
jne 0x6437b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643784
inc ecx
add ebx, ebx
jne 0x6437c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643784
add ebx, ebx
jne 0x6437d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6437c6
jne 0x6437e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6437c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x643804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6437f6
jmp 0x643746
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x643804
add edi, ecx
jmp 0x643746
pop esi
mov edi, esi
mov ecx, 0x4ccc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x643822
cmp byte [edi], 0x1e
jne 0x643822
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 0x643827
lea edi, [esi + 0x23f000]
mov eax, dword [edi]
or eax, eax
je 0x64389f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x244944]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x244a98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x643854
mov ecx, edi
jns 0x643883
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 + 0x244a9c]
or eax, eax
je 0x643899
mov dword [ebx], eax
add ebx, 4
jmp 0x643871
call dword [esi + 0x244aac]
mov ebp, dword [esi + 0x244aa0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x6438d3
sub esp, 0xffffff80
jmp 0x4a1af3