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

Disassembly:
push ebp
push edi
push esi
push ebx
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx ebx, byte [edx]
movzx ebp, byte [edi + 1]
mov edi, 2
add ebx, 0x111
add ebp, 0x211
shl ebx, 4
shl ebp, 4
add ebx, eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 8]
xor ecx, dword [eax + ebp]
mov ebx, dword [ebx + 0xc]
xor edx, dword [eax + ebp + 4]
xor esi, dword [eax + ebp + 8]
mov eax, dword [eax + ebp + 0xc]
xor eax, ebx
mov ebx, dword [esp + 0x18]
movzx ebp, byte [ebx + edi]
mov ebx, edi
shl ebx, 8
lea ebx, [ebp + ebx + 0x111]
mov ebp, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [ebp + ebx]
xor edx, dword [ebp + ebx + 4]
xor esi, dword [ebp + ebx + 8]
mov ebp, eax
mov eax, dword [esp + 0x14]
xor ebp, dword [eax + ebx + 0xc]
mov eax, dword [esp + 0x18]
lea ebx, [edi + 1]
shl ebx, 8
movzx eax, byte [eax + edi + 1]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
lea ebx, [edi + 2]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 2]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
lea ebx, [edi + 3]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 3]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
xor ecx, dword [eax + ebx]
lea ebx, [edi + 4]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 4]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
lea ebx, [edi + 5]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 5]
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
xor ebp, dword [eax + ebx + 0xc]
lea ebx, [edi + 6]
mov eax, dword [esp + 0x18]
shl ebx, 8
movzx eax, byte [eax + edi + 6]
add edi, 7
lea ebx, [eax + ebx + 0x111]
mov eax, dword [esp + 0x14]
shl ebx, 4
xor ebp, dword [eax + ebx + 0xc]
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
xor esi, dword [eax + ebx + 8]
cmp edi, 0x10
mov eax, ebp
jne 0x6d6d691c
mov ebp, dword [esp + 0x18]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6d6d7990
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6d6d79d1
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp + 8], 0xe9
mov dword [esp + 4], str.src_hashes_md5.c
mov dword [esp], 0x6d7710b1
call fcn.6d6dcc80
lea esi, [esi]
Function at 0x6d744ee0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x3c
test ecx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x18], eax
je 0x6d744f30
mov esi, dword [edx + 0x10]
cmp dword [esi + 4], 0xcd
je 0x6d744f18
test byte [esi + 9], 0x10
jne 0x6d744f18
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x6d745052
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret
mov esi, edx
mov ebp, dword [edx + 0x18]
mov ebx, dword [esi]
mov eax, dword [edx + 0x20]
and ebp, 0x7fff
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x6d744f18
mov eax, dword [ebx + 4]
cmp eax, 0x5c
je 0x6d744fba
ja 0x6d745042
lea edx, [eax - 7]
cmp edx, 1
jbe 0x6d744f18
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.6d744b40
test al, 4
jne 0x6d744f18
mov edx, eax
and edx, 3
cmp edx, 3
je 0x6d745065
mov edx, eax
and edx, 0x300
cmp edx, 0x300
je 0x6d745090
and eax, 0x30000
mov edx, ebx
cmp eax, 0x30000
je 0x6d7450b3
mov ebx, dword [edx]
mov esi, edx
test ebx, ebx
je 0x6d744f18
mov eax, dword [ebx + 4]
cmp eax, 0x5c
jne 0x6d744f50
mov eax, dword [ebx + 0x10]
mov edx, ebx
and eax, 0x7fff
cmp eax, ebp
jne 0x6d744fa6
cmp word [ebx + 8], 0
jne 0x6d744f18
mov edx, dword [esp + 0x1c]
cmp dword [ebx + 0x18], edx
jne 0x6d744f18
cmp ebx, esi
je 0x6d7450d5
mov eax, dword [ebx]
mov dword [esi], eax
test bl, 1
mov edi, ebx
mov edx, 0x30
jne 0x6d7450f5
test edi, 2
jne 0x6d7450e5
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x6d74501e
mov word [edi], 0
add edi, 2
and edx, 1
je 0x6d745026
mov byte [edi], 0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
mov edx, dword [eax + 0x84]
mov dword [ebx], edx
mov edx, esi
mov dword [eax + 0x84], ebx
jmp 0x6d744fa6
cmp eax, 0xcd
jne 0x6d744f5e
jmp 0x6d744f18
cmp dword [esi + 0x28], edx
jne 0x6d744f18
nop
lea esi, [esi]
jmp 0x6d744f32
mov edx, dword [ebx + 0x10]
and edx, 0x7fff
test al, 8
je 0x6d7450c8
cmp edx, ebp
je 0x6d744f18
mov edx, dword [ebx + 0x14]
and edx, 0x7fff
cmp edx, ebp
jne 0x6d744f80
jmp 0x6d744f18
mov edx, dword [ebx + 0x18]
and edx, 0x7fff
cmp edx, ebp
je 0x6d744f18
and eax, 0x30000
mov edx, ebx
cmp eax, 0x30000
jne 0x6d744fa6
mov eax, dword [ebx + 0x20]
and eax, 0x7fff
cmp eax, ebp
jne 0x6d744fa6
jmp 0x6d744f18
cmp edx, ebp
jne 0x6d744f80
jmp 0x6d744f18
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x6d744fec
mov word [edi], 0
sub edx, 2
add edi, 2
jmp 0x6d745008
mov byte [ebx], 0
lea edi, [ebx + 1]
mov dl, 0x2f
jmp 0x6d744ffc
Function at 0x6d75f1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov ebp, 0x10
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov eax, dword [ebx + 0x23c]
test eax, eax
jne 0x6d75f340
cmp dword [ebx + 0x240], 0xf
ja 0x6d75f340
mov eax, dword [ebx + 0x234]
mov dword [esp], eax
call fcn.6d6dccc0
test eax, eax
mov ebp, eax
jne 0x6d75f340
mov eax, dword [ebx + 0x240]
mov edx, dword [esp + 0x48]
add edx, eax
cmp edx, 0xc
jbe 0x6d75f22f
or dword [ebx + 0x238], 1
xor edx, edx
test eax, eax
jne 0x6d75f2a9
mov ecx, dword [esp + 0x48]
and ecx, 0xfffffff0
mov dword [esp + 0x18], ecx
je 0x6d75f34a
lea eax, [ebx + 0x1f4]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x44], esi
mov ebp, edx
mov edi, eax
nop
lea esi, [esi]
xor eax, eax
mov edx, dword [esi + eax]
xor dword [ebx + eax + 0x1f4], edx
add eax, 4
cmp eax, 0x10
jne 0x6d75f262
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.6d6d68d0
add dword [ebx + 0x248], 0x80
adc dword [ebx + 0x24c], 0
add ebp, 0x10
add esi, 0x10
cmp ebp, dword [esp + 0x18]
jb 0x6d75f260
mov esi, dword [esp + 0x44]
mov edx, ebp
mov ebp, dword [esp + 0x1c]
add esi, edx
mov eax, dword [esp + 0x48]
lea ecx, [ebx + 0x1f4]
lea edi, [ebx + 0x204]
mov dword [esp + 0x18], ecx
sub eax, edx
add eax, esi
cmp dword [esp + 0x48], edx
jbe 0x6d75f340
mov dword [esp + 0x1c], ebp
mov ebp, eax
jmp 0x6d75f2d4
cmp ebp, esi
je 0x6d75f33c
mov ecx, dword [ebx + 0x240]
add esi, 1
lea edx, [ecx + 1]
mov dword [ebx + 0x240], edx
movzx eax, byte [esi - 1]
cmp edx, 0x10
mov byte [ebx + ecx + 0x224], al
jne 0x6d75f2d0
mov edx, dword [esp + 0x18]
lea esi, [esi]
movzx eax, byte [edx + 0x30]
xor byte [edx], al
add edx, 1
cmp edi, edx
jne 0x6d75f300
mov eax, dword [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.6d6d68d0
add dword [ebx + 0x248], 0x80
mov dword [ebx + 0x240], 0
adc dword [ebx + 0x24c], 0
cmp ebp, esi
jne 0x6d75f2d4
mov ebp, dword [esp + 0x1c]
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, eax
jmp 0x6d75f2a9
Function at 0x6dca2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.6dca21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x6dca207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6dca206a
add dl, dl
jne 0x6dca2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6dca20dc
xor eax, eax
add dl, dl
jne 0x6dca2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x6dca217d
add dl, dl
jne 0x6dca20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6dca20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6dca20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6dca20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x6dca20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x6dca2075
mov eax, 1
add dl, dl
jne 0x6dca20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6dca20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6dca20e1
sub eax, ebx
mov ebx, 1
jne 0x6dca2128
mov ecx, 1
add dl, dl
jne 0x6dca210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6dca2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6dca2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6dca2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x6dca213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6dca214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x6dca2136
cmp eax, 0x7d00
jae 0x6dca216d
cmp eax, 0x500
jb 0x6dca2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6dca2075
cmp eax, 0x7f
ja 0x6dca2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6dca2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x6dca219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x6dca2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4ce482
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword [ebp + 0x40fcbb]
mov esp, dword [edi]
add eax, dword [eax + 0x3c]
ja 0x4ce4df
js 0x4ce494
sal dword [ebx], cl
leave
mov edi, dword [edx + 0x20]
add edi, ebx
sub bl, dh
add esi, dword [edx + edi*2]
xor eax, eax
rol eax, 7
xor al, byte [esi]
inc esi
cmp byte [esi], 0
sub ebp, esi
xor eax, dword [ebp + edi*2 + 4]
je 0x4ce4bb
inc ecx
cmp ecx, dword [edx + 0x18]
jne 0x4ce499
xor eax, eax
sub bl, byte [ebx + ecx*4]
inc edx
jl 0x4ce4c2
mov eax, dword [edx + 0x7c]
add eax, ebx
mov ax, word [eax + ecx*2]
ret
add al, 0x48
and eax, 0xffff
sub esp, eax
add cl, byte [ebx - 0x2cfce38d]
mov eax, dword [edx + eax]
add eax, ebx
sbb al, 3
ror dword [ebx - 0x3cfcfdfc], cl
ret
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
sub eax, 0x718b1452
sub byte [edx + 0x18], ch
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
add ch, byte cs:[eax]
jo 0x4ce4ce
or eax, 0xf0e2f803
cmp edi, 0x2f4abc5b
mov ebx, dword [edx + 0x10]
dec edi
adc dh, byte [ebp - 0x25]
mov dword [ebp + 0x40fcbb], ebx
popaw
xor byte [esi + 0x60], ah
lea edx, [edx + 0x12]
cld
inc eax
add byte [ebx + 0x41045185], cl
add byte [ebx - 0x67c03cf], cl
push ebp
je 0x4ce55d
mov esi, dword [edx - 8]
mov edi, dword [edx - 0xc]
sub esi, 0x3200
adc dword [eax + eax + 0x10], 0xf0030000
add edi, eax
add esi, ecx
add esi, dword [ebx]
dec edi
dec esi
dec ecx
pop ebx
push es
push eax
pop ebx
mov byte [edi], bl
cmp ecx, 0
jne 0x4ce54a
xor dword [esp + ecx], 0xffffffeb
lds ebx, [esi + 0x61]
pop esi
popal
ret
Function at 0x10004320
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x100129d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.10003e30
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a8], 0
call fcn.10003e30
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.10003e30
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a8], 2
call fcn.10003e30
push 0x100013e4
push 0x100013d4
mov byte [esp + 0x1b0], 3
mov dword [esi], 0x10002ff0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call edi
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x74
mov byte [esp + 0xa], 0x30
mov byte [esp + 0xb], 0x72
mov edx, dword [esp + 8]
lea ecx, [esi + 0xb0]
mov dword [esi + 0xac], eax
mov al, 0x6d
mov dword [ecx], edx
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
pop edi
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x10004500
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10004ce0
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [esi + 0xb5], 0
mov eax, dword [0x100132fc]
test eax, eax
je 0x10004541
cmp eax, 4
je 0x10004541
cmp eax, 5
je 0x10004541
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x10004564
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x100132fc]
mov ebx, dword [esp + 0x34]
test eax, eax
je 0x10004578
push 0x10013300
jmp 0x10004579
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x10004591
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x100132fc]
mov ebp, dword [esp + 0x38]
test eax, eax
mov word [esp + 0x20], 2
je 0x100045af
mov cx, word [0x100013d0]
push ecx
jmp 0x100045b0
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov edx, dword [edi + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x24]
push edx
mov ecx, dword [eax]
mov eax, dword [esi + 0xa8]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100045eb
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
cmp dword [0x100132fc], 5
jne 0x1000460b
push ebp
push ebx
mov ecx, esi
call fcn.100046a0
test al, al
jne 0x1000460b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x13]
push 1
push ecx
push 8
push 0xffff
push edx
mov byte [esp + 0x27], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1000466b
push eax
mov edx, dword [esi + 0xa8]
push eax
lea eax, [esp + 0x1b]
push eax
push 0
push 0
lea ecx, [esp + 0x28]
push 0xc
push ecx
push 0x98000004
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x2bf20
mov dword [esp + 0x40], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x100049b0
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.1000c520
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x10004ee0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, esi
mov ebp, ecx
mov dword [esp + 0x14], 0
jb 0x10004f4a
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10004f29
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x10004f06
cmp dword [esp + 0x1c], 0xf
je 0x10004f80
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x10004efe
test ebx, ebx
jle 0x10004f74
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10004f6b
inc esi
cmp esi, 0xf
jl 0x10004f50
cmp esi, 0xf
je 0x10004f80
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x10004f83
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x100053f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003010
push 0x10012568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
test edi, edi
je 0x10005615
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x100054ea
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x100054ea
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100054b3
cmp al, 0x5c
je 0x100054b3
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000549b
cmp byte [esi], 0
je 0x100054bc
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100054e3
cmp al, 0x5c
je 0x100054e3
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x100054bc
cmp byte [esi], 0
je 0x10005509
jmp 0x10005505
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10005509
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10005509
cmp al, 0x5c
jne 0x10005509
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x100055bb
cmp al, 0x5c
jne 0x100055aa
mov byte [esi], 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10005576
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10005598
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10005598
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x10005615
and eax, 0x10
cmp al, 0x10
je 0x10005598
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x10005615
mov byte [esi], 0x5c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x1000550f
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10005ec0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
mov ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x100014e0
push esi
lea eax, [ebp - 0x244]
push 0x100014d8
push eax
call edi
add esp, 0x10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [ebp - 0x140]
lea edx, [ebp - 0x244]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10005f33
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebp - 0x114], 0x2e
je 0x10005fd4
test byte [ebp - 0x140], 0x10
je 0x10005f90
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x348]
push eax
push esi
push 0x10001438
push ecx
call edi
add esp, 0x10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x348]
mov ecx, ebx
push edx
call fcn.10005ec0
jmp 0x10005fd4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x44c]
push eax
push esi
push 0x10001438
push ecx
call edi
add esp, 0x10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x44c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10005f33
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006010
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + 0x20]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push connect
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10006093
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 0xa
mov dword [ebp - 8], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 4]
mov dword [ebx + 1], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebx + 5], esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
mov eax, dword [ebp - 8]
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
call fcn.10008df0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4