joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477796
Capabilities:
Encode data using xor

Disassembly:
push ecx
arpl cx, dx
cmp byte [eax - 0xce11ee8], dl
inc ecx
lds edi, [eax - 0x474e2484]
xor al, cl
add eax, ebp
mov esi, 0x90f86d1d
mov bh, 0x41
adc dl, byte [esi + eax*4 - 0x45]
or byte [ecx - 0x2e06fb90], dl
dec ecx
invalid
or eax, dword [edi]
pop es
insb byte es:[edi], dx
and dword [ecx], edx
xor ch, ah
or eax, 0x68c803fa
bound esp, qword [ecx + ecx*8 - 0x65bebbc9]
loopne 0x477795
inc ecx
lcall 0x19d8, 0xa805ebe0
test byte [ecx + ebx*2 + 0x77], bl
outsd dx, dword [esi]
add eax, 0x8419d8a8
pop esp
pop ecx
ja 0x477822
rcr dword [ebx + 0x6e919c8], 0xf5
xchg esp, eax
jecxz 0x47780b
lea edx, [eax + 0x3dacabaa]
xor al, 0x60
pop esi
cmpsb byte [esi], byte es:[edi]
pop edx
push ss
pop eax
rcl cl, 0x99
xor al, ch
stc
test eax, 0xda01f030
push 0xffffffffffffffe8
sub byte [ebp + 0x5803f9fa], cl
inc esp
loopne 0x477762
xor dword [esi + ebx - 0x176fc357], ebp
les eax, [edi]
mov esp, 0x1556ad02
dec edx
fild qword [edi + ecx*8]
lodsd eax, dword [esi]
push esi
adc eax, 0xcf2cdf4a
imul ecx, dword [esi], 0x44491090
dec edx
mov eax, 0x515e84af
mov byte [esi + esi*4 - 0x68], dh
add dword [edx - 0x6eb1f5a8], 0xffffffe2
fadd st(5), st(0)
adc dword [ecx - 0x23], esi
lds edx, [ecx]
jno 0x4777ec
and dword [edi + 0x3643e02], edi
dec ecx
xchg edx, eax
into
or dword [eax + 0x71], 0xfb43c2c8
js 0x4777a6
invalid
and ch, byte [eax - 0x28]
pop eax
xchg ecx, eax
invalid

Function at 0x578627
Capabilities:
Check for vm using instruction vpcext
Encode data using xor

Disassembly:
cmp ch, 0xbb
xchg dword [ecx + 0x6d2af979], ebx
scasb al, byte es:[edi]
invalid
jg 0x5785de
or esp, dword [0x8d3198f7]
das
lea ebp, [edi]
pushal
aam 0x90
rcl dl, 1
or eax, 0x850d9eb0
enter 0x1e1f, 0xffffffffffffff81
loope 0x57863e
mov cs, ebx
xchg ebx, eax
shl ebx, cl
jge 0x57862e
push esp
jne 0x57863a
add byte [edi + 0x5e61f1bf], cl
mov dl, 0x2d
inc edx
inc ebp
invalid

Function at 0x5d19fa
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x8a5a867c
scasd eax, dword es:[edi]
cmp dh, byte [eax - 5]
lcall 0xbf4d, 0x5c6eca90
push ds
in eax, dx
xor dh, 0xd8
jle 0x5d1a0b
adc bl, al
scasb al, byte es:[edi]
retf 0xf3e7

Function at 0x646a48
Capabilities:
Encode data using xor

Disassembly:
cmp eax, 0x4c9781c
xchg edx, eax
add eax, 0xac56e6f
inc ebx
cmp al, 3
rcr edi, 1
dec ebx
sal byte [edi - 0x3b], 1
or al, 0x11
invalid
sbb dword [ebp - 0x1cb096aa], eax
bound edx, qword [eax + 0x3570dba8]
call 0xe47541b7
jo 0x6469f0
invalid
mov al, byte [0x94f95687]
lds esi, [eax - 0x3b2eccb2]
dec esp
call 0x78d2cac0
xor eax, 0x71f0b960
je 0x646a25
invalid
Function at 0x64e56d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x659368
cmp edx, dword [eax]
je 0x64e58f
add eax, 8
inc ecx
cmp eax, 0x6593f8
jl 0x64e580
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x659368]
jne 0x64e6bd
mov eax, dword [0xa5ccc0]
cmp eax, 1
je 0x64e697
test eax, eax
jne 0x64e5c0
cmp dword [0x659294], 1
je 0x64e697
cmp edx, 0xfc
je 0x64e6bd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64e5f7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064ef50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064f3e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64e63a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064f3e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6540f4
push edi
call fcn.006512b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064ef50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064ef60
lea eax, [ebp - 0xa0]
push 0x6540d4
push eax
call fcn.0064ef60
push dword [esi + 0x65936c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064ef60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00651224
add esp, 0x2c
pop edi
jmp 0x64e6bd
lea eax, [ebp + 8]
lea esi, [esi + 0x65936c]
push 0
push eax
push dword [esi]
call fcn.0064f3e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10029ea1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10029ea1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x10029eb0
pop dword [ebp - 0x40]
mov eax, 0xd179bc77
add eax, 0x3e88e239
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x40d02
push 0
mov eax, 0x16706235
add eax, 0xf9928f27
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x1a4c1e03
add ecx, 0xe5b42c57
mov edx, eax
mov ebx, 0x1004ac00
add ebx, dword [ebp - 0x40]
mov edi, 0xdb7b84b4
sub edi, 0x7b44eaf5
sub dword [ebp - 0x34], 0x13cbcd40
mov esi, dword [ebx]
add dword [ebp - 0x24], esi
xor esi, edi
add dword [ebp - 0x34], edx
mov dword [edx], esi
add edx, 0x2e52844b
add edx, 0xd1ad7bb9
add ebx, 4
loop 0x10029f09
add eax, 0x17d1699e
add eax, 0xe82fb29d
mov ebx, eax
add eax, 0xa5f20713
add eax, 0x5a0df8f2
mov ecx, 0x670b64dc
sub ecx, 0x570b64dc
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x1000276b
Capabilities:
Terminate process

Disassembly:
jmp 0x100fa191
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x100fa1a2
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.100015af
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x10003f8f
Capabilities:
Query environment variable

Disassembly:
jmp 0x1010c8b6
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1010c8ca
xor edi, edi
jmp 0x1010c901
push ebx
push esi
call fcn.1010c7be
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10002ca2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1010c8f1
push ebx
push esi
push edi
call fcn.100040c0
add esp, 0xc
push 0
call fcn.100016d1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x1007cff0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x101638b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push eax
push str._s:_n
push 0x30
push edi
call sub.libavutil_56.dll_av_log
add esp, 0x10
test esi, esi
je 0x1007d05d
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_getnameinfo]
push 0xa
push 0x14
lea eax, [ebp - 0x18]
push eax
push 0x64
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0x10]
push dword [esi + 0x18]
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.Address__s_port__s_n
push 0x30
push edi
call sub.libavutil_56.dll_av_log
mov esi, dword [esi + 0x1c]
add esp, 0x14
test esi, esi
jne 0x1007d027
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10003652
mov esp, ebp
pop ebp
ret

Function at 0x10084fb0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x2710
test edi, edi
je 0x10085073
push 0x1014af80
push edi
call fcn.100028ab
add edi, eax
push ebx
mov al, byte [edi]
mov byte [ebp + 0xb], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.10004ceb
mov ecx, dword [ebp - 4]
add esp, 0x14
mov edi, eax
mov dword [ebp - 8], edi
mov dl, byte [ecx]
inc ecx
mov dword [ebp - 4], ecx
cmp dl, 0x2e
jne 0x10085034
mov edi, ecx
mov cl, byte [ecx]
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x10085031
test esi, esi
je 0x10085031
movsx eax, cl
lea ecx, [edi + 1]
sub eax, 0x30
mov dword [ebp - 4], ecx
imul eax, esi
add ebx, eax
mov eax, 0x66666667
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
jmp 0x10084ffe
mov edi, dword [ebp - 8]
mov eax, edi
mov ecx, closesocket
cdq
sub ecx, ebx
mov esi, eax
mov eax, 0x14f8b589
xor esi, edx
sub esi, edx
imul ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jg 0x10085073
mov eax, ebx
neg eax
cmp byte [ebp + 0xb], 0x2d
cmovne eax, ebx
imul ecx, edi, 0x186a0
pop edi
pop esi
pop ebx
add eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100932c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0
lea eax, [esi + 0x18]
push edi
mov edi, dword [ebp + 0xc]
jle 0x100932ff
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
test eax, eax
je 0x100932ff
push str.setsockopt_SO_RCVBUF_
push 0x18
push esi
call fcn.1000303f
add esp, 0xc
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
jle 0x1009332c
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
test eax, eax
je 0x1009332c
push str.setsockopt_SO_SNDBUF_
push 0x18
push esi
call fcn.1000303f
add esp, 0xc
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x10093353
push 4
push eax
push 1
push 6
push edi
call ebx
test eax, eax
je 0x10093353
push str.setsockopt_TCP_NODELAY_
push 0x18
push esi
call fcn.1000303f
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100b3410
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x101638b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
jg 0x100b3448
jl 0x100b3435
test edi, edi
jne 0x100b3448
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003652
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
nop dword [eax]
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x100b3460
push ebx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.100b3920
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.100b3920
mov ebx, dword [ebp + 8]
add esp, 0x10
nop dword [eax]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.100b3920
mov eax, edi
add esp, 8
and eax, 1
or eax, 0
je 0x100b34e5
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x100b34e3
nop dword [eax]
mov edx, ebx
test bl, 1
je 0x100b34d9
xor ecx, dword [eax]
shr ebx, 1
add eax, 4
cmp edx, 2
jae 0x100b34d0
mov ebx, ecx
shrd edi, esi, 1
sar esi, 1
mov eax, edi
or eax, esi
je 0x100b3545
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.100b3920
mov eax, edi
add esp, 8
and eax, 1
or eax, 0
je 0x100b3535
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x100b3533
nop dword [eax]
mov edx, ebx
test bl, 1
je 0x100b3529
xor ecx, dword [eax]
shr ebx, 1
add eax, 4
cmp edx, 2
jae 0x100b3520
mov ebx, ecx
shrd edi, esi, 1
sar esi, 1
mov eax, edi
or eax, esi
jne 0x100b34a0
xor ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.10003652
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40907f
pop dword [ebp - 0x50]
mov eax, 0xf59ee75f
add eax, 0xaa1a920
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3758a
push 0
mov eax, 0x47122f05
add eax, 0xb92eb1d3
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x6101ff32
add ecx, 0x9efe4160
xor edx, edx
add edx, eax
mov edi, 0x1b9285b8
add edi, 0xe4aeb60c
add edi, dword [ebp - 0x50]
mov esi, 0xd6c61222
mov ebx, dword [edi]
xor dword [ebp - 0x28], ecx
add ebx, esi
xor dword [ebp - 0x30], 0xe63e2f82
mov dword [edx], ebx
sub dword [ebp - 0x2c], 0xc234301c
add edx, 0x97391aee
sub edx, 0x97391aea
add edi, 4
loop 0x4090da
add eax, 0xf51b
xor ebx, ebx
add ebx, eax
add eax, 0xc041cc8a
add eax, 0x3fbe337b
mov ecx, 0xf4d96c48
add ecx, 0xb6693b8
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x405884
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x405896
call fcn.00417cb0
mov eax, dword [0x41d2bb]
shl eax, 2
mov dword [0x41d2bf], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
mov dword [0x41d2c3], edx
call fcn.0040fc34
pop edx
call fcn.0040daa8
call fcn.0040fc38
push 0x41d264
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x41d2c3], eax
push 0
jmp 0x4191d8
push ebx
push edi
push esi
sub esp, 0x5c
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 0x10]
and eax, 1
mov dword [0x41fdc8], eax
call fcn.004151d8
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004157e0
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call fcn.00410d94
mov eax, dword [esi + 0x44]
mov dword [esp], eax
call fcn.00410da4
mov dword [0x428020], 1
mov dword [0x428024], esi
lea eax, [esp + 0x10]
mov dword [0x427fec], eax
call fcn.00419ae4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427ff0], eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x427ff8], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00418168
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004181b8
mov dword [esp + 4], 0
mov dword [esp], 0x428020
call fcn.00419020
test byte [esi + 0x10], 1
je 0x4192c3
mov eax, dword [0x427ff8]
nop word cs:[eax + eax]
inc eax
mov cl, byte [eax - 1]
cmp cl, 9
je 0x4192a8
cmp cl, 0x22
je 0x4192e7
cmp cl, 0x20
je 0x4192a8
dec eax
mov edx, 0x20
jmp 0x4192fc
mov eax, dword [0x428004]
mov ecx, dword [0x428008]
mov edx, dword [0x42800c]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [esi + 0x18]
jmp 0x41937f
mov cl, byte [eax]
mov edx, 0x22
jmp 0x4192fc
mov cl, byte [eax + 1]
inc eax
xor ch, ch
test cl, cl
je 0x419310
cmp cl, 9
je 0x41930e
movsx edi, cl
cmp edi, edx
jne 0x4192f8
mov ch, cl
lea edi, [eax + 1]
cmp ch, 0x22
cmovne edi, eax
jmp 0x419329
inc edi
mov al, byte [edi]
cmp al, 9
je 0x419328
cmp al, 0x20
je 0x419328
mov ebx, dword [esi + 0x18]
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetStartupInfoA
sub esp, 4
mov eax, 0xa
test byte [esp + 0x44], 1
je 0x419367
movzx eax, word [esp + 0x48]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], 0
call ebx
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00417f84
add esp, 0x5c
pop esi
pop edi
pop ebx
ret
Function at 0x408648
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, esp
mov dword [eax], 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov dword [ebp - 4], eax
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_GetFileType
sub esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
sub eax, 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
je 0x40870e
jmp 0x408683
mov eax, dword [ebp - 0x14]
sub eax, 2
mov dword [ebp - 0x1c], eax
je 0x4086da
jmp 0x408690
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x20], eax
jne 0x408737
jmp 0x4086a1
mov dword [0x420564], 3
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov edx, esp
mov dword [edx + 0xc], ecx
mov dword [edx], eax
mov dword [edx + 0x10], 0
mov dword [edx + 8], 3
mov dword [edx + 4], 0x41d77c
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x408741
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.KERNEL32.DLL_GetConsoleMode
sub esp, 8
cmp eax, 0
je 0x408702
mov dword [0x420564], 1
jmp 0x40870c
mov dword [0x420564], 2
jmp 0x408741
call sub.KERNEL32.DLL_GetConsoleOutputCP
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xfde9
jne 0x40872b
mov dword [0x420564], 3
jmp 0x408735
mov dword [0x420564], 2
jmp 0x408741
mov dword [0x420564], 2
add esp, 0x38
pop ebp
ret
Function at 0x408748
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, 0x104c
call fcn.0040daac
sub esp, 0x104c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408771
jmp 0x408953
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0040fdf4
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x408793
jmp 0x408953
mov eax, dword [ebp - 0x1014]
sub eax, 1
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2]
cmp eax, 0xa
setne dl
and dl, 1
movzx eax, dl
mov dword [0x420560], eax
cmp dword [0x420564], 0
jne 0x4087c9
call fcn.00408648
mov eax, esp
mov dword [eax], 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [0x420564]
mov ecx, eax
sub ecx, 3
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x101c], ecx
je 0x4088e0
jmp 0x4087fa
mov eax, dword [ebp - 0x1018]
sub eax, 2
mov dword [ebp - 0x1020], eax
je 0x40885d
jmp 0x40880d
mov eax, dword [ebp - 0x1018]
sub eax, 1
mov dword [ebp - 0x1024], eax
jne 0x408953
jmp 0x408824
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1014]
lea esi, [ebp - 0x1014]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x10], 0
call sub.KERNEL32.DLL_WriteConsoleW
sub esp, 0x14
mov dword [ebp - 0x1028], eax
jmp 0x408953
lea eax, [ebp - 0x1010]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1014]
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0x1000
mov dword [esi + 4], 0
mov dword [esi], 0
call sub.KERNEL32.DLL_WideCharToMultiByte
sub esp, 0x20
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1014]
lea esi, [ebp - 0x1014]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [ebp - 0x102c], eax
jmp 0x408953
mov eax, 0x1000
lea ecx, [ebp - 0x1010]
mov edx, dword [ebp - 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1000
mov dword [ebp - 0x1030], eax
call fcn.0040ce20
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call fcn.004101b4
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1014]
lea esi, [ebp - 0x1014]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [ebp - 0x1034], eax
add esp, 0x104c
pop esi
pop edi
pop ebp
ret
Function at 0x409b94
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x260]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00410168
lea ecx, [0x41d784]
lea edx, [ebp - 0x260]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x268], eax
call fcn.00408e04
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
mov esi, esp
mov dword [esi + 8], ecx
mov dword [esi], edx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 1
mov dword [esi + 4], 0
mov dword [ebp - 0x26c], eax
call sub.KERNEL32.DLL_FindFirstFileExA
sub esp, 0x18
mov ecx, 0xffffffff
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], ecx
jne 0x409c46
mov dword [ebp - 0xc], 0
jmp 0x409dc7
mov dword [ebp - 0x264], 0
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0
je 0x409d7d
lea eax, [0x41d786]
lea ecx, [ebp - 0x15c]
add ecx, 0x2c
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00410118
cmp eax, 0
je 0x409d7b
lea eax, [0x41d788]
lea ecx, [ebp - 0x15c]
add ecx, 0x2c
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00410118
cmp eax, 0
je 0x409d7b
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00410168
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
add ecx, 0x2c
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x270], eax
call fcn.00408e04
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [ebp - 0x274], eax
call esi
cmp eax, 0
jne 0x409d22
jmp 0x409da6
mov eax, dword [ebp - 0x264]
add eax, 1
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x14], 0
je 0x409d79
mov eax, 1
lea ecx, [ebp - 0x260]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [ebp - 0x278], eax
call fcn.00409b94
mov ecx, dword [ebp - 0x264]
add ecx, eax
mov dword [ebp - 0x264], ecx
jmp 0x409d7b
jmp 0x409d7d
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x15c]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.KERNEL32.DLL_FindNextFileA
sub esp, 8
cmp eax, 0
jne 0x409da1
jmp 0x409da6
jmp 0x409c50
mov eax, dword [ebp - 0x160]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_FindClose
sub esp, 4
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0xc]
add esp, 0x28c
pop esi
pop edi
pop ebp
ret