joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467030
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004617e0
test eax, eax
je 0x46711f
mov ecx, edi
call fcn.004617e0
mov ecx, eax
call fcn.0045ee50
test eax, eax
jne 0x46711f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46711f
mov eax, dword [0x4e0ea8]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x467092
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.004617e0
mov ecx, eax
call fcn.0045f080
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x46711f
cmp ebx, eax
jne 0x46711f
cmp dword [esp + 0x10], eax
jne 0x467105
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x469cb0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ab528
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x469ce9
inc eax
mov dword [esi + 0x10], eax
jmp 0x469dfc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x469cfd
mov eax, 0xffffffc7
jmp 0x469dfe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x469d0e
cmp dword [esi + 8], eax
jne 0x469cfd
cmp dword [esi + 8], eax
jne 0x469d27
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x469d27
mov eax, 0xffffffc7
jmp 0x469dfe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x469d3b
push eax
mov ecx, ebx
call fcn.004694e0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00438b80
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x469d6c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00438ba0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00468c50
test eax, eax
mov dword [esp + 0x38], eax
je 0x469d9f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4b1e98
call fcn.00438d80
mov eax, dword [esp + 0x38]
jmp 0x469dfe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00469b10
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x469de3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00469b30
mov esi, eax
test esi, esi
jne 0x469e13
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00469b10
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x469db5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4b1e98
call fcn.00438d80
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4b1e98
call fcn.00438d80
mov eax, esi
jmp 0x469dfe

Function at 0x46cf30
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x46cf90
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x46cf90
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x46cf90
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x46cf90
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x46cfd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x473120
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4abb58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a2876
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00472ac0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a27a4
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049ef8b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049ef8b
push 1
push 0
push 0
mov ecx, esi
call fcn.0049ef33
push 1
push 0
push 1
mov ecx, esi
call fcn.0049ef33
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a28e8
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4732a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4abb78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a2876
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00472ac0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a27a4
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x473364
cmp dword [esp + 0x40], 1
jne 0x473362
cmp ecx, eax
jge 0x473364
mov eax, ecx
cmp eax, 0xc8
jge 0x473370
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00473120
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a28e8
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x473af0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4abbe3
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.0049d3ab
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.004a2b1e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a4076
test eax, eax
je 0x473c0c
mov ecx, dword [esp + 0x3c]
call fcn.004a2b4b
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 0x473bd0
push edi
mov ecx, esi
call fcn.004a010f
mov ecx, esi
call fcn.00473d70
cmp dword [esp + 0x38], 1
jne 0x473c05
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.004a0279
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 0x476630
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x476663
push esi
call fcn.00479730
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47665c
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 0x4766e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4766d2
mov eax, dword [esi + 8]
test eax, eax
je 0x476687
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 0x4766ce
cmp eax, 2
je 0x4766d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47667a
cmp eax, 3
je 0x4766ad
cmp eax, 1
jne 0x47667a
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 0x47667a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47667a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00476710
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4766f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00476710
add esp, 4
pop esi
ret

Function at 0x49e1a1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49e1d9
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.0049c22e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049c206
jmp 0x49e1e5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49f893
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 0x49f8d5
call fcn.004a55d7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49f8d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49f8cc
xor eax, eax
jmp 0x49f8dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049f8e3
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a5b07
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 0x4a5b35
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a5b53
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a5a6d
jmp 0x4a5b53
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a5b53
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a5a6d
test edi, edi
mov eax, edi
jne 0x4a5b3d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [0x40c016]
push eax
add ecx, 0x40
push ss
je 0x401795
inc eax
add byte [ecx - 1], dl
adc eax, sym.imp.MSVCRT.dll_fprintf
mov eax, dword [0x2302ac]
add esp, 0xffffff9f
test eax, eax
je 0x401787
push eax
push 0xb078d2de
call dword [0x40c1f5]
adc ah, al
or byte [edx + 1], ch
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
push ebp
mov ebp, esp
sub esp, 0x2d0049
mov eax, dword [0x410278]
test eax, eax
mov eax, dword [0x49404c]
xor eax, 0x3c397e14
dec ecx
add byte [0x278a100], ch
inc ecx
add byte [ebp + 0x404ca1c0], al
dec ecx
add byte [0x3c397e14], dh
loop 0x4017ac
push eax
call fcn.00401c30
mov cx, word [0x410274]
jmp 0x4017cf
mov dword [0x4e185d], eax
mov eax, dword [0x417188]
push ebx
push esi
mov esi, dword [0x403bbd]
mov word [0x410bb4], cx
test dword [edi + edx*2], esi
jne 0x4017e1
mov edx, dword [0x411800]
push edx
push str.The_timeout_specified_has_expired
call esi
mov eax, dword [0x41023d]
add esp, 8
test eax, eax
iretd

Function at 0x4080f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp - 0x39]
or eax, dword [edx + 0x57565308]
cmovbe edx, edx
test eax, eax
mov esi, edi
je 0x408110
inc ebp
invalid
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x8b00b900
jmp 0x408122
mov edx, dword [ebp - 9]
xor eax, eax
test ecx, ecx
call [eax + eax*8 + 0x289c085]
je 0x408122
neg ecx
mov eax, 0xcccccccd
mov bl, 0x63
mov cl, 0xe1
jp 0x4080f4
loop 0x40818d
fdivrp st(6)
cmp byte [edx], ch
enter 0xffffffffffffc180, 0x30
mov byte [esi], cl
mov ecx, edx
test edx, edx
jne 0x408122
mov eax, dword [ebp + 0x18]
sub esi, dword [ebx - 0x7c]
cmp byte [ebx + 0x5b5e5fc6], cl
pop ebp
ret
test ecx, ecx
jne 0x4081ac
ja 0x4081d8
sbb al, 0x8b
popfd
adc al, 0x50
push edi
push edx
push ecx
push ebx
cmp byte [edi - 1], cl
invalid
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
hlt
neg eax
push esi
push 0
push 0xa
push eax
push ebx
call 0x129b7ec
mov ecx, eax
mov esi, ecx
mov al, cl
mov dl, 0x25
not ch
sub bl, al
dec edi
add bl, 0x30
mov eax, esi
cmc
pop ds
mov ebx, ecx
xor edi, ecx
fisttp dword [ebx + 0x7fb12924]
sbb al, 0x2b
invalid
Function at 0x401290
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
or esi, 0xffffffff
xor ecx, ecx
lea esp, [esp]
mov eax, ecx
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], ecx
test cl, 1
je 0x4012c5
xor eax, 0xedb88320
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x4012d9
shr eax, 1
xor eax, 0xedb88320
jmp 0x4012db
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x4012ef
shr eax, 1
xor eax, 0xedb88320
jmp 0x4012f1
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x401305
shr eax, 1
xor eax, 0xedb88320
jmp 0x401307
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x40131b
shr eax, 1
xor eax, 0xedb88320
jmp 0x40131d
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x401331
shr eax, 1
xor eax, 0xedb88320
jmp 0x401333
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x401347
shr eax, 1
xor eax, 0xedb88320
jmp 0x401349
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
test al, 1
je 0x40135d
shr eax, 1
xor eax, 0xedb88320
jmp 0x40135f
shr eax, 1
mov dword [ebp + ecx*4 - 0x404], eax
inc ecx
cmp ecx, 0x100
jb 0x4012b0
xor ecx, ecx
test edx, edx
je 0x40139a
lea esp, [esp]
movzx eax, byte [ecx + edi]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [ebp + eax*4 - 0x404]
inc ecx
cmp ecx, edx
jb 0x401380
mov ecx, dword [ebp - 4]
not esi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403452
mov esp, ebp
pop ebp
ret

Function at 0x4013b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], ecx
xor eax, eax
jmp 0x4013e0
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x4013e0
xor edi, edi
xor esi, esi
mov dl, byte [ebp + esi - 0x104]
mov eax, esi
and eax, 0xf
movzx ecx, dl
movzx eax, byte [eax + ebx]
add edi, eax
add edi, ecx
and edi, 0xff
inc esi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x105], al
mov byte [ebp + edi - 0x104], dl
cmp esi, 0x100
jb 0x4013f3
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x108], ebx
jbe 0x40149d
lea esp, [esp]
inc esi
and esi, 0xff
inc edi
mov dl, byte [ebp + esi - 0x104]
movzx eax, dl
add ebx, eax
and ebx, 0xff
movzx eax, byte [ebp + ebx - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + ebx - 0x104], dl
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, dl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ebp + ecx - 0x104]
mov ecx, dword [ebp - 0x10c]
xor byte [ecx + edi - 1], al
cmp edi, dword [ebp - 0x108]
jb 0x401440
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403452
mov esp, ebp
pop ebp
ret 4
Function at 0x401ab0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0xa58], eax
push ebx
push esi
mov eax, ecx
push edi
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x664]
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b8e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x401b87
mov ebx, dword [sym.imp.MSVCR110.dll_wcsstr]
cmp word [esp + 0x3c], 0x2e
je 0x401b7b
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x268]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [esp + 0x10], 0x10
je 0x401b5c
lea ecx, [esp + 0x260]
call fcn.00401ab0
jmp 0x401b7b
lea eax, [esp + 0x3c]
push str..exe
push eax
call ebx
add esp, 8
test eax, eax
je 0x401b7b
lea ecx, [esp + 0x260]
call fcn.004019b0
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x401b20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xa64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403452
mov esp, ebp
pop ebp
ret
Function at 0x402cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x403fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x407018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x402e77
cmp byte [edi + 0x45], 0
je 0x402e77
push 0xffffffffffffffff
call fcn.00402170
cmp eax, 0xffffffff
jne 0x402d50
xor al, al
jmp 0x402e79
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.00402b00
mov dword [esp + 0x40], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp ebx, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x402daf
dec eax
je 0x402db3
sub eax, 2
je 0x402e5d
xor bl, bl
jmp 0x402e5f
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ebx, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub esi, eax
je 0x402deb
push dword [edi + 0x50]
lea eax, [esp + 0x1c]
push esi
cmp ebx, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x402da8
cmp byte [edi + 0x45], 0
je 0x402e5d
test esi, esi
jne 0x402d64
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x402e52
lea esi, [ecx + 8]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00403010
test al, al
je 0x402d64
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
xorps xmm0, xmm0
movq qword [ecx + eax], xmm0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], esi
mov byte [eax + esi], 0
jmp 0x402d64
push str.string_too_long
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xlength_error_char_const__]
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x402e73
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x402e79
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00403452
mov esp, ebp
pop ebp
ret