joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100026e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x194], eax
mov dword [esi], vtable.CClientSocket.0
push ebx
push edi
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], eax
lea eax, [esp + 8]
push eax
push 0x202
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push 1
push edi
push edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], 0xffffffff
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x44], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x48], eax
call ebx
mov ecx, dword [esp + 0x19c]
pop edi
pop ebx
mov dword [esi + 0x40], eax
xor ecx, esp
mov eax, esi
call fcn.1000c146
mov esp, ebp
pop ebp
ret

Function at 0x10002850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0xffffffff
mov ebx, edx
mov dword [esi + 0x38], 1
je 0x10002876
call fcn.10002d20
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x34], eax
cmp eax, 0xffffffff
jne 0x100028a9
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1000c146
add esp, 0x28
ret 4
call fcn.1000b320
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10002894
mov ecx, 2
mov word [esp + 0x1c], cx
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax]
push edx
mov dword [esp + 0x24], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x34]
mov word [esp + 0x1e], ax
push 0x10
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10002894
mov eax, dword [esi + 0x34]
mov ebx, 1
push ebx
lea edx, [esp + 0x13]
push edx
push 8
push 0xffff
push eax
mov byte [esp + 0x23], bl
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1000294b
push eax
push eax
lea ecx, [esp + 0x17]
push ecx
push eax
push eax
mov eax, dword [esi + 0x34]
push 0xc
lea edx, [esp + 0x28]
push edx
push 0x98000004
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x2bf20
mov dword [esp + 0x3c], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
push esi
push 0x10002a00
push 0
push 0
call fcn.1000c62d
mov ecx, dword [esp + 0x44]
add esp, 0x18
mov dword [esi + 0x3c], eax
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0x28
ret 4
Function at 0x10002b50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
test eax, eax
je 0x10002cbd
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x10002cbd
cmp dword [edi + 0x38], 0
push eax
push edx
jne 0x10002b87
mov esi, dword [ecx]
mov eax, dword [esi + 4]
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
lea esi, [edi + 4]
call fcn.10001040
nop
mov ecx, dword [edi + 8]
lea edx, [edi + 4]
test ecx, ecx
je 0x10002d0e
mov eax, dword [edx + 8]
sub eax, ecx
cmp eax, 8
jbe 0x10002d0e
mov eax, dword [edi + 8]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x10002d0e
mov edi, dword [edx + 4]
test edi, edi
jne 0x10002bcf
xor eax, eax
jmp 0x10002bd4
mov eax, dword [edx + 8]
sub eax, edi
cmp eax, ecx
jb 0x10002d0e
lea edi, [ecx - 8]
push edi
mov dword [esp + 0x18], esi
call fcn.1000c752
push esi
mov ebx, eax
call fcn.1000c752
add esp, 8
mov ebp, eax
test ebx, ebx
je 0x10002d0e
test ebp, ebp
je 0x10002d0e
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
mov eax, 8
add esi, 4
call fcn.100010d0
mov esi, dword [esp + 0x24]
push ebx
mov eax, edi
add esi, 4
call fcn.100010d0
mov edx, dword [esp + 0x14]
push edi
push ebx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x20], edx
call fcn.10012cb0
add esp, 0x10
test eax, eax
jne 0x10002d0e
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x18]
add esi, 0x14
xor edi, edi
cmp eax, edi
je 0x10002c6a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x10]
push ecx
push ebp
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.10001040
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x4c]
cmp ecx, edi
je 0x10002ca5
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x10002c94
xor esi, esi
jmp 0x10002c99
mov esi, dword [esi + 8]
sub esi, eax
mov eax, dword [ecx]
mov edx, dword [edx + 0x18]
mov eax, dword [eax + 4]
push esi
push edx
call eax
push ebx
call fcn.1000c4c5
push ebp
call fcn.1000c4c5
mov edi, dword [esp + 0x2c]
add esp, 8
jmp 0x10002b90
mov ecx, dword [edi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
lea ecx, [esp + 0x28]
push ecx
mov edx, 1
push 0x80
mov word [esp + 0x30], dx
mov edx, dword [edi + 0x34]
push 0xffff
xor eax, eax
push edx
mov word [esp + 0x3a], ax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov ecx, dword [edi + 0x34]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x34], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x10002d20
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
lea eax, [esp + 4]
push eax
mov ecx, 1
push 0x80
mov word [esp + 0xc], cx
mov ecx, dword [esi + 0x34]
push 0xffff
xor edx, edx
push ecx
mov word [esp + 0x16], dx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x34], 0xffffffff
pop ecx
ret

Function at 0x10002d80
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [ebx + 0x44]
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebx + 0x38], 0
jne 0x10002da5
mov ebp, dword [esp + 0x1c]
jmp 0x10002e91
fild dword [esp + 0x20]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
fmul qword [0x1008ab08]
or eax, 0xc00
mov dword [esp + 0x10], eax
mov eax, 0xc
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov ecx, dword [esp + 0x10]
sub eax, ecx
push eax
fldcw word [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.1000c752
mov edi, eax
xor ebp, ebp
add esp, 4
cmp edi, ebp
jne 0x10002df8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
mov edx, dword [esp + 0x1c]
push esi
push edx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.10012e10
add esp, 0x10
test eax, eax
je 0x10002e25
push edi
call fcn.1000c4c5
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0xc
ret 8
mov ecx, dword [esp + 0xc]
mov eax, dword [ebx + 0x28]
lea esi, [ebx + 0x24]
add ecx, 8
mov dword [esp + 0x1c], ecx
cmp eax, ebp
je 0x10002e49
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 4
lea edx, [esp + 0x20]
push edx
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
call fcn.10001040
push 4
lea eax, [esp + 0x24]
push eax
call fcn.10001040
mov ecx, dword [esp + 0xc]
push ecx
push edi
call fcn.10001040
push edi
call fcn.1000c4c5
mov eax, dword [esi + 4]
mov ebp, dword [ebx + 0x28]
add esp, 4
test eax, eax
jne 0x10002e8c
xor esi, esi
jmp 0x10002e91
mov esi, dword [esi + 8]
sub esi, eax
xor edi, edi
test esi, esi
jbe 0x10002eb6
mov ecx, dword [ebx + 0x34]
push 0
mov edx, esi
sub edx, edi
push edx
lea eax, [edi + ebp]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10002eb6
add edi, eax
cmp edi, esi
jb 0x10002e97
mov edx, dword [ebx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
Function at 0x100030a0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
push edi
push esi
call fcn.100036a0
mov eax, dword [esi + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10003139
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebp, dword [sym.imp.KERNEL32.dll_CancelIo]
lea esp, [esp]
mov ecx, dword [esp + 0x14]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10003129
mov edx, dword [esi + 0x40]
push edx
call edi
push 4
lea edx, [esp + 0x10]
push edx
mov eax, 1
push 0x80
mov word [esp + 0x18], ax
mov eax, dword [esi + 0x34]
push 0xffff
xor ecx, ecx
push eax
mov word [esp + 0x22], cx
call ebx
mov ecx, dword [esi + 0x34]
push ecx
call ebp
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100030d0
pop edi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x10003140
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [eax]
dec ecx
push esi
push edi
cmp ecx, 0xc
ja case.default.0x1000315b
jmp dword [ecx*4 + 0x100032c0]
lea edx, [eax + 4]
mov ecx, ebx
call fcn.100038c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 9
call fcn.10002d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add eax, 4
push eax
mov ecx, ebx
call fcn.10003a50
push 4
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 9
call fcn.10002d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add eax, 4
mov edi, ebx
call fcn.10003d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add eax, 4
push eax
mov eax, ebx
call fcn.10003c40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [eax + 4]
call fcn.10003300
push 4
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 7
call fcn.10002d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 2]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
call fcn.10002d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
call fcn.10003f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [eax + 4]
mov dword [ebx + 0x6c], ecx
mov ecx, ebx
call fcn.10004090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edi, [eax + 4]
mov ecx, ebx
call fcn.10003fe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
add edx, 0xfffffffc
push edx
lea edx, [eax + 4]
mov ecx, ebx
call fcn.100041e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 5
add eax, 4
push eax
call fcn.100034b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
add eax, 4
push eax
call fcn.100034b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10003175
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [eax]
dec ecx
push esi
push edi
cmp ecx, 0xc
ja case.default.0x1000315b
jmp dword [ecx*4 + 0x100032c0]
lea edx, [eax + 4]
mov ecx, ebx
call fcn.100038c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 9
call fcn.10002d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add eax, 4
push eax
mov ecx, ebx
call fcn.10003a50
push 4
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 9
call fcn.10002d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add eax, 4
mov edi, ebx
call fcn.10003d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add eax, 4
push eax
mov eax, ebx
call fcn.10003c40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [eax + 4]
call fcn.10003300
push 4
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 7
call fcn.10002d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 2]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
call fcn.10002d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
call fcn.10003f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [eax + 4]
mov dword [ebx + 0x6c], ecx
mov ecx, ebx
call fcn.10004090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edi, [eax + 4]
mov ecx, ebx
call fcn.10003fe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
add edx, 0xfffffffc
push edx
lea edx, [eax + 4]
mov ecx, ebx
call fcn.100041e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 5
add eax, 4
push eax
call fcn.100034b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
add eax, 4
push eax
call fcn.100034b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10003300
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008b888
push 0x1000df70
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1008e060]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*4 + 4]
push eax
call fcn.1000c894
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x1000348e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x100033d1
lea eax, [edi + 2]
cmp word [eax], 0x5c
jne 0x100033d1
mov esi, eax
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x100033a0
cmp ax, 0x5c
je 0x100033a0
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x10003384
cmp word [esi], 0
je 0x100033b0
add esi, 2
mov dword [ebp - 0x1c], esi
lea esp, [esp]
movzx eax, word [esi]
test ax, ax
je 0x100033c9
cmp ax, 0x5c
je 0x100033c9
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x100033a9
cmp word [esi], 0
je 0x100033f9
jmp 0x100033f3
lea eax, [edi + 2]
cmp word [eax], 0x3a
jne 0x100033f9
mov esi, eax
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x100033f9
cmp ax, 0x5c
jne 0x100033f9
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
movzx eax, word [esi]
test ax, ax
je 0x10003452
cmp ax, 0x5c
jne 0x10003444
xor ecx, ecx
mov word [esi], cx
push edi
call ebx
cmp eax, 0xffffffff
jne 0x10003438
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000343c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000343c
push edi
jmp 0x10003486
test al, 0x10
je 0x10003435
mov edx, 0x5c
mov word [esi], dx
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003400
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.1000c7b7
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1000c7b7
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100034b0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x65c
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push ebp
mov ebp, dword [esp + 0x668]
push esi
push edi
push 0x208
lea eax, [esp + 0x74]
push 0
push eax
mov dword [esp + 0x20], 0x208
call fcn.100113d0
add esp, 0xc
push 0x2e
push 0
push ebp
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
jne 0x10003501
xor eax, eax
jmp 0x1000367a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push connect
call ebx
test eax, eax
jne 0x100034fa
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x74]
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
push 0x3e8
lea eax, [esp + 0x27c]
push 0
push eax
call fcn.100113d0
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x288]
push str._s_shellopencommand
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x284]
push ecx
push connect
call ebx
test eax, eax
jne 0x100034fa
push 0x208
push eax
lea edx, [esp + 0x78]
push edx
call fcn.100113d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x74]
push ecx
push 0
push edx
mov dword [esp + 0x24], 0x208
call esi
mov eax, dword [esp + 0x10]
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrW]
push 0x10089d24
lea ecx, [esp + 0x74]
push ecx
call esi
test eax, eax
jne 0x1000360e
push 0x10089d2c
lea edx, [esp + 0x74]
push edx
call esi
test eax, eax
jne 0x1000360e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10089d34
lea eax, [esp + 0x74]
push eax
call esi
push ebp
lea ecx, [esp + 0x74]
push ecx
call esi
jmp 0x10003616
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40
lea edx, [esp + 0x20]
push 0
push edx
call fcn.100113d0
mov eax, dword [esp + 0x680]
add esp, 0xc
mov dword [esp + 0x18], 0x44
mov word [esp + 0x48], ax
mov dword [esp + 0x44], 0x101
test eax, eax
je 0x1000364f
mov dword [esp + 0x20], 0x10089d38
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, 1
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0x65c
ret 8
Function at 0x100036a0
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
sub esp, 0xae8
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0xae4], eax
mov eax, dword [esp + 0xaec]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x8f0]
push ecx
push 0x200
mov dword [esp + 0x34], eax
mov dword [esp + 0x4f8], 7
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebp, ebp
lea edi, [esp + 0x8f0]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
lea esi, [ebp + 4]
cmp word [esp + 0x8f0], bp
je 0x1000388a
jmp 0x10003712
xor ebp, ebp
push 0x208
lea edx, [esp + 0x2ec]
push ebp
push edx
call fcn.100113d0
push 0x2b4
lea eax, [esp + 0x40]
push ebp
push eax
call fcn.100113d0
add esp, 0x18
push 0x400
push 0x2b4
lea ecx, [esp + 0x38]
push ecx
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push 0x10089d58
push edi
call ebx
test eax, eax
je 0x100037c8
push 0x10089d60
push edi
call ebx
test eax, eax
je 0x100037c8
push 0x104
lea edx, [esp + 0x2ec]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x100037db
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
shrd eax, edx, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
shrd eax, ecx, 0x14
shr edx, 0x14
mov dword [esp + 0x14], eax
shr ecx, 0x14
jmp 0x100037e3
push str.FAT32
lea edx, [esp + 0x2ec]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x244]
push eax
call ebx
lea ecx, [esp + 0x2e8]
push ecx
lea ebp, [eax + eax + 2]
call ebx
mov dx, word [edi]
mov word [esp + esi + 0x4f0], dx
push edi
lea ebx, [eax + eax + 2]
add esi, 2
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [esp + 0x14]
mov dword [esp + esi + 0x4f0], eax
mov eax, dword [esp + 0x10]
add esi, 4
mov dword [esp + esi + 0x4f0], eax
add esi, 4
mov dword [esp + esi + 0x4f0], ecx
push ebp
lea edx, [esp + 0x248]
add esi, 4
push edx
lea eax, [esp + esi + 0x4f8]
push eax
call fcn.100119c0
push ebx
lea ecx, [esp + 0x2f8]
add esi, ebp
push ecx
lea edx, [esp + esi + 0x504]
push edx
call fcn.100119c0
add esp, 0x18
push edi
add esi, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi + eax*2 + 2], 0
lea edi, [edi + eax*2 + 2]
jne 0x10003710
mov ebx, dword [esp + 0x2c]
push esi
lea eax, [esp + 0x4f4]
push eax
call fcn.10002d80
mov ecx, dword [esp + 0xaf4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0xae8
ret 4
Function at 0x100038c0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x46c
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x464], eax
push ebx
push ebp
push esi
push edi
mov ebp, 0x2800
mov ebx, ecx
push ebp
push 8
mov dword [esp + 0x1c], ebx
mov esi, edx
mov dword [ebx + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov edi, eax
lea eax, [esp + 0x26c]
push 0x10089d74
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1000394d
push 4
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call fcn.10002d80
or eax, 0xffffffff
jmp 0x10003a35
mov dword [edi], 0
mov esi, 4
jmp 0x10003960
lea ecx, [ebp - 0x208]
cmp esi, ecx
jbe 0x10003983
add ebp, 0x208
push ebp
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
push 0x10089d84
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10003a00
push 0x10089d88
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10003a00
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
mov dword [esi + edi], ecx
push edx
add esi, 4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esi + edi]
push ecx
call fcn.100119c0
mov edx, dword [esp + 0x40]
add esi, ebx
mov ebx, dword [esp + 0x20]
mov dword [esi + edi], edx
mov eax, dword [esp + 0x44]
mov dword [esi + edi + 4], eax
mov ecx, dword [esp + 0x38]
add esi, 8
mov dword [esi + edi], ecx
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esi + edi + 4], edx
add esi, 8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10003960
push esi
push edi
call fcn.10002d80
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000c146
add esp, 0x46c
ret