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

Disassembly:
push 0x1f8
mov eax, 0x100b6dc9
call fcn.10090b8d
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.100873ef
and dword [ebp - 4], 0
cmp dword [esi + 0x83c], 4
jne 0x10082120
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 0x1008204c
cmp byte [edi + 0x9a4], 0
jne 0x1008204c
lea eax, [ebp - 0x1dc]
mov eax, dword [eax]
cmp eax, dword [edi + 0x980]
jne 0x10082128
lea edx, [ebp - 0x7c]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4 + 0x984]
jne 0x10082128
inc ecx
cmp ecx, 8
jne 0x10082036
xor esi, esi
call fcn.100875ba
mov dword [ebp + esi - 0x24], eax
add esi, 4
cmp esi, 0x14
jl 0x1008204e
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.1008742a
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.10087347
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 0x100820bc
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.1007a944
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.1008373c
call fcn.10090b4b
ret 8
push 1
call fcn.10083af2
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.10081509
push esi
mov ecx, edi
mov word [esi], ax
call fcn.10086ca2
mov ecx, dword [ebp - 0x1d4]
mov dword [ecx + 0x83c], 2
jmp 0x10082120
Function at 0x100875ba
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x100ea99c], 0xffffffff
push ebx
push esi
mov ebx, 0x10115fa8
mov esi, 0x10115fb0
push edi
mov edi, ebx
jge 0x100874ce
push 0x1105
call fcn.1008747d
pop ecx
mov eax, dword [0x10115fa8]
mov edx, dword [0x10115fac]
push ebp
mov dword [0x100ea99c], 0x26f
mov ebp, 0xe3
mov dword [0x1011696c], 0x10115fac
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 0x100874f3
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 0x1008752f
mov edx, dword [0x10115fa8]
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
pop ebp
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
mov eax, edx
shr eax, 0x12
pop esi
xor eax, edx
pop ebx
ret
sub dword [0x100ea99c], 1
js 0x100874ab
mov eax, dword [0x1011696c]
mov ecx, dword [eax]
add eax, 4
mov dword [0x1011696c], 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 0x1008c6e4
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [0x10116970]
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.1008d0e6
push 4
push 0x100eaca0
push esi
call fcn.1008d183
push 4
push 1
push esi
call fcn.1008d111
mov ebx, dword [0x10116970]
add esp, 0x24
dec ebx
cmp ebx, ebp
jle 0x1008c76e
push edi
mov edi, ebx
shl edi, 4
add edi, dword [esp + 0x18]
sub ebx, ebp
push 4
push edi
push esi
call fcn.1008d0e6
push 4
push esi
call fcn.1008d2cc
push 4
push 0x100eaca0
push esi
call fcn.1008d183
push 4
push 1
push esi
call fcn.1008d111
add esp, 0x2c
sub edi, 0x10
sub ebx, 1
jne 0x1008c73a
pop edi
test ebp, ebp
jne 0x1008c781
push 4
push dword [esp + 0x18]
push esi
call fcn.1008d0e6
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1008d0e6
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [esp + 0xc]
test edx, edx
je 0x1008d110
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 0x1008d0fe
sub edx, 1
jne 0x1008d0fb
pop edi
pop esi
ret

Function at 0x1008d2cc
Capabilities:
Encode data using xor

Disassembly:
push edi
movzx edi, byte [esp + 0xc]
test edi, edi
je 0x1008d315
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 + 0x100edaa0]
movzx eax, byte [esi]
lea esi, [esi + 4]
xor edx, dword [ecx*4 + 0x100ed2a0]
xor edx, dword [eax*4 + 0x100ed6a0]
movzx eax, byte [esi - 6]
xor edx, dword [eax*4 + 0x100ecea0]
mov dword [esi - 6], edx
sub edi, 1
jne 0x1008d2de
pop esi
pop edi
ret

Function at 0x1008d4cf
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x100d4348
jmp fcn.1008d4da

Function at 0x1008d4da
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 0x1008f010
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x1010e440]
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 0x1008f129
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 0x1008f0ce
push 0xe6
push str.D:InfoSAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetSocketLayer.cpp
push 0x100d16e0
call fcn.100a5282
add esp, 0xc
or ecx, 0xffffffff
mov eax, ecx
jmp 0x1008f129
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 0x1008f10c
cmp byte [edi], 0
je 0x1008f10c
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
jmp 0x1008f111
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.10090b29
add esp, 0x1c
ret 0xc

Function at 0x1008f13d
Capabilities:
Resolve dns

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1010e440]
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 0x1008f218
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 0x1008f1f2
cmp edi, 0xffffffff
je 0x1008f1eb
xor eax, eax
inc eax
jmp 0x1008f21e
and dword [esi], 0
xor eax, eax
jmp 0x1008f21e
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.100806fd
jmp 0x1008f1e6
or dword [esi], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10090b29
leave
ret 0xc
Function at 0x1008f22f
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1010e440]
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 0x1008f29f
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x1008f29e
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x1008f29e
push esi
xor esi, esi
cmp esi, 0x28
jge 0x1008f29d
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 0x1008f284
mov ecx, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + ecx], 0
jne 0x1008f270
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10090b29
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1010e440]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
jne 0x1008f2f5
or eax, 0xffffffff
jmp 0x1008f350
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.10090914
add esp, 0x10
inc esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x10116b28
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x1008f325
pop esi
cmp eax, 0xffffffff
je 0x1008f34a
xor eax, eax
jmp 0x1008f350
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10090b29
leave
ret 0x14

Function at 0x10090914
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 0x10090935
mov al, byte [ecx + edi]
and al, 0xaa
xor dl, al
inc ecx
cmp ecx, esi
jl 0x10090929
push esi
push edi
push 0x10116b29
mov byte [0x10116b28], dl
call fcn.10093600
add esp, 0xc
test esi, esi
jle 0x1009097d
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ebx + 0x10116b29]
mov al, byte [eax + 0x1010e330]
mov byte [ebx + 0x10116b29], al
test ecx, ecx
je 0x10090975
xor al, byte [esp + 0x18]
xor al, 0xcc
mov byte [ebx + 0x10116b29], al
xor ecx, 1
inc ebx
cmp ebx, esi
jl 0x10090952
pop edi
pop esi
pop ebx
ret

Function at 0x10090d70
Capabilities:
Enumerate pe sections

Disassembly:
cmp dword [0x10137e78], 6
jl 0x10090d8a
vmovd xmm0, ecx
vpinsrd xmm0, xmm0, edx, 1
vcvtqq2pd xmm0, xmm0
ret
movd xmm0, ecx
orps xmm0, xmmword [0x100d47d0]
subsd xmm0, qword [0x100d47d0]
test edx, edx
je 0x10090db1
cvtsi2sd xmm1, edx
mulsd xmm1, qword [0x100d47f0]
addsd xmm0, xmm1
ret
Function at 0x10097f7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10091780
mov eax, dword [0x1010e440]
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.100a8a4d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10097fc0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1009811c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10091610
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 + 0x10138178]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100aad34
mov ecx, dword [esi*4 + 0x10138178]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10098115
cmp eax, dword [ecx + edi + 0x24]
jne 0x10098115
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10098115
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100aad34
add esp, 0x14
test edx, edx
jl 0x10098115
jg 0x1009808b
test eax, eax
jb 0x10098115
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10098115
jl 0x100980a5
cmp dword [ebp - 0x1008], eax
ja 0x10098115
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100980c3
test ebx, ebx
je 0x100980fc
cmp ecx, edi
jae 0x100980fc
mov al, byte [ecx]
cmp al, 0xd
jne 0x100980dd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100980e9
cmp byte [ecx + 1], 0xa
jne 0x100980e9
inc ecx
jmp 0x100980e9
movzx eax, al
movsx eax, byte [eax + 0x1010e688]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100980c3
cmp edx, ebx
jne 0x100980c3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1009811a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10090b29
leave
ret

Function at 0x100a6a73
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100a6ab2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100a6ab2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a6ab2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100a6ab2
cmp dword [ecx + 0x74], 0xe
jbe 0x100a6ab2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100a7b59
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d83dc
push 0x100d83d4
push str.FlsAlloc
push 0x1f
call fcn.100a79b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a7b8d
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b8270]
call esi
jmp 0x100a7b93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100a7bd7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d83ec
push 0x100d83e4
push str.FlsGetValue
push 0x21
call fcn.100a79b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a7c0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b8270]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100a7c16
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100d83f4
push 0x100d83ec
push str.FlsSetValue
push 0x22
call fcn.100a79b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100a7c50
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100b8270]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100aa032
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10138178]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100aa072
cmp byte [ebx], 0xa
jne 0x100aa072
or byte [edi + eax + 0x28], 4
jmp 0x100aa077
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100aa176
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100aa159
inc eax
cmp dl, 0xd
je 0x100aa0a3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100aa0c9
cmp eax, ecx
jae 0x100aa0d7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100aa08b
jmp 0x100aa176
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100aa154
cmp dword [ebp - 0x10], 0
je 0x100aa154
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10138178]
test byte [eax + edi + 0x28], 0x48
je 0x100aa12e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100aa119
mov byte [esi], dl
jmp 0x100aa12a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10138178]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100aa176
cmp byte [ebp - 1], 0xa
jne 0x100aa13d
cmp esi, ebx
jne 0x100aa13d
mov byte [esi], 0xa
jmp 0x100aa175
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100aad52
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100aa176
mov byte [esi], 0xd
jmp 0x100aa175
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10138178]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100aa173
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100aa176
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100aa17f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10138178]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100aa1c5
cmp word [ebx], dx
jne 0x100aa1c5
or byte [eax + edi + 0x28], 4
jmp 0x100aa1ca
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100aa32d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100aa30d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100aa20b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100aa241
cmp eax, edx
jae 0x100aa24f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100aa1e6
jmp 0x100aa32d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100aa308
cmp dword [ebp - 0x18], 0
je 0x100aa308
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10138178]
test byte [eax + edi + 0x28], 0x48
je 0x100aa2de
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100aa2a2
mov word [esi], cx
jmp 0x100aa2d9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10138178]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10138178]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10138178]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100aa32d
pop eax
cmp word [ebp - 4], ax
jne 0x100aa2ee
cmp esi, ebx
jne 0x100aa2ee
mov word [esi], ax
jmp 0x100aa32a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100aad52
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100aa32d
push 0xd
pop eax
jmp 0x100aa2e9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10138178]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100aa327
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100aa32d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ad7a7
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100ad729
Function at 0x100af348
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100af3e5
push ebx
push esi
call fcn.100af311
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100af2a5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100af392
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100af3e4
push edi
push eax
call fcn.100ab308
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100af3b2
call fcn.100a782e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100af3e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100af2a5
add esp, 0x20
test eax, eax
jne 0x100af3d1
push edi
call fcn.100a782e
jmp 0x100af3d9
push ebx
call fcn.100a782e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret