joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401393
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x30], 0x9e3779b9
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [str._bhDM]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x2c], eax
call fcn.0040138c
mov eax, dword [0x41a314]
add dword [ebp - 8], 0x23f
mov esi, dword [0x41a310]
push 0x20
mov dword [ebp - 0x20], eax
pop ebx
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
add eax, esi
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x859808], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x859804]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x859808], 0x3eb
mov dword [0x859804], eax
mov eax, dword [0x859290]
cmove eax, dword [ebp - 0x1c]
mov dword [0x859290], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov dword [0x859800], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, edi
shr eax, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x1c]
cmp dword [0x859808], 0xb03
mov dword [ebp - 4], eax
jne 0x4014c0
push str.Poh_petopanoz_fonoso_culowisuvekocamoc
push edx
push edx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec ebx
jne 0x4013e4
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d5d3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040804b
mov dword [ebp - 0x14], eax
cmp dword [0x813f9c], esi
jne 0x40d6c6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d7a6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d7a6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7a6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813f9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813fa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813fa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813fac], eax
test eax, eax
je 0x40d6c3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813fa8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d700
push 4
pop eax
jmp 0x40d7a8
cmp dword [ebp - 0x14], esi
je 0x40d700
push dword [0x813f9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6e5
mov eax, dword [0x813fa8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d75e
cmp dword [0x813fac], edi
je 0x40d75e
push eax
call ebx
push dword [0x813fac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d75e
test eax, eax
je 0x40d75e
call ecx
test eax, eax
je 0x40d753
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d753
test byte [ebp - 8], 1
jne 0x40d75e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d78e
mov eax, dword [0x813fa0]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
call eax
mov esi, eax
test esi, esi
je 0x40d78b
mov eax, dword [0x813fa4]
cmp eax, edi
je 0x40d78b
push eax
call ebx
test eax, eax
je 0x40d78b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813f9c]
call ebx
test eax, eax
je 0x40d7a6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d7a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040400d
mov esp, ebp
pop ebp
ret
Function at 0x10001810
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, 0x80
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
test cl, 1
cmovne eax, edx
shr ecx, 1
test cl, 1
je 0x10001836
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10001841
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1000184c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x10001857
bts eax, 3
shr ecx, 1
test cl, 1
je 0x10001862
bts eax, 2
shr ecx, 1
test cl, 1
je 0x1000186d
bts eax, 1
test cl, 2
je 0x10001876
bts eax, 0
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add eax, eax
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov ebx, ecx
and ebx, 0x80000000
neg ebx
lea eax, [ecx + ecx]
sbb ebx, ebx
and ebx, 0x4c11db7
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [edi + eax*4], ebx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
nop
test bl, 1
je 0x1000194f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10001940
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
mov edx, 0x80
cmp ecx, 0xff
jle 0x10001823
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001980
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1005c1c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x1004fd54
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], ecx
push eax
or ebx, 0xffffffff
mov dword [ebp - 0x408], 0
call fcn.1002d7c9
add esp, 0xc
test eax, eax
je 0x100019d7
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027a55
mov esp, ebp
pop ebp
ret 4
push esi
push edi
nop dword [eax]
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push 0x400
push 1
push eax
call fcn.1002db19
mov edi, eax
lea esi, [ebp - 0x404]
add esp, 0x10
mov dword [ebp - 0x410], edi
mov edx, edi
test edi, edi
je 0x10001a32
mov edi, dword [ebp - 0x40c]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edi + ecx*4]
sub edx, 1
jne 0x10001a16
mov edi, dword [ebp - 0x410]
cmp edi, 0x400
je 0x100019e0
push dword [ebp - 0x408]
call fcn.1002d8cd
mov ecx, dword [ebp - 4]
add esp, 4
not ebx
xor ecx, ebp
mov eax, ebx
pop edi
pop esi
pop ebx
call fcn.10027a55
mov esp, ebp
pop ebp
ret 4
Function at 0x10001a60
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x1004fd5c
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.1002d810
add esp, 0xc
test eax, eax
je 0x10001a99
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1002dbc9
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10001ac5
call fcn.1002d8cd
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1002db19
add esp, 0x10
test eax, eax
je 0x10001b1f
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x10001b07
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10001ae6
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1002db19
add esp, 0x10
test eax, eax
jne 0x10001ae0
pop esi
push ebx
call fcn.1002d637
push dword [ebp + 0xc]
call fcn.1002d8cd
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001b40
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x1004fd54
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.1002d7c9
add esp, 0xc
test eax, eax
je 0x10001b79
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1002dbc9
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10001ba5
call fcn.1002d8cd
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1002db19
add esp, 0x10
test eax, eax
je 0x10001bff
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x10001be7
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10001bc6
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1002db19
add esp, 0x10
test eax, eax
jne 0x10001bc0
pop esi
push ebx
call fcn.1002d637
push dword [ebp + 0xc]
call fcn.1002d8cd
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001c70
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x1005c1c4]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10001cb3
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.10027a55
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100a317c], eax
cmp eax, 0xffffffff
je 0x10001c9d
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x100a3180], eax
test eax, eax
je 0x10001c9d
mov ecx, dword [esp + 0x194]
mov al, 1
xor ecx, esp
mov dword [0x101a318c], 0x10003890
call fcn.10027a55
mov esp, ebp
pop ebp
ret 4

Function at 0x10001d00
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x1005c1c4]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x100a317c], 0xffffffff
push esi
mov esi, dword [ebp + 8]
jne 0x10001d4f
mov ecx, 0x1005cb50
call fcn.1001d760
push eax
push 0
push 0x101a3878
call fcn.10016b60
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10027a55
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov eax, 2
mov word [esp + 8], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [esp + 0xa], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x10001d99
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10001d99
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.1002a600
add esp, 0xc
push 0x10
lea eax, [esp + 8]
push eax
push dword [0x100a317c]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10001dfb
call esi
cmp eax, 0x2733
je 0x10001dfb
call esi
mov ecx, 0x1005d650
push eax
call fcn.1001d760
push eax
push 0
push 0x101a3878
call fcn.10016b60
add esp, 0x10
mov ecx, 0x100a3178
call fcn.10001e90
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10027a55
mov esp, ebp
pop ebp
ret 8
push 0x23
push dword [0x100a3180]
push dword [0x100a317c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10001e1d
call esi
mov ecx, 0x1005d250
jmp 0x10001dc7
push 0x80000
push 0
push 0x100a3184
call fcn.1002ab80
add esp, 0xc
mov dword [0x10123184], 0
push 0x80000
push 0
push 0x10123188
call fcn.1002ab80
add esp, 0xc
mov dword [0x101a3188], 0
push 0x101ab26c
push ecx
push 0x100a3178
push 0x100023e0
push ecx
call fcn.1001def0
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov byte [0x101a31b0], 1
mov al, 1
pop esi
xor ecx, esp
call fcn.10027a55
mov esp, ebp
pop ebp
ret 8
Function at 0x10001e90
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x100034], 0
je 0x10001eca
push 0
mov dword [0x101ab26c], 0xffffffff
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10001ee0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10001ef5
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov byte [esi + 0x100038], 0
pop esi
ret
Function at 0x10001f00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0
push 0
mov eax, 0x80000
mov edx, dword [edi + 0x8000c]
sub eax, edx
push eax
lea eax, [edi + 0xc]
add eax, edx
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10001fc2
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x100020c0
call esi
push eax
mov ecx, 0x1005ce50
call fcn.1001d760
push eax
push 0
push 0x101a3878
call fcn.10016b60
add esp, 0x10
mov ecx, edi
call fcn.10001e90
cmp dword [0x100a317c], 0xffffffff
je 0x10001f87
cmp byte [0x101a31b0], 0
jne 0x10002123
push ecx
call fcn.10001c70
test al, al
je 0x10002123
movzx eax, word [0x101a88a4]
mov ecx, 0x100a3178
push eax
push 0x101a88c7
call fcn.10001d00
test al, al
je 0x10002123
call fcn.100045e0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [edi + 0x8000c], eax
cmp dword [edi + 0x8000c], 4
jl 0x100020c0
xor ecx, ecx
lea esi, [edi + 0xc]
lea eax, [esi + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10001ff3
movzx ebx, byte [ecx + edi + 0xd]
mov dl, al
mov al, byte [ecx + edi + 0xf]
jmp 0x10002014
cmp al, 0xc2
jne 0x100020fc
mov dl, al
movzx eax, byte [ecx + edi + 0xd]
shl ax, 8
movzx ebx, ax
movzx eax, byte [ecx + edi + 0xe]
or ebx, eax
mov al, byte [ecx + edi + 0x10]
cmp ebx, 4
jl 0x100020c9
cmp ebx, 0x80000
jg 0x100020c9
cmp ebx, dword [edi + 0x8000c]
jg 0x10002097
lea esi, [ecx + edi]
cmp dl, 0xc1
jne 0x1000204f
movzx eax, byte [ecx + edi + 0xe]
lea edx, [ebx - 3]
push eax
lea ecx, [esi + 0xf]
call fcn.1001d420
mov al, byte [esi + 0xf]
jmp 0x10002063
movzx eax, byte [ecx + edi + 0xf]
lea edx, [ebx - 4]
push eax
lea ecx, [esi + 0x10]
call fcn.1001d420
mov al, byte [esi + 0x10]
add esp, 4
mov byte [ebp - 4], al
mov eax, dword [edi + 0x100014]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call eax
mov ecx, dword [ebp - 8]
add esp, 0xc
sub dword [edi + 0x8000c], ebx
add ecx, ebx
cmp dword [edi + 0x8000c], 0
mov dword [ebp - 8], ecx
jle 0x100020c0
jmp 0x10001fd7
test ecx, ecx
jle 0x100020c0
mov eax, dword [edi + 0x8000c]
test eax, eax
jle 0x100020c0
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x100020c0
push eax
lea eax, [edi + 0xc]
add eax, ecx
push eax
push esi
call fcn.10029980
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, al
mov ecx, 0x1005cc50
push eax
movzx eax, dl
push ebx
push eax
call fcn.1001d760
push eax
push 0
push 0x101a3878
call fcn.10016b60
add esp, 0x18
mov ecx, edi
call fcn.10001e90
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ecx + edi + 0xc]
mov ecx, str.rjj
push eax
call fcn.1001d760
push eax
push 0
push 0x101a3878
call fcn.10016b60
add esp, 0x10
mov ecx, edi
call fcn.10001e90
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002130
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8000c
call fcn.10028bb0
mov eax, dword [0x1005c1c4]
xor eax, esp
mov dword [esp + 0x80008], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x101a3194
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x100a317c]
cmp ebx, 0xffffffff
je 0x10002205
cmp byte [0x101a31b0], 0
je 0x10002205
push 0x80000
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1002ab80
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
add esp, 0xc
push esi
push edi
push eax
call fcn.1002a600
add esp, 0xc
cmp byte [esp + 0x10], 0xc1
jne 0x100021b5
push dword [esp + 0x12]
lea edx, [esi - 3]
lea ecx, [esp + 0x17]
jmp 0x100021c0
push dword [esp + 0x13]
lea edx, [esi - 4]
lea ecx, [esp + 0x18]
call fcn.1001d4c0
mov eax, dword [0x101a3188]
add esp, 4
test eax, eax
jle 0x10002268
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10002229
push ecx
mov ecx, 0x1005d750
call fcn.1001d760
push eax
push 0
push 0x101a3878
call fcn.10016b60
add esp, 0x10
mov ecx, 0x100a3178
call fcn.10001e90
push 0x101a3194
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80008]
xor ecx, esp
call fcn.10027a55
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [esp + 0x14]
push ecx
lea eax, [eax + 0x10123188]
push eax
call fcn.1002a600
add esp, 0xc
add dword [0x101a3188], esi
push 0x101a3194
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80008]
xor ecx, esp
call fcn.10027a55
mov esp, ebp
pop ebp
ret 8
xor edi, edi
test esi, esi
jle 0x10002244
nop
push 0
push esi
lea eax, [esp + 0x18]
add eax, edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10002296
sub esi, eax
add edi, eax
test esi, esi
jle 0x10002244
mov ebx, dword [0x100a317c]
jmp 0x10002270
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10002301
mov ecx, dword [0x101a3188]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x100022c0
push eax
mov ecx, 0x1005cf50
jmp 0x100021e6
lea eax, [esp + 0x10]
add eax, edi
push esi
push eax
lea eax, [ecx + 0x10123188]
push eax
call fcn.1002a600
add dword [0x101a3188], esi
add esp, 0xc
push 0x101a3194
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x80014]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10027a55
mov esp, ebp
pop ebp
ret 8
call ebx
push eax
mov ecx, 0x1005d150
jmp 0x100021e6
Function at 0x10002310
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x10001c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x10002362
lea eax, [esi + 0x80010]
push 0
push dword [esi + 0x100010]
add eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1000236f
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
lea eax, [esi + 0x80010]
jg 0x10002332
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100023a7
push dword [esi + 0x100010]
lea eax, [esi + 0x80010]
add eax, edi
push eax
lea eax, [esi + 0x80010]
push eax
call fcn.10029980
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, 0x1005d550
call fcn.1001d760
push eax
push 0
push 0x101a3878
call fcn.10016b60
add esp, 0x10
mov ecx, esi
call fcn.10001e90
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x10002990
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x20
push 3
push 0
push 1
push connect
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100029f2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x100029d9
push eax
call fcn.10027ff3
add esp, 4
mov dword [edi + 4], 0
push dword [edi + 8]
call fcn.10027ff8
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x100029fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
pop ebp
ret 4
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push dword [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x100029ec
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
pop ebp
ret 4