joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461ca0
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 0x461cbc
cmp dword [esi + 4], 0
je 0x461ce9
test byte [ebx + 0x55], 1
jne 0x461cdb
mov eax, ebx
call fcn.00460840
test eax, eax
jne 0x461cdb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x461df9
mov edx, esi
mov eax, ebx
call fcn.004617c4
jmp 0x461df9
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 0x461df2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00463b10
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.0045e3c8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00461ca0
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.00463b10
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461df9
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 0x468530
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4856b0]
cmp byte [eax + 0xc], 0
je 0x46869d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x468696
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x486bc4], 0
jne 0x468584
push 0x4686a4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4686ac
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bc4], eax
cmp dword [0x484f10], 0
jne 0x46867f
push 0x4686bc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x484f10], eax
cmp dword [0x484f10], 0
je 0x46867f
push 0x4686c8
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bc8], eax
push 0x4686d8
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bcc], eax
push 0x4686ec
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bd0], eax
push 0x468704
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bd4], eax
push 0x46871c
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bd8], eax
push 0x468730
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bdc], eax
push 0x468748
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486be0], eax
push 0x468760
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486be4], eax
push 0x46877c
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486be8], eax
push 0x468788
mov eax, dword [0x484f10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x486bec], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46869d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x46ca90
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.00403f08
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x46cadf
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.00404178
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474238
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x474288]
test si, 4
je 0x47424c
or bl, 1
test si, 8
je 0x474256
or bl, 4
test si, 1
je 0x474260
or bl, 8
test si, 2
je 0x47426a
or bl, 0x10
test si, 0x10
je 0x474274
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x474283
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x47428c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4742c4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4742a5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4742b4
or bl, 4
test esi, 0x20000000
je 0x4742bf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x47a96c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47a97e
add esp, 0xfffffff0
call fcn.004034dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420c34
mov eax, dword [0x4852ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x47ad10
mov eax, dword [0x4852f8]
mov dword [eax + 4], ebx
mov dword [eax], 0x47ad1c
mov eax, ebx
call fcn.0047ad28
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415ff4]
call fcn.00403148
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415ff4]
call fcn.00403148
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415ff4]
call fcn.00403148
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415ff4]
call fcn.00403148
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415ff4]
call fcn.00403148
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, 0x477144
push eax
push 0
push 0
mov eax, dword [0x48546c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4226c0]
call fcn.00423e34
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4226c0]
call fcn.00423e34
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4226c0]
call fcn.00423e34
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0047b190
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47b06c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47b06c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47b06c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47aabb
call fcn.00403534
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47ae50
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 0x47affb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47afdc
mov dl, 1
mov eax, dword [0x416658]
call fcn.00403148
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f08
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47afcb
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.00468890
test al, al
je 0x47afbe
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, 0x47b00c
lea eax, [ebp - 0x254]
call fcn.00408f08
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47afbe
xor eax, eax
push ebp
push 0x47afb7
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 0x47b044
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47afa0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404178
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 0x47afa0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404178
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47afbe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47aec1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ac34
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 0x47b002
lea eax, [ebp - 0x260]
call fcn.00403f08
ret

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

Disassembly:
push ecx
mov eax, dword [0x486c10]
cmp byte [eax + 0xa5], 0
jne 0x47b9a1
cmp dword [0x486c28], 0
jne 0x47b962
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47b8ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x486c28], eax
cmp dword [0x486c24], 0
jne 0x47b97d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x486c24], eax
cmp dword [0x486c2c], 0
jne 0x47b9a1
push esp
push 0
push 0
push 0x47b890
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x486c2c], eax
pop edx
ret
Function at 0x47bac8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47badf
add esp, 0xfffffff0
call fcn.004034dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420c34
mov eax, dword [0x485454]
cmp word [eax + 2], 0
jne 0x47bb07
mov eax, dword [0x485454]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047d248
mov eax, dword [0x485524]
cmp word [eax + 2], 0
jne 0x47bb21
mov eax, dword [0x485524]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047d440
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415ff4]
call fcn.00403148
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415ff4]
call fcn.00403148
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], 0xff000018
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 [0x4231a0]
call fcn.0042a6c8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x47bca8
mov eax, dword [0x48535c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042aa98
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47d9e0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48535c]
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.0040c7d4
test eax, eax
je 0x47bc16
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004088e8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c7fc
test eax, eax
je 0x47bc2a
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.00404178
mov eax, dword [0x485228]
cmp byte [eax], 0
jne 0x47bc5e
mov eax, ebx
call fcn.0047bdd0
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.0047dbbc
mov eax, ebx
call fcn.0047e580
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47bc9e
call fcn.00403534
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c050
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x486c10]
cmp dword [eax + 0x30], 0
je 0x47c0fa
cmp dword [ebx + 0x94], 0
jne 0x47c0f4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47bfe0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47c0f4
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 0x47c0ba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47c0f4
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.00418844
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47c0c9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47cc5c
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 0x47cc91
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.00403ff8
jmp 0x47cc9e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f5c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47dd98
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47ddd9
mov eax, esi
call fcn.00463e14
test al, al
je 0x47ddd9
mov eax, dword [ebx + 0x84]
call fcn.00463b10
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47ddd9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00463b10
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4571f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x48000]
push edi
jmp 0x45720a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x457211
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x457200
mov eax, 1
add ebx, ebx
jne 0x457223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x457234
jne 0x457253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x457253
dec eax
add ebx, ebx
jne 0x457240
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x457218
add ebx, ebx
jne 0x45724f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4572a5
xor ecx, ecx
sub eax, 3
jb 0x45726b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4572da
sar eax, 1
mov ebp, eax
jmp 0x457276
add ebx, ebx
jne 0x457276
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x457244
inc ecx
add ebx, ebx
jne 0x457284
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x457244
add ebx, ebx
jne 0x457291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x457286
jne 0x4572a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x457286
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4572c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4572b6
jmp 0x457206
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4572c4
add edi, ecx
jmp 0x457206
pop esi
mov edi, esi
mov ecx, 0x1a7e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4572e2
cmp byte [edi], 4
jne 0x4572e2
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 0x4572e7
lea edi, [esi + 0x54000]
mov eax, dword [edi]
or eax, eax
je 0x45735f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x57000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x57118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x457314
mov ecx, edi
jns 0x457343
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 + 0x5711c]
or eax, eax
je 0x457359
mov dword [ebx], eax
add ebx, 4
jmp 0x457331
call dword [esi + 0x5712c]
mov ebp, dword [esi + 0x57120]
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 0x457393
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402d31
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
call edx
mov ebp, dword [esp + 0x14]
cmp ebp, 1
je 0x402d64
cmp ebp, 4
je 0x402d64
cmp ebp, 8
je 0x402d64
cmp ebp, 0x10
je 0x402d64
cmp ebp, 0x18
je 0x402d64
cmp ebp, 0x20
je 0x402d64
pop esi
xor al, al
pop ebp
ret 0xc
push ebx
push edi
mov edi, dword [esp + 0x14]
imul edi, ebp
shr edi, 3
mov eax, edi
and eax, 3
je 0x402d80
mov ecx, 4
sub ecx, eax
add edi, ecx
xor ebx, ebx
cmp ebp, 8
ja 0x402d95
mov edx, 1
mov ecx, ebp
shl edx, cl
mov dword [esi + 0x38], edx
jmp 0x402d98
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
lea ecx, [eax*4 + 0x28]
push ecx
call fcn.0041902a
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov dword [edx], 0x28
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
imul edi, eax
mov ecx, dword [esi + 8]
mov word [ecx + 0xe], bp
mov edx, dword [esi + 8]
mov word [edx + 0xc], 1
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], ebx
mov edx, dword [esi + 8]
mov dword [edx + 0x14], edi
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0041902a
add esp, 8
cmp ebp, 8
mov dword [esi + 0xc], eax
ja 0x402e71
mov ecx, ebp
mov eax, 1
shl eax, cl
xor ecx, ecx
cmp eax, ebx
mov dword [esi + 0x38], eax
jbe 0x402e71
nop
mov edi, dword [esi + 0x38]
xor edx, edx
sub edi, 1
mov eax, 0xff
div edi
mov edx, dword [esi + 8]
imul cl
mov byte [edx + ecx*4 + 0x28], al
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x28]
mov byte [eax + ecx*4 + 0x29], dl
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x29]
lea eax, [eax + ecx*4]
mov byte [eax + 0x2a], dl
mov eax, dword [esi + 8]
mov byte [eax + ecx*4 + 0x2b], bl
add ecx, 1
cmp ecx, dword [esi + 0x38]
jb 0x402e30
lea edi, [esi + 0x10]
mov esi, dword [esi + 8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0xc
Function at 0x403b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x455313
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebp
push esi
push edi
mov eax, dword [0x46a630]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x403bc5
xor edi, edi
jmp 0x403bd0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x403be3
xor esi, esi
jmp 0x403bee
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
lea eax, [esp + 0x4c]
push eax
call fcn.00406320
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x4c], vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], edi
mov dword [ecx], esi
mov edx, dword [esp + 0x70]
mov dword [edx], esi
mov ecx, dword [esp + 0x80]
lea eax, [esi + edi]
sub eax, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x5c]
mov dword [edx], esi
mov ecx, dword [esp + 0x6c]
mov dword [ecx], esi
mov edx, dword [esp + 0x7c]
mov dword [edx], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0xa8], 0
call fcn.00406150
mov byte [esp + 0xa0], 1
mov edx, dword [ebx + 0x74]
mov edx, dword [edx + 0x40]
lea edi, [ebx + 0x74]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov ebp, dword [ebx + 0xb0]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0xb0]
push 0x20
mov ecx, edi
add ebp, 0x3c
call edx
push eax
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
push eax
mov eax, dword [ebp]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
push edi
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push 0x1e
mov ecx, esi
call eax
mov edx, dword [esi]
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0041f0e9
mov byte [esp + 0xa0], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x18]
mov dword [esp + edx + 0x10], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x18], vtable.std::ios_base.0
push eax
call fcn.0044ff5a
mov dword [esp + 0xa4], 0xffffffff
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.ysl::storage::memory_streambuf.0
call fcn.00406420
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x94
ret