joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007b7bb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x24]
mov eax, 0x58bf
push ebp
push esi
mov esi, dword [esp + 0x28]
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0xce6dd971
mov word [esp + 0x1c], ax
push edi
test esi, esi
je 0x1007b7ee
test ebx, ebx
jne 0x1007b802
push 0x44
push str.C:UserspetroDesktopQuinceSAMP_API_ONE_HEADERSAMPRakNetDataBlockEncryptor.cpp
push str.input__inputLength
call fcn.100aa419
add esp, 0xc
call fcn.1008b902
lea ecx, [ebx + 5]
mov byte [esp + 0x2c], al
and cl, 0xf
mov bl, 0xf
sub bl, cl
call fcn.1008b902
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
shl al, 4
or al, bl
mov dword [esp + 0x14], eax
movzx eax, bl
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
push ebx
push esi
lea ecx, [ebx + 6]
add ecx, eax
add eax, 6
add eax, edi
mov dword [edx], ecx
push eax
cmp esi, edi
jne 0x1007b850
call fcn.10097cf0
jmp 0x1007b855
call fcn.10097cf0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov cl, byte [esp + 0x2c]
mov esi, ebp
mov byte [edi + 5], al
mov eax, dword [esp + 0x10]
mov byte [edi + 4], cl
test eax, eax
je 0x1007b888
mov ebx, eax
call fcn.1008b902
mov byte [edi + esi + 6], al
inc esi
cmp esi, ebx
jb 0x1007b872
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add ebx, 2
lea ecx, [esp + 0x1c]
add eax, ebx
push eax
lea eax, [edi + 4]
push eax
call fcn.1007a9e1
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push edi
push 0x10
push edi
mov dword [edi], eax
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.10090bb9
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov esi, dword [eax]
sub esi, 0x10
cmp esi, 0x10
jb 0x1007b8fc
add edi, esi
push 0x10
mov ecx, edi
sub ebp, esi
pop edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x1007b8d0
push edi
push 0x10
push edi
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.10090bb9
mov ebp, esi
add esp, 0x14
sub esi, 0x10
sub edi, 0x10
cmp esi, 0x10
jae 0x1007b8c9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x1008630c
Capabilities:
Encode data using xor

Disassembly:
push 0x1f8
mov eax, 0x100bc100
call fcn.100956bd
mov dword [ebp - 0x1d8], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1d0]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1d4], esi
mov dword [ebp - 0x1e4], edi
call fcn.1008b737
and dword [ebp - 4], 0
cmp dword [esi + 0x83c], 4
jne 0x10086484
mov eax, dword [edi + 0x15]
lea esi, [edi + 0x19]
push 8
pop ecx
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x1e0], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
cmp byte [edi + 0x9a5], 1
jne 0x100863b0
cmp byte [edi + 0x9a4], 0
jne 0x100863b0
lea eax, [ebp - 0x1dc]
mov eax, dword [eax]
cmp eax, dword [edi + 0x980]
jne 0x1008648c
lea edx, [ebp - 0x7c]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4 + 0x984]
jne 0x1008648c
inc ecx
cmp ecx, 8
jne 0x1008639a
xor esi, esi
call fcn.1008b902
mov dword [ebp + esi - 0x24], eax
add esi, 4
cmp esi, 0x14
jl 0x100863b2
and dword [ebp - 0x1e8], 0
lea eax, [ebp - 0x7c]
push 5
pop ecx
xorps xmm0, xmm0
lea esi, [ebp - 0x24]
movlpd qword [ebp - 0x1f0], xmm0
lea edi, [ebp - 0x204]
push eax
push dword [ebp - 0x1e0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1d0]
call fcn.1008b772
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.1008b68f
mov esi, dword [ebp - 0x1e4]
xor edx, edx
mov ecx, dword [ebp - 0x1d4]
inc esi
mov al, byte [esi + edx]
xor al, byte [ebp + edx - 0x24]
mov byte [ecx + edx + 0x81c], al
inc edx
cmp edx, 0x10
jl 0x10086420
mov byte [ecx + 0x82c], 1
lea edi, [ebp - 0x5b]
push 5
pop ecx
mov byte [ebp - 0x5c], 0x10
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
lea esi, [ebp - 0x9c]
lea edi, [ebp - 0x47]
rep movsd dword es:[edi], dword [esi]
call fcn.1007ec94
xor ecx, ecx
push ecx
push eax
mov eax, dword [ebp - 0x1d4]
push ecx
push ecx
push dword [eax + 8]
push dword [eax + 4]
lea eax, [ebp - 0x5c]
push ecx
push 6
push ecx
mov ecx, dword [ebp - 0x1d8]
push 0x1a8
push eax
call fcn.10087a87
call fcn.1009567b
ret 8
push 1
call fcn.10087e3d
mov esi, eax
mov eax, dword [ebp - 0x1d4]
pop ecx
push 1
mov ecx, dword [esi + 0x14]
mov byte [ecx], 0x1c
mov dword [esi + 0x10], 8
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ax, word [eax + 8]
mov word [esi + 8], ax
push dword [esi + 8]
push ecx
mov ecx, edi
call fcn.1008586d
push esi
mov ecx, edi
mov word [esi], ax
call fcn.1008afea
mov ecx, dword [ebp - 0x1d4]
mov dword [ecx + 0x83c], 2
jmp 0x10086484
Function at 0x1008b902
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x100f08e4], 0xffffffff
push ebx
push ebp
push esi
mov ebx, 0x1011c0e0
mov esi, 0x1011c0e8
push edi
mov edi, ebx
jge 0x1008b817
push 0x1105
call fcn.1008b7c5
pop ecx
mov eax, dword [0x1011c0e0]
mov ebp, 0xe3
mov edx, dword [0x1011c0e4]
mov dword [0x100f08e4], 0x26f
mov dword [0x1011caa4], 0x1011c0e4
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [esi + 0x62c]
mov dword [edi], ecx
add edi, 4
mov edx, dword [esi]
add esi, 4
sub ebp, 1
jne 0x1008b83b
mov ebp, 0x18c
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
lea ebx, [ebx + 4]
mov dword [edi], ecx
lea edi, [edi + 4]
mov edx, dword [esi]
lea esi, [esi + 4]
sub ebp, 1
jne 0x1008b877
mov edx, dword [0x1011c0e0]
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
shr eax, 0xb
xor edx, eax
mov dword [edi], ecx
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
pop edi
pop esi
mov eax, edx
shr eax, 0x12
pop ebp
xor eax, edx
pop ebx
ret
sub dword [0x100f08e4], 1
js 0x1008b7f3
mov eax, dword [0x1011caa4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x1011caa4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x100909e6
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [0x1011caa8]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
cmp ebp, eax
push esi
mov esi, dword [esp + 0x10]
cmovg ebp, eax
shl eax, 4
add eax, dword [esp + 0x14]
push 4
push eax
push esi
call fcn.100913d3
push 4
push 0x100f0be8
push esi
call fcn.10091470
push 4
push 1
push esi
call fcn.100913fe
mov ebx, dword [0x1011caa8]
add esp, 0x24
dec ebx
cmp ebx, ebp
jle 0x10090a70
push edi
mov edi, ebx
shl edi, 4
add edi, dword [esp + 0x18]
sub ebx, ebp
push 4
push edi
push esi
call fcn.100913d3
push 4
push esi
call fcn.100915b9
push 4
push 0x100f0be8
push esi
call fcn.10091470
push 4
push 1
push esi
call fcn.100913fe
add esp, 0x2c
sub edi, 0x10
sub ebx, 1
jne 0x10090a3c
pop edi
test ebp, ebp
jne 0x10090a83
push 4
push dword [esp + 0x18]
push esi
call fcn.100913d3
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x100913d3
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [esp + 0xc]
test edx, edx
je 0x100913fd
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
sub esi, ecx
push 4
pop edi
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x100913eb
sub edx, 1
jne 0x100913e8
pop edi
pop esi
ret

Function at 0x100915b9
Capabilities:
Encode data using xor

Disassembly:
push edi
movzx edi, byte [esp + 0xc]
test edi, edi
je 0x10091602
push esi
mov esi, dword [esp + 0xc]
add esi, 2
movzx eax, byte [esi + 1]
movzx ecx, byte [esi - 1]
mov edx, dword [eax*4 + 0x100f39e8]
movzx eax, byte [esi]
lea esi, [esi + 4]
xor edx, dword [ecx*4 + 0x100f31e8]
xor edx, dword [eax*4 + 0x100f35e8]
movzx eax, byte [esi - 6]
xor edx, dword [eax*4 + 0x100f2de8]
mov dword [esi - 6], edx
sub edi, 1
jne 0x100915cb
pop esi
pop edi
ret

Function at 0x100917bc
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x100d9e08
jmp fcn.100917c7

Function at 0x100917c7
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
ret
Function at 0x10092dbb
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10114380]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x10092ed4
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0xc]
push ebp
push 4
push eax
push 4
xor ebp, ebp
push 0xffff
inc ebp
push esi
mov dword [esp + 0x24], ebp
call ebx
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x40000
push eax
push 0x1002
push 0xffff
push esi
call ebx
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x4000
push eax
push 0x1001
push 0xffff
push esi
call ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ebp
test eax, eax
je 0x10092e79
push 0xe6
push str.C:UserspetroDesktopQuinceSAMP_API_ONE_HEADERSAMPRakNetSocketLayer.cpp
push 0x100d70f0
call fcn.100aa419
add esp, 0xc
or ecx, 0xffffffff
mov eax, ecx
jmp 0x10092ed4
push 4
lea eax, [esp + 0x10]
push eax
push 0x20
push 0xffff
push esi
call ebx
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
push 2
pop eax
mov word [esp + 0x14], ax
test edi, edi
je 0x10092eb7
cmp byte [edi], 0
je 0x10092eb7
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
jmp 0x10092ebc
and dword [esp + 0x18], 0
push 0x10
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
or ecx, 0xffffffff
cmp eax, ecx
cmove esi, ecx
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009543c
add esp, 0x1c
ret 0xc

Function at 0x10092ee8
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10092f09
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10092f09
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x10092f0b
xor eax, eax
ret 4

Function at 0x10092f2a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10114380]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 2
pop eax
mov dword [ebp - 0x258], 0x10
mov word [ebp - 0x254], ax
je 0x10092fc3
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x254]
push eax
push 0
push 0x240
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 1
jge 0x10092f9d
cmp edi, 0xffffffff
je 0x10092f96
xor eax, eax
inc eax
jmp 0x10092fc9
and dword [esi], 0
xor eax, eax
jmp 0x10092fc9
push dword [ebp - 0x252]
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
push edi
lea ecx, [ebp - 0x244]
movzx eax, ax
push ecx
push eax
push dword [ebp - 0x250]
call fcn.10084a3f
jmp 0x10092f91
or dword [esi], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009543c
leave
ret 0xc
Function at 0x10092fda
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10114380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x50
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x1009304a
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x10093049
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x10093049
push esi
xor esi, esi
cmp esi, 0x28
jge 0x10093048
mov eax, dword [esi + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1009302f
mov ecx, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + ecx], 0
jne 0x1009301b
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1009543c
leave
ret 4

Function at 0x10093081
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10114380]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
jne 0x100930a0
or eax, 0xffffffff
jmp 0x100930fb
push esi
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0x14]
push 2
mov dword [ebp - 0x10], eax
pop eax
mov word [ebp - 0x14], ax
push 0
movzx eax, si
mov esi, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.100946a7
add esp, 0x10
inc esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x1011cc60
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x100930d0
pop esi
cmp eax, 0xffffffff
je 0x100930f5
xor eax, eax
jmp 0x100930fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1009543c
leave
ret 0x14

Function at 0x100946a7
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dl, bl
mov ecx, ebx
push edi
mov edi, dword [esp + 0x10]
test esi, esi
jle 0x100946c8
mov al, byte [ecx + edi]
and al, 0xaa
xor dl, al
inc ecx
cmp ecx, esi
jl 0x100946bc
push esi
push edi
push 0x1011cc61
mov byte [0x1011cc60], dl
call fcn.10097cf0
add esp, 0xc
test esi, esi
jle 0x10094710
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ebx + 0x1011cc61]
mov al, byte [eax + 0x10114278]
mov byte [ebx + 0x1011cc61], al
test ecx, ecx
je 0x10094708
xor al, byte [esp + 0x18]
xor al, 0xcc
mov byte [ebx + 0x1011cc61], al
xor ecx, 1
inc ebx
cmp ebx, esi
jl 0x100946e5
pop edi
pop esi
pop ebx
ret
Function at 0x100948b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0x1013e6e0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp + 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100948f8
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1009491d
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1009493e
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1009493e
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10094938
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1009493e
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop ebx
pop edi
mov byte [esi + 0x14], cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10094a20
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10114380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10094b18
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10094b11
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10094af8
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10094af8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10094af8
mov edx, dword [esi]
test edx, edx
jne 0x10094ac1
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x1013dc64]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10094b11
jmp 0x10094aec
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10094aec
shl eax, 3
push eax
push edx
push 0
push dword [0x1013dc64]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10094b11
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10094a80
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10094b5c
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10094b5c
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10094b56
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.10094dd0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10094b24
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009543c
mov esp, ebp
pop ebp
ret

Function at 0x10094f40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10094f92
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10094f82
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10094f79
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10094f56
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x1013dc64]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
pop ebp
ret
Function at 0x10094fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1013e6d8]
test eax, eax
je 0x10094fbc
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x10095022
mov eax, dword [eax]
test eax, eax
jne 0x10094fb0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10095026
push esi
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
nop dword [eax + eax]
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x10094ff0
mov ecx, dword [0x1013e6d8]
mov dword [eax], ecx
mov dword [0x1013e6d8], eax
pop esi
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
test eax, eax
jne 0x10095014
xor eax, eax
ret
Function at 0x1009cdc7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10096340
mov eax, dword [0x10114380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100adaac
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1009ce09
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1009cf65
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100961d0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1013e2c0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100afd74
mov ecx, dword [esi*4 + 0x1013e2c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1009cf5e
cmp eax, dword [edi + ecx + 0x24]
jne 0x1009cf5e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009cf5e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100afd74
add esp, 0x14
test edx, edx
jl 0x1009cf5e
jg 0x1009ced4
test eax, eax
jb 0x1009cf5e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1009cf5e
jl 0x1009ceee
cmp dword [ebp - 0x1008], eax
ja 0x1009cf5e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1009cf0c
test ebx, ebx
je 0x1009cf45
cmp ecx, edi
jae 0x1009cf45
mov al, byte [ecx]
cmp al, 0xd
jne 0x1009cf26
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1009cf32
cmp byte [ecx + 1], 0xa
jne 0x1009cf32
inc ecx
jmp 0x1009cf32
movzx eax, al
movsx eax, byte [eax + 0x101145a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1009cf0c
cmp edx, ebx
jne 0x1009cf0c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1009cf63
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1009543c
leave
ret

Function at 0x100acbb9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100de41c
push 0x100de414
push str.FlsAlloc
push 0x1e
call fcn.100aca17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100acbed
push dword [ebp + 8]
mov ecx, esi
call dword [0x100bd2c4]
call esi
jmp 0x100acbf3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x100acc37
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100de42c
push 0x100de424
push str.FlsGetValue
push 0x20
call fcn.100aca17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100acc6e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100bd2c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]