joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b2c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4495e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x40b317
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov word [eax + ecx], 0
jmp 0x40b32c
push 0
push 1
mov byte [ebp - 0x34], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x34]
push 1
call fcn.00419190
mov edx, dword [ebp + 0x34]
mov eax, edx
mov ecx, dword [ebp + 0x30]
sub eax, ecx
cmp eax, 1
jb 0x40b353
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov word [eax + ecx], 0
jmp 0x40b368
push 0
push 1
mov byte [ebp - 0x34], 0
lea ecx, [ebp + 0x20]
push dword [ebp - 0x34]
push 1
call fcn.00419190
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x16], 0
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x34], 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, 0x610
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
cmp edx, 0x10
jb 0x40b3e6
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b3dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b444
push edx
push ecx
call fcn.0041d718
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40b428
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b41e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b444
push edx
push ecx
call fcn.0041d718
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d0a1
mov esp, ebp
pop ebp
ret
call fcn.00436ce7
int3
Function at 0x40ede0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x46662c
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], ecx
call fcn.0041c75c
add esp, 4
test eax, eax
jne 0x40eeeb
mov ecx, dword [0x4665e0]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
push edi
mov dword [ebp - 0xc], ecx
xor esi, esi
mov edi, 4
push 0
push edi
lea eax, [ebp - 8]
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40ee41
mov ecx, dword [ebp - 0xc]
add esi, eax
sub edi, eax
cmp esi, 4
jl 0x40ee24
xor ecx, ecx
mov edi, 8
cmp eax, 0xffffffff
setne cl
dec ecx
xor esi, esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4665e0]
mov dword [ebp - 0x10], ecx
nop dword [eax]
push 0
push edi
lea eax, [ebp + 8]
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40ee7d
mov ecx, dword [ebp - 0x10]
add esi, eax
sub edi, eax
cmp esi, 8
jl 0x40ee60
mov edi, dword [ebp - 0xc]
or ecx, 0xffffffff
cmp eax, ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmove edi, ecx
mov ecx, dword [0x4665e0]
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x40eec7
mov edi, eax
mov eax, dword [ebp - 0x14]
push 0
push edi
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40eec4
mov ecx, dword [ebp - 0x18]
add esi, eax
sub edi, eax
cmp esi, dword [ebp - 0x10]
jl 0x40eea2
mov edi, dword [ebp - 0xc]
jmp 0x40eec7
or edi, 0xffffffff
push 0x46662c
call fcn.0041c781
add esp, 4
test eax, eax
jne 0x40eef1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d0a1
mov esp, ebp
pop ebp
ret
push eax
call fcn.0041c31a
push eax
call fcn.0041c31a
int3
Function at 0x40f560
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x20f8
call fcn.0041e200
mov eax, dword [0x462014]
xor eax, esp
mov dword [esp + 0x20f4], eax
push esi
push edi
call fcn.00437590
cmp dword [0x463144], 0x10
mov edi, eax
push 0xa
lea eax, [esp + 0x10]
mov esi, 0x463130
cmovae esi, dword [0x463130]
push eax
push esi
mov dword [edi], 0
call fcn.00438ac6
add esp, 0xc
cmp esi, dword [esp + 0xc]
je 0x40f6f4
cmp dword [edi], 0x22
je 0x40f6ea
movzx edi, ax
lea eax, [esp + 0x28]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40f6d3
cmp dword [0x4634d4], 0x10
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
mov esi, 0x4634c0
mov word [esp + 0x10], ax
cmovae esi, dword [0x4634c0]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x14]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x4665e0], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x40f683
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0xbb8
call edi
push dword [0x4665e0]
call esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x4665e0], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40f650
lea ecx, [esp + 0x1b8]
call fcn.0040f2c0
cmp eax, 0xffffffff
je 0x40f6d3
cmp byte [0x4664dc], 1
je 0x40f6c4
lea ecx, [esp + 0x1b8]
call fcn.0040f2c0
cmp eax, 0xffffffff
jne 0x40f694
or eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20f4]
xor ecx, esp
call fcn.0041d0a1
mov esp, ebp
pop ebp
ret
push dword [0x4665e0]
call esi
mov byte [0x4664dc], 0
mov ecx, dword [esp + 0x20fc]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.0041d0a1
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.0041c289
push str.invalid_stoi_argument
call fcn.0041c249
int3
Function at 0x4170e0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x417050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0x7530
call esi
jmp 0x417100

Function at 0x41fc3d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [0xdb40c0c8]
push eax
add ecx, 0x40
push 0xe2d274
push esp
dec dword [esi - 0x80]
rol dword [eax], 0xa1
lodsb al, byte [esi]
add al, byte [ecx]
add esp, 0x15
test eax, eax
je 0x401787
add dword gs:[edx + edx*8 + 0x40], edx
add bh, bh
adc eax, sym.imp.MSVCRT.dll_printf
add esp, 0x4f
push 0xffffffffffffffa7
call dword [sym.imp.MSVCRT.dll_exit]
pop eax

Function at 0x4074b3
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x56a2b5f0
push 0
push ebx
call ebp
add al, byte [eax]
sbb dh, byte [edx + 5]
mov eax, 0x90ff
cmp dword [ebp - 4], eax
jae 0x4074db
mov al, dh
push es
xor byte [ebx + 0x3b41ca4d], cl
enter 0x4d89, 0xfffffffffffffffc
jb 0x4074cc
mov eax, dword [ebp - 0x30]
cmpsd dword [esi], dword es:[edi]
ror byte [edi], 0x84
std
retf
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x674d5a20
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..rdata
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x50e461a8
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x404000
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x49c024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
clc
jae 0x404030
call 0x63f840
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x40403e
call 0x3dcba4d4
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4b7e00], eax
mov edx, 0xda4c2ca8
call fcn.004033d0
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
call edx
stc
jb 0x40406e
call 0xe88607c6
add byte [eax], al
add byte [eax], al
mov dword [ebp - 0x18], 0
mov edx, str.DybcyAUIuse
mov ecx, 0x49dd68
call fcn.00406bf0
push eax
call fcn.00406e90
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x403eb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov edx, str.dihxusuAusuduee
mov ecx, 0x49de28
call fcn.00406bf0
push eax
call fcn.00406e90
add esp, 4
push 0
push 0
call dword [sym.imp.GDI32.dll_SetMapperFlags]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40ab73
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40ab94
jl 0x40ab8b
test edi, edi
jne 0x40ab94
xor eax, eax
xor edx, edx
jmp 0x40ac55
cmp dword [ebx + 0x38], 0
je 0x40aba9
push eax
push edi
push dword [ebp + 8]
call fcn.0040ac5b
jmp 0x40ac55
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40abf0
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40abf0
cmp eax, edi
jb 0x40abca
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0042ce10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40abf6
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40ac4a
mov ecx, ebx
call fcn.0040a207
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40ac35
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00455045
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40ac4a
jmp 0x40ac08
test edx, edx
je 0x40ac4a
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00455045
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x42c495
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42c4d4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c4d4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c4d4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42c4d4
cmp dword [ecx + 0x74], 0xe
jbe 0x42c4d4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x46b754
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d194
push 0x48d18c
push 0x48a6d0
push 0x1e
call fcn.0046b424
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46b788
push dword [ebp + 8]
mov ecx, esi
call dword [0x487230]
call esi
jmp 0x46b78e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46b7d2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d1a4
push 0x48d19c
push 0x48a6f4
push 0x20
call fcn.0046b424
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46b809
push dword [ebp + 8]
mov ecx, esi
call dword [0x487230]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46dcdb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046d8c2

Function at 0x46dce6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046da51

Function at 0x46e209
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042c610
mov eax, dword [0x49c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00469286
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46e24b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46e3a7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00482710
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x49f128]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0046f79c
mov ecx, dword [esi*4 + 0x49f128]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46e3a0
cmp eax, dword [edi + ecx + 0x24]
jne 0x46e3a0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e3a0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046f79c
add esp, 0x14
test edx, edx
jl 0x46e3a0
jg 0x46e316
test eax, eax
jb 0x46e3a0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46e3a0
jl 0x46e330
cmp dword [ebp - 0x1008], eax
ja 0x46e3a0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46e34e
test ebx, ebx
je 0x46e387
cmp ecx, edi
jae 0x46e387
mov al, byte [ecx]
cmp al, 0xd
jne 0x46e368
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46e374
cmp byte [ecx + 1], 0xa
jne 0x46e374
inc ecx
jmp 0x46e374
movzx eax, al
movsx eax, byte [eax + 0x49c2c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46e34e
cmp edx, ebx
jne 0x46e34e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46e3a5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042b25b
leave
ret
Function at 0x46e925
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x49f128]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46e965
cmp byte [ebx], 0xa
jne 0x46e965
or byte [eax + edi + 0x28], 4
jmp 0x46e96a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46ea68
mov al, byte [edx]
cmp al, 0x1a
je 0x46ea4a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46e999
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46e9be
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46e9c8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46e97b
jmp 0x46ea68
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ea45
cmp dword [ebp - 0xc], 0
je 0x46ea45
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x49f128]
test byte [eax + edi + 0x28], 0x48
je 0x46ea1f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46ea0a
mov byte [esi], dl
jmp 0x46ea1b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49f128]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46ea68
cmp byte [ebp - 1], 0xa
jne 0x46ea2e
cmp esi, ebx
jne 0x46ea2e
mov byte [esi], 0xa
jmp 0x46ea67
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046f7ba
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46ea68
mov byte [esi], 0xd
jmp 0x46ea67
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x49f128]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46ea64
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46ea68
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46ea71
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x49f128]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46eab4
cmp word [esi], dx
jne 0x46eab4
or byte [edi + eax + 0x28], 4
jmp 0x46eab9
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46ec0c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46ebec
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46eafb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46eb31
cmp eax, edx
jae 0x46eb3d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46ead3
jmp 0x46ec0c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ebe8
cmp dword [ebp - 0x14], 0
je 0x46ebe8
mov eax, dword [ebx*4 + 0x49f128]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46ebc0
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46eb89
mov word [esi], cx
jmp 0x46ebbc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x49f128]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x49f128]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x49f128]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46ec0c
pop ebx
cmp word [ebp - 4], bx
jne 0x46ebd1
cmp esi, dword [ebp + 0xc]
jne 0x46ebd1
mov word [esi], bx
jmp 0x46ec09
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046f7ba
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46ec0c
push 0xd
jmp 0x46ec05
mov ecx, dword [ebx*4 + 0x49f128]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46ec03
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46ec0c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x473524
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004733f8
Function at 0x473d61
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x49c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x473dac
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0047413b
test al, al
jne 0x473da6
sub edx, 2
cmp edx, edi
jne 0x473d8c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x473dce
lea eax, [edi + 2]
cmp edx, eax
je 0x473dce
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00473a28
add esp, 0x10
jmp 0x473ec8
push esi
lea ecx, [ebp - 0x255]
call fcn.0047413b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x473e11
push dword [ebp - 0x25c]
jmp 0x473dbe
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x473e4e
cmp word [ebp - 0x226], 0
je 0x473e6f
cmp word [ebp - 0x226], ax
jne 0x473e4e
cmp word [ebp - 0x224], 0
je 0x473e6f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00473a28
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x473ebb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x473e28
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x473ea3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x473ec8
push 0x473547
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047fe30
add esp, 0x10
jmp 0x473e98
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b25b
leave
ret