joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004dd70
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 0x1004dd83
mov dword [edi], 0x270
pop edi
pop esi
ret 8

Function at 0x1005b840
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ecc4e
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.1004db50
lea ecx, [edi + 0x2002c]
mov dword [ebp - 4], 0
push ecx
call fcn.1005b4d0
lea ecx, [edi + 0x20044]
mov byte [ebp - 4], 1
call fcn.1005b910
lea ecx, [edi + 0xc]
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
call fcn.1005c350
mov eax, dword [0x10147604]
mov ecx, eax
inc eax
mov dword [edi + 0x24], 0
mov dword [0x10147604], eax
test ecx, ecx
jne 0x1005b8d8
push 0x10161298
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 0x1005ba60
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 0x1005bbee
cmp dword [ebp + 0x10], 0
je 0x1005bbee
cmp dword [edi + 4], 0xffffffff
je 0x1005baa3
call fcn.1005ba10
mov al, byte [esi]
sub al, 0x30
push esi
cmp al, 9
ja 0x1005bacb
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 0x1005bb03
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x1005bbee
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.100c43c0
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 0x1005bb41
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100c0eca
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 0x1005bba4
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.100c0eca
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.1004d9b0
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.100c0eca
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.100c0eca
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1005bca0
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 [0x1014767c]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1005bd5b
cmp dword [esi + 0x20028], 0
je 0x1005bd5b
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 0x1005bd4b
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 0x1005bd2d
test eax, eax
je 0x1005bd25
push eax
push ebx
lea ecx, [esi + 0x2002c]
add edi, eax
call fcn.1005b560
cmp edi, dword [esp + 0x10]
jb 0x1005bd00
jmp 0x1005bd49
push 0xca
push str.C:NEWSRCFASTBOTFASTBOTCSocketAPISocket.cpp
push str.socket_receive_error_
push str.ERROR____s_n_s:__d_n_n
call fcn.10056d20
add esp, 0x10
pop ebp
pop ebx
pop edi
nop dword [eax]
mov ecx, esi
call fcn.1005bd70
test eax, eax
jne 0x1005bd50
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.100c0eca
add esp, 8
ret
Function at 0x1005c0e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eccfd
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 0x1005c268
cmp dword [ebx + 4], 0xffffffff
je 0x1005c268
cmp dword [ebx + 0x20028], 0
je 0x1005c268
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100460a0
call fcn.1005b7c0
mov dword [ebp - 4], 0
cmp dword [0x10147600], 0
je 0x1005c1c8
mov eax, dword [0x101475fc]
push esi
inc eax
push edi
push 0x10161474
mov dword [0x101475fc], eax
mov dword [0x10161470], eax
call fcn.100c43c0
add esp, 8
lea edx, [esi + 4]
mov ecx, 0x10161470
call fcn.1005ed80
add esp, 4
mov dword [esi + 0x10161474], eax
lea eax, [esi + 8]
mov esi, eax
mov dword [ebp - 0x20], esi
push 0x10161470
push 0x10161470
push eax
call fcn.1005ce60
push esi
mov dword [ebp - 0x18], esi
call fcn.100c1402
push esi
mov edi, eax
mov dword [ebp - 0x24], eax
push 0x10161470
push edi
mov dword [ebp - 0x14], edi
call fcn.100c43c0
add esp, 0x10
lea eax, [esi + 6]
cmp eax, 0xc8
jg 0x1005c260
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.100c43c0
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 0x1005c25a
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 0x1005c23e
test ecx, ecx
lea eax, [ecx + edi]
cmove eax, edi
cmp eax, esi
jl 0x1005c217
jmp 0x1005c25a
push 0x182
push str.C:NEWSRCFASTBOTFASTBOTCSocketAPISocket.cpp
push str.socket_send_error_
push str.ERROR____s_n_s:__d_n_n
call fcn.10056d20
add esp, 0x10
add dword [ebx + 0x20040], esi
lea ecx, [ebp - 0x1c]
call fcn.1005b7e0
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.100c0eca
mov esp, ebp
pop ebp
ret 8

Function at 0x1005ccd0
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 0x1005cce0
pop esi
ret
Function at 0x1005cd20
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 0x1005cd37
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 0x1005cd83
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 0x1005ce60
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 0x1005cebf
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 + 0x1014d8e8]
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 0x1005ce90
pop esi
pop ebp
pop edi
pop ebx
ret 0xc

Function at 0x1005ed80
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 0x1005eda8
nop dword [eax]
movzx ecx, byte [edi + esi]
inc esi
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1010f650]
cmp esi, edx
jb 0x1005ed90
pop edi
pop esi
ret

Function at 0x1005f0d0
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 0x1005f12f
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 + 0x10152a98]
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 0x1005f100
pop esi
pop ebp
pop edi
pop ebx
ret 0xc
Function at 0x1005f2d0
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 0x1005f30e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1005f312
cmp edx, esi
jne 0x1005f2f7
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 0x1005f332
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1005f336
cmp edx, esi
jne 0x1005f31b
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 0x1005f356
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1005f35a
cmp edx, esi
jne 0x1005f33f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1005f370
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.100c2aa0
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.100c0eca
add esp, 0x20
ret

Function at 0x1005f3f0
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 0x1005f458
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 0x1005f42c
push 0x40
push 0
push esi
call fcn.100c2aa0
add esp, 0xc
test edi, edi
je 0x1005f457
lea eax, [esp + 8]
push eax
push 4
push 0xf8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1005f457
push 0xf8
push 0
push edi
call fcn.100c2aa0
add esp, 0xc
pop edi
mov ecx, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.100c0eca
add esp, 8
ret
Function at 0x100622f0
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 + 0x1010fc90]
sub esi, 1
jne 0x10062300
pop edi
pop esi
not eax
ret

Function at 0x10062320
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 0x1006237e
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10062362
cmp edi, 2
jb 0x10062362
cmp byte [esi], cl
jne 0x10062362
cmp byte [esi + 1], cl
jne 0x10062362
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1010fc90]
jmp 0x10062333
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1010fc90]
test edi, edi
jne 0x10062333
pop edi
pop esi
not eax
pop ebx
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x100623ad
cmp cl, 0x23
jne 0x10062394
cmp byte [esi], cl
jne 0x10062394
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 + 0x1010fc90]
test cl, cl
jne 0x10062385
pop edi
pop esi
not eax
pop ebx
ret

Function at 0x10062510
Capabilities:
Read file on windows

Disassembly:
push edx
push dword [esp + 0x10]
push 1
push ecx
call fcn.100cc1c2
add esp, 0x10
xor edx, edx
ret
Function at 0x10081400
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 0x10081529
xor edx, edx
mov dword [esp + 0x14], edx
cmp ebx, 7
jbe 0x10081496
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 0x10081446
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor ebp, ebp
cmp edx, eax
jae 0x100814ee
sub eax, edx
cmp eax, 2
jb 0x100814e1
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 0x100814c0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jae 0x100814e9
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 0x10081434
shl edi, 0x10
lea eax, [ecx + edi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100a2590
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 0x100a25ba
mov edx, dword [esp + 0xc]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100a25a4
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret

Function at 0x100a3440
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.1005eb90
push 0x10114e24
push eax
call fcn.100cbfd2
mov esi, eax
add esp, 8
test esi, esi
jne 0x100a3492
mov eax, 0x1010ecff
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.100c0eca
add esp, 0x404
ret 4
push esi
push 0x400
lea eax, [esp + 0xc]
push 1
push eax
call fcn.100cc1c2
add esp, 0x10
test eax, eax
je 0x100a34d4
nop dword [eax + eax]
push eax
lea eax, [esp + 8]
push eax
call fcn.1005ebd0
push esi
push 0x400
lea eax, [esp + 0xc]
push 1
push eax
call fcn.100cc1c2
add esp, 0x10
test eax, eax
jne 0x100a34b0
call fcn.1005ec90
push esi
call fcn.100cb1a1
mov ecx, dword [esp + 0x408]
add esp, 4
mov eax, 0x10155bb8
pop esi
xor ecx, esp
call fcn.100c0eca
add esp, 0x404
ret 4
Function at 0x100ad490
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.100b8150
mov ecx, eax
call fcn.10045f60
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 0x100ad5f3
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 0x100ad5f3
push 0
push edi
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100ad5f3
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.100bd210
test eax, eax
jne 0x100ad5f3
mov edx, ebp
mov ecx, ebx
call fcn.100bd340
test eax, eax
jne 0x100ad5f3
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.100bd2a0
test eax, eax
jne 0x100ad5f3
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 0x100ad5f3
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.100c0eca
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.100c0eca
add esp, 0x5c
ret
Function at 0x100ae8f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x10120140]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jg 0x100ae934
jl 0x100ae91c
test eax, eax
jne 0x100ae934
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.100c0eca
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100ae958
push ecx
push eax
push edi
mov ecx, ebx
call fcn.100af070
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.100c0eca
mov esp, ebp
pop ebp
ret 0xc
mov esi, eax
mov ecx, ebx
mov dword [esp + 0xc], esi
call fcn.100b1130
mov dword [esp + 0x10], eax
test eax, eax
je 0x100ae9a5
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10052d00
add esp, 8
mov ecx, ebx
mov esi, dword [eax]
push esi
call fcn.100b11f0
push eax
push edi
call fcn.1004e400
sub dword [esp + 0x18], esi
add esp, 0xc
mov ecx, ebx
add edi, esi
push esi
call fcn.100b11b0
mov esi, dword [esp + 0xc]
cmp dword [ebx + 0x4c], 0
je 0x100aea03
mov ecx, ebx
call fcn.100b0d80
mov esi, dword [esp + 0xc]
cmp esi, 0xfff
jbe 0x100ae9ea
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push edi
call fcn.100cc1c2
mov esi, dword [esp + 0x1c]
add esp, 0x10
sub esi, eax
add edi, eax
mov dword [esp + 0xc], esi
cmp eax, 0xfff
jne 0x100aea03
cmp esi, eax
ja 0x100ae9c0
test esi, esi
je 0x100aea03
push dword [ebx + 0x4c]
push esi
push 1
push edi
call fcn.100cc1c2
mov esi, dword [esp + 0x1c]
add esp, 0x10
sub esi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, esi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
sbb edx, 0
pop ebx
xor ecx, esp
call fcn.100c0eca
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100b9fb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eed7d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10120140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push ecx
lea ecx, [ebp - 0x14]
call fcn.10048dc0
call fcn.100babf0
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
lea ecx, [ebp - 0x14]
call fcn.100451d0
push eax
push 0x100bac20
push 0
push 0
call fcn.100d13ea
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x100ba044
lea ecx, [ebp - 0x14]
call fcn.100baa20
lea ecx, [ebp - 0x14]
call fcn.100baa40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c0eca
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.100bfb15
int3