joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039750
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
push 0
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.10041550
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x100397bd
call fcn.10041550
mov dword [edi], 0x2746
jmp 0x100397cf
cmp eax, 0x4d2
jne 0x100397d2
call fcn.10041550
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x100397ea
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
call fcn.10041550
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
mov dword [edi], 0
pop edi
pop esi
pop ebx
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
Function at 0x1003a500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066e50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100850a0]
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 edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x1003a55c
mov ecx, edi
call fcn.1003b140
call fcn.10041550
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x1003a5ef
mov dword [ebp - 0x14], 0
push dword [0x1008fc74]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0x20], xmm0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1008fc74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
xor esi, esi
call fcn.10034760
test eax, eax
je 0x1003a5ce
cmp esi, 0xffffffff
lea eax, [esi + 1]
push ebx
cmove eax, esi
mov ecx, edi
push 1
mov esi, eax
call fcn.10034760
test eax, eax
jne 0x1003a5b5
push dword [ebp - 0x18]
push dword [0x1008fc74]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1003a5ed
push ecx
call fcn.1003beb0
add esp, 4
mov eax, esi
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.1003beb5
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.10041550
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x1003a976
call fcn.10041550
mov dword [edi], 0x2746
jmp 0x1003a988
cmp eax, 0x4d2
jne 0x1003a98b
call fcn.10041550
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x1003a9a3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
call fcn.10041550
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
mov dword [edi], 0
pop edi
pop esi
pop ebx
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
Function at 0x1003aa10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.100415b0
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1003aa65
push str.skyguard_bho
lea eax, [ebp - 0x404]
mov ecx, 0x1008fbdc
push eax
call fcn.10001950
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003beb5
mov esp, ebp
pop ebp
ret

Function at 0x1003af30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.10041550
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x1003af8f
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0x17
jne 0x1003afad
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.10041550
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, edi
mov dword [ebx], 0
pop edi
pop esi
pop ebx
call fcn.1003beb5
mov esp, ebp
pop ebp
ret
Function at 0x1003afd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100850a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
mov dword [ebp - 0x18], eax
push 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x1003b036
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], esi
call fcn.10041550
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x1003b10d
mov esi, dword [ebp - 0x14]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x1003b07e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], esi
call fcn.10041550
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x1003b11b
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push ebx
push 0x1003b9f0
push dword [ebp - 0x18]
push 0
call fcn.10050cff
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1003b0ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp - 0x18], eax
call dword [edx]
test edi, edi
je 0x1003b0c3
push edi
call esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x1003b0d0
push eax
call esi
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], ebx
call fcn.10041550
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x1003b129
test edi, edi
je 0x1003b0fa
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003beb5
mov esp, ebp
pop ebp
ret 8
push str.thread.entry_event
lea eax, [ebp - 0x10]
push eax
call fcn.10035590
push str.thread.exit_event
lea eax, [ebp - 0x10]
push eax
call fcn.10035590
push str.thread
lea eax, [ebp - 0x10]
push eax
call fcn.10035590
int3
Function at 0x100405d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100672fe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100850a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1008512c]
cmp eax, 0xffffffff
jne 0x10040606
xor ebx, ebx
jmp 0x1004060f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10040651
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x10040690
test esi, esi
jne 0x10040694
push 0x10040040
push 0x100902f8
call fcn.1003fb70
mov eax, dword [0x1008512c]
add esp, 8
cmp eax, 0xffffffff
je 0x10040651
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1004067e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1004067e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100406d6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100406bf
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10040694
cmp dword [ebx + 0x18], 0
je 0x10040620
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100406f9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100406f9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10040070
cmp dword [ebx + 0x18], 0
jne 0x100406e0
jmp 0x10040620
Function at 0x40aeb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40aeca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40aed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40aec0
mov eax, 1
add ebx, ebx
jne 0x40aee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40aed8
jne 0x40aef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40aed8
xor ecx, ecx
sub eax, 3
jb 0x40af08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40af7a
mov ebp, eax
add ebx, ebx
jne 0x40af13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40af20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40af44
inc ecx
add ebx, ebx
jne 0x40af30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40af25
jne 0x40af41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40af25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40af64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40af55
jmp 0x40aec6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40af64
add edi, ecx
jmp 0x40aec6
pop esi
mov edi, esi
mov ecx, 0xca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40af82
cmp byte [edi], 0
jne 0x40af82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40af87
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40aff6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb2cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40afb4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb2d4]
or eax, eax
je 0x40aff0
mov dword [ebx], eax
add ebx, 4
jmp 0x40afd1
call dword [esi + 0xb2d0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40b027
cmp al, 0xef
ja 0x40b01a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40affc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40b009
mov ebp, dword [esi + 0xb2d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40b05b
sub esp, 0xffffff80
jmp 0x402525
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1000fc14
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ecx
push esi
push edi
push dword [0x1009d7b4]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1000fc5a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1000fcb4
test byte [eax + 0x1c], 1
je 0x1000fcb4
cmp byte [eax + 0x19], 2
jb 0x1000fcb4
push dword [eax + 0x14]
mov edx, 0x1000564c
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.100122b8
jmp 0x1000fcb4
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test eax, eax
jne 0x1000fca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57c
je 0x1000fca3
mov eax, dword [section..data]
cmp eax, section..data
je 0x1000fc9f
test byte [eax + 0x1c], 1
je 0x1000fc9f
cmp byte [eax + 0x19], 2
jb 0x1000fc9f
push dword [eax + 0x14]
mov edx, 0x1000564c
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.100122b8
xor eax, eax
jmp 0x1000fcb6
push ecx
mov ecx, esi
call fcn.1000fcba
push edi
call fcn.1002f3c2
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x1000febc
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x100945d3
call fcn.10094008
xor edi, edi
mov eax, 0x1009dd00
lock btr dword [eax], 0
call fcn.1000fa5e
test eax, eax
jne 0x1000ff0e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001004e
test byte [eax + 0x1c], 1
je 0x1001004e
cmp byte [eax + 0x19], 2
jb 0x1001004e
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
jmp 0x10010043
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1009d7b4], eax
mov ecx, 0x30001
mov eax, dword [0x1009dcf8]
cmp eax, ecx
jbe 0x1000ff29
mov eax, ecx
xor ebx, ebx
inc ebx
push 0x10004e6c
push 0x7c
cmp eax, ecx
jne 0x1000ff65
call fcn.10093d8e
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x1000ff81
push 0x7c
push edi
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.1002edb5
mov dword [esi], 0x100019e4
jmp 0x1000ff83
call fcn.10093d8e
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x1000ff81
mov ecx, eax
call fcn.1002edb5
mov esi, eax
jmp 0x1000ff83
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [0x1009dd44], esi
test esi, esi
jne 0x1000ffc1
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001004e
test byte [eax + 0x1c], bl
je 0x1001004e
cmp byte [eax + 0x19], 2
jb 0x1001004e
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
jmp 0x10010043
cmp dword [0x1009d7b4], 0xffffffff
jne 0x1000ffeb
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001004e
test byte [eax + 0x1c], bl
je 0x1001004e
cmp byte [eax + 0x19], 2
jb 0x1001004e
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
jmp 0x10010043
call fcn.1002efa2
test eax, eax
jne 0x10010015
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001004e
test byte [eax + 0x1c], bl
je 0x1001004e
cmp byte [eax + 0x19], 2
jb 0x1001004e
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
jmp 0x10010043
mov ecx, dword [0x1009dd30]
call fcn.1000fb8b
test eax, eax
jne 0x10010055
mov eax, dword [section..data]
cmp eax, section..data
je 0x1001004e
test byte [eax + 0x1c], bl
je 0x1001004e
cmp byte [eax + 0x19], 2
jb 0x1001004e
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
mov edx, 0x1000564c
pop ecx
call fcn.100122b8
call fcn.1000fd43
jmp 0x10010057
mov edi, ebx
mov eax, edi
call fcn.10093fd6
ret
Function at 0x1002efa2
Capabilities:
Get system information on windows

Disassembly:
push 0xc
mov eax, 0x100954ea
call fcn.10094008
mov esi, dword [0x1009dd44]
push 0x10004e6c
push 1
call fcn.10093d8e
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.10030ef7
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x50]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [esi + 0x50], edx
test ecx, ecx
je 0x1002f009
call fcn.10012278
cmp dword [esi + 0x50], 0
jne 0x1002f04b
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002f116
test byte [eax + 0x1c], 1
je 0x1002f116
cmp byte [eax + 0x19], 2
jb 0x1002f116
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
mov edx, 0x1000da44
pop ecx
call fcn.100122b8
jmp 0x1002f116
push 0x10004e6c
push 0xe8
call fcn.10093d8e
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x1002f072
mov dword [eax + 0xe4], edi
jmp 0x1002f074
mov eax, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.10030f60
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x5c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x58]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [esi + 0x58], edx
test ecx, ecx
je 0x1002f0b3
call fcn.10012278
mov ecx, dword [esi + 0x58]
test ecx, ecx
jne 0x1002f0df
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002f116
test byte [eax + 0x1c], 1
je 0x1002f116
cmp byte [eax + 0x19], 2
jb 0x1002f116
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
jmp 0x1002f03b
call fcn.10079b2d
test eax, eax
jns 0x1002f11a
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002f116
test byte [ecx + 0x1c], 1
je 0x1002f116
cmp byte [ecx + 0x19], 2
jb 0x1002f116
push eax
push dword [ecx + 0x14]
mov edx, 0x1000da44
push dword [ecx + 0x10]
push 0xc
pop ecx
call fcn.1000f749
xor eax, eax
jmp 0x1002f127
lea ecx, [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
inc eax
call fcn.10093fd6
ret
Function at 0x10031625
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 4
mov eax, 0x100959e6
call fcn.10094008
push dword [0x1009d7b4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1003165b
cmp dword [esi + 8], 0
je 0x10031657
and dword [esi + 8], 0
push ecx
mov ecx, esi
call fcn.1000fcba
xor esi, esi
test esi, esi
jne 0x100316bf
push 0x10004e6c
push 0x38
call fcn.10093d8e
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test eax, eax
je 0x1003167f
mov ecx, eax
call fcn.1001cd93
mov esi, eax
jmp 0x10031681
xor esi, esi
test esi, esi
je 0x10031694
push esi
push dword [0x1009d7b4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x100316bf
mov eax, dword [section..data]
cmp eax, section..data
je 0x100316bf
test byte [eax + 0x1c], 1
je 0x100316bf
cmp byte [eax + 0x19], 2
jb 0x100316bf
push dword [eax + 0x14]
mov edx, 0x1000dbe4
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.100122b8
mov eax, esi
call fcn.10093fd6
ret
Function at 0x1003231a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp + 8]
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esi + 0x7c]
call fcn.100120a3
xor eax, eax
lea edi, [esi + 0x68]
stosd dword es:[edi], eax
push 9
pop ecx
push 0x40
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
lea eax, [esi + 0x28]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1003236a
call fcn.10012278
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x10035471
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ecx + 0xc]
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], 0x544b2fba
mov dword [ebp - 0x1c], 0xef0bc9df
mov dword [ebp - 0x18], 0x39d589ae
mov dword [ebp - 0x14], 0xe5ea8173
push esi
mov esi, dword [ecx + 8]
push edi
mov edi, dword [ecx]
and ebx, 3
je 0x100354fd
mov ecx, dword [ebp - 4]
sub eax, ebx
mov dword [ebp + 8], eax
mov eax, dword [ecx]
add ecx, 4
add dword [ebp - 8], eax
add eax, edi
imul eax, eax, 0x6f6e65f
mov edi, 0xf993291a
sub edi, eax
xor edx, edi
xor esi, edi
mov eax, edx
add edx, edx
shr eax, 0x1f
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
add esi, esi
xor esi, dword [ebp + eax*4 - 0x20]
sub ebx, 1
jne 0x100354be
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
test eax, eax
je 0x100355f1
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 4], ebx
mov eax, dword [ebx - 4]
add eax, edi
mov edi, 0xf993291a
imul eax, eax, 0x6f6e65f
mov ecx, edi
sub ecx, eax
mov eax, dword [ebx]
add eax, ecx
xor esi, ecx
imul eax, eax, 0x6f6e65f
xor edx, ecx
mov ecx, edi
mov edi, dword [ebx + 4]
mov ebx, 0xf993291a
sub ecx, eax
mov eax, edx
shr eax, 0x1f
add edx, edx
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
add esi, esi
xor edx, ecx
xor esi, dword [ebp + eax*4 - 0x20]
lea eax, [edi + ecx]
imul eax, eax, 0x6f6e65f
xor esi, ecx
sub ebx, eax
mov eax, edx
shr eax, 0x1f
add edx, edx
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
add esi, esi
xor edx, ebx
xor esi, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 4]
xor esi, ebx
mov dword [ebp - 0x10], esi
mov esi, eax
mov ecx, dword [eax + 8]
mov eax, dword [esi - 4]
add eax, ecx
add eax, edi
mov edi, esi
mov esi, dword [ebp - 0x10]
add eax, dword [edi]
mov edi, 0xf993291a
add dword [ebp - 8], eax
lea eax, [ecx + ebx]
imul eax, eax, 0x6f6e65f
lea ecx, [edx + edx]
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 4], ebx
sub edi, eax
mov eax, edx
shr eax, 0x1f
xor ecx, dword [ebp + eax*4 - 0x18]
xor ecx, edi
mov eax, ecx
shr eax, 0x1f
lea edx, [ecx + ecx]
lea ecx, [esi + esi]
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
xor ecx, dword [ebp + eax*4 - 0x20]
xor ecx, edi
mov eax, ecx
shr eax, 0x1f
lea esi, [ecx + ecx]
xor esi, dword [ebp + eax*4 - 0x20]
sub dword [ebp + 8], 4
jne 0x1003550e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [ecx], edi
pop edi
mov dword [ecx + 8], esi
pop esi
mov dword [ecx + 0xc], eax
mov dword [ecx + 4], edx
pop ebx
leave
ret 4