joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10066b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xbc], edi
test eax, eax
je 0x10066c63
test edi, edi
je 0x10066c63
cmp ebx, 1
jbe 0x10066c63
push 0x100c0eb8
push eax
call dword [sym.imp.MSVCR120.dll__wfopen]
add esp, 8
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x10066c63
push esi
push 0x8000
call dword [sym.imp.MSVCR120.dll_malloc]
push ebx
mov esi, eax
call fcn.1009427d
add esp, 8
mov dword [ebp - 0xb4], eax
test esi, esi
je 0x10066c41
test eax, eax
je 0x10066c41
lea eax, [ebp - 0xb0]
push eax
call sym.HncFoundation.dll_void___cdecl_HNC_SHA256_Init_struct_sha256_info__
mov edi, dword [ebp - 0xb8]
add esp, 4
lea esp, [esp]
push edi
push 0x8000
push 1
push esi
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
test eax, eax
jle 0x10066bd9
push eax
lea eax, [ebp - 0xb0]
push esi
push eax
call sym.HncFoundation.dll_void___cdecl_HNC_SHA256_Update_struct_sha256_info___unsigned_char_const___unsigned_long_int_
add esp, 0xc
jmp 0x10066bb0
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
lea ecx, [ebp - 0xb0]
call fcn.10063f00
mov edx, dword [ebp - 0xb4]
lea ecx, [ebp - 0xb0]
call fcn.10063da0
shr ebx, 1
mov esi, 0
mov edi, dword [ebp - 0xbc]
je 0x10066c32
mov edi, edi
mov eax, dword [ebp - 0xb4]
movzx eax, byte [esi + eax]
push eax
push str._02x
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
inc esi
add esp, 0xc
add edi, 2
cmp esi, ebx
jb 0x10066c10
push dword [ebp - 0xb4]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push dword [ebp - 0xb8]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov al, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret
Function at 0x100674b0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push esi
push edi
xorps xmm0, xmm0
mov edi, ecx
cmp word [ebx], 0
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
jne 0x100674f0
mov esi, 0x100c0632
jmp 0x10067607
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100674f5
sub edi, ecx
mov ecx, ebx
sar edi, 1
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067510
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*4 + 4]
lea eax, [ecx + 8]
cmp eax, ecx
jbe 0x100675cd
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067536
sub ecx, edx
sar ecx, 1
lea eax, [ecx*4 + 0xc]
mov ecx, ebx
lea edx, [ecx + 2]
cmp eax, 0x400
ja 0x10067590
jmp 0x10067560
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067560
sub ecx, edx
sar ecx, 1
lea eax, [ecx*4 + 0xc]
call fcn.100990e0
mov esi, esp
test esi, esi
je 0x100675cf
mov dword [esi], 0xcccc
add esi, 8
jmp 0x100675cf
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067590
sub ecx, edx
xor eax, eax
sar ecx, 1
lea ecx, [ecx*4 + 4]
add ecx, 8
setb al
neg eax
or eax, ecx
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x100675cf
mov dword [esi], 0xdddd
add esi, 8
jmp 0x100675cf
xor esi, esi
push esi
lea ecx, [ebp - 0x18]
lea edi, [edi*4 + 4]
call fcn.10010950
xor eax, eax
cmp edi, 1
jle 0x10067600
mov dword [ebp - 8], eax
xor edx, edx
lea eax, [ebp - 8]
xor ecx, ecx
push eax
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
call fcn.10035400
add esp, 0x18
mov edi, dword [ebp - 0x2c]
mov byte [esi + eax], 0
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x26], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x10067649
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1006767e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
neg esi
sbb esi, esi
inc esi
lea ecx, [ebp - 0x18]
call fcn.10010900
mov eax, esi
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
xor esi, esi
jmp 0x1006765e
Function at 0x10067690
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x10624dd3
mul esi
push edi
mov edi, dword [ebp + 8]
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x118], 1
sub esi, eax
mov eax, dword [ecx]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 8], esi
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
je 0x10067701
test ecx, ecx
setne al
mov dword [edi], eax
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
Function at 0x10067c00
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 8]
push esi
push edi
push eax
push 0x101
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
mov esi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
test esi, esi
js 0x10067c79
cmp eax, 0xffffffff
je 0x10067c79
push dword [ebp + 0xc]
mov ecx, edi
push ebx
call sym.HncFoundation.dll_protected:_int___thiscall_CHncSocket::_Connect_unsigned_short_int_const___int_
cmp eax, 0x2bd
jne 0x10067c79
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x1a4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8

Function at 0x10067d20
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
mov esi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
test esi, esi
js 0x10067d6c
cmp eax, 0xffffffff
mov eax, 0x2bd
jne 0x10067d71
mov eax, 0x2be
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret
Function at 0x10067d90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
test ebx, ebx
je 0x10067f3a
cmp word [ebx], 0
mov eax, 2
movdqu xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
jne 0x10067de6
mov esi, 0x100c0632
jmp 0x10067ef7
mov edi, ebx
lea ecx, [edi + 2]
jmp 0x10067df0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10067df0
sub edi, ecx
mov ecx, ebx
sar edi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067e04
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*4 + 4]
lea eax, [ecx + 8]
cmp eax, ecx
jbe 0x10067ebd
mov ecx, ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067e30
sub ecx, edx
sar ecx, 1
lea eax, [ecx*4 + 0xc]
mov ecx, ebx
lea edx, [ecx + 2]
cmp eax, 0x400
ja 0x10067e80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067e52
sub ecx, edx
sar ecx, 1
lea eax, [ecx*4 + 0xc]
call fcn.100990e0
mov esi, esp
test esi, esi
je 0x10067ebf
mov dword [esi], 0xcccc
add esi, 8
jmp 0x10067ebf
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10067e80
sub ecx, edx
xor eax, eax
sar ecx, 1
lea ecx, [ecx*4 + 4]
add ecx, 8
setb al
neg eax
or eax, ecx
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10067ebf
mov dword [esi], 0xdddd
add esi, 8
jmp 0x10067ebf
xor esi, esi
push esi
lea ecx, [ebp - 0x18]
lea edi, [edi*4 + 4]
call fcn.10010950
xor eax, eax
cmp edi, 1
jle 0x10067ef0
mov dword [ebp - 8], eax
xor edx, edx
lea eax, [ebp - 8]
xor ecx, ecx
push eax
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
call fcn.10035400
add esp, 0x18
mov edi, dword [ebp - 0x2c]
mov byte [esi + eax], 0
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x28]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10067f3a
push 2
push dword [edi]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, 0x2bf
jmp 0x10067f3f
mov esi, 0x2bd
lea ecx, [ebp - 0x18]
call fcn.10010900
mov eax, esi
lea esp, [ebp - 0x38]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
Function at 0x10068720
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
mov dword [ebp - 4], eax
push esi
mov esi, ebx
push edi
test ebx, ebx
jle 0x10068753
mov edi, dword [ebp + 8]
push 0
push esi
push edi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x1006876a
sub esi, eax
add edi, eax
mov eax, dword [ebp - 4]
test esi, esi
jg 0x10068738
mov eax, ebx
mov ecx, 0x2c0
sub eax, esi
pop edi
cmp eax, ebx
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 0x2c0
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10069e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
push 0
mov edi, ecx
mov dword [esp + 0x1c], esi
push 0
push esi
mov dword [esp + 0x20], edi
movdqa xmmword [esp + 0x2c], xmm0
call dword [sym.imp.MSVCR120.dll_fseek]
push esi
push 1
push 0x20
push 0x100bb948
call dword [sym.imp.MSVCR120.dll_fwrite]
mov eax, dword [edi + 0x2c]
push esi
push 1
push 0x10
mov edi, dword [eax + 4]
sub edi, dword [eax]
lea eax, [esp + 0x48]
sar edi, 2
push eax
mov dword [esp + 0x4c], edi
mov word [esp + 0x50], 1
call dword [sym.imp.MSVCR120.dll_fwrite]
mov ecx, edi
add esp, 0x2c
shl ecx, 5
xor edx, edx
add ecx, 0x30
mov dword [esp + 0x1c], ecx
test edi, edi
jle 0x10069ed6
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
mov esi, dword [eax]
jmp 0x10069eb0
mov eax, dword [esi + edx*4]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
mov esi, dword [eax]
mov eax, dword [esi + edx*4]
inc edx
mov ax, word [eax + 0x20]
cwde
lea ecx, [ecx + eax*2]
add ecx, 2
cmp edx, edi
jl 0x10069eb0
mov dword [esp + 0x1c], ecx
xor esi, esi
test edi, edi
jle 0x10069f39
lea esp, [esp]
mov eax, dword [esp + 0x14]
push 0
mov eax, dword [eax + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + esi*4]
push dword [eax + 0xc]
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_fseek]
mov eax, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x24], 8
lea ecx, [eax + 0x10]
mov edx, dword [eax + 0x20]
jb 0x10069f18
mov ecx, dword [ecx]
push dword [esp + 0x18]
lea eax, [edx*2 + 2]
push 1
push eax
push ecx
call dword [sym.imp.MSVCR120.dll_fwrite]
inc esi
add esp, 0x10
cmp esi, edi
jl 0x10069ee0
mov ecx, dword [esp + 0x1c]
push 0
push ecx
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_fseek]
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
Function at 0x10069f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x24], 8
lea eax, [ebx + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x618], esi
jb 0x10069fad
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call sym.HncFoundation.dll_HncPathToAbsolute
push 0x100c0eb8
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x610]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1006a0b2
cmp dword [ebp - 0x610], eax
je 0x1006a0b2
push eax
push esi
push 0x10069f60
call sym.HncFoundation.dll_void____stdcall_HncGZOpenWriteOfCustomMem_int____stdcall___void___void_const___void_const___unsigned_int___void_const___int_
mov edi, eax
test edi, edi
je 0x1006a09c
push esi
call dword [sym.imp.MSVCR120.dll_ftell]
add esp, 4
mov dword [ebp - 0x614], eax
jmp 0x1006a020
push dword [ebp - 0x610]
lea eax, [ebp - 0x60c]
push 0x400
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x60c]
push 2
push esi
push eax
push edi
call sym.HncFoundation.dll_int___stdcall__HncGZWrite_void___void_const___unsigned_int__int_
test esi, esi
jg 0x1006a020
push edi
call sym.HncFoundation.dll__HncGZCloseWrite_4
push dword [ebp - 0x618]
call dword [sym.imp.MSVCR120.dll_ftell]
push dword [ebp - 0x610]
mov esi, eax
call dword [sym.imp.MSVCR120.dll_fclose]
mov eax, dword [ebp - 0x614]
add esp, 8
sub esi, eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], esi
xor eax, eax
mov byte [ebx], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x610]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
mov eax, 0x2002
jmp 0x1006a0b7
mov eax, 0x2000
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov byte [ebx], 2
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
Function at 0x1006a0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
push esi
mov dword [esp + 8], eax
mov eax, dword [eax + 0x2c]
push edi
movdqa xmmword [esp + 0x10], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov esi, dword [eax + 4]
sub esi, dword [eax]
push 0
push 0x30
push ecx
mov dword [esp + 0x14], ecx
sar esi, 2
call dword [sym.imp.MSVCR120.dll_fseek]
add esp, 0xc
xor edi, edi
test esi, esi
jle 0x1006a180
mov eax, dword [esp + 0xc]
push dword [esp + 8]
push 1
mov ecx, dword [eax + 0x2c]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
mov eax, dword [eax + edi*4]
mov al, byte [eax]
mov byte [esp + 0x1c], al
mov eax, dword [ecx]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
mov eax, dword [eax + edi*4]
mov ax, word [eax + 0x20]
mov word [esp + 0x2c], ax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
inc edi
add esp, 0x10
cmp edi, esi
jl 0x1006a121
mov ecx, dword [esp + 0x3c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
Function at 0x1006b560
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], edx
test esi, esi
jne 0x1006b57b
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x1006b591
push esi
call fcn.10003cf0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
cmp dword [esi + 4], 0
jne 0x1006b5c3
mov eax, dword [esi + 0x3c]
push 0x1000
push dword [esi + 0x44]
push dword [esi + 0x40]
push esi
call eax
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1006b64e
mov eax, dword [esi + 0x44]
mov edx, dword [ebp - 4]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
push 2
lea edi, [edx + ecx]
mov dword [esi + 0x10], eax
push esi
mov dword [esi + 0xc], edi
call fcn.10003f20
mov ebx, dword [ebp + 0x10]
mov ecx, eax
sub ebx, dword [esi + 0x10]
mov dword [ebp + 8], ecx
mov edx, ebx
test edi, edi
jne 0x1006b5ed
or eax, 0xffffffff
jmp 0x1006b612
mov eax, dword [esi + 0x60]
test ebx, ebx
je 0x1006b612
movzx ecx, byte [edi]
lea edi, [edi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100bc9b0]
dec edx
jne 0x1006b5f4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [esi + 0x60], eax
add edx, ebx
not eax
mov dword [ebp - 4], edx
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x10]
sub eax, ebx
mov dword [ebp + 0x10], eax
cmp ecx, 1
je 0x1006b65a
test ecx, ecx
js 0x1006b64e
cmp dword [esi + 4], 0
je 0x1006b642
test eax, eax
je 0x1006b65a
mov ecx, dword [ebp + 0xc]
jmp 0x1006b5c6
test eax, eax
je 0x1006b65a
mov ecx, dword [ebp + 0xc]
jmp 0x1006b593
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop ebx
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1006b670
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], edx
test esi, esi
jne 0x1006b68b
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x1006b6a1
push esi
call fcn.10003cf0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
push edi
cmp dword [esi + 4], 0
jne 0x1006b6d1
mov eax, dword [esi + 0x3c]
push 0x1000
push dword [esi + 0x44]
push dword [esi + 0x40]
push esi
call eax
cmp eax, 0xffffffff
je 0x1006b76b
mov ecx, dword [esi + 0x44]
mov edx, dword [ebp - 4]
mov dword [esi], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
push 2
lea edi, [edx + ecx]
mov dword [esi + 0x10], eax
push esi
mov dword [esi + 0xc], edi
call fcn.10003f20
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov ebx, eax
sub ebx, dword [esi + 0x10]
mov edx, ebx
test edi, edi
jne 0x1006b6fb
or ecx, 0xffffffff
jmp 0x1006b71f
mov ecx, dword [esi + 0x60]
test ebx, ebx
je 0x1006b71f
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x100bc9b0]
dec edx
jne 0x1006b702
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
sub eax, ebx
mov dword [esi + 0x60], ecx
add edx, ebx
not ecx
mov dword [ebp - 4], edx
mov dword [esi + 0x5c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
cmp ecx, 1
je 0x1006b777
test ecx, ecx
js 0x1006b76b
cmp dword [esi + 4], 0
je 0x1006b754
test eax, eax
je 0x1006b760
mov ecx, dword [ebp + 0xc]
jmp 0x1006b6d4
test eax, eax
je 0x1006b760
mov ecx, dword [ebp + 0xc]
jmp 0x1006b6a3
pop edi
pop ebx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1006b790
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
jne 0x1006b7ad
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push ebx
mov ebx, 0x1000
cmp ecx, ebx
cmovb ebx, ecx
cmp esi, 4
je 0x1006b80f
mov ecx, dword [edi + 0x4c]
mov eax, 0x1000
mov edx, dword [edi + 0x48]
sub eax, ecx
cmp eax, ebx
mov esi, eax
cmovae esi, ebx
xor ebx, ebx
test eax, eax
mov eax, dword [ebp + 0xc]
cmove esi, ebx
mov ebx, dword [ebp - 4]
add eax, ebx
push esi
push eax
lea eax, [ecx + edx]
push eax
call sub.MSVCR120.dll_memcpy
mov ecx, dword [ebp + 0x10]
add ebx, esi
add dword [edi + 0x4c], esi
sub ecx, esi
add esp, 0xc
mov dword [ebp + 0x10], ecx
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1006b8c7
jmp 0x1006b812
mov ebx, dword [ebp - 4]
mov eax, dword [edi + 0x48]
mov dword [edi], eax
mov eax, dword [edi + 0x4c]
mov dword [edi + 4], eax
lea ecx, [ecx]
mov eax, dword [edi + 0x44]
add eax, dword [edi + 0x54]
mov edx, dword [edi]
mov esi, dword [edi + 4]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x50]
mov dword [edi + 0x10], eax
test edx, edx
jne 0x1006b83d
or eax, 0xffffffff
jmp 0x1006b85f
mov eax, dword [edi + 0x60]
test esi, esi
je 0x1006b85f
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100bc9b0]
dec esi
jne 0x1006b844
mov esi, dword [ebp + 0x14]
mov dword [edi + 0x60], eax
not eax
push esi
push edi
mov dword [edi + 0x5c], eax
call fcn.10001430
test eax, eax
js 0x1006b8cc
mov ecx, dword [edi + 0x50]
mov eax, ecx
mov edx, dword [edi + 0x10]
sub eax, edx
add dword [edi + 0x54], eax
sub ecx, eax
mov dword [edi + 0x50], ecx
test edx, edx
je 0x1006b890
cmp esi, 4
jne 0x1006b8a5
push dword [edi + 0x54]
mov eax, dword [edi + 0x38]
push dword [edi + 0x44]
push dword [edi + 0x40]
push edi
call eax
sub dword [edi + 0x54], eax
add dword [edi + 0x50], eax
cmp dword [edi + 0x10], 0
je 0x1006b820
push edi
mov dword [edi + 0x4c], 0
call fcn.10001330
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1006b7b5
add dword [edi + 0x58], ebx
mov eax, ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1006b9f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edx, edx
jne 0x1006ba0a
or eax, 0xffffffff
mov dword [edi], eax
not eax
pop edi
pop ebp
ret 0xc
mov eax, dword [edi]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1006ba2f
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x100bc9b0]
dec esi
jne 0x1006ba14
pop esi
mov dword [edi], eax
not eax
pop edi
pop ebp
ret 0xc
Function at 0x1006bda0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x1006bde8
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006bde3
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x1006be10
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x1006bdf9
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x18]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov eax, esi
add dword [edi + 0x20], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x10