joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023499
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x100234c5
test ecx, ecx
jne 0x100234cf
test esi, esi
jne 0x100234cf
mov eax, edx
jmp 0x10023540
cmp eax, 0xffffffff
jne 0x100234cf
push 0xfffffffffffffffe
pop eax
jmp 0x10023540
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x10023540
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x10023505
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x10023524
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x100235ed
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x10023565
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002356f
xor ecx, ecx
jmp 0x100235ae
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x10023591
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.10036cb7
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x100235d9
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x100235ed
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x100234a7
pop edi
pop esi
leave
ret
Function at 0x1004d830
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
mov edx, 1
push esi
push edi
mov edi, ecx
mov dword [edi + 4], eax
lea esi, [edi + 8]
mov ecx, eax
lea esi, [esi + 4]
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
inc edx
mov dword [esi - 4], eax
cmp edx, 0x270
jb 0x1004d843
mov dword [edi], 0x270
pop edi
pop esi
ret 8

Function at 0x1005c350
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ecb4e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10120140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0xc]
mov dword [edi], vtable.CAPISocket.0
call fcn.1004d600
lea ecx, [edi + 0x2002c]
mov dword [ebp - 4], 0
push ecx
call fcn.1005bfe0
lea ecx, [edi + 0x20044]
mov byte [ebp - 4], 1
call fcn.1005c420
lea ecx, [edi + 0xc]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
call fcn.1005ce60
mov eax, dword [0x10147614]
mov ecx, eax
inc eax
mov dword [edi + 0x24], 0
mov dword [0x10147614], eax
test ecx, ecx
jne 0x1005c3e8
push 0x10161280
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [edi + 0x20040], 0
mov eax, edi
mov dword [edi + 0x20028], 0
mov dword [edi + 0x20058], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005c570
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x10120140]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
push edi
mov edi, ecx
test esi, esi
je 0x1005c6fe
cmp dword [ebp + 0x10], 0
je 0x1005c6fe
cmp dword [edi + 4], 0xffffffff
je 0x1005c5b3
call fcn.1005c520
mov al, byte [esi]
sub al, 0x30
push esi
cmp al, 9
ja 0x1005c5db
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x2c], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 0x24], eax
jmp 0x1005c613
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x1005c6fe
xorps xmm0, xmm0
lea eax, [esp + 0x24]
movaps xmmword [esp + 0x20], xmm0
movsx ecx, word [esi + 0xa]
push ecx
mov ecx, dword [esi + 0xc]
push dword [ecx]
push eax
call fcn.100c41c0
mov ax, word [esi + 8]
add esp, 0xc
mov word [esp + 0x20], ax
push dword [ebp + 0x10]
call dword [sym.imp.WSOCK32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x2e], ax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x1005c651
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100c0cd4
mov esp, ebp
pop ebp
ret 0xc
push 4
lea eax, [esp + 0x3c]
mov dword [edi + 4], esi
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x4c], 0x20000
call dword [sym.imp.WSOCK32.dll_setsockopt]
push 0x10
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
je 0x1005c6b4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100c0cd4
mov esp, ebp
pop ebp
ret 0xc
push 0x31
push 0x401
push dword [esp + 0x1c]
push esi
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esp + 0x14]
lea ecx, [edi + 0xc]
push dword [esp + 0x1c]
mov dword [edi + 8], eax
call fcn.1004d460
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x24], eax
xor eax, eax
mov dword [edi + 0x20028], 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100c0cd4
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100c0cd4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1005c7b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov eax, dword [0x10120140]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [0x1014768c]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1005c86b
cmp dword [esi + 0x20028], 0
je 0x1005c86b
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0x4004667f
push eax
xor edi, edi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp dword [esp + 8], edi
jbe 0x1005c85b
push ebx
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_recv]
lea ebx, [esi + 0x28]
nop dword [eax + eax]
push 0
push 0x20000
push ebx
push dword [esi + 4]
call ebp
cmp eax, 0xffffffff
je 0x1005c83d
test eax, eax
je 0x1005c835
push eax
push ebx
lea ecx, [esi + 0x2002c]
add edi, eax
call fcn.1005c070
cmp edi, dword [esp + 0x10]
jb 0x1005c810
jmp 0x1005c859
push 0xca
push str.C:NEWSRCFASTBOTFASTBOTCSocketAPISocket.cpp
push str.socket_receive_error_
push str.ERROR____s_n_s:__d_n_n
call fcn.100561b0
add esp, 0x10
pop ebp
pop ebx
pop edi
nop dword [eax]
mov ecx, esi
call fcn.1005c880
test eax, eax
jne 0x1005c860
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.100c0cd4
add esp, 8
ret
Function at 0x1005cbf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ecbfd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10120140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x20058], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
je 0x1005cd78
cmp dword [ebx + 4], 0xffffffff
je 0x1005cd78
cmp dword [ebx + 0x20028], 0
je 0x1005cd78
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10045e60
call fcn.1005c2d0
mov dword [ebp - 4], 0
cmp dword [0x10147610], 0
je 0x1005ccd8
mov eax, dword [0x1014760c]
push esi
inc eax
push edi
push 0x10161454
mov dword [0x1014760c], eax
mov dword [0x10161450], eax
call fcn.100c41c0
add esp, 8
lea edx, [esi + 4]
mov ecx, 0x10161450
call fcn.1005f7b0
add esp, 4
mov dword [esi + 0x10161454], eax
lea eax, [esi + 8]
mov esi, eax
mov dword [ebp - 0x20], esi
push 0x10161450
push 0x10161450
push eax
call fcn.1005d970
push esi
mov dword [ebp - 0x18], esi
call fcn.100c1209
push esi
mov edi, eax
mov dword [ebp - 0x24], eax
push 0x10161450
push edi
mov dword [ebp - 0x14], edi
call fcn.100c41c0
add esp, 0x10
lea eax, [esi + 6]
cmp eax, 0xc8
jg 0x1005cd70
mov esi, dword [sym.imp.WSOCK32.dll_htons]
lea edi, [ebx + 0x28]
push 0xaa55
call esi
mov word [edi], ax
mov eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov word [edi + 2], ax
add edi, 4
push edi
call fcn.100c41c0
add esp, 0xc
push 0x55aa
call esi
mov ecx, dword [ebp - 0x20]
mov word [ecx + edi], ax
lea esi, [ecx + 6]
xor eax, eax
test esi, esi
jle 0x1005cd6a
push 0
mov edi, eax
lea eax, [ebx + 0x28]
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1005cd4e
test ecx, ecx
lea eax, [ecx + edi]
cmove eax, edi
cmp eax, esi
jl 0x1005cd27
jmp 0x1005cd6a
push 0x182
push str.C:NEWSRCFASTBOTFASTBOTCSocketAPISocket.cpp
push str.socket_send_error_
push str.ERROR____s_n_s:__d_n_n
call fcn.100561b0
add esp, 0x10
add dword [ebx + 0x20040], esi
lea ecx, [ebp - 0x1c]
call fcn.1005c2f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c0cd4
mov esp, ebp
pop ebp
ret 8

Function at 0x1005d7e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax]
lea eax, [eax + 4]
xor edx, dword [eax - 8]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x1005d7f0
pop esi
ret
Function at 0x1005d830
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 0xe3
mov ebx, dword [esi + 0x9c4]
push edi
lea edi, [esi + 0x9c4]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x1005d847
mov ebx, dword [esi + 0xd50]
lea edi, [esi + 0xd50]
mov ebp, 0x18c
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x1005d893
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi], ebp
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x1005d970
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
movzx eax, bl
imul eax, eax, 0x9d
push edi
mov edi, 0x86d
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
jle 0x1005d9cf
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
sub ebp, ecx
nop word [eax + eax]
lea esi, [eax + ecx]
mov ecx, eax
and ecx, 7
inc eax
mov dl, byte [ecx + 0x1014d908]
mov ecx, edi
xor dl, byte [esi + ebp]
sar ecx, 8
xor dl, cl
imul edi, edi, 0x87b
xor dl, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov byte [esi], dl
cmp eax, ebx
jl 0x1005d9a0
pop esi
pop ebp
pop edi
pop ebx
ret 0xc

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

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
push edi
mov edi, ecx
test edx, edx
je 0x1005f7d8
nop dword [eax]
movzx ecx, byte [edi + esi]
inc esi
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1010f690]
cmp esi, edx
jb 0x1005f7c0
pop edi
pop esi
ret

Function at 0x1005fb00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
movzx eax, bl
imul eax, eax, 0x9d
push edi
mov edi, 0x86d
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
jle 0x1005fb5f
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
sub ebp, ecx
nop word [eax + eax]
lea esi, [eax + ecx]
mov ecx, eax
and ecx, 7
inc eax
mov dl, byte [ecx + 0x10152ab8]
mov ecx, edi
xor dl, byte [esi + ebp]
sar ecx, 8
xor dl, cl
imul edi, edi, 0x87b
xor dl, byte [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov byte [esi], dl
cmp eax, ebx
jl 0x1005fb30
pop esi
pop ebp
pop edi
pop ebx
ret 0xc
Function at 0x1005fd00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1005fd3e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1005fd42
cmp edx, esi
jne 0x1005fd27
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1005fd62
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1005fd66
cmp edx, esi
jne 0x1005fd4b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1005fd86
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1005fd8a
cmp edx, esi
jne 0x1005fd6f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1005fda0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x20
mov eax, dword [0x10120140]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
push 0x1c
lea eax, [esp + 8]
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [esp + 0x18]
push eax
push 0x40
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x1000
push 0
push edi
call fcn.100c28a0
add esp, 0xc
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [esp + 0x10]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [esp + 0x20]
pop edi
xor ecx, esp
call fcn.100c0cd4
add esp, 0x20
ret

Function at 0x1005fe20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov eax, dword [0x10120140]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x1005fe88
push edi
mov edi, dword [esi + 0x3c]
lea eax, [esp + 8]
push eax
push 4
push 0x40
push esi
add edi, esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1005fe5c
push 0x40
push 0
push esi
call fcn.100c28a0
add esp, 0xc
test edi, edi
je 0x1005fe87
lea eax, [esp + 8]
push eax
push 4
push 0xf8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1005fe87
push 0xf8
push 0
push edi
call fcn.100c28a0
add esp, 0xc
pop edi
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.100c0cd4
add esp, 8
ret
Function at 0x10062d20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov esi, edx
mov edi, ecx
not eax
nop dword [eax]
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1010fcd0]
sub esi, 1
jne 0x10062d30
pop edi
pop esi
not eax
ret

Function at 0x10062d50
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10062dae
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10062d92
cmp edi, 2
jb 0x10062d92
cmp byte [esi], cl
jne 0x10062d92
cmp byte [esi + 1], cl
jne 0x10062d92
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1010fcd0]
jmp 0x10062d63
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1010fcd0]
test edi, edi
jne 0x10062d63
pop edi
pop esi
not eax
pop ebx
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10062ddd
cmp cl, 0x23
jne 0x10062dc4
cmp byte [esi], cl
jne 0x10062dc4
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1010fcd0]
test cl, cl
jne 0x10062db5
pop edi
pop esi
not eax
pop ebx
ret

Function at 0x10062f40
Capabilities:
Read file on windows

Disassembly:
push edx
push dword [esp + 0x10]
push 1
push ecx
call fcn.100cbfc2
add esp, 0x10
xor edx, edx
ret
Function at 0x10081e20
Capabilities:
Compute adler32 checksum

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, 0x5e6ea9af
push esi
mov esi, edx
mov ebx, ebp
mul ebp
push edi
shr edx, 0xb
xor edi, edi
imul eax, edx, 0x15b0
mov ecx, 1
sub ebx, eax
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x10081f49
xor edx, edx
mov dword [esp + 0x14], edx
cmp ebx, 7
jbe 0x10081eb6
mov ebp, 7
sub ebp, esi
movzx eax, byte [esi]
add edx, 8
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add esi, 8
add edi, ecx
add ecx, eax
add edi, ecx
lea eax, [esi + ebp]
cmp eax, ebx
jb 0x10081e66
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor ebp, ebp
cmp edx, eax
jae 0x10081f0e
sub eax, edx
cmp eax, 2
jb 0x10081f01
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub edx, eax
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [esp + 0x14], eax
movzx eax, byte [esi]
add ecx, eax
movzx eax, byte [esi + 1]
add ebx, ecx
add esi, 2
add ecx, eax
add ebp, ecx
sub edx, 1
jne 0x10081ee0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jae 0x10081f09
movzx eax, byte [esi]
add ecx, eax
add edi, ecx
inc esi
lea eax, [ebx + ebp]
add edi, eax
mov eax, 0x80078071
mov ebx, dword [esp + 0x10]
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
sub dword [esp + 0x24], ebx
mov ebx, 0x15b0
mov dword [esp + 0x10], ebx
jne 0x10081e54
shl edi, 0x10
lea eax, [ecx + edi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100a2830
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x100a285a
mov edx, dword [esp + 0xc]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100a2844
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret

Function at 0x100a36f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x10120140]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
call fcn.1005f5c0
push 0x10114e64
push eax
call fcn.100cbdd2
mov esi, eax
add esp, 8
test esi, esi
jne 0x100a3742
mov eax, 0x1010ecff
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.100c0cd4
add esp, 0x404
ret 4
push esi
push 0x400
lea eax, [esp + 0xc]
push 1
push eax
call fcn.100cbfc2
add esp, 0x10
test eax, eax
je 0x100a3784
nop dword [eax + eax]
push eax
lea eax, [esp + 8]
push eax
call fcn.1005f600
push esi
push 0x400
lea eax, [esp + 0xc]
push 1
push eax
call fcn.100cbfc2
add esp, 0x10
test eax, eax
jne 0x100a3760
call fcn.1005f6c0
push esi
call fcn.100cafa1
mov ecx, dword [esp + 0x408]
add esp, 4
mov eax, 0x10155ba8
pop esi
xor ecx, esp
call fcn.100c0cd4
add esp, 0x404
ret 4
Function at 0x100ad3a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x5c
mov eax, dword [0x10120140]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
push dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.100b7f80
mov ecx, eax
call fcn.10045d20
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call edi
push 0xc
lea ecx, [esp + 0x4c]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov esi, dword [esp + 0x48]
call edi
mov ebx, eax
mov dword [esp + 0x44], 0
push 0x1c
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push eax
push esi
push ebx
movups xmmword [esp + 0x3c], xmm0
movq qword [esp + 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x100ad503
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100ad503
push 0
push edi
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100ad503
sub esp, 0xc
mov dword [esp + 0x30], 0
lea eax, [esp + 0x64]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 0
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.100bd070
test eax, eax
jne 0x100ad503
mov edx, ebp
mov ecx, ebx
call fcn.100bd1a0
test eax, eax
jne 0x100ad503
sub esp, 0xc
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x34], ebp
xorps xmm0, xmm0
mov edx, ebx
movlpd qword [esp + 0x6c], xmm0
push eax
lea eax, [esp + 0x70]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x44]
push eax
call fcn.100bd100
test eax, eax
jne 0x100ad503
push eax
push dword [esp + 0x58]
push esi
push dword [esp + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100ad503
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100c0cd4
add esp, 0x5c
ret
mov ecx, dword [esp + 0x68]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100c0cd4
add esp, 0x5c
ret