joyce8/EMBER2024-capa huggingface dataset:
Function at 0x182096a
Capabilities:
Encode data using base64

Disassembly:
lea edx, [ecx + ecx - 0x22e36d65]
call fcn.018423cb
push 0x5e963b98
mov dx, word [esi]
jmp 0x180b762
adc dx, word [ebp + ecx*8 + 2]
lea ebp, [ebp + ecx*4 + 2]
sar cl, 0x63
rol ecx, 0xb4
je 0x18143d4
mov ecx, 0xdf356427
sub edi, 4
and ecx, ecx
mov eax, ecx
mov eax, dword [edi]
jp 0x17f5252
call fcn.017a0d2d
xor ebx, ecx
add ebp, ecx
pop ecx
jmp fcn.017e9e43
mov ax, word [ebp + eax - 0x1e407923]
movsx edx, word [esp + ecx + 4]
mov dword [esp + ecx*2], 0x1b0dbe81
jp 0x17c62f7
mov edx, 0x4b388215
lea eax, [edx + edx*2 + 0x638a422e]
lea edi, [edx + edi - 0x4b388219]
mov eax, dword [edx + edi - 0x4b388215]
lea ecx, [edx + edx + 0x5d00d687]
ror dl, 0xa6
shl edx, cl
xor eax, ebx
ror cl, 0x46
sub eax, 0x8987dc01
ror eax, 3
push ecx
not dword [esp + edx*8 - 0x25400000]
not eax
pop ecx
neg eax
shr edx, 0x87
xor ebx, eax
rol edx, 0xe6
or ecx, ecx
ja 0x182afa8
mov eax, 0x31ef639
mov edx, eax
lea edi, [edx + edi - 0x31ef63d]
mov ecx, dword [eax + edi - 0x31ef639]
xor ecx, ebx
shr dl, 0xe7
sar eax, 0xfd
sbb edx, edx
lea ecx, [ecx + eax + 0x7cb893be]
not ecx
neg edx
dec ecx
or ax, 0xc118
xchg dh, al
bswap ecx
and dx, 0xd30c
not ecx
call fcn.0178c831
xor eax, ebx
jmp 0x17b6aae
inc ax
add esi, edx
shl byte [esp + eax*4 - 0x7901e488], 0x43
jp 0x17ce14c
adc ebp, eax
lea edi, [edi + edx*4 - 0x9500004]
xor ecx, edx
ror ecx, 0xa1
mov edx, dword [edi + edx - 0x2540000]
xor edx, ebx
lea eax, [ecx*4 + 0x26abe63c]
jmp 0x17e639e

Function at 0x1829847
Capabilities:
Encode data using xor

Disassembly:
sub dword [edi], ecx
xchg dh, cl
mov al, byte [0xb489fff6]
invalid
mov ah, 0x14
out 0x4f, al
lahf
inc edx
or al, 0
lea ecx, [eax - 0x2b7621cf]
mov ecx, dword [ebp + eax]
sal ax, 0x4a
xor eax, dword [ebp + eax*8 + 4]
imul ecx
mov ecx, 0x3f8533b9
push ecx
not ecx
mov dword [ebp], edx
call fcn.01868bd6
sbb edi, ebp
xchg esi, eax
dec esi
jns 0x1829843
push esp
ror byte [ebp + 0x34], 1
jo 0x1829836
xchg edx, eax
in al, dx
or dh, byte [esi]
stc
xlatb
xchg ebp, eax
xchg dword [edi + esi - 0x59ec8786], esp
retf 0x65ac

Function at 0x182a7ca
Capabilities:
Encode data using base64

Disassembly:
dec ecx
call fcn.0182534f
adc edi, 4
xor edx, ebx
movzx ecx, al
xor edx, 0x7bbf6002
inc edx
ror edx, 1
inc edx
xchg al, cl
push eax
not edx
not cx
lea edx, [ecx + edx - 0x6d3ac79c]
jmp 0x1847df8

Function at 0x1838518
Capabilities:
Encode data using base64

Disassembly:
mov dword [esp], 0xe1f090a3
call fcn.01849679

Function at 0x183df27
Capabilities:
Encode data using base64

Disassembly:
xor bx, dx
xadd cl, ah
mov dword [esp + eax - 0x74000009], 0x949b4d19
lea esi, [esi + eax - 0x74000013]
adc cl, 0xa0
call fcn.017d8bc3
sar cl, 0xa1
xor bl, dl
lea ecx, [ecx + eax*8 - 0xe63bdd4]
add edx, esp
not ecx
or cl, al
xor cx, ax
add ax, word [ecx + edx - 0xe5656af]
lea ebp, [ebp + ecx*2 - 0x1cacad60]
xor cl, cl
mov word [ebp + ecx - 0xe565600], ax
movsx eax, cx
ror cx, 0xe5
mov edx, ecx
jp fcn.01843c11
Function at 0x183df84
Capabilities:
Encode data using base64

Disassembly:
xor edx, ebx
movsx eax, cl
call fcn.017cd689
mov ecx, 0xcbf8e16
ror ecx, cl
movzx eax, cx
lea edi, [edi + eax*2 - 0xb068]
call fcn.017dcc24
or di, sp
rcr di, 0x85

Function at 0x1851af1
Capabilities:
Encode data using base64

Disassembly:
mov dword [esp + edx - 0x329e9fb7], edx
mov ax, word [ecx + edx*2 - 0x653d3f6e]
inc dword [esp + edx - 0x329e9fb7]
sar byte [esp + edx*2 - 0x653d3f6e], 0x22
call fcn.0186398d
Function at 0x401ee4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x920
mov eax, esp
mov ebx, eax
mov dword [ebp - 0x96], 0x330056
mov dword [ebp - 0x92], 0x530044
mov dword [ebp - 0x8e], 0x6f0043
mov dword [ebp - 0x8a], 0x46006d
mov dword [ebp - 0x86], 0x6e0069
mov dword [ebp - 0x82], 0x650064
mov dword [ebp - 0x7e], 0x430072
mov dword [ebp - 0x7a], 0x61006c
mov dword [ebp - 0x76], 0x730073
mov word [ebp - 0x72], 0
lea edx, [ebp - 0xc8]
mov eax, 0
mov ecx, 0xc
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc8], 0x30
mov dword [ebp - 0xc4], 3
mov dword [ebp - 0xc0], 0x401520
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
mov dword [esp + 4], 0x7f89
mov dword [esp], 0
mov eax, dword [0x40d504]
call eax
sub esp, 8
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 6
mov dword [ebp - 0xa4], 0
lea eax, [ebp - 0x96]
mov dword [ebp - 0xa0], eax
mov dword [esp + 4], 0x65
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [0x40d508]
call eax
sub esp, 8
mov dword [ebp - 0x9c], eax
mov dword [esp + 4], 0x65
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [0x40d508]
call eax
sub esp, 8
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xc8]
mov dword [esp], eax
mov eax, dword [0x40d518]
call eax
sub esp, 4
test ax, ax
jne 0x40205f
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Window_Registration_Failed_
mov dword [esp], 0
mov eax, dword [0x40d50c]
call eax
sub esp, 0x10
mov eax, 0
jmp 0x402a05
mov dword [esp], 0
mov eax, dword [0x40d4f8]
call eax
sub esp, 4
mov dword [ebp - 0x34], eax
mov dword [esp], 1
mov eax, dword [0x40d4f8]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0x1d6
mov dword [ebp - 0x40], 0x10e
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebp - 0x48], eax
jmp fcn.00a0f922
mov esp, ebx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10
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

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x10001169
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 0x10001150
pop edi
pop ebx
not eax
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10022018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x1001a63c
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 0x100011c2
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016888
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 0x1000120a
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 0x100011f0
cmp eax, 0x400
je 0x100011c4
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.10016888
mov esp, ebp
pop ebp
ret 8
Function at 0x10001240
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x1001a644
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 0x10001272
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 0x100012a0
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 0x10001303
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100012e9
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 0x100012c8
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 0x100012c0
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 0x10001330
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x1001a63c
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 0x10001362
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 0x10001390
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 0x100013f3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100013d9
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 0x100013b8
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 0x100013b0
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 [0x10022018]
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.10016888
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100223b4], eax
cmp eax, 0xffffffff
je 0x10001489
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x100223b8], eax
test eax, eax
je 0x10001489
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x101223c4], 0x10002230
mov al, 1
call fcn.10016888
mov esp, ebp
pop ebp
ret

Function at 0x100014e0
Capabilities:
Connect socket
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10022018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x100223b4], 0xffffffff
push esi
push edi
mov esi, ecx
jne 0x10001555
push 0x100
push 0
push 0x1127fdd0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x1001a768]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1127fdd0], cl
inc eax
cmp eax, 0x100
jb 0x10001513
push 0x1127fdd0
push 0
mov ecx, 0x10122560
call fcn.1000ab70
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10016888
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x18], dx
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 0x1000159d
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000159d
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [0x100223b4]
push 0x10
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100015fe
call esi
cmp eax, 0x2733
je 0x100015fe
call esi
push eax
mov eax, 2
call fcn.10013740
push eax
push 0
mov ecx, 0x10122560
call fcn.1000ab70
add esp, 0xc
mov esi, 0x100223b0
call fcn.100016a0
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10016888
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x100223b8]
mov edx, dword [0x100223b4]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10001623
call esi
push eax
mov eax, 3
jmp 0x100015cb
push 0x80000
push 0
push 0x100223bc
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
push 0
push 0x100a23c0
mov dword [0x100a23bc], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1127fa80
mov ecx, 0x100223b0
mov edi, 0x10001be0
mov dword [0x101223c0], 0
call fcn.100139f0
mov ecx, dword [ebp - 8]
pop edi
mov dword [0x101223e4], eax
xor ecx, ebp
mov byte [0x101223e8], 1
mov al, 1
pop esi
call fcn.10016888
mov esp, ebp
pop ebp
ret 4
Function at 0x100016a0
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x100034], ebx
je 0x100016d6
mov dword [0x1127fa80], 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 0x100016ec
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100016fd
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 0x10001710
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 0x10001760
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x1000188a
call edi
push eax
mov eax, 4
jmp 0x100018cf
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x1000188a
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x1000178b
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x100017aa
cmp al, 0xc2
jne 0x100018c4
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 0x10001893
cmp ebx, 0x80000
jg 0x10001893
cmp ebx, dword [esi + 0x8000c]
jg 0x10001861
cmp al, 0xc1
jne 0x100017fd
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 0x10001829
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 0x100017e3
jmp 0x10001829
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 0x10001829
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 0x10001811
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 0x10001775
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x1000188a
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x1000188a
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x1000188a
push eax
lea eax, [edi + esi + 0xc]
push eax
push edx
call dword [sym.imp.MSVCR100.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
mov eax, 6
call fcn.10013740
push eax
push 0
mov ecx, 0x10122560
call fcn.1000ab70
add esp, 0x14
call fcn.100016a0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + esi + 0xc]
push eax
mov eax, 5
call fcn.10013740
push eax
push 0
mov ecx, 0x10122560
call fcn.1000ab70
add esp, 0xc
call fcn.100016a0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001900
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.10017290
mov eax, dword [0x10022018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x101223cc
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100223b4], 0xffffffff
je 0x10001a25
cmp byte [0x101223e8], 0
je 0x10001a25
push esi
lea eax, [ebp - 0x80008]
push edi
push eax
call sub.MSVCR100.dll_memcpy
mov al, byte [ebp - 0x80008]
add esp, 0xc
cmp al, 0xc1
jne 0x1000198b
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
xor eax, eax
test edi, edi
jle 0x100019e8
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10001971
jmp 0x100019e8
cmp al, 0xc3
jne 0x100019ba
mov cl, byte [ebp - 0x80003]
lea edi, [esi - 6]
xor eax, eax
test edi, edi
jle 0x100019e8
mov edi, edi
mov dl, byte [ebp + eax - 0x80002]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80002], dl
inc eax
cmp eax, edi
jl 0x100019a0
jmp 0x100019e8
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
xor eax, eax
test edi, edi
jle 0x100019e8
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 0x100019d0
mov eax, dword [0x101223c0]
test eax, eax
jle 0x10001a7e
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10001a43
mov eax, 7
push ecx
call fcn.10013740
push eax
push 0
mov ecx, 0x10122560
call fcn.1000ab70
add esp, 0xc
mov esi, 0x100223b0
call fcn.100016a0
push 0x101223cc
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.10016888
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x80008]
push ecx
lea edx, [eax + 0x100a23c0]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x101223c0], esi
push 0x101223cc
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.10016888
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10001a60
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x100223b4]
push 0
push esi
lea eax, [ebp + edi - 0x80008]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x10001aad
sub esi, eax
add edi, eax
test esi, esi
jg 0x10001a8a
jmp 0x10001a60
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10001aeb
mov eax, dword [0x101223c0]
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10001ad6
mov eax, 8
jmp 0x10001a05
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [eax + 0x100a23c0]
push eax
jmp 0x10001a52
call ebx
push eax
mov eax, 9
jmp 0x10001a06
Function at 0x10001b00
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 0x10001b59
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 0x10001b69
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10001b29
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 0x10001ba2
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 esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, 0xa
call fcn.10013740
push eax
push 0
mov ecx, 0x10122560
call fcn.1000ab70
add esp, 0xc
call fcn.100016a0
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 0x10001f50
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 connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001fb0
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 0x10001f96
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.100167b0
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x10001fb7
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 0x10001faa
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret