joyce8/EMBER2024-capa huggingface dataset:
Function at 0x597530
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x630f50]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x134]
push ebp
push edi
mov edi, dword [esi]
push 1
push 0
push edi
or ebp, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.005894b0
add esp, 0xc
test eax, eax
jl 0x597599
mov ecx, 0x3e8
cmp eax, ecx
jge 0x597570
mov ecx, eax
push ecx
push 0xffffffffffffffff
push ebx
call fcn.0059f610
add esp, 0xc
cmp eax, 0xffffffff
je 0x597634
test eax, eax
jne 0x5975be
push 1
push eax
push edi
call fcn.005894b0
add esp, 0xc
test eax, eax
jge 0x597565
push str.Timeout_while_waiting_for_server_connect
push edi
call fcn.0057ea10
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00553d0c
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x5975ee
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WSOCK32.dll_accept]
mov ebp, eax
push ebx
push esi
call fcn.00589cc0
add esp, 8
cmp ebp, 0xffffffff
jne 0x597604
push str.Error_accept__ing_server_connect
jmp 0x597639
push str.Connection_accepted_from_server_n
push edi
call fcn.0057e980
push 1
push ebp
mov dword [esi + 0x134], ebp
call fcn.005a3380
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00553d0c
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push edi
call fcn.0057ea10
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.00553d0c
add esp, 0x18
ret
Function at 0x598600
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x598636
push str.Couldnt_set_desired_mode
push ebx
call fcn.0057ea10
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x59864d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.0057e980
add esp, 0xc
cmp ebp, 0x13
jne 0x59865f
mov eax, edi
call fcn.005981c0
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x598673
push edi
call fcn.00598210
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x598685
mov eax, edi
call fcn.00598330
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x598693
mov eax, edi
call fcn.00598340
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x59f610
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x59f654
cmp ebp, ebx
jne 0x59f654
mov eax, dword [esp + 0x334]
push eax
call fcn.0059f5e0
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x59f66f
mov esi, edi
call fcn.0058e810
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x59f6a3
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x59f6ea
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x59f6d2
cmp dword [esp + eax*4 + 0x24], ebp
je 0x59f6d2
add eax, 1
cmp eax, ecx
jb 0x59f6c5
cmp eax, ecx
jne 0x59f6e4
cmp ecx, 0x40
jae 0x59f6e4
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x59f6ea
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea ecx, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, ecx
lea ecx, [ecx]
xor eax, eax
cmp edi, eax
jle 0x59f731
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x59f73b
jne 0x59f73b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x130]
push edx
push ebp
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x59f7a5
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
je 0x59f76e
cmp eax, 0x2714
jne 0x59f7a9
test edi, edi
jle 0x59f700
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0058e810
push edx
push eax
call fcn.0058e840
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x59f700
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x59f7b7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x59f7c6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x59f7fd
lea edx, [esp + 0x124]
push edx
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x59f7eb
mov esi, 1
lea eax, [esp + 0x20]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x59f7fd
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x59f830
lea ecx, [esp + 0x228]
push ecx
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x59f81e
or esi, 2
lea edx, [esp + 0x20]
push edx
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x59f830
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x5a1380
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x5a138f
jmp dword [ecx*4 + 0x5a13e4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x5a1570
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x630f50]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005728bc
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x5a15d5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x5a15d5
lea edx, [esp]
push edx
call dword [0x63272c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00553d0c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00553d0c
add esp, 0x108
ret
jmp 0x5a1570

Function at 0x5a15f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x630f50]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.005728bc
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x5a15d5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x5a15d5
lea edx, [esp]
push edx
call dword [0x63272c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00553d0c
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00553d0c
add esp, 0x108
ret
jmp 0x5a1570

Function at 0x5a37c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x5a37d9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0058e810
push edx
push eax
call fcn.0058e840
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x5a3826
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.0058e810
push edx
push eax
call fcn.0058e840
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x5a3828
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x5a4180
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x632720]
mov edi, eax
add esp, 4
test edi, edi
jne 0x5a41a5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x5a41ec
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x5a41f0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x10], 0
jbe 0x5a4250
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
add ebx, 1
call edx
add esp, 0x18
sub ebp, 1
jne 0x5a4213
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x10]
pop ebp
pop ebx
jae 0x5a4293
jmp 0x5a4260
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x6024ec
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x6024ed
push eax
call ecx
mov eax, dword [esp + 0x20]
add eax, 1
add esp, 0x18
cmp eax, dword [esi + 0x10]
mov dword [esp + 8], eax
jb 0x5a4260
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x5a4310
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x5a4c10
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
mov byte [esi + edi - 1], 0
jne 0x5a4c42
push 0x2e
push esi
call fcn.00559f30
add esp, 8
test eax, eax
je 0x5a4c40
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x10030f70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10030f9e
xor al, al
jmp 0x1003103a
lea ecx, [ebp - 0x24]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10030fc1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1003103a
mov dword [ebp - 0x14], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [ebp + ecx - 0x10], edx
mov dword [ebp + ecx - 0xc], eax
movzx ecx, byte [ebp + 8]
cmp ecx, 1
jne 0x10030ff0
mov dword [ebp - 0x1c], 2
jmp 0x10030ff7
mov dword [ebp - 0x1c], 0
mov edx, 0xc
imul eax, edx, 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + eax - 8], ecx
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1003102e
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1003103a
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
Function at 0x10031240
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d7a1f
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x43c], 0
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.1004e550
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.1004e550
add esp, 0xc
mov dword [ebp - 0x444], 0
lea ecx, [ebp - 0x438]
call fcn.10008dd0
mov dword [ebp - 4], 1
push 1
call fcn.10030f70
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x100312e9
jmp 0x10031346
push 0x104
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x440]
push ecx
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
jne 0x10031307
jmp 0x10031346
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.10030cc0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x10031326
jmp 0x10031346
mov dword [ebp - 0x444], 1
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x438]
call fcn.1000b660
xor eax, eax
jne 0x100312c7
cmp dword [ebp - 0x440], 0
je 0x1003135c
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.10030f70
add esp, 4
cmp dword [ebp - 0x444], 0
je 0x100313a4
lea edx, [ebp - 0x438]
push edx
mov ecx, dword [ebp + 8]
call fcn.10008770
mov eax, dword [ebp - 0x43c]
or eax, 1
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.1000a9f0
mov eax, dword [ebp + 8]
jmp 0x10031429
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10031050
add esp, 8
movzx eax, al
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x100313fb
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100088b0
mov edx, dword [ebp - 0x43c]
or edx, 1
mov dword [ebp - 0x43c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.1000a9f0
mov eax, dword [ebp + 8]
jmp 0x10031429
push 0x101dac2c
mov ecx, dword [ebp + 8]
call fcn.100088b0
mov eax, dword [ebp - 0x43c]
or eax, 1
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.1000a9f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
Function at 0x10031b20
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d7ae5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x29], 0
xor eax, eax
mov byte [ebp - 0x2a], al
push 0x101dcc74
lea ecx, [ebp - 0x28]
call fcn.100088b0
mov dword [ebp - 4], 0
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x30], esp
movzx edx, byte [ebp - 0x2a]
push edx
call fcn.10031760
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov byte [ebp - 4], 0
call fcn.10031f70
add esp, 0x30
mov byte [ebp - 0x2b], al
mov dl, byte [ebp - 0x2b]
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000a9f0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10031bc1
mov ecx, dword [ebp + 8]
call fcn.1000f5a0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
Function at 0x10031c30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d7b40
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.10010010
movzx eax, al
test eax, eax
je 0x10031c92
mov byte [ebp - 0x2aa], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1002fcd0
mov al, byte [ebp - 0x2aa]
jmp 0x10031e40
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.1001a248
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
push edx
call fcn.10031be0
add esp, 4
push 0x101dcc74
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.100023b0
add esp, 0xc
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [ebp - 0x58]
call fcn.1000f5a0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0xffffffff
jne 0x10031d25
mov byte [ebp - 0x2ab], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.1000a9f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.1000a9f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1002fcd0
mov al, byte [ebp - 0x2ab]
jmp 0x10031e40
mov byte [ebp - 0x2a9], 0
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x27c]
cmp edx, 0x2e
jne 0x10031d46
jmp 0x10031dda
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.1001a248
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1000c2b0
mov edx, dword [ebp - 0x2a8]
and edx, 0x10
je 0x10031da5
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x2b4], esp
lea eax, [ebp + 0xc]
push eax
call fcn.10031870
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push ecx
mov byte [ebp - 4], 3
call fcn.10031c30
add esp, 0x2c
mov byte [ebp - 0x2a9], 1
movzx edx, byte [ebp - 0x2a9]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0xc]
call fcn.10031950
movzx ecx, al
test ecx, ecx
je 0x10031dce
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.1000a9f0
jmp 0x10031df6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.1000a9f0
lea edx, [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10031d25
cmp dword [ebp - 0x2b0], 0xffffffff
je 0x10031e0c
mov ecx, dword [ebp - 0x2b0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x2ac], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.1000a9f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.1000a9f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1002fcd0
mov al, byte [ebp - 0x2ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
Function at 0x10031e60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d7b70
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10269114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], 0xffffffff
push 0
push 0x8000000
push 3
push 0
push 3
push closesocket
mov ecx, dword [ebp + 8]
call fcn.1000f5a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x10031ec7
mov byte [ebp - 0x11], 0
jmp 0x10031f44
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10013500
jmp 0x10031ef9
mov dword [ebp - 4], 0xffffffff
jmp 0x10031f09
jmp 0x10031f14
mov dword [ebp - 0x20], 0
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.1000f580
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [ebp - 0x11], 1
xor edx, edx
jne 0x10031e97
cmp dword [ebp - 0x18], 0xffffffff
je 0x10031f54
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031f70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d7bb5
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.10010010
movzx eax, al
test eax, eax
je 0x10031fd2
mov byte [ebp - 0x2a9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.1002fcd0
mov al, byte [ebp - 0x2a9]
jmp 0x1003213a
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001a248
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
push edx
call fcn.10031be0
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.100022f0
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x58]
call fcn.1000f5a0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0xffffffff
jne 0x10032064
mov byte [ebp - 0x2aa], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.1000a9f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1000a9f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.1002fcd0
mov al, byte [ebp - 0x2aa]
jmp 0x1003213a
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x27c]
cmp eax, 0x2e
jne 0x1003207b
jmp 0x100320d4
mov ecx, dword [ebp - 0x2a8]
and ecx, 0x10
je 0x10032088
jmp 0x100320d4
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x40]
call fcn.1001a248
mov byte [ebp - 4], 3
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.1000c2b0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp + 0x10]
call fcn.100318f0
movzx edx, al
test edx, edx
je 0x100320c8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.1000a9f0
jmp 0x100320f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.1000a9f0
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 0x2b0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10032064
cmp dword [ebp - 0x2b0], 0xffffffff
je 0x10032106
mov edx, dword [ebp - 0x2b0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x2ab], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.1000a9f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1000a9f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.1002fcd0
mov al, byte [ebp - 0x2ab]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret