joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100538c
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1021878]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x19648], 1
jae 0x10053b4
xor eax, eax
jmp 0x1005414
push esi
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x1005411
cmp eax, esi
ja 0x1005411
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x10053e7
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1005411
lea eax, [ebp - 0x20c]
push eax
push esi
add edi, 0xcb28
push edi
call fcn.010052b1
xor eax, eax
inc eax
jmp 0x1005413
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100637b
leave
ret 4

Function at 0x10054d4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1021878]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
inc ebx
mov dword [ebp - 0x10c], ecx
test eax, eax
je 0x1005565
push eax
call dword [sym.imp.msvcrt.dll_getenv]
pop ecx
test eax, eax
je 0x1005563
push esi
push edi
mov edi, eax
mov cl, byte [edi]
cmp cl, 0x3b
je 0x1005515
test cl, cl
jne 0x100555e
mov esi, edi
sub esi, eax
cmp esi, 0x104
jae 0x1005554
test esi, esi
jbe 0x1005556
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x10c]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
mov byte [ebp + esi - 0x108], 0
call fcn.01005428
test eax, eax
jne 0x1005556
xor ebx, ebx
cmp byte [edi], 0
lea eax, [edi + 1]
je 0x1005561
inc edi
jmp 0x100550a
pop edi
pop esi
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0100637b
leave
ret 4
Function at 0x1005eaf
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1005efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1005fa6
and eax, 0xffff
or eax, 0x80070000
jmp 0x1005fa6
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp + 8], esi
mov ebx, 0xffff
mov edi, 0x80070000
cmp esi, 0xffffffff
jne 0x1005f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1005f27
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jl 0x1005f90
mov esi, dword [ebp + 8]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005f45
mov esi, 0x8007000e
jmp 0x1005f90
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005f71
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1005f68
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jl 0x1005f90
mov esi, dword [ebp + 8]
cmp dword [ebp - 0xc], esi
jae 0x1005f7d
mov esi, 0x80004005
jmp 0x1005f90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 0xc
Function at 0x1006360
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1007030
call fcn.01006924
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1023474
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1006175
cmp eax, esi
jne 0x1006168
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1006178
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100614f
xor esi, esi
inc esi
mov eax, dword [0x1023470]
cmp eax, esi
jne 0x100618b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10061c6
mov eax, dword [0x1023470]
test eax, eax
jne 0x10061c0
mov dword [0x1023470], esi
push 0x1001154
push 0x1001148
call fcn.010060cc
pop ecx
pop ecx
test eax, eax
je 0x10061c6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1006290
mov dword [0x102313c], esi
mov eax, dword [0x1023470]
cmp eax, esi
jne 0x10061ea
push 0x1001144
push 0x1001138
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1023470], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10061f7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1023484], ebx
je 0x1006218
push 0x1023484
call fcn.01006899
pop ecx
test eax, eax
je 0x1006218
push ebx
push 2
push ebx
call dword [0x1023484]
push dword [0x1023124]
push dword [0x1023128]
push dword [0x1023120]
call fcn.0100506f
add esp, 0xc
mov dword [0x1023138], eax
cmp dword [0x102312c], ebx
jne 0x1006276
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x102313c], ebx
jne 0x1006284
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1023138]
call fcn.01006969
ret
call fcn.01006a71
jmp 0x100612d
Function at 0x4045d4
Capabilities:
Terminate process

Disassembly:
push ecx
push 0x420c88
call fcn.004082f5
add eax, 0x40
push eax
call fcn.00408686
add esp, 0xc
push 2
call fcn.0040ac47
int3

Function at 0x40b00f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x42ce60
call fcn.0040bf00
push 1
call fcn.004132db
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x40aeba
xor ebx, ebx
jmp 0x40aeed
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40aeb6
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40aeb6
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x40aeed
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0040f1c5
test eax, eax
jne 0x40af01
push 0x1c
call fcn.0040afe8
pop ecx
call fcn.0040e157
test eax, eax
jne 0x40af12
push 0x10
call fcn.0040afe8
pop ecx
call fcn.004117be
and dword [ebp - 4], 0
call fcn.0040d07b
test eax, eax
jns 0x40af2c
push 0x1b
call fcn.0040afe8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4fe4cc], eax
call fcn.004133c4
mov dword [0x42f7f4], eax
call fcn.00412fcb
test eax, eax
jns 0x40af52
push 8
call fcn.0040a9a4
pop ecx
call fcn.004131fa
test eax, eax
jns 0x40af63
push 9
call fcn.0040a9a4
pop ecx
push 1
call fcn.0040a9de
pop ecx
test eax, eax
je 0x40af76
push eax
call fcn.0040a9a4
pop ecx
mov eax, dword [0x42f7d0]
mov dword [0x42f7f0], eax
push eax
push dword [0x42f7c8]
push dword [0x42f7c4]
call main
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x40afa4
push esi
call fcn.0040ac47
call fcn.0040a9cf
jmp 0x40afd9
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.0040bf45
ret
call fcn.0066d000
jmp 0x40ae94
Function at 0x10001000
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10001010
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000101c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001026
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001030
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000103a
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001044
or eax, 4
shr ecx, 1
test cl, 1
je 0x1000104e
or eax, 2
test cl, 2
je 0x10001056
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x10001110
test al, 1
je 0x1000111d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001110
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001004
pop edi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x1001d63c
push eax
lea eax, [ebp - 0x408]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x408], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10001192
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019646
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov ecx, dword [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x100011da
mov edi, edi
movzx ebx, byte [edx]
mov edi, esi
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr esi, 8
xor esi, dword [ebx + edi*4]
inc edx
dec ecx
jne 0x100011c0
cmp eax, 0x400
je 0x10001194
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop ebx
xor ecx, ebp
not eax
pop esi
call fcn.10019646
mov esp, ebp
pop ebp
ret 8
Function at 0x10001210
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x1001d644
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x10001242
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10001270
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x100012d3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100012b9
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10001298
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10001290
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x1001d63c
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10001332
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10001360
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x100013c3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100013a9
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10001388
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10001380
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10001460
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10001499
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019646
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1002637c], eax
cmp eax, 0xffffffff
je 0x10001489
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10026380], eax
test eax, eax
je 0x10001489
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1012638c], 0x10001ff0
mov al, 1
call fcn.10019646
mov esp, ebp
pop ebp
ret
Function at 0x100014e0
Capabilities:
Connect socket
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x10026018]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
push edi
mov edi, dword [ebp + 8]
jne 0x10001563
push 0x100
push 0
push 0x11184108
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10001520
mov cl, byte [eax + 0x1001d768]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11184108], cl
inc eax
cmp eax, 0x100
jb 0x10001520
push 0x11184108
push 0
mov ecx, 0x10126528
call fcn.1000b4e0
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10019646
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov edx, 2
push eax
mov word [esp + 0x10], dx
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x100015af
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100015af
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x18]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 4]
push 0x10
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x1000160b
call edi
cmp eax, 0x2733
je 0x1000160b
call edi
push eax
mov eax, 2
call fcn.10016090
push eax
push 0
mov ecx, 0x10126528
call fcn.1000b4e0
add esp, 0xc
call fcn.100016f0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10019646
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10001684
call edi
push eax
mov eax, 3
call fcn.10016090
push eax
push 0
mov ecx, 0x10126528
call fcn.1000b4e0
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x10001653
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10001668
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov byte [esi + 0x100038], 0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10019646
mov esp, ebp
pop ebp
ret 8
push 0x80000
xor edi, edi
lea eax, [esi + 0xc]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
lea ecx, [esi + 0x80010]
push edi
push ecx
mov dword [esi + 0x8000c], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi + 0x100010], edi
push edi
mov ecx, esi
mov edi, 0x10001ca0
call fcn.10016330
mov ecx, dword [esp + 0x1c]
pop edi
mov byte [esi + 0x100038], 1
pop esi
xor ecx, esp
mov al, 1
call fcn.10019646
mov esp, ebp
pop ebp
ret 8
Function at 0x100019b0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.1001a050
mov eax, dword [0x10026018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10126394
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1002637c], 0xffffffff
je 0x10001ab5
cmp byte [0x101263b0], 0
je 0x10001ab5
push 0x80000
lea eax, [ebp - 0x80008]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea ecx, [ebp - 0x80008]
push edi
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x10001a4c
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10001a78
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10001a32
jmp 0x10001a78
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10001a78
lea esp, [esp]
mov dl, byte [ebp + eax - 0x80004]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80004], dl
inc eax
cmp eax, edi
jl 0x10001a60
mov ecx, dword [0x10126388]
test ecx, ecx
jle 0x10001b0e
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10001ad3
push eax
mov eax, 7
call fcn.10016090
push eax
push 0
mov ecx, 0x10126528
call fcn.1000b4e0
add esp, 0xc
mov esi, 0x10026378
call fcn.100016f0
push 0x10126394
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10019646
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x80008]
push eax
lea ecx, [ecx + 0x100a6388]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x10126388], esi
push 0x10126394
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10019646
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10001af0
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [0x1002637c]
push 0
push esi
lea edx, [ebp + edi - 0x80008]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x10001b3c
sub esi, eax
add edi, eax
test esi, esi
jg 0x10001b1a
jmp 0x10001af0
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10001b7b
mov ecx, dword [0x10126388]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10001b66
push eax
mov eax, 8
jmp 0x10001a96
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [ecx + 0x100a6388]
push eax
jmp 0x10001ae2
call ebx
push eax
mov eax, 9
jmp 0x10001a96
Function at 0x10001b90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
lea ebx, [esi + 0x10001c]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x10001be8
lea ebx, [esi + 0x80010]
mov eax, dword [esi + 0x100010]
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [ebx + edi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001bf7
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10001bb8
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10001c2f
mov eax, dword [esi + 0x100010]
push eax
lea ecx, [edi + esi + 0x80010]
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, 0xa
call fcn.10016090
push eax
push 0
mov ecx, 0x10126528
call fcn.1000b4e0
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x10001c66
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10001c7b
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov eax, dword [ebp - 4]
push eax
mov byte [esi + 0x100038], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002530
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x11184108
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jc]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11184108], cl
inc eax
cmp eax, 0x100
jb 0x10002550
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x11184108
push 0
mov ecx, 0x10126528
call fcn.1000b4e0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x11183ba0], ecx
mov dword [ebp - 4], 0
jbe 0x10002648
mov edi, dword [0x101264e0]
lea ebx, [esi + 0xa]
nop
cmp ebx, edi
jae 0x100025fb
mov eax, dword [0x101264dc]
cmp eax, ebx
ja 0x100025fb
mov ecx, ebx
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [0x101264e4]
jne 0x100025ea
mov ecx, 0x101264dc
call fcn.10003060
mov edi, dword [0x101264e0]
mov eax, dword [0x101264dc]
lea edx, [esi + esi*8]
lea esi, [eax + edx*8]
test edi, edi
je 0x10002626
jmp 0x10002619
cmp edi, dword [0x101264e4]
jne 0x10002613
mov ecx, 0x101264dc
call fcn.10003060
mov edi, dword [0x101264e0]
test edi, edi
je 0x10002629
mov esi, ebx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x101264e0]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
add edi, 0x48
mov dword [0x101264e0], edi
movzx ecx, byte [esi + 8]
inc eax
add ebx, 0x48
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x100025b0
pop edi
pop esi
mov dword [0x11183b90], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x11184108
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x1001f268]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11184108], cl
inc eax
cmp eax, 0x100
jb 0x10002680
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x11184108
push 0
mov ecx, 0x10126528
call fcn.1000b4e0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x11183ba4], ecx
mov dword [ebp - 4], 0
jbe 0x1000277f
mov edi, dword [0x101264f0]
lea ebx, [esi + 0xa]
nop
cmp ebx, edi
jae 0x1000272c
mov eax, dword [0x101264ec]
cmp eax, ebx
ja 0x1000272c
mov ecx, ebx
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [0x101264f4]
jne 0x1000271a
mov ecx, 0x101264ec
call fcn.100030d0
mov edi, dword [0x101264f0]
imul esi, esi, 0x108
add esi, dword [0x101264ec]
test edi, edi
je 0x10002757
jmp 0x1000274a
cmp edi, dword [0x101264f4]
jne 0x10002744
mov ecx, 0x101264ec
call fcn.100030d0
mov edi, dword [0x101264f0]
test edi, edi
je 0x1000275a
mov esi, ebx
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x101264f0]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
add edi, 0x108
mov dword [0x101264f0], edi
movzx edx, byte [esi + 8]
inc eax
add ebx, 0x108
mov dword [ebp - 4], eax
cmp eax, edx
jl 0x100026e0
pop edi
pop esi
mov dword [0x11183b94], 1
pop ebx
mov esp, ebp
pop ebp
ret