joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4c53
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x4a4cbf
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x4a4d08
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004be100
add esp, 8
test eax, eax
jne 0x4a4d06
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4a4d0a
jmp 0x4a4cb6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4b0f9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4b0faa
xor eax, eax
jmp 0x4b1173
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4b112b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4e1eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4e1eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4e1eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4e1eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4e1eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4e1eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4e1eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4e1eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x4b0fb3
cmp dword [ebp + 0x10], 0
je 0x4b116d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4e1eac]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x4b1131
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x60e000
Capabilities:
Check for peb beingdebugged flag
Packed with generic packer

Disassembly:
jmp 0x60e005
push ds
jmp 0x60e00a
pushfd
jmp 0x60e00f
jmp 0x60e013
pushal
popal
popfd
pop ds
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
test eax, eax
jne 0x60e027
pop eax
jmp fcn.004697cc
Function at 0x4252e7
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x42a0f7
call fcn.0040d118
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00422b18
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x435648]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0041eada
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041eada
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4b7bd8
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea ecx, [ecx + 0x1146edde]
not di
pop edi
mov edi, ecx
call fcn.004eebbb

Function at 0x4b7be9
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp], edi
pushal
mov ecx, esi
push dword [esp + 4]
mov byte [esp + 0xc], dl
lea esp, [esp + 0x24]
call fcn.0049e2d7
pushfd
pushfd
mov edi, eax
pushal
lea esp, [esp + 0x28]
jmp 0x45b078
jmp 0x4cf8b2
pushfd
bswap cx
jmp 0x4af56d
lea esp, [esp + 0x54]
jb 0x4cd54d
not al
pushal
rdtsc
dec dword [esi + 0x28]
rdtsc
xchg dh, cl
mov byte [ebp - 1], 1
pushal
mov ebx, dword [esp + 0x40]
mov byte [esp + 4], 0x31
mov edx, dword [esi]
movsx ax, bl
mov word [esp], bx
mov eax, dword [edx + 8]
lea ecx, [ecx*8 - 0x37a5c7d2]
bswap cx
mov ecx, 0x1fcc681
lea ecx, [eax*8 - 0x2140495e]
mov ecx, esi
pushfd
mov dword [esp + 0x44], 0x461c25
mov byte [esp], ch
push 0x40a4b8dd
push 0xd92d1e95
call fcn.00444f3f
bswap cx
pushfd
mov dword [esp], ebx
jmp 0x4c8b40

Function at 0x4f1ce4
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebp + 0xc]
mov byte [esp], 0xb9
lea esp, [esp + 4]
jb 0x48a7e2
push 0xe349ca1f
mov dword [ebp - 8], 0
lea esp, [esp + 4]
jns 0x4e313a
push 0xc8a05399
push ebx
mov byte [esp + 4], 0
lea esp, [esp + 8]
je 0x4f1d2a
xchg bx, ax
pushfd
mov eax, dword [ebp + 0x10]
lea esp, [esp + 4]

Function at 0x401100
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405044], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x405228
push 0x405290
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40114b
xor eax, eax
jmp 0x401166
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4011d0
Capabilities:
Query environment variable

Disassembly:
mov edx, dword [esp + 4]
mov eax, 0x418104
sub esp, 0x300
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4011e1
push ebx
push ebp
mov ebp, dword [esp + 0x310]
mov eax, 0x41af60
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4011fd
mov ebx, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
lea eax, [esp + 0x108]
push 0xff
push eax
push str.USERNAME
call ebx
test eax, eax
jne 0x40122e
pop ebp
pop ebx
add esp, 0x300
ret
push esi
push edi
mov edi, str.DEFAULT
lea esi, [esp + 0x110]
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x40124e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0xff
jne 0x40128d
lea ecx, [esp + 0x20c]
push ecx
push str.DAYSLEFT
call ebx
lea edx, [esp + 0x208]
push edx
call fcn.0040b9af
mov ecx, dword [esp + 0x318]
add esp, 4
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x300
ret
lea edx, [esp + 0xc]
push edx
push str.USERKEY
call ebx
test eax, eax
jne 0x4012ac
mov cl, byte [eax + 0x41af60]
mov byte [esp + eax + 8], cl
inc eax
test cl, cl
jne 0x40129d
mov edx, dword [esp + 0x30c]
lea ecx, [esp + 0x108]
lea eax, [esp + 0x108]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4012c3
mov edx, ebp
lea ecx, [esp + 8]
lea eax, [esp + 8]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4012d9
pop ebp
mov dword [0x41f704], 0
mov eax, 1
pop ebx
add esp, 0x300
ret
Function at 0x4081c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
call fcn.004086a0
and eax, 0xffff
push 0x41e190
mov dword [0x41e1b4], eax
call fcn.00408510
push 0x41e190
call fcn.00408460
mov eax, dword [0x41e1b4]
add esp, 8
test eax, eax
je 0x408201
push 0x41e1b8
call fcn.00408420
add esp, 4
jmp 0x408224
push 0x40
push 0x41bff8
push 0x43f
call fcn.0040a7d0
add esp, 0xc
mov edx, 0x41e1b8
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x40821a
call fcn.004095d0
call fcn.004090f0
mov eax, dword [0x41e1b4]
test eax, eax
je 0x4083a9
push 0x41e1b8
push str.GenuineIntel
call fcn.0040c5de
add esp, 8
test eax, eax
je 0x4083a9
mov eax, dword [0x41e1b4]
test eax, eax
je 0x40838d
push 0x41e1b8
push str.AuthenticAMD
call fcn.0040c5de
add esp, 8
test eax, eax
je 0x40838d
mov eax, dword [0x41e1b4]
test eax, eax
je 0x408370
push 0x41e1b8
push str.CyrixInstead
call fcn.0040c5de
add esp, 8
test eax, eax
je 0x408370
mov eax, dword [0x41e19c]
add eax, 0xfffffffd
cmp eax, 5
ja case.default.0x4082b4
jmp dword [eax*4 + 0x4083fc]
xor eax, eax
mov cl, byte [eax + 0x419638]
mov byte [eax + 0x41e1cc], cl
inc eax
test cl, cl
jne 0x4082bd
jmp 0x4083d7
xor eax, eax
mov cl, byte [eax + str.486]
mov byte [eax + 0x41e1cc], cl
inc eax
test cl, cl
jne 0x4082d5
jmp 0x4083d7
xor eax, eax
mov cl, byte [eax + str.586_Gen]
mov byte [eax + 0x41e1cc], cl
inc eax
test cl, cl
jne 0x4082ed
jmp 0x4083d7
xor eax, eax
mov cl, byte [eax + str.686_Gen]
mov byte [eax + 0x41e1cc], cl
inc eax
test cl, cl
jne 0x408305
jmp 0x4083d7
xor eax, eax
mov cl, byte [eax + str.7th_Gen]
mov byte [eax + 0x41e1cc], cl
inc eax
test cl, cl
jne 0x40831d
jmp 0x4083d7
xor eax, eax
mov cl, byte [eax + 0x41960c]
mov byte [eax + 0x41e1cc], cl
inc eax
test cl, cl
jne 0x408335
jmp 0x4083d7
push 0x40
push 0x41bff8
push 0x44a
call fcn.0040a7d0
add esp, 0xc
mov edx, 0x41e1cc
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x408364
jmp 0x4083d7
mov ecx, dword [0x41e1a0]
mov edx, dword [0x41e19c]
push ecx
push edx
push 0x41e1cc
call fcn.00408f90
add esp, 0xc
jmp 0x4083d7
mov eax, dword [0x41e1a0]
mov ecx, dword [0x41e19c]
push eax
push ecx
push 0x41e1cc
call fcn.00408d80
add esp, 0xc
jmp 0x4083d7
mov edx, dword [0x41e24c]
mov eax, dword [0x41e248]
mov ecx, dword [0x41e1a4]
push edx
mov edx, dword [0x41e1a0]
push eax
mov eax, dword [0x41e19c]
push ecx
push edx
push eax
push 0x41e1cc
call fcn.00408ad0
add esp, 0x18
call fcn.00409540
lea ecx, [esp]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov edx, dword [esp + 0x14]
mov eax, 1
mov dword [0x41e190], edx
add esp, 0x24
ret
Function at 0x408720
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x1c]
push esi
push eax
or esi, 0xffffffff
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x40873d
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x14]
push ecx
call edi
mov eax, 0x80000000
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x40875b
lea edx, [ebp - 0xc]
push edx
call edi
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
sub eax, edx
cmp eax, esi
jae 0x408776
mov esi, eax
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jne 0x40874c
lea eax, [esi + esi*4]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
mov eax, 0xcccccccd
mul ecx
shl esi, 5
mov edi, edx
mov eax, esi
shr edi, 3
xor edx, edx
div edi
xor edx, edx
pop edi
pop ebx
mov esi, eax
div ecx
shr ecx, 1
cmp edx, ecx
jbe 0x4087b5
inc esi
mov eax, dword [ebp + 8]
xor edx, edx
div esi
shr esi, 1
cmp edx, esi
jbe 0x4087c3
inc eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40acf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x53c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
call fcn.0040af40
cmp eax, 1
jge 0x40ad1d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x53c
ret
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
xor edi, edi
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x20]
push 0
lea esi, [esp + edi + 0x150]
push eax
push 1
push esi
push ecx
call ebp
mov al, byte [esi]
cmp al, 0xd
mov eax, dword [esp + 0x20]
je 0x40ad6b
xor esi, esi
cmp eax, esi
je 0x40ad6d
inc edi
cmp edi, 0x400
jl 0x40ad35
mov ebp, dword [esp + 0x10]
jmp 0x40ad6f
xor esi, esi
mov ebp, edi
cmp eax, esi
jne 0x40ad80
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x53c
ret
cmp byte [0x4236d8], 1
jne 0x40ae28
lea edx, [esp + 0x4c]
push 0x100
push edx
push esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [esp + 0x4c]
push 0x5c
push eax
call fcn.0040c0f0
add esp, 8
cmp eax, esi
je 0x40adb4
mov byte [eax], 0
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x41a14c]
repne scasb al, byte es:[edi]
mov ecx, dword [str._serialLog.txt]
mov eax, dword [0x41a150]
dec edi
push 0x41a144
mov dword [edi], ecx
mov cx, word [0x41a154]
mov dword [edi + 4], edx
mov dl, byte [0x41a156]
mov dword [edi + 8], eax
lea eax, [esp + 0x50]
push eax
mov word [edi + 0xc], cx
mov byte [edi + 0xe], dl
call fcn.0040ba8b
mov edi, eax
add esp, 8
cmp edi, esi
je 0x40ae28
xor ecx, ecx
push edi
mov cl, byte [esp + esi + 0x150]
push ecx
call fcn.0040cab2
add esp, 8
inc esi
cmp esi, ebp
jbe 0x40ae05
push edi
call fcn.0040b9b4
add esp, 4
xor esi, esi
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14c]
push edx
push str._32s
push eax
call fcn.0040ca78
push 6
lea ecx, [esp + 0x3c]
push 0x41a134
push ecx
call fcn.0040ca40
add esp, 0x18
test eax, eax
jne 0x40ae9d
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x15c]
push str.:__x
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], esi
call fcn.0040ca78
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x53c
ret
push 2
lea ecx, [esp + 0x30]
push 0x41a114
push ecx
call fcn.0040ca40
add esp, 0xc
test eax, eax
jne 0x40af08
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x164]
push str.t:__hd:_hd_BV:__hd_CV:__hd_C:__hd_T:__hd
push edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call fcn.0040ca78
movsx eax, word [esp + 0x30]
add esp, 0x20
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x53c
ret
Function at 0x40b6c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
call dword [sym.imp.user32.dll_OpenClipboard]
cmp eax, edi
mov dword [ebp - 0x24], eax
jne 0x40b70f
lea eax, [ebp - 0x14]
push 0x415e38
push eax
mov dword [ebp - 0x14], 0x41a5ac
call fcn.0040bffa
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
cmp esi, edi
jne 0x40b732
lea ecx, [ebp - 0x18]
push 0x415e38
push ecx
mov dword [ebp - 0x18], 0x41a578
call fcn.0040bffa
push esi
call dword [sym.imp.kernel32.dll_GlobalSize]
cmp eax, 0x3c
jle 0x40b76e
lea edx, [ebp - 0x1c]
push 0x415e38
push edx
mov dword [ebp - 0x1c], 0x41a4d0
call fcn.0040bffa
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
push 0x10
push 0x41a4c4
push eax
push ecx
call dword [sym.imp.user32.dll_MessageBoxA]
mov eax, 0x40b7c0
ret
push eax
call fcn.0040bb7e
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
mov esi, edi
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
test cl, cl
jne 0x40b784
push eax
call dword [sym.imp.kernel32.dll_GlobalUnlock]
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40a
jne 0x40b7b5
mov eax, edi
cmp byte [eax], 0x20
jne 0x40b7aa
inc eax
jmp 0x40b7a2
push eax
push ecx
push ebx
call dword [sym.imp.user32.dll_SetDlgItemTextA]
jmp 0x40b7c3
push edi
push ecx
push ebx
call dword [sym.imp.user32.dll_SetDlgItemTextA]
jmp 0x40b7c3
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40b7d0
call dword [sym.imp.user32.dll_CloseClipboard]
test edi, edi
je 0x40b7dd
push edi
call fcn.0040bad4
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f84c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4264c4]
push edi
jae 0x40fa13
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x4264e0]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40fa13
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x40f8f2
test dl, 2
jne 0x40f8f2
test dl, 0x48
je 0x40f8bc
mov al, byte [eax + 5]
cmp al, 0xa
je 0x40f8bc
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40f905
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40f8ed
mov dword [0x425254], ecx
jmp 0x40fa1a
cmp eax, 0x6d
jne 0x40f8f9
xor eax, eax
jmp 0x40fa27
push eax
call fcn.00411f57
pop ecx
jmp 0x40fa24
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x40fa0e
test edx, edx
je 0x40f928
cmp byte [edi], 0xa
jne 0x40f928
or al, 4
jmp 0x40f92a
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40fa08
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40f9f8
cmp al, 0xd
je 0x40f95e
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x40f9ea
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40f978
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40f973
add dword [ebp - 8], 2
jmp 0x40f9cc
mov dword [ebp - 8], eax
jmp 0x40f9e6
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40f9a0
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x40f9e6
cmp dword [ebp - 0x10], 0
je 0x40f9e6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x40f9c1
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40f9cc
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x40f9e9
cmp edi, dword [ebp + 0xc]
jne 0x40f9d1
cmp byte [ebp - 1], 0xa
jne 0x40f9d1
mov byte [edi], 0xa
jmp 0x40f9e9
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411ae2
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40f9ea
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40f942
jmp 0x40fa08
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40fa08
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x40fa27
and dword [0x425254], 0
mov dword [0x425250], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fa2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4264c4]
push ebx
push esi
push edi
jae 0x40fbb1
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4264e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x40fbb1
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x40fa80
xor eax, eax
jmp 0x40fbc5
test al, 0x20
je 0x40fa91
push 2
push edi
push edi
push ecx
call fcn.004130a9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40fb4d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x40fb85
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x40fae7
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40fad8
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40fabd
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40fb27
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x40fb30
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40fab1
jmp 0x40fb32
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x40fbac
cmp dword [ebp + 8], edi
je 0x40fb85
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x40fb7a
mov dword [0x425254], eax
jmp 0x40fbb8
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40fb6f
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x40fb32
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x40fb32
push dword [ebp + 8]
call fcn.00411f57
pop ecx
jmp 0x40fbc2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40fb9a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x40fa79
mov dword [0x425250], 0x1c
mov dword [0x425254], edi
jmp 0x40fbc2
sub eax, dword [ebp - 0x10]
jmp 0x40fbc5
and dword [0x425254], 0
mov dword [0x425250], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret