joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b20
Capabilities:
Encode data using xor
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 0x10001b79
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 0x10001b89
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10001b49
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 0x10001bc2
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
push 0x100
push 0
push 0x10127488
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10001be0
mov cl, byte [eax + 0x10015040]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10127488], cl
inc eax
cmp eax, 0x100
jb 0x10001be0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10127488
push 0
mov ecx, 0x1011c678
call fcn.10005cd0
add esp, 0xc
call fcn.10001670
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001f90
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 0x10001ff0
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 0x10001fd6
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.100116d0
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x10001ff7
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 0x10001fea
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10002030
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.10001f90
test al, al
jne 0x10002045
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [esi + 8]
cmp edi, 8
jae 0x10002056
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov eax, 0x10017840
mov ecx, 8
sub edx, eax
push ebx
jmp 0x10002070
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x10002141
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x10002070
add edi, 0xfffffff8
xor eax, eax
test edi, edi
jle 0x100020d3
nop
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0x1f
movsx edx, byte [edx + 0x1011c8bc]
and edx, 0xf
movzx edx, byte [edx + 0x10017848]
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 + 0x10017848]
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 0x10002090
lea edi, [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_rand]
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push 0x10017858
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x102
push 2
push 0
push 7
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002141
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp - 4]
push edx
sub eax, 8
push eax
add ecx, 8
push ecx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x1000214a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002160
Capabilities:
Delete file

Disassembly:
push edi
lea edi, [esi + 0xc]
mov ecx, 0x10017870
mov eax, edi
jmp 0x10002170
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002190
test dl, dl
je 0x1000218c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002190
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002170
xor eax, eax
jmp 0x10002195
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100021cc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100021cc
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push 0x100
push 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.MSVCR100.dll_memset
add esp, 0x10
pop edi
ret
Function at 0x100026a0
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 0x10127488
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 + 0x10127488], cl
inc eax
cmp eax, 0x100
jb 0x100026c0
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10127488
push 0
mov ecx, 0x1011c678
call fcn.10005cd0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x1012202c], ecx
mov dword [ebp - 8], 0
jbe 0x100028a5
mov edi, dword [0x1011c630]
lea eax, [esi + 0xa]
mov esi, dword [0x1011c62c]
mov dword [ebp - 4], eax
cmp eax, edi
jae 0x100027ed
cmp esi, eax
ja 0x100027ed
mov ecx, eax
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [0x1011c634]
jne 0x100027c6
mov ecx, edi
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x38e38e2
ja 0x100028b6
mov edx, dword [0x1011c634]
sub edx, esi
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x100027c6
mov edx, eax
shr edx, 1
mov esi, 0x38e38e3
sub esi, edx
cmp esi, eax
jae 0x100027a7
xor eax, eax
jmp 0x100027a9
add eax, edx
cmp eax, ecx
jae 0x100027af
mov eax, ecx
push eax
mov ecx, 0x1011c62c
call fcn.10003520
mov edi, dword [0x1011c630]
mov esi, dword [0x1011c62c]
lea edx, [ebx + ebx*8]
lea eax, [esi + edx*8]
test edi, edi
je 0x100027e5
mov ecx, 0x12
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x1011c630]
mov esi, dword [0x1011c62c]
mov eax, dword [ebp - 4]
jmp 0x10002880
mov ebx, dword [0x1011c634]
cmp edi, ebx
jne 0x10002867
mov ecx, edi
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x38e38e2
ja 0x100028b6
mov edx, ebx
sub edx, esi
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002864
mov edx, eax
shr edx, 1
mov esi, 0x38e38e3
sub esi, edx
cmp esi, eax
jae 0x10002845
xor eax, eax
jmp 0x10002847
add eax, edx
cmp eax, ecx
jae 0x1000284d
mov eax, ecx
push eax
mov ecx, 0x1011c62c
call fcn.10003520
mov edi, dword [0x1011c630]
mov esi, dword [0x1011c62c]
mov eax, dword [ebp - 4]
test edi, edi
je 0x10002880
mov ecx, 0x12
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x1011c630]
mov esi, dword [0x1011c62c]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add edi, 0x48
mov dword [0x1011c630], edi
movzx edx, byte [edx + 8]
inc ecx
add eax, 0x48
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp ecx, edx
jl 0x10002728
pop edi
pop esi
mov dword [0x1012201c], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x100028d0
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 0x10127488
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x10016240]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10127488], cl
inc eax
cmp eax, 0x100
jb 0x100028f0
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10127488
push 0
mov ecx, 0x1011c678
call fcn.10005cd0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10122030], ecx
mov dword [ebp - 8], 0
jbe 0x10002ac9
mov ebx, dword [0x1011c640]
lea ecx, [esi + 0xa]
mov esi, dword [0x1011c63c]
mov dword [ebp - 4], ecx
cmp ecx, ebx
jae 0x10002a08
cmp esi, ecx
ja 0x10002a08
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [0x1011c644]
jne 0x100029f4
mov ecx, ebx
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xf83e0e
ja 0x10002ada
mov edx, dword [0x1011c644]
sub edx, esi
mov eax, 0x3e0f83e1
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x100029f4
mov edx, eax
shr edx, 1
mov esi, 0xf83e0f
sub esi, edx
cmp esi, eax
jae 0x100029d5
xor eax, eax
jmp 0x100029d7
add eax, edx
cmp eax, ecx
jae 0x100029dd
mov eax, ecx
push eax
mov ecx, 0x1011c63c
call fcn.10003610
mov ebx, dword [0x1011c640]
mov esi, dword [0x1011c63c]
imul edi, edi, 0x108
add edi, esi
test ebx, ebx
je 0x10002a9b
mov esi, edi
jmp 0x10002a86
mov edi, dword [0x1011c644]
cmp ebx, edi
jne 0x10002a7f
mov ecx, ebx
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xf83e0e
ja 0x10002ada
mov edx, edi
sub edx, esi
mov eax, 0x3e0f83e1
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002a7f
mov edx, eax
shr edx, 1
mov esi, 0xf83e0f
sub esi, edx
cmp esi, eax
jae 0x10002a60
xor eax, eax
jmp 0x10002a62
add eax, edx
cmp eax, ecx
jae 0x10002a68
mov eax, ecx
push eax
mov ecx, 0x1011c63c
call fcn.10003610
mov ebx, dword [0x1011c640]
mov esi, dword [0x1011c63c]
test ebx, ebx
je 0x10002a9b
mov esi, dword [ebp - 4]
mov edi, ebx
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [0x1011c640]
mov esi, dword [0x1011c63c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ebx, 0x108
mov dword [0x1011c640], ebx
movzx edx, byte [edx + 8]
inc eax
add ecx, 0x108
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x10002958
pop edi
pop esi
mov dword [0x10122020], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10002af0
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 0x10127488
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_j_]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10127488], cl
inc eax
cmp eax, 0x100
jb 0x10002b10
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10127488
push 0
mov ecx, 0x1011c678
call fcn.10005cd0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10122034], ecx
mov dword [ebp - 8], 0
jbe 0x10002cea
mov ebx, dword [0x1011c650]
lea ecx, [esi + 0xa]
mov esi, dword [0x1011c64c]
mov dword [ebp - 4], ecx
cmp ecx, ebx
jae 0x10002c28
cmp esi, ecx
ja 0x10002c28
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [0x1011c654]
jne 0x10002c14
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x10002cfb
mov edx, dword [0x1011c654]
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002c14
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10002bf5
xor eax, eax
jmp 0x10002bf7
add eax, edx
cmp eax, ecx
jae 0x10002bfd
mov eax, ecx
push eax
mov ecx, 0x1011c64c
call fcn.10003700
mov ebx, dword [0x1011c650]
mov esi, dword [0x1011c64c]
imul edi, edi, 0x105
add edi, esi
test ebx, ebx
je 0x10002cbc
mov esi, edi
jmp 0x10002ca6
mov edi, dword [0x1011c654]
cmp ebx, edi
jne 0x10002c9f
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x10002cfb
mov edx, edi
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002c9f
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10002c80
xor eax, eax
jmp 0x10002c82
add eax, edx
cmp eax, ecx
jae 0x10002c88
mov eax, ecx
push eax
mov ecx, 0x1011c64c
call fcn.10003700
mov ebx, dword [0x1011c650]
mov esi, dword [0x1011c64c]
test ebx, ebx
je 0x10002cbc
mov esi, dword [ebp - 4]
mov edi, ebx
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [0x1011c650]
mov esi, dword [0x1011c64c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ebx, 0x105
mov dword [0x1011c650], ebx
movzx edx, byte [edx + 8]
inc eax
add ecx, 0x105
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x10002b78
pop edi
pop esi
mov dword [0x10122024], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10002d10
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 0x10127488
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jv]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10127488], cl
inc eax
cmp eax, 0x100
jb 0x10002d30
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x10127488
push 0
mov ecx, 0x1011c678
call fcn.10005cd0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10122038], ecx
mov dword [ebp - 8], 0
jbe 0x10002f1a
mov edi, dword [0x1011c660]
lea eax, [esi + 0xa]
mov esi, dword [0x1011c65c]
mov dword [ebp - 4], eax
cmp eax, edi
jae 0x10002e61
cmp esi, eax
ja 0x10002e61
mov ecx, eax
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [0x1011c664]
jne 0x10002e36
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x10002f2b
mov edx, dword [0x1011c664]
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002e36
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x10002e17
xor eax, eax
jmp 0x10002e19
add eax, edx
cmp eax, ecx
jae 0x10002e1f
mov eax, ecx
push eax
mov ecx, 0x1011c65c
call fcn.100037f0
mov edi, dword [0x1011c660]
mov esi, dword [0x1011c65c]
mov eax, ebx
shl eax, 6
add eax, esi
add eax, ebx
test edi, edi
je 0x10002e59
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x1011c660]
mov esi, dword [0x1011c65c]
mov eax, dword [ebp - 4]
jmp 0x10002ef5
mov ebx, dword [0x1011c664]
cmp edi, ebx
jne 0x10002edb
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x10002f2b
mov edx, ebx
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002ed8
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x10002eb9
xor eax, eax
jmp 0x10002ebb
add eax, edx
cmp eax, ecx
jae 0x10002ec1
mov eax, ecx
push eax
mov ecx, 0x1011c65c
call fcn.100037f0
mov edi, dword [0x1011c660]
mov esi, dword [0x1011c65c]
mov eax, dword [ebp - 4]
test edi, edi
je 0x10002ef5
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x1011c660]
mov esi, dword [0x1011c65c]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add edi, 0x41
mov dword [0x1011c660], edi
movzx edx, byte [edx + 8]
inc ecx
add eax, 0x41
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp ecx, edx
jl 0x10002d98
pop edi
pop esi
mov dword [0x10122028], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10002f40
Capabilities:
Encode data using xor

Disassembly:
push ecx
push 0x100
push 0
push 0x10127488
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10002f60
mov cl, byte [eax + str.r_jj]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10127488], cl
inc eax
cmp eax, 0x100
jb 0x10002f60
movzx edx, byte [esi + 4]
push edx
push 0x10127488
push 0
mov ecx, 0x1011c678
call fcn.10005cd0
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xa
ja case.default.0x10002f9c
jmp dword [eax*4 + 0x1000300c]
mov ecx, 0xe
jmp 0x10002fee
mov ecx, 0xf
jmp 0x10002fee
mov ecx, 0x10
jmp 0x10002fee
mov ecx, 0x11
jmp 0x10002fee
mov ecx, 0x12
jmp 0x10002fee
mov ecx, 0x13
jmp 0x10002fee
mov ecx, 0x14
jmp 0x10002fee
mov ecx, 0x16
jmp 0x10002fee
mov ecx, 0x18
jmp 0x10002fee
mov ecx, 0x19
jmp 0x10002fee
mov ecx, 0x15
push 0x1388
call fcn.10006430
push eax
push 2
mov eax, 0x10121990
call fcn.1000e5c0
add esp, 0xc
pop ecx
ret

Function at 0x10003040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1001c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x10122050], 1
push edi
je 0x100030e8
mov ecx, dword [0x1011c62c]
mov dword [0x10122018], ebx
mov dword [0x1012201c], ebx
mov dword [0x10122020], ebx
mov dword [0x10122024], ebx
mov dword [0x10122028], ebx
mov dword [0x1012202c], ebx
mov dword [0x10122030], ebx
mov dword [0x10122034], ebx
mov dword [0x10122038], ebx
cmp ecx, dword [0x1011c630]
je 0x100030ac
mov dword [0x1011c630], ecx
mov ecx, dword [0x1011c63c]
cmp ecx, dword [0x1011c640]
je 0x100030c0
mov dword [0x1011c640], ecx
mov ecx, dword [0x1011c64c]
cmp ecx, dword [0x1011c650]
je 0x100030d4
mov dword [0x1011c650], ecx
mov ecx, dword [0x1011c65c]
cmp ecx, dword [0x1011c660]
je 0x100030e8
mov dword [0x1011c660], ecx
mov dword [0x101216f4], ebx
mov dword [0x101216fc], ebx
mov word [ebp - 0x3c], 0x38c1
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x1000310e
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x101216e4]
mov edx, dword [str.1.7.0]
mov byte [ebp - 0x3a], al
mov eax, dword [0x10122050]
mov dword [ebp - 0x38], eax
mov eax, dword [0x10017878]
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call fcn.1000e770
push 0x100
mov esi, eax
push ebx
mov ecx, 9
lea edi, [ebp - 0x28]
push 0x10127488
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10016540]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10127488], cl
inc eax
cmp eax, 0x100
jb 0x10003160
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
push ecx
push edx
push 0x10127488
push ebx
mov ecx, 0x1011c678
call fcn.10005cd0
movzx ecx, byte [ebp - 0x3b]
add esp, 0x18
lea edx, [ebp - 0x3c]
call fcn.10001920
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011784
mov esp, ebp
pop ebp
ret
Function at 0x10003d70
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x10121e64]
test eax, eax
je 0x10003de3
mov ecx, dword [eax]
cmp ecx, dword [0x10121e78]
jne 0x10003d8f
mov dl, byte [0x10121e7c]
cmp dl, byte [eax + 4]
je 0x10003de3
push 0x100
push 0
push 0x10127488
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003db0
mov cl, byte [eax + 0x10015540]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10127488], cl
inc eax
cmp eax, 0x100
jb 0x10003db0
push 0x10127488
push 0
mov ecx, 0x1011c678
call fcn.10005cd0
add esp, 8
call fcn.1000e190
mov eax, dword [0x10121e60]
test eax, eax
je 0x10003e53
mov edx, dword [eax]
cmp edx, dword [0x10121e70]
jne 0x10003e01
mov cl, byte [0x10121e74]
cmp cl, byte [eax + 4]
je 0x10003e53
push 0x100
push 0
push 0x10127488
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003e20
mov dl, byte [eax + 0x10015640]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10127488], dl
inc eax
cmp eax, 0x100
jb 0x10003e20
push 0x10127488
push 0
mov ecx, 0x1011c678
call fcn.10005cd0
add esp, 8
call fcn.1000e190
mov eax, dword [0x10121e5c]
test eax, eax
je 0x10003e90
mov ecx, dword [eax]
cmp ecx, dword [0x10121e68]
jne 0x10003e71
mov dl, byte [0x10121e6c]
cmp dl, byte [eax + 4]
je 0x10003e90
mov eax, 0x11
call fcn.1000e830
push eax
push 0
mov ecx, 0x1011c678
call fcn.10005cd0
add esp, 8
call fcn.1000e190
pop ecx
ret
Function at 0x10005920
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001c018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push closesocket
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005973
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10005986
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011784
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push 0
push eax
push ecx
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x100059bd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011784
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x100059fb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100059f4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100059f4
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x10005a1b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011784
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x44]
mov dword [ebx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.10011784
mov esp, ebp
pop ebp
ret 8