joyce8/EMBER2024-capa huggingface dataset:
Function at 0xfb5ec0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x1011014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call 0x4990000
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xfb60bb
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0xfb60bb
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.00fe3a50
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call 0x4970309
nop
test eax, eax
je 0xfb60bb
push 4
push 0x1000
push 4
push 0
call 0x4980d94
nop
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call 0x4970012
nop
test eax, eax
je 0xfb60bb
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0x1007cdc
push dword [ebp - 0x160]
call 0x4990124
nop
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0xfb5fdc
push 0x1007ce0
push 0x1007cf8
call 0x4980a0e
nop
push eax
call 0x49700dc
nop
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call 0x49701ee
nop
mov dword [ebp - 0x168], eax
test eax, eax
je 0xfb60bb
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call 0x4980ef6
nop
xor eax, eax
cmp ax, word [edi + 6]
jae 0xfb6075
mov ecx, 0xa0
xor ebx, ebx
mov dword [ebp - 0x164], ecx
nop dword [eax]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + esi + 0x68]
mov eax, dword [ecx + esi + 0x6c]
add eax, esi
push eax
mov eax, dword [ecx + esi + 0x64]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call 0x4980ef6
nop
mov ecx, dword [ebp - 0x164]
inc ebx
movzx eax, word [edi + 6]
add ecx, 0x28
mov dword [ebp - 0x164], ecx
cmp ebx, eax
jl 0xfb6030
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call 0x4980ef6
nop
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call 0x49703b6
nop
push dword [ebp - 0x15c]
call 0x4980b93
nop
push 0x8000
push 0
push esi
call 0x4980e32
nop
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00fcc951
mov esp, ebp
pop ebp
ret
Function at 0xfcd63c
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x49a0cfc
nop
test eax, eax
je 0xfcd67c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xfcd67c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xfcd67c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xfcd67c
cmp dword [ecx + 0x74], 0xe
jbe 0xfcd67c
cmp dword [ecx + 0xe8], 0
je 0xfcd67c
mov al, 1
ret
xor al, al
ret
Function at 0x40131c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40132e
mov eax, dword [0x4ed49b]
shl eax, 2
mov dword [0x4ed49f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004e0800
pop edx
call fcn.004dfae8
call fcn.004e0804
push 0
call fcn.004e17d4
pop ecx
push 0x4ed444
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4ed4a3], eax
push 0
jmp fcn.004e9a80

Function at 0x408c84
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x408c9f
xor eax, eax
jmp 0x408cff
cmp dword [esp + 4], 5
jb 0x408cfd
cmp dword [esp + 4], 5
jne 0x408cba
cmp dword [esp + 8], 0
jne 0x408cba
xor eax, eax
jmp 0x408cff
cmp dword [esp + 4], 5
jne 0x408cf6
cmp dword [esp + 8], 1
jne 0x408cf6
push str.Service_Pack
lea edx, [esp + 0x18]
push edx
call fcn.004e0cc0
add esp, 8
push str.Service_Pack_1
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jl 0x408cf2
mov eax, 1
jmp 0x408cff
xor eax, eax
jmp 0x408cff
mov eax, 1
jmp 0x408cff
xor eax, eax
add esp, 0x94
ret
Function at 0x40fa60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov ecx, eax
mov edi, dword [ebp + 8]
and cl, 0xff
mov esi, dword [ebp + 0x10]
and ecx, 0xff
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
movzx ecx, ax
sar ecx, 8
shr eax, 0x10
and cl, 0xff
and ecx, 0xff
and al, 0xff
mov dword [ebp - 0x14], ecx
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, edx
and al, 0xff
xor ecx, ecx
mov cl, al
movzx eax, dx
sar eax, 8
mov dword [ebp - 0x1c], ecx
shr edx, 0x10
and al, 0xff
xor ecx, ecx
and dl, 0xff
mov cl, al
and edx, 0xff
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
push edi
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
push esi
push ebx
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.DLL_SelectObject
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
cmp esi, ebx
jl 0x40fb05
mov esi, ebx
mov dword [ebp - 0x38], esi
fild dword [ebp - 0x38]
fmul dword [0x40fbec]
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004e55bc
add esp, 8
call fcn.004e5974
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jle 0x40fbc5
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
imul ebx
cdq
idiv esi
mov ecx, eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add cl, byte [ebp - 0x10]
imul ebx
cdq
idiv esi
add al, byte [ebp - 0x14]
and ecx, 0xff
and eax, 0xff
movzx edx, ax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
shl edx, 8
or ecx, edx
imul ebx
cdq
idiv esi
add al, byte [ebp - 0x18]
and eax, 0xff
shl eax, 0x10
or ecx, eax
push ecx
call sub.GDI32.DLL_CreateSolidBrush
mov edi, eax
push edi
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
push edi
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.USER32.DLL_FillRect
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.DLL_SelectObject
push edi
call sub.GDI32.DLL_DeleteObject
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
push ecx
call sub.USER32.DLL_InflateRect
inc ebx
cmp esi, ebx
jg 0x40fb30
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_CreatePatternBrush
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov edx, dword [ebp - 8]
push edx
call sub.GDI32.DLL_DeleteObject
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fbf0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push 0xff
push 1
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
call fcn.004167f8
add esp, 0x28
mov ebx, eax
test ebx, ebx
jne 0x40fc28
xor eax, eax
jmp 0x40fd04
lea edx, [ebp - 0x18]
push edx
push 0x18
push ebx
call sub.GDI32.DLL_GetObjectA
lea ecx, [ebp - 0x134]
push ecx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push 0x52cf4b
lea eax, [ebp - 0x134]
push eax
call sub.KERNEL32.DLL_lstrcatA
lea edx, [ebp - 0x134]
push edx
push ebx
call fcn.004177a8
add esp, 8
push ebx
call sub.GDI32.DLL_DeleteObject
cmp dword [ebp + 0x10], 1
jne 0x40fc9a
push 0x3030
push 0
push 0xff000000
push 6
mov ecx, dword [ebp - 0x14]
push ecx
lea eax, [ebp - 0x134]
push eax
call fcn.00405a80
push eax
call sub.COMCTL32.DLL_ImageList_LoadImageA
mov ebx, eax
jmp 0x40fcbd
push 0x3010
push 0
push 0xffffffffffffffff
push 6
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x134]
push edx
call fcn.00405a80
push eax
call sub.COMCTL32.DLL_ImageList_LoadImageA
mov ebx, eax
lea eax, [ebp - 0x134]
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0xa
mov dword [ebp - 0x28], 0xa
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x24], 0xa
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], edx
push ecx
push 0
push 0x1602
mov eax, dword [ebp + 8]
push eax
call sub.USER32.DLL_SendMessageA
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4160c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test eax, eax
je 0x4160e0
test ebx, ebx
jne 0x4160e4
xor eax, eax
jmp 0x41614d
push eax
call fcn.004c44e0
pop ecx
mov edi, eax
push ebx
call fcn.004c44e0
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
push edi
call fcn.00484894
pop ecx
mov eax, dword [ebp - 4]
push eax
call fcn.00484894
pop ecx
test ebx, ebx
jne 0x41611d
xor eax, eax
jmp 0x41614d
push ebx
push esi
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
push ebx
push esi
call sub.KERNEL32.DLL_LoadResource
test eax, eax
jne 0x416135
xor eax, eax
jmp 0x41614d
push eax
call sub.KERNEL32.DLL_LockResource
test eax, eax
jne 0x416143
xor eax, eax
jmp 0x41614d
push edi
push eax
call fcn.00416154
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4172f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov word [ebp - 8], 0
mov word [ebp - 6], 1
mov ax, word [ebp + 0xc]
lea edx, [ebp - 0xc]
mov word [ebp - 4], ax
push 0
push edx
lea ecx, [ebp - 8]
push 6
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x417348
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00417330
pop ecx
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00417330
pop ecx
add esi, eax
push 0x28
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.004e0898
mov dword [ebp - 0x2c], 0x28
mov ecx, dword [ebx + 4]
add esp, 0xc
mov dword [ebp - 0x28], ecx
mov eax, dword [ebx + 8]
add eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dx, word [ebx + 0x10]
mov word [ebp - 0x20], dx
lea edx, [ebp - 0x2c]
mov cx, word [ebx + 0x12]
mov word [ebp - 0x1e], cx
mov dword [ebp - 0x18], esi
push 0
push eax
push 0x28
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417414
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x18]
push ebx
push eax
push edx
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004173c0
add esp, 0x10
lea edx, [ebp - 0x40]
push edx
call fcn.00417330
pop ecx
mov ebx, eax
lea eax, [ebp - 0x58]
push eax
call fcn.00417330
add ebx, eax
pop ecx
mov ax, word [ebp - 0x2e]
mov edx, ebx
cmp ax, 8
jb 0x41745b
xor eax, eax
jmp 0x41746c
movzx ecx, ax
movzx eax, word [ebp - 0x30]
imul ecx, eax
mov eax, 1
shl eax, cl
mov cl, byte [ebp - 0x3c]
add edx, 0x28
mov byte [ebp - 0x28], cl
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0x27], cl
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0
mov ax, word [ebp - 0x30]
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x2e]
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 4]
mov dword [ebp - 0x1c], ecx
push 0
push eax
lea edx, [ebp - 0x28]
push 0x10
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
mov edx, dword [ebp - 0xc]
push edx
call sub.GDI32.DLL_DeleteObject
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4174cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 0x18
push ebx
call sub.GDI32.DLL_GetObjectA
lea edx, [ebp - 0x24]
push edx
call fcn.00417330
pop ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00483098
pop ecx
mov esi, eax
push esi
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.GDI32.DLL_GetBitmapBits
mov ebx, dword [ebp - 0x1c]
dec ebx
test ebx, ebx
jl 0x417554
lea edx, [ebp - 8]
push 0
push edx
mov ecx, ebx
mov eax, dword [ebp - 0x18]
imul ecx, eax
add ecx, esi
push eax
push ecx
push edi
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x18]
test al, 3
je 0x41754f
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], edx
mov edx, 4
push 0
sub edx, eax
push ecx
push edx
lea eax, [ebp - 0xc]
push eax
push edi
call sub.KERNEL32.DLL_WriteFile
dec ebx
test ebx, ebx
jge 0x417513
push esi
call fcn.004833dc
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4177a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov edi, eax
push esi
push edi
call sub.GDI32.DLL_SelectObject
lea eax, [ebp - 0x60]
push eax
push 0x18
push esi
call sub.GDI32.DLL_GetObjectA
mov ax, 0x18
mov word [ebp - 0x4e], ax
movzx edx, ax
imul edx, dword [ebp - 0x5c]
add edx, 0x1f
test edx, edx
jns 0x4177e9
add edx, 0x1f
sar edx, 5
shl edx, 2
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004e5ac0
imul dword [ebp - 0x54]
pop ecx
mov dword [ebp - 8], eax
mov word [ebp - 0x1c], 0x4d42
mov eax, dword [ebp - 8]
add eax, 0x36
mov dword [ebp - 0x1a], eax
xor eax, eax
mov word [ebp - 0x16], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 0x12], 0x36
mov dword [ebp - 0x48], 0x28
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], edx
xor edx, edx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x40], ecx
xor ecx, ecx
mov word [ebp - 0x3c], 1
mov word [ebp - 0x3a], 0x18
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor edx, edx
mov dword [ebp - 0x28], edx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 8]
push eax
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x417879
xor eax, eax
jmp 0x417916
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 4], eax
lea edx, [ebp - 0x48]
push 0
push edx
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp - 0x40]
push eax
push 0
push esi
push edi
call sub.GDI32.DLL_GetDIBits
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x417900
lea eax, [ebp - 0xc]
push 0
push eax
lea edx, [ebp - 0x1c]
push 0xe
push edx
push esi
call sub.KERNEL32.DLL_WriteFile
lea ecx, [ebp - 0xc]
push 0
push ecx
lea eax, [ebp - 0x48]
push 0x28
push eax
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov esi, 1
jmp 0x417902
xor esi, esi
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
call sub.KERNEL32.DLL_GlobalFree
push edi
call sub.GDI32.DLL_DeleteDC
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417920
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov eax, dword [esi]
mov dword [0x5c6454], eax
mov edx, dword [edi]
push 0xff
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push edx
push eax
mov ecx, dword [ebp + 8]
mov dword [0x5c6458], edx
push ecx
call fcn.004167f8
add esp, 0x28
mov ebx, eax
test ebx, ebx
jne 0x41796d
xor eax, eax
jmp 0x417a26
lea edx, [ebp - 0x18]
push edx
push 0x18
push ebx
call sub.GDI32.DLL_GetObjectA
test esi, esi
je 0x417982
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test edi, edi
je 0x41798b
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
lea edx, [ebp - 0x11c]
push edx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push str._MG_temp.BMP
lea ecx, [ebp - 0x11c]
push ecx
call sub.KERNEL32.DLL_lstrcatA
lea eax, [ebp - 0x11c]
push eax
push ebx
call fcn.004177a8
add esp, 8
push ebx
call sub.GDI32.DLL_DeleteObject
cmp dword [ebp + 0x10], 1
jne 0x4179f3
push 0x3030
push 0
push 0xff000000
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x14]
push ecx
lea eax, [ebp - 0x11c]
push eax
call fcn.00405a80
push eax
call sub.COMCTL32.DLL_ImageList_LoadImageA
mov ebx, eax
jmp 0x417a18
push 0x3010
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00405a80
push eax
call sub.COMCTL32.DLL_ImageList_LoadImageA
mov ebx, eax
lea eax, [ebp - 0x11c]
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e7ec
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
mov ebx, 0x80070057
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x41e978
push esi
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x41e978
cmp dword [ebp + 0xc], 0
je 0x41e978
test edi, edi
je 0x41e978
push edi
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x41e978
cmp dword [ebp + 0x14], 0
je 0x41e978
cmp dword [ebp + 0x18], 0
jl 0x41e978
cmp dword [ebp + 0x1c], 0
je 0x41e978
cmp dword [ebp + 0x20], 0
je 0x41e978
cmp dword [ebp + 0x24], 0
jl 0x41e978
lea eax, [ebp - 4]
push eax
push 0x5c295c
push 1
push 0
push 0x5c296c
call sub.OLE32.DLL_CoCreateInstance
mov ebx, eax
test ebx, ebx
jl 0x41e978
push esi
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, dword [ebp + 0x14]
push ecx
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x41e8bd
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x1c]
cmp dword [ebp + 0x18], 0
jle 0x41e8d0
mov eax, dword [ebp + 0x18]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x1c]
push eax
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x41e8ea
mov edx, dword [ebp + 0x1c]
push edx
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edx, dword [ebp + 0x20]
push edx
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x41e90e
cmp dword [ebp + 0x24], 0
jl 0x41e90e
mov ecx, dword [ebp + 0x24]
push ecx
mov eax, dword [ebp + 0x20]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x44]
cmp word [ebp + 0x28], 0
je 0x41e923
mov ax, word [ebp + 0x28]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x34]
lea eax, [ebp - 8]
push eax
push 0x5c299c
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov ebx, eax
test ebx, ebx
jl 0x41e96f
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4232f8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, eax
and eax, 0xff
and esi, 0xff00
mov dword [ebp - 8], eax
shr esi, 8
mov byte [ebx], 0
mov eax, esi
mov edi, esi
mov edx, esi
and edi, 4
and edx, 1
and eax, 2
test eax, eax
mov dword [ebp - 4], edx
je 0x42333a
mov eax, str.Ctrl_
jmp 0x42333f
mov eax, 0x5778db
push eax
push ebx
call sub.KERNEL32.DLL_lstrcatA
cmp dword [ebp - 4], 0
je 0x423353
mov edx, str.Shift_
jmp 0x423358
mov edx, 0x5778db
push edx
push ebx
call sub.KERNEL32.DLL_lstrcatA
test edi, edi
je 0x42336a
mov eax, str.Alt_
jmp 0x42336f
mov eax, 0x5778db
push eax
push ebx
call sub.KERNEL32.DLL_lstrcatA
mov edi, ebx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.USER32.DLL_MapVirtualKeyA
test esi, 8
mov ebx, eax
je 0x423398
shl ebx, 0x10
or ebx, 0x3000000
jmp 0x4233a1
shl ebx, 0x10
or ebx, 0x2000000
push 0x64
push edi
call sub.KERNEL32.DLL_lstrlenA
add edi, eax
push edi
push ebx
call sub.USER32.DLL_GetKeyNameTextA
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x428b74
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0
push 0
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov ebx, eax
test ebx, ebx
je 0x428bd2
test esi, esi
je 0x428b9a
push esi
call fcn.00428c4c
pop ecx
inc eax
add ebx, eax
push ebx
call fcn.004847cc
pop ecx
mov edi, eax
push ebx
push edi
call sub.KERNEL32.DLL_GetSystemDirectoryA
test esi, esi
je 0x428bcc
mov eax, ebx
dec eax
push eax
push 0x586ce5
push edi
call fcn.00428c10
add esp, 0xc
dec ebx
push ebx
push esi
push edi
call fcn.00428c10
add esp, 0xc
mov eax, edi
jmp 0x428bd9
push esi
call fcn.00428be0
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42a680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x42a6a0
xor eax, eax
jmp 0x42a70a
push ebx
push 0
call sub.KERNEL32.DLL_LoadResource
mov esi, eax
test esi, esi
jne 0x42a6b2
xor eax, eax
jmp 0x42a70a
push esi
call sub.KERNEL32.DLL_LockResource
mov edi, eax
test edi, edi
jne 0x42a6c2
xor eax, eax
jmp 0x42a70a
push ebx
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x42a6e8
push esi
call sub.KERNEL32.DLL_FreeResource
xor eax, eax
jmp 0x42a70a
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov edx, dword [ebp - 4]
push edx
push edi
push eax
call fcn.004e0828
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push esi
call sub.KERNEL32.DLL_FreeResource
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x42a710
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42a73d
xor eax, eax
jmp 0x42a790
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
cmp edi, 0xffffffff
jne 0x42a756
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x42a790
push edi
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov esi, eax
test esi, esi
jne 0x42a76e
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x42a790
push esi
call sub.KERNEL32.DLL_GlobalLock
push 0
lea edx, [ebp - 4]
push edx
push edi
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
push esi
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret