joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016030
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 8]
mov edx, str.RETR
push eax
lea ecx, [ebp - 0x40]
call fcn.10016ac0
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10016bb0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10016098
inc eax
push eax
push dword [ebp - 0x40]
call fcn.10017be0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100160cf
call fcn.10015440
jmp 0x1001613e
push 0
push 0x1f4
push dword [edi + 0x20]
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x100160fa
call fcn.10015440
mov esi, eax
test esi, esi
js 0x10016140
cmp esi, 1
jne 0x10016101
jmp 0x10016140
mov eax, dword [edi + 0x20]
mov byte [ecx + eax], 0
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.10016810
mov edx, 0x100b6d80
mov ecx, eax
call fcn.10016be0
mov ecx, dword [ebp - 0x44]
mov bl, al
cmp ecx, 0x10
jb 0x1001612c
inc ecx
push ecx
push dword [ebp - 0x58]
call fcn.10017be0
test bl, bl
je 0x10016137
mov esi, 1
jmp 0x10016140
mov ecx, edi
call fcn.100167b0
mov esi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10016152
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.10017be0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
Function at 0x10016170
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x32
lea eax, [ebp - 0x38]
mov esi, ecx
push 0
push eax
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x38]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.REST__I64d__r_n
push eax
call fcn.10016c20
lea ecx, [ebp - 0x38]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100161b0
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100161e6
call fcn.10015440
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
push 0
push 0x1f4
push dword [esi + 0x20]
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x1001621e
call fcn.10015440
test eax, eax
js 0x1001624c
cmp eax, 1
jne 0x10016225
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x20]
mov byte [ecx + eax], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1001624a
cmp byte [eax], 0
je 0x1001624a
push str._n226
push eax
call fcn.1008adc0
add esp, 8
test eax, eax
je 0x1001624a
mov dword [esi + 0x24], 1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
Function at 0x10016320
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10016379
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [esi + 0x24], 0
mov dword [esi + 4], 0xffffffff
jne 0x10016379
push 0
push 0x1f4
push dword [esi + 0x20]
push dword [esi]
call edi
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x10016372
call fcn.10015440
jmp 0x10016379
mov eax, dword [esi + 0x20]
mov byte [ecx + eax], 0
push 7
push str.PASV__r_n
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x24], 0
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.10017920
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 0
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100163cb
call fcn.10015440
mov edi, eax
jmp 0x100164ac
push 0
push 0x1f4
push dword [esi + 0x20]
push dword [esi]
call edi
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x100163f9
call fcn.10015440
mov edi, eax
test edi, edi
js 0x100164ac
cmp edi, 1
jne 0x10016400
jmp 0x100164ac
mov eax, dword [esi + 0x20]
mov byte [ecx + eax], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10016425
cmp byte [eax], 0
je 0x10016425
push str._n226
push eax
call fcn.1008adc0
add esp, 8
test eax, eax
je 0x10016425
mov dword [esi + 0x24], 1
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0
push eax
mov ecx, esi
call fcn.10016260
mov edi, eax
test edi, edi
js 0x100164ac
cmp edi, 1
je 0x100164ac
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x1001646a
call fcn.10015440
mov edi, eax
jmp 0x100164ac
mov eax, dword [ebp - 0x30]
xorps xmm0, xmm0
push dword [ebp - 0x34]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x28], eax
mov eax, 2
mov word [ebp - 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100164aa
call fcn.10015440
mov edi, eax
jmp 0x100164ac
xor edi, edi
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x100164be
inc ecx
push ecx
push dword [ebp - 0x1c]
call fcn.10017be0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
Function at 0x10018230
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x68]
mov eax, edx
mov ecx, dword [esi + 0x6c]
or eax, ecx
jne 0x10018250
mov eax, 0x80004005
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1001825d
mov dword [edi], 0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100182ca
cmp dword [ebp + 0xc], ecx
ja 0x100182ca
mov eax, dword [ebp + 8]
jb 0x10018272
cmp eax, edx
ja 0x100182ca
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.100182e0
test eax, eax
js 0x100182cc
cmp eax, 1
je 0x100182cc
test ebx, ebx
je 0x100182ca
mov ecx, dword [ebp + 0x14]
nop dword [eax]
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0
push eax
push ebx
push ecx
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100182d3
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100182ca
test edi, edi
je 0x100182b7
add dword [edi], eax
add dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x14]
adc dword [esi + 0x14], 0
add ecx, eax
mov dword [ebp + 0x14], ecx
sub ebx, eax
jne 0x10018290
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
call fcn.10015440
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x10018d70
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10018dcd
cmp eax, 0x104
ja 0x10018dcd
push str.WMCache_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x10018de3
call fcn.10015440
test eax, eax
js 0x10018e8d
cmp eax, 1
je 0x10018e8d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10018e1e
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10018e1e
call fcn.10015440
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4
push esi
lea esi, [edi + 8]
push esi
push 0
push 0x100b6f40
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10018e73
mov ecx, dword [ebp + 8]
mov edx, 0x24000000
push 0
test ecx, ecx
mov dword [edi + 0x214], ecx
mov eax, 0x4000000
cmovne eax, edx
push eax
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x10018e8a
call fcn.10015440
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 4

Function at 0x1001cf90
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x100dc008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
push eax
mov edi, ecx
mov dword [esp + 0x10], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x18]
mov edx, 0x40000000
mov ecx, dword [edi + 0x90]
shr eax, 1
cmp eax, edx
push 0
cmovb edx, eax
lea eax, [edi + 0x90]
push edx
push eax
call dword [ecx + 0xc]
push esi
lea ecx, [edi + 8]
call fcn.1001a4b0
test eax, eax
js 0x1001d04a
cmp eax, 1
je 0x1001d04a
mov eax, dword [edi + 8]
test eax, eax
je 0x1001d003
mov ecx, dword [eax + 0x68]
mov edx, dword [eax + 0x6c]
jmp 0x1001d010
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1001d045
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov eax, ecx
or eax, edx
jne 0x1001d01d
mov eax, 0x80004005
jmp 0x1001d02b
xor eax, eax
mov dword [edi + 0xdc], edx
mov dword [edi + 0xd8], ecx
test eax, eax
js 0x1001d045
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
mov eax, 0xe0036006
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8
Function at 0x10020df0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9416
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100e0290]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10020e6d
cmp eax, 0x104
ja 0x10020e6d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor ecx, ecx
mov word [eax], cx
jmp 0x10020e83
call fcn.10015440
test eax, eax
js 0x1002100f
cmp eax, 1
je 0x1002100f
push str.PlugFormat_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x498]
push 0
push eax
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x248]
push eax
call fcn.100210f0
push 5
push str..dll
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.10018a40
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x498]
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10020ff5
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x10020f4f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10020f40
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.10017370
mov byte [ebp - 4], 1
cmp word [ebp - 0x46c], 0
jne 0x10020f74
xor ecx, ecx
jmp 0x10020f8f
lea ecx, [ebp - 0x46c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020f80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x230]
call fcn.10018a40
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 1
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.10020d00
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x10020fdc
inc eax
push eax
push dword [ebp - 0x230]
call fcn.10017a90
lea eax, [ebp - 0x498]
push eax
push esi
call edi
test eax, eax
jne 0x10020f10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x1002100d
inc eax
push eax
push dword [ebp - 0x248]
call fcn.10017a90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
Function at 0x10021520
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 0x204]
lea esi, [edi + 0x100]
sub dword [ebp + 8], eax
add ecx, eax
mov bh, byte [edi + 0x209]
sub edx, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
cmp eax, ecx
jae 0x1002159a
sub edx, dword [ebp + 8]
mov edi, edx
nop dword [eax]
mov edx, dword [ebp - 4]
movzx ecx, al
add esi, ecx
mov bl, byte [esi]
add bh, bl
movzx ecx, bh
add edx, ecx
movzx ecx, byte [edx]
mov byte [esi], cl
mov byte [edx], bl
movzx ecx, byte [esi]
mov edx, dword [ebp + 8]
add cl, bl
mov esi, dword [ebp - 4]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + esi]
xor cl, byte [edi + edx]
mov byte [edx], cl
cmp eax, dword [ebp - 8]
jb 0x10021560
mov edi, dword [ebp - 0xc]
mov byte [edi + 0x209], bh
mov dword [edi + 0x204], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100215b0
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x100215c8
push eax
call fcn.1007bfd8
add esp, 4
mov dword [esi], 0
push 0x100dd790
push 0x400
call fcn.1007bfcf
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x1002167f
push 0x400
push 0
push eax
call fcn.1008b230
add esp, 0xc
xor edx, edx
mov eax, edx
shr eax, 1
test dl, 1
je 0x10021604
xor eax, 0xedb88320
test al, 1
je 0x10021611
shr eax, 1
xor eax, 0xedb88320
jmp 0x10021613
shr eax, 1
test al, 1
je 0x10021620
shr eax, 1
xor eax, 0xedb88320
jmp 0x10021622
shr eax, 1
test al, 1
je 0x1002162f
shr eax, 1
xor eax, 0xedb88320
jmp 0x10021631
shr eax, 1
test al, 1
je 0x1002163e
shr eax, 1
xor eax, 0xedb88320
jmp 0x10021640
shr eax, 1
test al, 1
je 0x1002164d
shr eax, 1
xor eax, 0xedb88320
jmp 0x1002164f
shr eax, 1
test al, 1
je 0x1002165c
shr eax, 1
xor eax, 0xedb88320
jmp 0x1002165e
shr eax, 1
test al, 1
je 0x1002166b
shr eax, 1
xor eax, 0xedb88320
jmp 0x1002166d
shr eax, 1
mov ecx, dword [esi]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, 0x100
jl 0x100215f6
pop esi
ret
Function at 0x10025d20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push connect
mov dword [ebp - 0x2c], eax
mov edi, edx
mov eax, dword [ebp + 0x10]
push ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10025ec3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x10025ec3
push dword [ebp - 0x2c]
xorps xmm0, xmm0
mov byte [ebp - 0x14], 0
push ecx
lea eax, [ebp - 0x24]
movq qword [ebp - 0x13], xmm0
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0xb], 0
mov ecx, esi
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
mov byte [ebp - 0x24], 0
movq qword [ebp - 0x23], xmm0
mov dword [ebp - 0x1b], 0
mov word [ebp - 0x17], 0
mov byte [ebp - 0x15], 0
call fcn.10025fe0
mov edi, eax
add esp, 0xc
test edi, edi
js 0x10025eca
cmp edi, 1
je 0x10025eca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
or esi, 0xffffffff
lea ecx, [ebp - 0x14]
lea edx, [esi + 0x11]
call fcn.10025c60
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x10025e09
xor edi, edi
jmp 0x10025eca
mov edx, 0x100d3204
lea ecx, [ebp - 0x14]
movzx eax, word [ecx]
cmp ax, word [edx]
jne 0x10025e2f
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10025e2f
mov dword [ebx], 5
xor edi, edi
jmp 0x10025eca
mov edx, 0x100d2d08
lea ecx, [ebp - 0x14]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10025e51
movzx eax, word [ecx + 4]
cmp ax, word [edx + 4]
jne 0x10025e51
mov dword [ebx], 4
xor edi, edi
jmp 0x10025eca
lea ecx, [ebp - 0x14]
mov edx, 0x100d2cf8
mov edi, 0xc
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10025e7b
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10025e60
mov dword [ebx], 6
xor edi, edi
jmp 0x10025eca
lea eax, [ebp - 0x24]
mov eax, dword [eax]
cmp eax, dword [0x100d2cf4]
jne 0x10025e92
mov dword [ebx], 2
xor edi, edi
jmp 0x10025eca
cmp dword [ebp + 0x14], 0
je 0x10025eaa
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov edx, ebx
call fcn.10025ef0
add esp, 4
jmp 0x10025ec8
pop edi
pop esi
mov dword [ebx], 0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
call fcn.10015440
mov edi, eax
cmp esi, 0xffffffff
je 0x10025ed6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
Function at 0x10025ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
push 0
push 3
push 0
push 1
push connect
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10025f22
call fcn.10015440
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x100dd790
push 0x80000
call fcn.1007bfcf
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x10025f45
mov edi, 0x8007000e
jmp 0x10025fb9
push 0x80000
push 0
push edi
call fcn.1008b230
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push 0x80000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10025f7c
call fcn.10015440
mov edi, eax
jmp 0x10025fb9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
or esi, 0xffffffff
test eax, eax
je 0x10025fb1
nop dword [eax]
push dword [ebp + 8]
mov edx, eax
mov ecx, edi
call fcn.10025c60
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x10025fb7
mov eax, dword [ebp - 4]
inc edi
sub eax, 1
mov dword [ebp - 4], eax
jne 0x10025f90
mov dword [ebx], 0
xor edi, edi
lea ecx, [ebp - 8]
call fcn.10020530
cmp esi, 0xffffffff
je 0x10025fcd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10029160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
call fcn.10031f80
mov edi, eax
cmp edi, 1
je 0x10029182
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100291f3
test edi, edi
je 0x100291f0
push 8
call fcn.1007c3b0
xor ecx, ecx
mov dword [ebp - 0xc], eax
add esp, 4
mov dword [ebp - 8], 0
lea edx, [ebp - 0xc]
mov dword [ebp - 4], 3
mov word [eax], cx
mov ecx, esi
call fcn.10032050
test al, al
je 0x100291e5
cmp dword [ebp - 8], 0
jne 0x100291c8
cmp edi, 1
jne 0x100291e5
push esi
lea ecx, [ebp - 0xc]
call fcn.10028700
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov edi, eax
call fcn.1007bfd8
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call fcn.1007bfd8
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10031820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
nop
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x10031888
test ecx, ecx
je 0x1003187d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x10031840
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10031d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.10028700
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret

Function at 0x10032720
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
call fcn.10031f80
mov edi, eax
cmp edi, 1
je 0x1003274e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1003274e
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x100327c1
push 8
call fcn.1007c3b0
xor ecx, ecx
mov dword [ebp - 0xc], eax
add esp, 4
mov dword [ebp - 8], 0
lea edx, [ebp - 0xc]
mov dword [ebp - 4], 3
mov word [eax], cx
mov ecx, esi
call fcn.10032050
test al, al
je 0x100327b6
cmp dword [ebp - 8], 0
jne 0x10032794
cmp edi, 1
jne 0x100327b6
push esi
lea ecx, [ebp - 0xc]
call fcn.10028700
mov esi, dword [ebp - 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov edi, eax
call fcn.1007bfd8
add esp, 4
test edi, edi
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call fcn.1007bfd8
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100327d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
call fcn.10031f80
mov edi, eax
cmp edi, 1
je 0x10032808
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100327fb
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1003287b
test edi, edi
je 0x1003287b
push 8
call fcn.1007c3b0
xor ecx, ecx
mov dword [ebp - 0xc], eax
add esp, 4
mov dword [ebp - 8], 0
lea edx, [ebp - 0xc]
mov dword [ebp - 4], 3
mov word [eax], cx
mov ecx, esi
call fcn.10032050
test al, al
je 0x10032870
cmp dword [ebp - 8], 0
jne 0x1003284e
cmp edi, 1
jne 0x10032870
push esi
lea ecx, [ebp - 0xc]
call fcn.10028700
mov esi, dword [ebp - 0xc]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov edi, eax
call fcn.1007bfd8
add esp, 4
test edi, edi
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call fcn.1007bfd8
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret