joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002390
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1b08
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.100027b0
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.100025c0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x10002413
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
jmp 0x100024d6
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
cmp ecx, 1
je 0x100024d6
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x10002489
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x24], xmm0
push 0x50
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
call fcn.10002550
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10002489
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0x10
push eax
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10002491
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
jmp 0x100024d6
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x4c], 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x38], eax
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.10002870
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov esi, dword [edi]
mov dword [ebp - 0x3c], esi
call fcn.10002730
push dword [ebp - 0x34]
call fcn.1006c2a6
mov eax, dword [ebp - 0x2c]
add esp, 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006c262
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10002550
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xfa0
jae 0x100025a1
nop dword [eax + eax]
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100025a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
sub eax, ebx
cmp eax, 0xfa0
jb 0x10002570
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [eax + 0xc]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x100025c0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x288
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x288
call fcn.100752dd
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
je 0x10002677
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x1000261c
push edi
call fcn.100752c2
add esp, 4
push dword [ebp - 4]
call fcn.100752dd
mov edi, eax
mov dword [ebp - 8], eax
add esp, 4
test edi, edi
je 0x10002677
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x10002677
mov esi, edi
test edi, edi
je 0x10002677
mov edi, dword [ebp - 0xc]
mov eax, dword [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000266e
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10002870
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x10002630
mov edi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x1000268c
push edi
call fcn.100752c2
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008190
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100d00b4]
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
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push eax
push edx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push esi
call fcn.10008ac0
test al, al
jne 0x10008216
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.10003a50
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100082de
inc ecx
push ecx
jmp 0x100082d3
push 0x100000
call fcn.100752dd
add esp, 4
mov byte [ebp - 0x29], 0
mov esi, eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000829a
nop word [eax + eax]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10008296
cmp eax, 0x100000
jbe 0x10008264
push esi
call fcn.100752c2
push dword [ebp - 0x30]
call fcn.100752dd
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
push ecx
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000829a
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
push esi
call fcn.10001a00
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x10008240
jmp 0x1000829a
mov byte [ebp - 0x29], 1
push esi
call fcn.100752c2
add esp, 4
cmp byte [ebp - 0x29], 0
jne 0x100082be
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.10003a50
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100082de
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10001ca0
mov eax, ebx
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.1006c262
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10008300
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0
push 0
push 0x15
push dword [edi + 0x10]
xor bl, bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10008385
push esi
push dword [ebp - 4]
call fcn.100752dd
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push 0
push 0x15
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1000837b
cmp word [esi], 0
jne 0x1000835a
xor ecx, ecx
jmp 0x1000836f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008360
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.10009090
mov bl, 1
push esi
call fcn.100752c2
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10008390
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0x3c
push 0
push eax
mov esi, ecx
xor bl, bl
call fcn.1006fa00
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
lea eax, [ebp - 0x44]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 5
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1000840c
push 0xa
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100768e2
add esp, 0xc
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c262
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006c262
mov esp, ebp
pop ebp
ret 4
Function at 0x1000acd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1006fa00
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1006fa00
add esp, 0x18
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1000ad6f
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x1000ad6f
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x108], 0
jne 0x1000ad8d
xor ecx, ecx
jmp 0x1000ad9f
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000ad96
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.100017d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006c262
mov esp, ebp
pop ebp
ret

Function at 0x1000adc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2181
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100d00b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
call fcn.1000acd0
push 1
push 0x100bb1b8
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.10001a00
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.10001b30
cmp dword [esi + 0x14], 0x10
jb 0x1000ae2f
mov eax, dword [esi]
jmp 0x1000ae31
mov eax, esi
push 0
push eax
call fcn.10077141
add esp, 8
cmp eax, 0xffffffff
jne 0x1000ae56
cmp dword [esi + 0x14], 0x10
jb 0x1000ae4b
mov eax, dword [esi]
jmp 0x1000ae4d
mov eax, esi
push eax
call fcn.1007797d
add esp, 4
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1000ae6b
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.10001ca0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ce60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a20a6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100d00b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1006c273
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1006b41e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000d950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
xorps xmm0, xmm0
push 0x1000da90
mov word [ebp - 0x34], ax
movq qword [ebp - 0x32], xmm0
mov dword [ebp - 0x2a], eax
mov word [ebp - 0x26], ax
mov byte [ebp - 0x24], al
movups xmmword [ebp - 0x23], xmm0
mov dword [ebp - 0xb], eax
movq qword [ebp - 0x13], xmm0
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x100ffe1c], eax
lea eax, [ebp - 0x38]
push eax
push 0x1c
push 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1000d9cd
push 0x100ffe20
push dword [ebp - 0x38]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x38]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1000d9e7
movq xmm0, qword [str.c:windows_]
mov eax, dword [0x100bb2f8]
movq qword [0x100ffe20], xmm0
mov dword [0x100ffe28], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push str.dump_04d__02d__02d__02d._02d._02d.dmp
push eax
call fcn.10002370
push 0x5c
push 0x100ffe20
call fcn.1006ee40
mov edx, eax
add esp, 0x28
test edx, edx
je 0x1000da63
inc edx
mov ecx, edx
push esi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000da40
sub ecx, esi
pop esi
cmp ecx, 3
jb 0x1000da63
lea ecx, [ebp - 0x24]
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1000da56
push 0x100ffe20
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov ecx, dword [ebp - 4]
mov eax, 0x100fff48
xor ecx, ebp
call fcn.1006c262
mov esp, ebp
pop ebp
ret
Function at 0x1000db30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x128], 0x40
push eax
push 0x20019
push 0
push 0x100bb34c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000db9d
lea eax, [ebp - 0x128]
push eax
push 0x10105090
push 0
push 0
push 0x100bb340
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
test al, al
jne 0x1000dc83
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
movzx eax, byte [ebp - 0x115]
push eax
movzx eax, byte [ebp - 0x116]
push eax
movzx eax, byte [ebp - 0x117]
push eax
movzx eax, byte [ebp - 0x118]
push eax
movzx eax, byte [ebp - 0x119]
push eax
movzx eax, byte [ebp - 0x11a]
push eax
push 0x100bb324
push 0x101053e8
call fcn.10002370
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1006fa00
movsx eax, byte [0x101053ed]
add esp, 0x2c
push eax
movsx eax, byte [0x101053ec]
push eax
movsx eax, byte [0x101053eb]
push eax
movsx eax, byte [0x101053ea]
push eax
movsx eax, byte [0x101053e9]
push eax
movsx eax, byte [0x101053e8]
push eax
push 0x100bb370
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.10001100
add esp, 0x24
call fcn.10001ff0
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000dc56
sub eax, edx
lea edx, [ebp - 0x110]
push eax
call fcn.100021d0
push eax
push 0x100bb390
push 0x104
push 0x10105090
call fcn.10001100
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x10105090
xor ecx, ebp
call fcn.1006c262
mov esp, ebp
pop ebp
ret
Function at 0x1000e8c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push edx
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 0
push 0
push 6
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x2c]
push 0
push eax
push 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
push ebx
call edi
push 0
push 0
push dword [ebp - 0x1c]
push ebx
call esi
push dword [ebp - 0x20]
call fcn.1006c2b0
push dword [ebp - 0x20]
mov esi, eax
push 0
push esi
call fcn.1006fa00
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x20]
push esi
push ebx
call edi
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push esi
push 0x409
push 1
push 3
push dword [ebp - 0x30]
call edi
push esi
call fcn.1006c2ab
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x28]
mov ecx, 1
mov byte [ebp - 0x40], al
movzx eax, byte [ebp - 0x27]
mov byte [ebp - 0x3f], al
movzx eax, byte [ebp - 0x26]
mov byte [ebp - 0x3e], al
movzx eax, byte [ebp - 0x25]
mov byte [ebp - 0x3d], al
movzx eax, word [ebp - 0x24]
mov word [ebp - 0x3c], ax
movzx eax, word [ebp - 0x22]
mov word [ebp - 0x3a], ax
movq xmm0, qword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], 0x10000
mov word [ebp - 0x14], cx
movq qword [ebp - 0x12], xmm0
mov dword [ebp - 0xa], eax
push 0x14
lea eax, [ebp - 0x18]
mov word [ebp - 6], cx
push eax
push 0x409
push ecx
push 0xe
push dword [ebp - 0x30]
call edi
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.1006c262
mov esp, ebp
pop ebp
ret
Function at 0x1000f270
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x100d00b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x31c], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x1c]
test eax, eax
je 0x1000f2e1
lea eax, [ebp - 0x314]
push eax
push 0x100aa808
push 1
push 0
push 0x100aa898
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000f2e1
mov eax, dword [ebp - 0x314]
lea edx, [ebp - 0x318]
push edx
push 0x100aa828
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x314]
jns 0x1000f2f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006c262
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1000f30c
mov esi, dword [eax]
call fcn.100780e1
push dword [eax]
push dword [ebp - 0x314]
call dword [esi + 0x50]
jmp 0x1000f313
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x314]
push 0x100baf51
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test ebx, ebx
je 0x1000f337
mov eax, dword [ebp - 0x314]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test edi, edi
je 0x1000f348
mov eax, dword [ebp - 0x314]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x314]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
push 0x10105850
push dword [ebp - 0x31c]
lea eax, [ebp - 0x108]
push 0x100bb45c
push eax
call fcn.10002370
add esp, 0x10
lea eax, [ebp - 0x310]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x318]
lea edx, [ebp - 0x310]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
push esi
push str.save_result:_0x_08x
call fcn.1000e190
push eax
call fcn.1000b0b0
mov ecx, dword [ebp - 0x318]
add esp, 0xc
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [ebp - 0x314]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setns al
xor ecx, ebp
pop esi
pop ebx
call fcn.1006c262
mov esp, ebp
pop ebp
ret
Function at 0x1000f500
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x100d00b4]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x1c], edx
lea edi, [esp + 0x370]
mov dword [esp + 0x18], eax
mov esi, ebx
sub edi, ebx
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x1000f535
lea edx, [esp + 0x268]
sub edx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1000f550
lea edi, [esp + 0x268]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1000f565
mov eax, dword [0x100bb478]
mov dword [edi], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x26c]
mov byte [0x10105214], 1
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1000f6e1
cmp byte [0x10105214], 0
mov ebx, eax
je 0x1000f6f9
test byte [esp + 0x20], 0x10
je 0x1000f64c
cmp byte [esp + 0x4c], 0x2e
je 0x1000f6c2
xor ecx, ecx
nop dword [eax]
mov al, byte [esp + ecx + 0x370]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x15f], al
test al, al
jne 0x1000f5d0
lea edx, [esp + 0x4c]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000f5f0
lea edi, [esp + 0x160]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000f601
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x160]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1000f620
mov ax, word [0x100bb1b8]
lea ecx, [esp + 0x160]
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov word [edi], ax
call fcn.1000f500
add esp, 4
jmp 0x1000f6c2
xor eax, eax
nop
mov cl, byte [esp + eax + 0x370]
lea eax, [eax + 1]
mov byte [esp + eax + 0x15f], cl
test cl, cl
jne 0x1000f650
lea edx, [esp + 0x4c]
mov esi, edx
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000f670
lea edi, [esp + 0x160]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000f681
push dword [esp + 0x18]
mov ecx, edx
lea eax, [esp + 0x164]
push dword [esp + 0x3c]
shr ecx, 2
push dword [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [esp + 0x2c]
add esp, 0x10
test al, al
je 0x1000f6c2
mov byte [0x10105214], 0
mov byte [esp + 0x13], 1
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1000f6f9
cmp byte [0x10105214], 0
jne 0x1000f5b1
jmp 0x1000f6f9
push ebx
push str.cant_access_file:__s_n
call fcn.1000e190
push eax
call fcn.1000b0b0
mov ebx, dword [esp + 0x20]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x47c]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006c262
mov esp, ebp
pop ebp
ret