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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662061
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call fcn.004024f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x19c]
cmp dword [eax], ebx
je 0x571e7b
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx + 0x14]
cmp eax, 0x15
je 0x571e4c
push eax
push str.:_ld
lea edx, [ebp - 0x18]
push edx
call fcn.00402f60
add esp, 0xc
jmp 0x571e59
push 0x67997c
lea ecx, [ebp - 0x18]
call fcn.0054f750
mov eax, dword [esi + 0xc8]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [eax + 0xc]
push eax
push str._s__s_s
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402f60
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.004024f0
mov byte [ebp - 4], 3
push 1
mov edx, dword [0x75eb14]
push edx
mov ecx, esi
call fcn.00562ad0
mov eax, dword [esi + 0x19c]
cmp dword [eax], ebx
je 0x571ea6
mov eax, dword [ebp - 0x1c]
jmp 0x571ec6
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx + 0xc]
push edx
lea ecx, [ebp - 0x24]
call fcn.004030a0
mov byte [ebp - 4], 4
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
push 0x67b29c
push eax
push str.USER__s_s
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0x10
mov dword [ebp - 4], 3
test bl, 1
je 0x571ef7
and ebx, 0xfffffffe
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x24]
call fcn.00402560
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00562270
mov edx, dword [ebp - 0x14]
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x571f10
sub eax, edi
push str.send___USER_n
push 0
push eax
push edx
mov edx, dword [esi + 0x3204]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00562bc0
mov edi, eax
test edi, edi
je 0x571f80
mov eax, dword [esi + 0x3214]
mov dword [eax + 0x14c], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
lea ecx, [esi + 0x31f8]
call fcn.005aa050
mov ecx, esi
call fcn.005624d0
mov dword [esi + 0xa4], 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402560
xor eax, eax
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 0x573dd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x662329
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 1
push 0x67997c
lea ecx, [ebp - 0x14]
call fcn.004030a0
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 4]
cmp ecx, ebx
je 0x573e68
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x573e37
sub eax, edi
test eax, eax
jle 0x573e68
cmp byte [ecx + eax - 1], 0x2f
mov eax, 0x67997c
je 0x573e55
mov eax, 0x67e070
push eax
push ecx
push 0x678de0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
add esp, 0x10
push str.Get_MDTM..._r_n
mov ecx, esi
call fcn.00562270
mov edx, dword [esi + 0xc8]
cmp byte [edx + 0x1ad], 0
je 0x573e88
mov eax, dword [ebp - 0x14]
jmp 0x573ea3
push 0x67997c
lea ecx, [ebp - 0x20]
call fcn.004030a0
mov byte [ebp - 4], 3
mov ebx, 1
mov dword [ebp - 0x1c], ebx
mov eax, dword [eax]
push 0x67b29c
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx + 8]
push edx
push eax
push str.MDTM__s_s_s
lea eax, [ebp - 0x18]
push eax
call fcn.00402f60
add esp, 0x14
mov dword [ebp - 4], 2
test bl, 1
je 0x573ede
and ebx, 0xfffffffe
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x20]
call fcn.00402560
mov edx, dword [ebp - 0x18]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x573ee6
sub eax, edi
push str.send___MDTM
push 0
push eax
push edx
mov ecx, dword [esi + 0x3204]
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00562bc0
mov edi, eax
test edi, edi
je 0x573f4a
mov edx, dword [esi + 0x3214]
mov dword [edx + 0x14c], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402560
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x13
lea ecx, [esi + 0x31f8]
call fcn.005aa050
mov ecx, esi
call fcn.005624d0
mov dword [esi + 0xa4], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402560
xor eax, eax
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 0x578c80
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6626c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.005b5050
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.FTPSession.0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [esi + 0x158], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0xfc], eax
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.005b4960
mov edx, dword [ebp + 0x18]
mov dword [esi + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x254], eax
mov ecx, esi
call fcn.005782f0
push edi
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x888], eax
mov dword [ebp - 4], edi
jmp 0x578d2e
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x57bb90
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
lea ecx, [ebx + 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
push esi
mov esi, dword [esp + 0x18]
lea edx, [edx + ebx + 7]
push edx
push esi
call fcn.0057ad00
add esp, 8
test eax, eax
jne 0x57bbbf
pop esi
pop ebx
pop ecx
ret 0xc
push esi
call fcn.0057acf0
mov ecx, eax
add esp, 4
xor eax, eax
test ebx, ebx
jbe 0x57bc8e
lea edx, [ebx - 1]
mov eax, 0xaaaaaaab
mul edx
push ebp
mov ebp, edx
shr ebp, 1
inc ebp
mov esi, 2
lea eax, [ebp + ebp*2]
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
lea ebx, [ebx]
lea edx, [esi - 1]
cmp edx, ebx
jae 0x57bc0c
mov al, byte [edi + 1]
jmp 0x57bc0e
xor al, al
cmp esi, ebx
jae 0x57bc17
mov dl, byte [edi + 2]
jmp 0x57bc19
xor dl, dl
movzx esi, byte [edi]
shr esi, 2
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Xp]
mov byte [ecx], bl
movzx esi, byte [edi]
movzx eax, al
and esi, 3
mov ebx, eax
shl esi, 4
shr ebx, 4
or esi, ebx
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Xp]
movzx esi, dl
and eax, 0xf
mov edx, esi
mov byte [ecx + 1], bl
mov ebx, dword [esp + 0x1c]
add eax, eax
inc ecx
shr edx, 6
add eax, eax
or edx, eax
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Xp]
inc ecx
and esi, 0x3f
mov byte [ecx], al
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Xp]
mov esi, dword [esp + 0x20]
inc ecx
mov byte [ecx], dl
add esi, 3
inc ecx
add edi, 3
sub ebp, 1
mov dword [esp + 0x20], esi
jne 0x57bc00
mov eax, dword [esp + 0x10]
pop edi
pop ebp
lea edx, [ebx + 1]
cmp eax, edx
jne 0x57bca7
pop esi
mov byte [ecx - 1], 0x3d
mov byte [ecx], 0
mov eax, 1
pop ebx
pop ecx
ret 0xc
add ebx, 2
cmp eax, ebx
jne 0x57bcb6
mov al, 0x3d
mov byte [ecx - 1], al
mov byte [ecx - 2], al
pop esi
mov byte [ecx], 0
mov eax, 1
pop ebx
pop ecx
ret 0xc
Function at 0x57c880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6628a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x3208]
mov ecx, dword [eax + 0xb8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [esi + 0xc8]
call fcn.005d1dc0
mov eax, dword [esi + 0x3208]
mov edi, 1
mov dword [eax + 0x144], edi
mov ecx, dword [esi + 0xc8]
cmp dword [ecx + 0x334], 0
je 0x57c907
mov eax, dword [esi + 0x3208]
test eax, eax
je 0x57c907
cmp dword [eax + 0x40], 0
jne 0x57c9be
mov eax, dword [esi + 0x3208]
mov edx, dword [eax + 0xc8]
or edx, dword [eax + 0xcc]
je 0x57c9b7
xor bl, bl
mov byte [ebp - 0x11], bl
mov dword [ebp + 8], 4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push str.bIgnMTCh
mov edx, dword [0x75dbe4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x57c957
cmp dword [ebp - 0x18], eax
je 0x57c957
mov bl, 1
mov byte [ebp - 0x11], bl
mov eax, dword [esi + 0xc8]
mov eax, dword [eax + 8]
test eax, eax
je 0x57c9b7
test bl, bl
jne 0x57c9b7
push 0x3f
push eax
call fcn.00622170
add esp, 8
test eax, eax
jne 0x57c9b7
mov ecx, dword [esi + 0x3208]
cmp dword [ecx + 0x148], eax
jne 0x57c9aa
push 0x50044
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [0x75ebdc]
push ecx
push 0
call fcn.00473680
add esp, 0x10
cmp eax, 7
je 0x57c9be
mov dword [esi + 0x3260], edi
mov byte [esi + 0x3264], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x590470
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x663650
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea esi, [edi + 0x884]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
cmp dword [esi], 0xffffffff
je 0x5904f3
mov dword [ebp - 0x18], eax
cmp eax, 0x20
jge 0x590513
mov edx, eax
imul edx, edx, 0x3488
mov ecx, dword [edi + 0x274]
mov dword [edx + ecx + 0x110], esi
inc eax
jmp 0x5904d3
mov dword [ebp - 0x1c], eax
cmp eax, 0x20
jge 0x590513
mov edx, eax
imul edx, edx, 0x3488
mov ecx, dword [edi + 0x274]
mov dword [edx + ecx + 0x110], ebx
inc eax
jmp 0x5904f3
mov dword [ebp - 4], 0xffffffff
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 0x590c90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
lea esp, [esp]
push 0
lea edx, [esp + 0x1c]
mov eax, esi
sub eax, 4
push edx
mov ecx, ebx
push eax
sbb ecx, 0
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x590cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x590de0
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x590de0
cmp dword [esp + 0x10], 4
jne 0x590de0
lea edx, [esp + 0x20]
push edx
call fcn.005aa900
add esp, 4
test eax, eax
jbe 0x590de0
xor ecx, ecx
mov edx, 0xfffffffc
sub edx, eax
mov eax, 0xffffffff
sbb eax, ecx
add esi, edx
adc ebx, eax
js 0x590de0
jg 0x590d59
test esi, esi
jbe 0x590de0
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x590d7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x590de0
push 0
lea edx, [esp + 0x14]
push edx
push 0xc
lea eax, [esp + 0x2c]
push eax
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x590da3
cmp dword [esp + 0x10], 0xc
jne 0x590de0
lea ecx, [esp + 0x24]
push ecx
call fcn.0056b5f0
movsx edx, byte [esp + 0x2b]
shl edx, 0x18
add esp, 4
or eax, edx
je 0x590cc0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00620b8d
add esp, 0x20
ret 0x10
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00620b8d
add esp, 0x20
ret 0x10
Function at 0x592310
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x663860
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
cmp edi, 0x7d000
ja 0x592500
push edi
call fcn.005f4e47
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x592500
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
push ebx
lea edx, [esp + 0x20]
push edx
push eax
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x592391
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x5924f7
push ebx
lea eax, [esp + 0x18]
push eax
push edi
push esi
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x5924f7
cmp dword [esp + 0x14], edi
jne 0x5924f7
lea ecx, [esp + 0x20]
call fcn.00553c20
mov dword [esp + 0x3c], ebx
push ebx
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.00554a70
cmp eax, ebx
jge 0x5923f2
push esi
call fcn.005f4e52
add esp, 4
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00553c80
jmp 0x592500
push ebx
lea ecx, [esp + 0x24]
call fcn.00553b90
mov ecx, eax
call fcn.00553c10
push eax
lea ecx, [esp + 0x54]
call fcn.004030a0
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x50]
push str.onMetaData
push ecx
call fcn.004221b0
add esp, 8
test al, al
je 0x5924dc
lea edx, [esp + 0x44]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.duration
call fcn.004030a0
mov byte [esp + 0x44], 2
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x48], 1
call fcn.005ab730
add esp, 0xc
cmp al, bl
je 0x59249a
mov ecx, dword [esp + 0x44]
call fcn.00553a80
mov ecx, dword [esp + 0x54]
push esi
fstp qword [ecx]
call fcn.005f4e52
add esp, 4
mov byte [esp + 0x3c], bl
lea ecx, [esp + 0x50]
call fcn.00402560
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00553c80
mov eax, 1
jmp 0x592502
lea edx, [esp + 0x44]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.isLive
call fcn.004030a0
mov byte [esp + 0x44], 3
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x48], 1
call fcn.005ab730
add esp, 0xc
cmp al, bl
je 0x5924dc
mov ecx, dword [esp + 0x44]
call fcn.00553a90
test al, al
je 0x5924dc
fldz
jmp 0x592466
push esi
call fcn.005f4e52
add esp, 4
mov byte [esp + 0x3c], bl
lea ecx, [esp + 0x50]
call fcn.00402560
jmp 0x5923dc
push esi
call fcn.005f4e52
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x14
Function at 0x592520
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
xor ebp, ebp
push ebp
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x59257c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x59257c
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00620b8d
add esp, 0x24
ret 0x10
push ebp
lea edx, [esp + 0xc]
push edx
push 3
lea eax, [esp + 0x28]
push eax
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x592567
cmp dword [esp + 8], 3
jne 0x592567
cmp byte [esp + 0x1c], 0x46
jne 0x592567
cmp byte [esp + 0x1d], 0x4c
jne 0x592567
cmp byte [esp + 0x1e], 0x56
jne 0x592567
push esi
push edi
mov esi, 0xd
xor edi, edi
lea ecx, [ecx]
push ebp
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5925e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x592683
push ebp
lea edx, [esp + 0x14]
push edx
push 0xb
lea eax, [esp + 0x30]
push eax
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x592683
cmp dword [esp + 0x10], 0xb
jne 0x592683
lea ecx, [esp + 0x25]
push ecx
call fcn.0056b5f0
add esp, 4
add esi, 0xb
adc edi, 0
cmp byte [esp + 0x24], 0x12
mov ebp, eax
jne 0x59263e
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push ebp
push edi
push esi
push ebx
call fcn.00592310
test eax, eax
jne 0x592669
add ebp, 4
add esi, ebp
adc edi, 0
cmp edi, dword [esp + 0x40]
jg 0x592683
jl 0x592654
cmp esi, dword [esp + 0x3c]
ja 0x592683
test edi, edi
jg 0x592683
jl 0x592662
cmp esi, 0x500000
ja 0x592683
xor ebp, ebp
jmp 0x5925c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00620b8d
add esp, 0x24
ret 0x10
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00620b8d
add esp, 0x24
ret 0x10
Function at 0x59b9f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x663d5b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x38]
mov dword [esi], vtable.CM3UParser::decodingState.0
call fcn.004024f0
xor eax, eax
mov dword [esp + 0x14], eax
fldz
fstp qword [esi + 0x30]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov byte [esi + 0xc], al
mov byte [esi + 0xe], al
mov byte [esi + 0x12], al
mov byte [esi + 0xf], al
mov byte [esi + 0x11], al
mov byte [esi + 0x10], al
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x59cdd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [ecx + 0x3208]
push edi
mov dword [esp + 0x10], ecx
cmp esi, 0x186a0
jbe 0x59cdec
mov esi, 0x186a0
mov eax, dword [ecx + 0xc8]
mov ecx, dword [eax + 0x30]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x59ce2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x59cf4d
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret 4
push esi
call fcn.005f4e47
add esp, 4
mov dword [esp + 8], eax
test eax, eax
jne 0x59ce52
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x753b
pop esi
add esp, 0xc
ret 4
push ebx
push ebp
push 0
lea edx, [esp + 0x18]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x59cf33
cmp dword [esp + 0x14], esi
jne 0x59cf33
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi + 0x328c]
mov edx, ebx
cmp esi, 4
jb 0x59ceb4
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x59ceb8
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x59cea0
test esi, esi
je 0x59cefb
movzx ebp, byte [ecx]
movzx eax, byte [edx]
sub eax, ebp
jne 0x59cef3
cmp esi, 1
jbe 0x59cefb
movzx eax, byte [edx + 1]
movzx ebp, byte [ecx + 1]
sub eax, ebp
jne 0x59cef3
cmp esi, 2
jbe 0x59cefb
movzx eax, byte [edx + 2]
movzx ebp, byte [ecx + 2]
sub eax, ebp
jne 0x59cef3
cmp esi, 3
jbe 0x59cefb
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x59cefd
xor eax, eax
test eax, eax
mov eax, dword [esp + 0x20]
setne dl
push ebx
mov byte [eax], dl
call fcn.005f4e52
mov ecx, dword [edi + 0x328c]
push ecx
call fcn.005f4e52
add esp, 8
pop ebp
pop ebx
mov dword [edi + 0x328c], 0
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
push edx
call fcn.005f4e52
add esp, 4
mov eax, ebp
test ebp, ebp
jne 0x59cf4b
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x59d720
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x663fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
mov al, pe_nt_image_headers32
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
mov al, 0xff
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov esi, ecx
mov edx, dword [esi + 0x3240]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x34], 0xef
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0xa0
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], 2
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, ebx
je 0x59d7f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x59d898
lea ecx, [esp + 0x10]
call fcn.004024f0
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, byte [esp + 0x1f]
movzx ecx, ax
movzx eax, byte [esp + 0x1e]
push ecx
push edi
push edx
push eax
mov eax, dword [esp + 0x2c]
movzx ecx, ah
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x28]
push str._d._d._d._d_s_ld
push eax
call fcn.00402f60
mov ecx, dword [esp + 0x30]
add esp, 0x20
push ecx
push 0x14
lea edx, [esp + 0x30]
push edx
push 2
mov ecx, esi
call fcn.0059d400
mov edi, eax
cmp edi, ebx
je 0x59d867
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402560
mov eax, edi
jmp 0x59d898
push 0x18
lea ecx, [esi + 0x3234]
call fcn.005aa050
mov ecx, esi
call fcn.005624d0
mov dword [esi + 0xa4], 4
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00402560
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00620b8d
add esp, 0x3c
ret 4