joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53fc80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x582310
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005763f7
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x53fcb3
xor al, al
jmp 0x53fddf
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x53fcd5
xor al, al
jmp 0x53fddf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x53fce8
xor al, al
jmp 0x53fddf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x53fcfc
xor al, al
jmp 0x53fddf
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0056a01d
test eax, eax
jne 0x53fd30
xor al, al
jmp 0x53fddf
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x678804
mov dword [esp + 0x20], ebp
call fcn.005763f7
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00572f88
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00572fdf
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x53fdc4
mov ax, word [ebx]
test ax, ax
je 0x53fdb6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0053fe00
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x53fd9a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00572fdf
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x540300
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.005746eb
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x540346
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00559a88
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x6a1ef8
push ecx
call fcn.0055baee
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x544960
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6ec0c8]
xor edx, edx
cmp eax, edx
jne 0x544986
xor eax, eax
mov byte [eax + 0x6ebfc8], al
inc eax
cmp eax, 0x100
jl 0x54496e
mov dword [0x6ec0c8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6ebfc8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x544a17
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5449ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5449b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x544a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x544ae3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x544aca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54b450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58256e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0054bd70
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x678a54
call fcn.0056bbef
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x54b4e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0056bbef
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x54b4dc
push 0
mov ecx, eax
call fcn.005425d0
mov dword [esi + 0xc], eax
jmp 0x54b4e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x54b4e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x56e2f7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x56e32f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0056c309
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0056c2e1
jmp 0x56e33b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x56fc71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x56fcb3
call fcn.005763f7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x56fcb3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x56fcaa
xor eax, eax
jmp 0x56fcbb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0056fcc1
pop edi
pop esi
pop ebx
ret 4

Function at 0x576927
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x576955
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x576973
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0057688d
jmp 0x576973
mov eax, dword [esi + 0x14]
test eax, eax
je 0x576973
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0057688d
test edi, edi
mov eax, edi
jne 0x57695d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x579204
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x57922c
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x57923d
push 2
call edi
test ax, ax
jge 0x57923d
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0056d92d
cmp dword [esi + 0x30], ebx
jne 0x579317
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0056d92d
cmp eax, dword [esp + 0x34]
jne 0x579317
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5792b3
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5792f8
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x579317
cmp eax, 0x205
je 0x579317
cmp eax, 0x201
je 0x579317
cmp eax, 0x204
je 0x579317
cmp eax, ebx
jne 0x5792de
cmp dword [esp + 0x1c], 0x1b
je 0x579317
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x6fdbd8]
jbe 0x57930d
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x579270
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x30001bac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30001634]
jne 0x30001bb5
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30003168], eax
mov dword [0x30003164], ecx
mov dword [0x30003160], edx
mov dword [0x3000315c], ebx
mov dword [0x30003158], esi
mov dword [0x30003154], edi
mov word [0x30003180], ss
mov word [0x30003174], cs
mov word [0x30003150], ds
mov word [0x3000314c], es
mov word [0x30003148], fs
mov word [0x30003144], gs
pushfd
pop dword [0x30003178]
mov eax, dword [ebp]
mov dword [0x3000316c], eax
mov eax, dword [ebp + 4]
mov dword [0x30003170], eax
lea eax, [ebp + 8]
mov dword [0x3000317c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300030b8], 0x10001
mov eax, dword [0x30003170]
mov dword [0x3000306c], eax
mov dword [0x30003060], 0xc0000409
mov dword [0x30003064], 1
mov eax, dword [0x30001634]
mov dword [ebp - 0x328], eax
mov eax, dword [section..data]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x300030b0], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30001cbc
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x300030b0], 0
jne 0x30001ca5
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x43c05d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4bf4f4
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x43c0dd
arpl word [edx + esi], si
add ch, byte [edi + 0x31]
sub dword [eax + 0x70388653], edi
sub al, byte [ecx - 0x655bcad7]
xor al, 0x18
push edi
sbb ecx, dword [0xb2b35f85]
xor eax, 0x34369aa4
sbb byte [edi + 0x1b], dl
or eax, 0xb2b35f85
mov bl, 0xb2
push es
push esp
aam 0xf9
aam 0xa1
inc edi
inc esi
or al, byte fs:[esi]
xor al, 0x14
mul bh
je 0x43c097
int 0x6d
pushfd
retf
mov edi, 0x3f59c67f
pop eax
pop esp
xor eax, 0xd5a48a8d
push ecx
or ch, bh
mov edi, 0x761167b3
dec edx
xchg ebx, eax
out 0x6a, eax
std
std
test dword [edi], ebx
add byte [ebp + 0x38], ch
not dword [ecx]
insb byte es:[edi], dx
aas
out dx, al
loopne 0x43c08c
fld dword [ebx]
fist word [ebx]
test eax, 0x7e660e7b
iretd
jle 0x43c0af
and eax, 0xfc4bcd48
aaa
invalid

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x79472fd3
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x29800b74
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40175c
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x40806c]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
mov eax, dword [ebp + 0x2b0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push edi
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp + 0x94]
push ecx
xor ebx, ebx
mov edi, 0x104
push edi
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], 1
mov byte [ebp - 0x74], bl
mov byte [ebp + 0x19c], bl
mov byte [ebp + 0x94], bl
call esi
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x4017c1
mov byte [eax], bl
lea eax, [ebp + 0x94]
push eax
call fcn.0040120a
pop ecx
test eax, eax
jne 0x401849
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x94]
push 0x4064d0
push eax
call fcn.0040112c
add esp, 0x10
inc dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0x78]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp + 0x19c]
push eax
push edi
push eax
call esi
lea eax, [ebp + 0x19c]
push eax
call fcn.0040120a
pop ecx
test eax, eax
jne 0x401842
push ebx
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
cmp byte [eax], bl
jne 0x4017d2
mov ecx, dword [ebp + 0x2a4]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004059de
add ebp, 0x2a8
leave
ret

Function at 0x401916
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov dword [esp + 0x24], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4019b3
push ebx
push ebp
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
cmp ebx, esi
je 0x401971
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call ebp
push dword [esp + 0x14]
call ebp
pop ebp
pop ebx
cmp edi, esi
je 0x4019b3
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4019ac
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4019ac
cmp dword [esi], 0x4550
jne 0x4019ac
mov dword [esp + 8], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x403497
Capabilities:
Terminate process

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x40bd68], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x408088], eax
call fcn.00402004
cmp dword [0x40b3c4], edi
je 0x4034dd
push 0x40bc60
call fcn.0040175c
pop ecx
test eax, eax
jne 0x4034d7
push str.Couldnt_create_output_directory.
call fcn.00401038
push edi
call fcn.0040290f
push esi
mov esi, str.Segoe_UI
push esi
call fcn.00401284
pop ecx
test eax, eax
je 0x4034f1
push esi
jmp 0x403506
mov esi, str.Tahoma
push esi
call fcn.00401284
pop ecx
test eax, eax
jne 0x4034ee
push 0x4068ac
push 0x40bd80
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x40302a
push edi
push 0x66
push dword [0x40bd68]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40352e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40353c
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
je 0x40357d
push esi
mov cl, byte [edx]
dec dword [ebp + 0x10]
movzx ecx, cl
mov esi, ecx
xor esi, eax
and esi, 0xf
shr eax, 4
xor eax, dword [esi*4 + 0x406978]
shr ecx, 4
mov esi, eax
and esi, 0xf
xor ecx, esi
shr eax, 4
xor eax, dword [ecx*4 + 0x406978]
inc edx
cmp dword [ebp + 0x10], 0
jne 0x403548
pop esi
not eax
pop ebp
ret
Function at 0x405106
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push ebx
xor ebx, ebx
push esi
push edi
cmp ecx, ebx
je 0x405134
cmp dword [ecx + 0x38], ebx
je 0x405134
cmp eax, dword [ecx + 0x10]
jae 0x405134
cmp dword [ecx + 0x14], 1
jne 0x405134
mov edx, dword [ecx + 0x38]
mov esi, dword [edx + 0x10]
mov edi, dword [esi + eax*4]
add edi, dword [edx]
jmp 0x405136
xor edi, edi
cmp edi, ebx
je 0x40521e
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40521e
mov dword [esi], eax
mov ecx, dword [ecx + 0x38]
mov ecx, dword [ecx + 0x10]
mov eax, dword [ecx + eax*4]
mov dword [esi + 4], eax
mov ax, word [edi + 4]
mov word [esi + 8], ax
mov ax, word [edi + 6]
mov word [esi + 0xa], ax
mov ax, word [edi + 8]
mov word [esi + 0xc], ax
mov ax, word [edi + 0xa]
mov word [esi + 0xe], ax
lea eax, [esi + 0x10]
push eax
movzx eax, word [edi + 0xc]
push eax
movzx eax, word [edi + 0xe]
push eax
call dword [sym.imp.ole32.dll_CoDosDateTimeToFileTime]
mov eax, dword [edi + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov ax, word [edi + 0x24]
mov word [esi + 0x30], ax
mov eax, dword [edi + 0x26]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x2a]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
movzx ebx, word [edi + 0x1c]
mov eax, 0x103
cmp ebx, eax
jb 0x4051ca
mov ebx, eax
push ebx
lea eax, [edi + 0x2e]
push eax
lea eax, [esi + 0x44]
push eax
call fcn.00401894
mov byte [ebx + esi + 0x44], 0
movzx ebx, word [edi + 0x20]
mov eax, 0xff
add esp, 0xc
cmp ebx, eax
jb 0x4051ef
mov ebx, eax
mov dword [esi + 0x40], ebx
movzx eax, word [edi + 0x1e]
movzx ecx, word [edi + 0x1c]
add eax, edi
lea eax, [ecx + eax + 0x2e]
push ebx
push eax
lea eax, [esi + 0x148]
push eax
call fcn.00401894
xor eax, eax
add esp, 0xc
mov byte [ebx + esi + 0x148], 0
inc eax
jmp 0x405220
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x405905
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x40806c]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a8]
push ebx
mov ebx, dword [ebp + 0x1a4]
push edi
mov edi, dword [ebp + 0x1a0]
push 0
mov dword [ebp - 0x80], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x78]
push eax
push 0x407454
push 1
push 0
push 0x407474
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4059c1
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x407464
push eax
call dword [ecx]
test eax, eax
jl 0x4059b8
push 0x104
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x4059af
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x74]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.004059de
add ebp, 0x198
leave
ret

Function at 0x4059de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40806c]
jne 0x4059e8
repz ret
jmp fcn.00405a1b
Function at 0x401856
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c88
call fcn.00410920
push edi
push dword [ebp + 8]
call fcn.00402129
mov edi, eax
cmp edi, 0xffffffff
pop ecx
mov dword [ebp - 4], edi
je 0x401986
push esi
xor esi, esi
push 0x2c82
lea eax, [ebp - 0x2c86]
push esi
push eax
mov word [ebp - 0x2c88], si
call sub.msvcrt.dll_memset
push 4
lea eax, [ebp - 0x2c88]
push eax
push edi
call fcn.0040279b
add esp, 0x18
cmp word [ebp - 0x2c88], 0xc350
jne 0x40197c
cmp word [ebp - 0x2c86], 0x80
jae 0x40197c
movzx eax, word [ebp - 0x2c86]
imul eax, eax, 0x59
push eax
lea eax, [ebp - 0x2c84]
push eax
push edi
call fcn.0040279b
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40197c
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x401976
cmp word [ebp - 0x2c86], si
mov dword [ebp + 8], esi
jbe 0x401976
lea esi, [ebp - 0x2c82]
push ebx
movzx ebx, word [esi - 2]
cmp bx, 0xc000
jb 0x401926
lea eax, [esi + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
movzx ebx, ax
push dword [esi]
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x401963
push dword [esi]
push eax
push dword [esi + 4]
push dword [ebp - 4]
call fcn.00402dcf
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
movzx eax, bx
push edi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
movzx eax, word [ebp - 0x2c86]
inc dword [ebp + 8]
add esi, 0x59
cmp dword [ebp + 8], eax
jb 0x40190e
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop edi
leave
ret 4

Function at 0x401b5f
Capabilities:
Link many functions at runtime

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x401b6b
xor eax, eax
inc eax
pop edi
ret
push str.GDIPlus.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, edi
mov dword [esi], eax
je 0x401c00
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GdiplusStartup
push eax
call edi
push str.GdiplusShutdown
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GdipSaveImageToFile
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GdipGetImageEncodersSize
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.GdipGetImageEncoders
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GdipCreateBitmapFromHBITMAP
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GdipDisposeImage
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GdipLoadImageFromFile
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.GdipCreateHBITMAPFromBitmap
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.GdipCreateBitmapFromFile
push dword [esi]
mov dword [esi + 0x24], eax
call edi
xor edi, edi
mov dword [esi + 0x28], eax
inc edi
mov eax, edi
pop edi
ret