joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56b080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x56b0ac
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x56b09d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x56b0e0
cmp dword [esi + 8], 0
jne 0x56b0d0
push 0x792b90
push dword [eax + 8]
call fcn.00700261
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x56b0d0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00700779
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x56b102
mov eax, dword [esi + 8]
test eax, eax
je 0x56b0fc
push eax
call fcn.00700327
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x56b9e0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x56ba12
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x56d340
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x8c
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, dword [esp + 0x98]
lea eax, [esp + 0xd]
push edi
push 0x80
push 0
push eax
mov edi, ecx
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call fcn.006f87a0
mov bl, byte [edi + 0x80]
lea eax, [esp + 0x1c]
add esp, 0xc
xor edx, edx
sub edi, eax
nop
lea ecx, [esp + 0x10]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, bl
mov byte [ecx], al
cmp edx, 0x80
jb 0x56d390
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [esp + 0x10], 0
jne 0x56d3c2
xor ecx, ecx
jmp 0x56d3d9
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56d3d0
sub ecx, edx
push ecx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00409620
mov ecx, dword [esp + 0x94]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006f7ca4
add esp, 0x8c
ret 4
Function at 0x56f1a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 8]
push ebx
test edx, edx
je 0x56f272
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x56f272
mov eax, dword [edx]
mov ecx, 0x20
mov dword [ebx], eax
movzx eax, word [edx + 4]
mov word [ebx + 4], ax
movzx eax, word [edx + 6]
mov word [ebx + 6], ax
mov eax, dword [edx + 8]
mov dword [ebx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [ebx + 0x10], eax
movzx eax, word [edx + 0x14]
mov word [ebx + 0x14], ax
movzx eax, word [edx + 0x16]
mov word [ebx + 0x16], ax
mov eax, dword [edx + 0x18]
mov dword [ebx + 0x18], eax
movdqu xmm0, xmmword [edx + 0x1c]
push esi
push edi
movdqu xmmword [ebx + 0x1c], xmm0
lea edi, [ebx + 0x64]
movdqu xmm0, xmmword [edx + 0x2c]
lea esi, [edx + 0x64]
movdqu xmmword [ebx + 0x2c], xmm0
movdqu xmm0, xmmword [edx + 0x3c]
movdqu xmmword [ebx + 0x3c], xmm0
movdqu xmm0, xmmword [edx + 0x4c]
movdqu xmmword [ebx + 0x4c], xmm0
mov eax, dword [edx + 0x5c]
mov dword [ebx + 0x5c], eax
mov eax, dword [edx + 0x60]
mov dword [ebx + 0x60], eax
rep movsd dword es:[edi], dword [esi]
movdqu xmm0, xmmword [edx + 0xe4]
pop edi
pop esi
movdqu xmmword [ebx + 0xe4], xmm0
mov eax, dword [edx + 0xf4]
mov dword [ebx + 0xf4], eax
mov eax, dword [edx + 0xf8]
mov dword [ebx + 0xf8], eax
mov eax, dword [edx + 0xfc]
mov dword [ebx + 0xfc], eax
mov al, 1
pop ebx
ret
xor al, al
pop ebx
ret
Function at 0x573dc0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x20c
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
lea eax, [esp + 8]
push 0x201
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.006f87a0
add esp, 0xc
lea eax, [esp + 8]
push 0x201
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
test eax, eax
jne 0x573e46
cmp byte [esp + 8], al
jne 0x573e27
xor ecx, ecx
jmp 0x573e39
lea ecx, [esp + 8]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x573e30
sub ecx, edx
push ecx
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00409620
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.006f7ca4
add esp, 0x20c
ret
Function at 0x577b20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x75ceeb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x238]
mov edi, dword [esp + 0x230]
mov ecx, dword [esi]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], eax
call fcn.005726b0
movzx ecx, word [edi + 2]
xor eax, eax
test cl, 8
je 0x577ba5
movzx eax, word [edi + 0xe]
cmp eax, 0x100
jbe 0x577ba5
mov eax, dword [esi]
mov dword [eax + 0x384], 0x69
xor al, al
jmp 0x577c75
lea eax, [eax*2 + 0x15]
mov dword [esp + 0x3c], eax
test cl, 0xf
je 0x577bbc
add eax, 0x10
mov dword [esp + 0x3c], eax
lea edi, [eax + 0x13]
mov dword [esp + 0x2c], 0
and edi, 0xfffffff0
lea ecx, [esp + 0xc]
xorps xmm0, xmm0
add edi, 5
push 0
push edi
movdqu xmmword [esp + 0x14], xmm0
movdqu xmmword [esp + 0x24], xmm0
call fcn.0040a7b0
mov ecx, dword [esp + 0x3c]
xor esi, esi
cmp dword [esp + 0x14], esi
mov eax, dword [esp + 0x234]
cmovne esi, dword [esp + 0x10]
cmp ecx, eax
mov dword [esp + 0x228], 0
cmovb eax, ecx
push eax
push dword [esp + 0x38]
lea eax, [esi + 5]
mov word [esi], cx
push eax
mov byte [esi + 4], 9
call fcn.006f8110
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x50]
add esp, 0xc
mov ecx, dword [ecx]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push 0x10
push edx
mov eax, dword [eax + 0xc]
push edi
push esi
call eax
test eax, eax
jne 0x577c4e
mov byte [esp + 0x43], al
jmp 0x577c5d
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x46]
mov byte [esp + 0x43], 1
mov dword [ecx], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040bf60
mov al, byte [esp + 0x43]
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x220
ret 0xc
Function at 0x582eb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x24
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 0x1c
push eax
push dword [esp + 0x34]
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0
movdqu xmmword [esp + 0x14], xmm0
movq qword [esp + 0x24], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x582f18
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.00574e20
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x24
ret
mov ecx, dword [esp + 0x24]
xor al, al
pop esi
xor ecx, esp
call fcn.006f7ca4
add esp, 0x24
ret

Function at 0x58426e
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5842c7
cmp dword [esi + 0x78], 0xffffffff
jne 0x5842c7
cmp byte [esi + 4], 0
je 0x584296
mov al, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.006f7ca4
add esp, 8
ret
lea ecx, [esp + 4]
mov dword [esp + 4], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
sete al
mov byte [esi + 4], al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.006f7ca4
add esp, 8
ret
mov ecx, dword [esp + 8]
xor al, al
pop esi
xor ecx, esp
call fcn.006f7ca4
add esp, 8
ret

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

Disassembly:
cmp byte [esp + 4], 0
push ebx
push esi
mov esi, ecx
mov bl, 1
je 0x5851bb
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x5851bb
mov eax, dword [esi + 0x14]
push 0
push 0
push 0x77e880
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x5851f6
mov eax, dword [esi + 0x14]
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jns 0x5851eb
mov dword [esi + 0xc], 0x64
xor bl, bl
and dword [esi + 8], 0xfffffffd
mov dword [esi + 0x14], 0xffffffff
call fcn.004fa960
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x585500
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x128
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x144]
movdqu xmm0, xmmword [esp + 0x12c]
push ebp
mov ebp, dword [esp + 0x14c]
push esi
push edi
mov dword [esp + 0x28], eax
mov edi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
movdqu xmmword [esp + 0x14], xmm0
mov eax, dword [edi + 0x14]
xor esi, esi
movq xmm0, qword [esp + 0x14c]
push 0x8004667e
push eax
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x1c
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5855e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x5855c6
push 0x100
lea eax, [esp + 0x34]
push esi
push eax
call fcn.006f87a0
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push ebp
push esi
push eax
mov eax, dword [edi + 0x14]
push esi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5855cb
or esi, 0xffffffff
jmp 0x5855e1
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 0x14]
push eax
call sub.WS2_32.dll___WSAFDIsSet
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esp + 0x130]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.006f7ca4
add esp, 0x128
ret 0x20

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

Disassembly:
push esi
mov esi, ecx
test byte [esi + 8], 2
jne 0x5859b6
mov dword [esi + 0xc], 0x64
xor al, al
pop esi
ret 0xc
mov eax, dword [esi]
push ebp
push dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
mov eax, dword [eax + 0x70]
push ebp
call eax
test al, al
jne 0x5859d0
pop ebp
pop esi
ret 0xc
push ebx
mov ebx, dword [esp + 0x10]
push edi
xor edi, edi
test ebp, ebp
je 0x5859fe
lea esp, [esp]
mov ecx, dword [esi + 0x14]
mov eax, ebp
push 0
sub eax, edi
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x585a07
add edi, eax
add ebx, eax
cmp edi, ebp
jb 0x5859e0
pop edi
pop ebx
pop ebp
mov al, 1
pop esi
ret 0xc
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x585a27
mov eax, dword [esi + 0x14]
push 0
push 0
push 0x77e880
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x585a60
mov eax, dword [esi + 0x14]
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jns 0x585a55
mov dword [esi + 0xc], 0x64
and dword [esi + 8], 0xfffffffd
mov dword [esi + 0x14], 0xffffffff
call fcn.004fa960
pop edi
pop ebx
pop ebp
mov dword [esi + 0xc], 0x66
xor al, al
pop esi
ret 0xc
Function at 0x5892f0
Capabilities:
Hash data using fnv

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, dword [eax]
movzx eax, cl
xor eax, 0x811c9dc5
mov edi, dword [esi + 0x14]
imul edx, eax, 0x1000193
movzx eax, ch
mov dword [esp + 0xc], ecx
xor edx, eax
movzx eax, byte [esp + 0xe]
imul ecx, edx, 0x1000193
mov edx, edi
xor ecx, eax
movzx eax, byte [esp + 0xf]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
and edx, eax
cmp dword [esi + 0x18], edx
ja 0x58934c
shr edi, 1
or ecx, 0xffffffff
sub ecx, edi
pop edi
pop esi
lea eax, [ecx + edx]
ret 4
pop edi
mov eax, edx
pop esi
ret 4
Function at 0x58c610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x75f0d4
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [0x8531e4]
test eax, eax
jne 0x58c6d2
push 4
call fcn.006f7558
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ebx
test esi, esi
je 0x58c6a6
mov dword [esi], ebx
lea ecx, [esp + 0x18]
push 9
push str.CmApiComm
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00409620
mov dword [esp + 0x14], vtable.wbs::StringBase_char_.0
lea eax, [esp + 0x14]
mov byte [esp + 0x38], 1
mov ebx, 1
mov ecx, esi
push eax
mov dword [esp + 0x10], ebx
call fcn.00736bd0
jmp 0x58c6a8
xor eax, eax
mov dword [0x8531e4], eax
test bl, 1
je 0x58c6d2
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], vtable.wbs::StringBase_char_.0
jb 0x58c6d2
push dword [esp + 0x18]
call fcn.006f75a9
mov eax, dword [0x8531e4]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret

Function at 0x58e270
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
push str.setupapi.dll
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x58e2c3
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x58e32a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CM_Locate_DevNodeA
push eax
call esi
push str.CM_Request_Device_EjectA
push dword [edi + 0x1c]
mov dword [edi], eax
call esi
push 0x793fb4
push dword [edi + 0x1c]
mov dword [edi + 0x18], eax
call esi
push 0x793fc4
push dword [edi + 0x1c]
mov dword [edi + 4], eax
call esi
push str.CM_Get_DevNode_Status
push dword [edi + 0x1c]
mov dword [edi + 8], eax
call esi
push 0x793fec
push dword [edi + 0x1c]
mov dword [edi + 0xc], eax
call esi
push 0x794004
push dword [edi + 0x1c]
mov dword [edi + 0x10], eax
call esi
mov dword [edi + 0x14], eax
pop esi
mov eax, edi
pop edi
ret
Function at 0x58e3c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x514
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x510], eax
push ebp
push esi
mov esi, dword [esp + 0x520]
lea eax, [esp + 0x118]
push edi
mov edi, dword [esp + 0x528]
push 0x400
push 0
push eax
mov byte [esp + 0x1b], 0
call fcn.006f87a0
push 0x100
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.006f87a0
mov ebp, dword [esp + 0x544]
push ebp
push 0
push edi
call fcn.006f87a0
add esp, 0x24
test esi, esi
je 0x58e572
cmp byte [esi], 0
je 0x58e572
test edi, edi
je 0x58e572
test ebp, ebp
je 0x58e572
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SYSTEMMountedDevices
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x58e572
push esi
push str.DosDevices_
push str._s_s
push 0x100
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0x400
push 0x100
push eax
call fcn.006f8d83
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x58e572
cmp dword [esp + 0x18], 3
jne 0x58e572
mov ax, word [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x18]
shr ebx, 1
cmp ax, 0x5c
jne 0x58e509
cmp word [esp + 0x122], 0x3f
jne 0x58e571
cmp word [esp + 0x124], 0x3f
jne 0x58e571
cmp word [esp + 0x126], ax
jmp 0x58e52d
cmp ax, 0x5f
jne 0x58e571
cmp word [esp + 0x122], 0x3f
jne 0x58e571
cmp word [esp + 0x124], 0x3f
jne 0x58e571
cmp word [esp + 0x126], ax
jne 0x58e571
mov byte [esp + 0x13], 1
mov edx, 0
sub ebx, 4
je 0x58e56e
xor esi, esi
mov cl, byte [esp + edx*2 + 0x128]
cmp cl, 0x7b
je 0x58e56e
cmp cl, 0x23
jne 0x58e55e
cmp word [esp + edx*2 + 0x12a], 0x7b
je 0x58e56e
mov cl, 0x5c
lea eax, [ebp - 1]
cmp esi, eax
jge 0x58e569
mov byte [edi], cl
inc edi
inc esi
inc edx
cmp edx, ebx
jb 0x58e540
mov byte [edi], 0
pop ebx
mov ecx, dword [esp + 0x51c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.006f7ca4
add esp, 0x514
ret
Function at 0x58e9b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
mov ebx, dword [esp + 0x81c]
lea eax, [esp + 0x14]
push esi
mov esi, dword [esp + 0x824]
push edi
push 0x400
push 0
push eax
mov byte [esp + 0x1b], 0
call fcn.006f87a0
mov edi, dword [esp + 0x838]
add esp, 0xc
test esi, esi
je 0x58ea00
test edi, edi
je 0x58ea00
mov byte [esi], 0
test ebx, ebx
je 0x58eaeb
cmp byte [ebx], 0
je 0x58eaeb
test esi, esi
je 0x58eaeb
test edi, edi
je 0x58eaeb
push ebx
push str.SYSTEMCurrentControlSetEnum_
push str._s_s
push 0x400
lea eax, [esp + 0x2c]
push 0x400
push eax
call fcn.006f8d83
add esp, 0x18
lea eax, [esp + 0x10]
push eax
push 1
push 0
lea eax, [esp + 0x28]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x58eaeb
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x400
push eax
lea eax, [esp + 0x420]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push str.FriendlyName
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
je 0x58eaba
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x420]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push str.DeviceDesc
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x58eaeb
cmp dword [esp + 0x18], 1
jne 0x58eaeb
lea eax, [esp + 0x41c]
push eax
push 0x7801e4
push edi
push edi
push esi
call fcn.006f8d83
add esp, 0x14
mov al, 1
jmp 0x58eaef
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006f7ca4
add esp, 0x814
ret 0xc

Function at 0x58eb10
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
push ebx
xor bl, bl
movsx eax, byte [eax]
push eax
lea eax, [esp + 8]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
je 0x58eb53
sub eax, 3
mov al, bl
jne 0x58eb55
mov al, 1
mov ecx, dword [esp + 0xc]
pop ebx
xor ecx, esp
call fcn.006f7ca4
add esp, 0xc
ret 4
Function at 0x58f0c0
Capabilities:
Create directory
Set file attributes

Disassembly:
sub esp, 0x20
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov ebx, ecx
mov byte [esp + 7], 0
push ebp
push esi
lea esi, [ebx + 4]
mov byte [ebx + 0x1c], 0
cmp dword [esi + 0x14], 8
push edi
jb 0x58f0ea
mov eax, dword [esi]
jmp 0x58f0ec
mov eax, esi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0xa0000000
push 2
push 0
push 3
push 0xc0000000
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x58f1aa
cmp dword [esi + 0x14], 8
jb 0x58f11c
mov eax, dword [esi]
jmp 0x58f11e
mov eax, esi
movzx eax, word [eax]
xor ecx, ecx
push eax
push 0x794150
lea eax, [esp + 0x1c]
mov word [esp + 0x1c], cx
xorps xmm0, xmm0
mov dword [esp + 0x2e], ecx
push 0x18
push eax
movdqu xmmword [esp + 0x26], xmm0
mov word [esp + 0x3a], cx
call fcn.0058ff60
add esp, 0x10
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x58f16d
push 2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x58f175
mov esi, dword [esi]
push 0
push 0xa0000000
push 2
push 0
push 3
push 0xc0000000
push esi
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x58f1aa
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x20
ret 8
cmp dword [esp + 0x38], 3
jne 0x58f1dd
push dword [esp + 0x34]
push edi
call fcn.0058fe50
add esp, 8
test al, al
je 0x58f255
mov ecx, ebx
call fcn.0058faa0
test al, al
je 0x58f255
mov byte [ebx + 0x1c], 1
mov bl, 1
jmp 0x58f259
mov ecx, ebx
xor ebp, ebp
call fcn.0058f420
test eax, eax
jle 0x58f200
cmp eax, 2
jle 0x58f1fb
cmp eax, 3
jne 0x58f200
mov ebp, 0x1000
jmp 0x58f200
mov ebp, 0x200
mov esi, dword [esp + 0x34]
xor eax, eax
cmp ax, si
jne 0x58f213
mov eax, ebp
shr eax, 9
movzx esi, ax
cmp dword [esp + 0x38], 2
jne 0x58f226
push esi
push edi
call fcn.0058fe50
add esp, 8
jmp 0x58f23c
xor eax, eax
cmp ax, si
je 0x58f233
movzx ebp, si
shl ebp, 9
push ebp
push edi
mov ecx, ebx
call fcn.0058f9a0
test al, al
je 0x58f255
push edi
mov ecx, ebx
call fcn.0058f660
cmp ax, si
sete al
mov byte [ebx + 0x1c], al
mov bl, 1
jmp 0x58f259
mov bl, byte [esp + 0x13]
cmp edi, 0xffffffff
je 0x58f265
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006f7ca4
add esp, 0x20
ret 8