joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461e60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a4f13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00497b34
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049d1cd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049e6e9
test eax, eax
je 0x461f7c
mov ecx, dword [esp + 0x3c]
call fcn.0049d1fa
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x461f40
push edi
mov ecx, esi
call fcn.0049a85f
mov ecx, esi
call fcn.00462120
cmp dword [esp + 0x38], 1
jne 0x461f75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049a99a
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x464160
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x464193
push esi
call fcn.004724d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46418c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x464219
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x464202
mov eax, dword [esi + 8]
test eax, eax
je 0x4641b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4641fe
cmp eax, 2
je 0x464202
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4641aa
cmp eax, 3
je 0x4641dd
cmp eax, 1
jne 0x4641aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4641aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4641aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00464240
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x464228
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00464240
add esp, 4
pop esi
ret

Function at 0x464ac0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x464ae1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x464ae1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x464ae1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x480ca0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x14bb934]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x480cb3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x480cf4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x14bb9dc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x480d26
mov bl, byte [esp + ecx + 0x4c]
jmp 0x480d2a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x480d1b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x480d48
mov bl, byte [esp + ecx + 0x4c]
jmp 0x480d4c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x480d3d
xor ecx, ecx
mov eax, 0x14bb944
xor ebx, ebx
mov bl, byte [ecx + 0x14bb9ec]
cmp byte [esp + ebx + 0x14], 0
je 0x480d77
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x14bba04]
cmp byte [esp + ebx + 0x14], 0
je 0x480d8e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x480d5e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x480ce7
lea edx, [esp + 0x84]
push edx
call fcn.00480dd0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x49892a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x498962
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.004969b7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049698f
jmp 0x49896e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49a01c
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 0x49a05e
call fcn.0049fad4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49a05e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49a055
xor eax, eax
jmp 0x49a066
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049a06c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a0004
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 0x4a0032
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a0050
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049ff6a
jmp 0x4a0050
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a0050
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049ff6a
test edi, edi
mov eax, edi
jne 0x4a003a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x1063500
Capabilities:
Encode data using xor

Disassembly:
jmp 0x106350a
pushal
call 0x1063510
pop ebp
sub ebp, 0x10
sub ebp, 0xc63500
jmp 0x1063526
mov eax, 0xc63500
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c4
mov edx, 0xde2c2eb4
xor byte [eax], dl
inc eax
dec ecx
jne 0x106353d
jmp 0x1063550
aas
jns 0x1063592
cmp eax, 0xb4b4b488
xor eax, 0xb4b44c75
mov ah, 0xb7
jns 0x106356d
mov esp, 0xeb4b4b4
pushfd
mov ah, 0xb4
mov ah, 0x43
push esi
mov bh, 0x7c
aas
jl 0x10635ae
xor eax, 0xb4b4b4b8
mov bh, 0x71
cmp eax, edx
nop
dec eax
cmp eax, 0xdce490b0
or byte [eax - 0x6b], dl
mov ah, 0xdc
invalid
mov ah, 0xb4
mov ah, 0x5d
lcall 0x90d0, 0x39b4b4b4
dec eax
cmp eax, 0x583f9098
aas
xor dword [esp + esi*4 + 0x213fb4b4], edi
mov eax, 0x3fb4b4b4
mov ah, 0x3f
cmp dword [esp + esi*4 + 0x5d75b4b4], esp
mov dh, 0x85
mov dh, 0x37
jbe 0x106356d
std
mov ebx, 0x4b4b4031
dec ebx
jmp 0x40baee3f
Function at 0xb4c62e
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp - 0xc]
shr dh, 0x55
mov edx, dword [ebp + 0x10]
cmp bp, 0x255f
mov si, si
lea esi, [edi + ebx]
clc
cmc
sar esi, 1
stc
mov eax, dword [eax + esi*4]
stc
push edx
movzx edx, ax
ror dl, cl
cmp edx, eax
mov edx, dword [ebp + 0xc]
cmp esp, 0x7cc21eb
stc
add eax, ecx
jmp 0x7c66c4
je 0x778954
sub eax, eax
xchg si, si
pop esi
jmp 0xbef315
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x75bbac
mov edx, dword [eax + ecx + 0x78]
cmp cx, 0x3b89
jmp 0xb9b6b7
push esi
test bl, 0x58
test ecx, ecx
jmp 0x83f78b
je 0x75bbac
mov eax, 0x5a4d
test dl, 0x75
cmp word [ecx], ax
jmp 0x75bba6
mov edi, dword [edx + ecx + 0x18]
test bp, 0x4d06
test edi, edi
jmp 0xb7100e
jns 0xba6b71
lea edi, [esi - 1]
jmp 0xc39937
call fcn.00bbbaee
lea esp, [esp + 4]
test cl, ah
test eax, eax
jmp 0x7b4a9e
mov eax, dword [ebp + 8]
adc ecx, esi
bsf dx, dx
cmove ecx, esp
mov ecx, dword [ebp - 4]
mov dh, 0xde
ror dl, 3
mov edx, dword [ecx + eax + 0x24]
shrd cx, bp, 0x6c
sub cx, bp
mov ecx, 0x246f1b8d
lea ecx, [edx + esi*2]
movzx edx, word [ecx + eax]
rcl ecx, 0xb5
mov dword [ebp - 8], edx
bts ecx, edx
shr cx, cl
mov ecx, eax
not dh
bsr edx, ebx
sar al, cl
mov edx, dword [ebp - 4]
bt ax, sp
jle 0x75a4e4
jmp 0x7ec487
je 0x75bbac
mov esi, dword [ebp + 0xc]
test ax, sp
jmp 0xc39ddd
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test dx, dx
cmc
clc
lea esp, [esp - 0x114]
jmp 0x77adaa
je 0x7ec48e
mov eax, dword [edx + ecx + 0x20]
test esp, 0x1431041e
clc
cmp edx, eax
lea eax, [eax + ecx]
clc
cmc
sub ebx, ebx
jmp 0xb7ff71
dec edi
mov dword [ebp - 0xc], eax
jmp 0xc5e69c
mov dword [ebp - 4], edx
cmp edi, 0x37db0d6c
test edx, edx
je 0x75bbac
mov eax, dword [eax + ecx + 0x7c]
push ebx
push edi
cmp bp, di
jmp 0xc5ebff
jle 0x7ec445
lea ebx, [esi + 1]
bts cx, dx
movzx ecx, ax
mov ecx, dword [ebp + 8]
test bp, bp
cmp ebx, edi
jmp 0x817a27
mov esp, ebp
pop ebp
jmp 0xc439bd
jmp 0xba6b81
test esi, esi
jmp 0x7891b2
ret
js 0x7ec48e
jmp 0x75a4ea
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xffffffff
test ebp, 0x67672ff0
cmp esi, 0xffff
ja 0x7a3992
mov eax, esi
jmp 0xc5e6cf
Function at 0x401070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [ecx + 0x50]
test eax, eax
jne 0x40107d
mov eax, 2
ret
jmp fcn.0043ceb0

Function at 0x403890
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x108
push str.compress.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4038b4
push str.compress.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4038c0
mov eax, 1
add esp, 0x108
ret
push ebx
call fcn.00459240
mov eax, dword [eax + 0xc]
push 0x46001c
push 0x91
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x4038ea
xor eax, eax
pop ebx
add esp, 0x108
ret
call fcn.00459240
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4038e0
push ebp
push edi
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4039bb
call fcn.00459240
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x8c]
lea edx, [esp + 0x10]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x403925
lea eax, [esp + 0x10]
push 0x5c
push eax
call fcn.0042dca0
add esp, 8
test eax, eax
je 0x4039bb
mov ecx, str.compress.dll
lea edx, [eax + 1]
sub edx, ecx
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x403950
push esi
push 0
push pe_nt_image_headers32
push 1
push 0
push 2
push 0x1f01ff
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4039ba
call fcn.00459240
mov eax, dword [eax + 0xc]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4039ba
mov ebp, 1
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x403a50
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x403a86
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403a7b
cmp dword [esp + 0x10], esi
je 0x403a86
push 0
push 0xffffffffffffffff
push 1
call fcn.00444150
pop esi
ret 0xc

Function at 0x403ad0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x403b0e
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403b03
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x403b0e
cmp dword [esp + 0x10], esi
je 0x403b0e
push 0
push 0xffffffffffffffff
push 1
call fcn.00444150
pop esi
ret 0x10
Function at 0x405390
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x45b738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0x460030
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ebp
mov esi, dword [edi + 0x48]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x1c]
call fcn.00405100
lea ebx, [edi + 0x40]
push 0xffffffffffffffff
lea eax, [esi + esi]
push eax
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.00404e30
xor eax, eax
cmp esi, ebp
mov ebp, dword [esp + 0x18]
jle 0x405411
xor ecx, ecx
jmp 0x405400
mov edx, dword [edi + 0x44]
add edx, ecx
mov dword [ebp + eax*4], edx
inc eax
add ecx, 0x14
cmp eax, esi
jl 0x405400
push 0x403b20
push 4
push esi
push ebp
call fcn.0042e540
add esp, 0x10
xor eax, eax
test esi, esi
jle 0x405465
lea ecx, [esi + esi*4]
shl ecx, 2
mov edi, edi
mov ebx, dword [ebp + eax*4]
mov ebp, dword [ebx]
mov edx, dword [edi + 0x44]
add edx, ecx
mov dword [edx], ebp
mov ebp, dword [ebx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ebx + 8]
mov dword [edx + 8], ebp
mov ebp, dword [ebx + 0xc]
mov dword [edx + 0xc], ebp
mov ebx, dword [ebx + 0x10]
mov ebp, dword [esp + 0x18]
inc eax
add ecx, 0x14
cmp eax, esi
mov dword [edx + 0x10], ebx
jl 0x405430
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
sub eax, esi
je 0x405486
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*4]
shl eax, 2
push eax
lea edx, [esi + esi*4]
lea eax, [ecx + edx*4]
push eax
push ecx
call fcn.0042e190
add esp, 0xc
sub dword [ebx + 8], esi
mov dword [esp + 0x30], 0xffffffff
test ebp, ebp
mov dword [esp + 0x14], 0x460030
je 0x4054a6
push ebp
call fcn.0042dc47
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x407a10
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x2c]
push eax
mov ecx, edi
call fcn.0044c5a0
mov esi, eax
cmp dword [edi], 0
je 0x407a7d
push 0x20
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x10
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.0042dc30
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov al, byte [ecx]
add esp, 0xc
test al, al
je 0x407a6f
push 0
push 0
push str.Enter_haxadecimal_number
call fcn.0044bec0
mov ecx, edi
call fcn.0044c3e0
mov edx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0xc]
push str._08X
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 8]
push eax
push esi
call fcn.004467c0
pop edi
pop esi
add esp, 0x20
ret 0xc
Function at 0x407c40
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
cmp eax, edi
je 0x407c58
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], edi
mov eax, dword [esi + 8]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x407c6b
push eax
call ebx
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407c7d
push eax
call ebx
mov dword [esi + 4], 0xffffffff
mov eax, dword [esp + 0x10]
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x407cdc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x407cdc
mov ecx, dword [esi + 4]
push edi
push eax
push edi
push 2
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 8], eax
je 0x407cdc
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x407d17
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x407ced
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x407cfa
push eax
call ebx
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407d0c
push eax
call ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x10], edi
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x409cb6
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x45bac8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x98]
test eax, eax
jne 0x409de5
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x7c]
je 0x409de5
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409de5
mov edx, dword [0x47559c]
push ebx
push edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], 0
mov ecx, dword [esi + 0x78]
mov ebx, dword [esi + 0x7c]
mov eax, dword [esi + 0x90]
sub ebx, ecx
test eax, eax
lea ecx, [esp + 0xc]
je 0x409d35
lea eax, [ebx + 1]
push eax
call fcn.00441d40
mov ecx, dword [esi + 0x40]
mov esi, dword [esi + 0x78]
add esi, ecx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
jmp 0x409d70
lea eax, [ebx + ebx*2 + 1]
push eax
call fcn.00441d40
mov edi, eax
mov eax, dword [esi + 0x40]
mov esi, dword [esi + 0x78]
add esi, eax
test ebx, ebx
jle 0x409d6b
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
movzx ecx, byte [esi]
push ecx
push str._02X
push edi
call ebp
add esp, 0xc
add edi, 3
inc esi
dec ebx
jne 0x409d54
pop ebp
mov byte [edi], 0
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00441dc0
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x409dcc
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409dcc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [esp + 0xc]
mov ecx, dword [esi - 8]
inc ecx
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004419e0
pop edi
pop ebx
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40b7e0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 8]
and ebx, 0x800
push edi
je 0x40b7fa
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x28]
je 0x40b802
jmp 0x40b834
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esi + 0x28]
je 0x40b87c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b830
push 0
push 3
push str.Strange_file_attributes_size_nAssume_compressed_
call fcn.0044bec0
cmp eax, 2
jne 0x40b828
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
xor ebx, ebx
cmp eax, 6
sete bl
test ebx, ebx
je 0x40b87c
mov edx, dword [esi + 0xc]
push edx
call fcn.0042dc4c
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x34]
push 0x1000
push 1
mov edi, eax
mov eax, dword [esi + 0xc]
push 0
push eax
push edi
push ecx
push edx
call sub.COMPRESS.DLL_Ordinal_2
mov ecx, dword [esi + 0xc]
add esp, 0x20
cmp eax, ecx
je 0x40b87f
mov edx, dword [esi + 0x38]
inc edx
push edi
mov dword [esi + 0x38], edx
call fcn.0042dc47
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b8aa
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x40b8aa
mov esi, 1
jmp 0x40b8ac
xor esi, esi
test ebx, ebx
je 0x40b8b9
push edi
call fcn.0042dc47
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40b8d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45bc9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
mov ecx, dword [0x47559c]
push esi
mov dword [esp + 4], eax
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 8], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x38], ecx
xor edx, edx
lea esi, [eax + 0x10]
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [eax + 0x3c], ecx
or ecx, 0xffffffff
mov dword [eax + 0x40], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret