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

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov edx, eax
cmp dword [ebp + 0xc], eax
jbe 0x4018ea
push esi
mov esi, dword [ebp + 8]
movzx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x4018d4
pop esi
pop ebp
ret

Function at 0x40275e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push str.Filling_hash_with__d_entries._n
call fcn.0040357e
xor edi, edi
mov dword [ebp - 4], edi
pop ecx
pop ecx
test esi, esi
je 0x4027dd
push ebx
mov ebx, section..data
push dword [ebx]
push str.__Putting_entry___s_...
call fcn.0040357e
pop ecx
pop ecx
push dword [ebx]
mov ecx, dword [ebp + 8]
call fcn.00401535
mov dword [ebp + 0xc], eax
test eax, eax
je 0x402868
push str.OK...
call fcn.0040357e
mov eax, dword [ebp + 0xc]
pop ecx
cmp dword [eax + 4], edi
jne 0x402855
push 0x40527c
call fcn.0040357e
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [eax + 4], ebx
add ebx, 8
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, esi
jb 0x402783
pop ebx
push str.Testing_Get:_n
call fcn.0040357e
pop ecx
test esi, esi
je 0x402829
push dword [edi*8 + section..data]
push str.__Getting_entry___s_...
call fcn.0040357e
pop ecx
pop ecx
push dword [edi*8 + section..data]
mov ecx, dword [ebp + 8]
call fcn.004013c3
test eax, eax
je 0x402877
mov eax, dword [eax + 4]
push dword [eax + 4]
push str.Found__u_n
call fcn.0040357e
inc edi
pop ecx
pop ecx
cmp edi, esi
jb 0x4027ec
push str.Testing_nonexistent_entries...
call fcn.0040357e
mov ecx, dword [ebp + 8]
mov dword [esp], str.xxxy
call fcn.004013c3
test eax, eax
je 0x402886
push str.FOUND__BAD__n
call fcn.0040357e
pop ecx
push 5
jmp 0x402862
push str.entry_already_exists__n
call fcn.0040357e
pop ecx
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.FAILED_n
call fcn.0040357e
pop ecx
push 2
jmp 0x402862
push str.FAILED_n
call fcn.0040357e
pop ecx
push 4
jmp 0x402862
push str.not_found__good._n
call fcn.0040357e
mov dword [esp], str.Enumerating:_n
call fcn.0040357e
push dword [ebp + 8]
call fcn.00402611
pop ecx
pop ecx
pop edi
cmp eax, esi
pop esi
je 0x4028bb
push str.__Bad_count__n
call fcn.0040357e
pop ecx
push 6
jmp 0x402862
mov esp, ebp
pop ebp
ret
Function at 0x40a62c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.004041ec
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a695
mov eax, dword [ebx + 0x10]
mov edx, 0x40a7c8
call fcn.004045b0
jne 0x40a664
lea eax, [ebx + 0x10]
call fcn.004041ec
jmp 0x40a69d
mov eax, dword [ebx + 0x10]
mov edx, 0x40a7d4
call fcn.004045b0
jne 0x40a680
lea eax, [ebx + 0x10]
mov edx, 0x40a7c8
call fcn.00404240
cmp dword [ebx + 0x10], 0
jne 0x40a69d
lea eax, [ebx + 0x10]
mov edx, 0x40a7d4
call fcn.00404240
jmp 0x40a69d
lea eax, [ebx + 0x10]
call fcn.004041ec
mov eax, ebx
call fcn.0040a47c
mov eax, dword [0x40b158]
inc dword [eax]
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404664
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a6f7
or edi, 0xffffffff
jmp 0x40a784
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404664
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a73a
or edi, 0xffffffff
jmp 0x40a784
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x75d7
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404664
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a77d
or edi, 0xffffffff
jmp 0x40a784
mov eax, dword [0x40b170]
inc dword [eax]
test edi, edi
je 0x40a7a7
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40a7e0
call fcn.004044b0
mov eax, ebx
call fcn.0040a354
mov ebp, eax
push 0x200
call sub.kernel32.dll_Sleep
jmp 0x40a641

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402e98
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402ece
lea esi, [edi + 4]
test esi, esi
je 0x402ece
call fcn.00402dfa
test al, al
je 0x402ece
mov ecx, edi
call fcn.00402dfa
test al, al
je 0x402ece
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x402ed0
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x4061f8
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x406279
mov byte [esi + 8], 1
call main
cmp dword [esi + 0x10], 0
je 0x406279
test al, al
je 0x406218
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.004068d3
test al, al
jne 0x40623f
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406f9c
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call main
cmp dword [esi + 0x18], 0
jne 0x406266
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00406f9c
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x406279
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
pop esi
ret

Function at 0x4068d3
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x4068e0
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x406919
cmp eax, 0x80
je 0x406919
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406f9c
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x4068dc
mov al, 1
pop esi
ret

Function at 0x4075af
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40761e
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x4075fa
push ebx
push edi
push eax
call fcn.0040bf70
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x407615
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x4199ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x4199fc
pop dword [ebp - 0xc]
mov eax, 0xfe689f7b
add eax, 0x1d8fa81
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3ace5
push 0
mov eax, 0xb2bc957a
sub eax, 0xb27aa36a
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x3ae0
xor esi, esi
add esi, eax
mov edx, 0x438200
add edx, dword [ebp - 0xc]
mov edi, 0x3ffdc0fc
add edi, 0x2e07576a
xor dword [ebp - 4], ebx
mov ebx, dword [edx]
add dword [ebp - 4], 0x50462e7
xor ebx, edi
add dword [ebp - 4], ecx
mov dword [esi], ebx
mov dword [ebp - 8], 0x25af4ad2
add esi, 4
add edx, 4
loop 0x419a51
add eax, 0x5db2b919
add eax, 0xa24e253a
xor ebx, ebx
add ebx, eax
add eax, 0x3374f031
sub eax, 0x3374f02c
mov ecx, 0x3b0e7f27
add ecx, 0xc53180d9
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x10001250
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
call fcn.10002050
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
call fcn.100013d0
mov edx, dword [ebp - 0x20]
add edx, 4
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.10003080
sub esp, 8
lea ecx, [ebp - 0x2c]
call fcn.10002080
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
call fcn.10002080
add eax, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
call fcn.10002080
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
call fcn.10002050
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.1000e280
mov byte [ebp - 0x31], 1
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lock cmpxchg dword [ecx], edx
sete cl
cmp eax, 0
je 0x10001315
jmp 0x100012e0
jmp 0x1000131a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x2c]
call fcn.10002050
mov ecx, eax
mov eax, dword [ebp - 0x4c]
cmp eax, ecx
jae 0x100013a1
lea ecx, [ebp - 0x2c]
call fcn.10002050
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
mov dword [esp], eax
call fcn.100030e0
sub esp, 4
mov edx, dword [ebp - 0x48]
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov edx, dword [edx + 0xc]
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x10001393
mov byte [ebp - 0x31], 0
jmp 0x100013a1
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
jmp 0x1000131a
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
xchg dword [ecx], eax
lea ecx, [ebp - 0x2c]
call fcn.10003110
mov al, 1
and al, 1
movzx eax, al
add esp, 0x5c
pop esi
pop ebp
ret 4
Function at 0x100018d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1ec
lea eax, [ebp + 8]
mov dword [ebp - 0x1dc], eax
mov edx, esp
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], 0xffffffff
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1000a7a0
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], edx
add eax, 0x18
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1d4], eax
lea eax, [ebp - 0x1b4]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
mov dword [esp], 2
mov dword [esp + 4], 1
mov dword [esp + 8], 6
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
mov ecx, eax
mov eax, dword [ebp - 0x1d4]
mov dword [eax + 0xc], ecx
cmp dword [eax + 0xc], 0xffffffff
jne 0x10001983
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x1b8], 1
jmp 0x10001ab7
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax], 4
call fcn.1000aa10
mov dword [ebp - 0x1e0], eax
jmp 0x100019a2
mov ecx, dword [ebp - 0x1d4]
mov eax, dword [ebp - 0x1d8]
mov edx, dword [ebp - 0x1e0]
mov dword [ecx + 0x10], edx
mov ecx, dword [ecx + 0x10]
mov dword [ecx], 0
mov word [ebp - 0x1c8], 2
mov eax, dword [eax]
movzx eax, ax
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov ecx, dword [ebp - 0x1dc]
mov word [ebp - 0x1c6], ax
lea eax, [ebp - 0x1c8]
add eax, 4
mov dword [ebp - 0x1e4], eax
call fcn.10004040
mov ecx, eax
mov eax, dword [ebp - 0x1e4]
mov dword [esp], 2
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_inet_pton]
sub esp, 0xc
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x1c8]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0xffffffff
jne 0x10001a68
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x1b8], 1
jmp 0x10001ab7
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d0], 1
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x1d0]
mov dword [esp], ecx
mov dword [esp + 4], 6
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x1b8], 1
mov ecx, dword [ebp - 0x1dc]
call fcn.10001db0
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
and al, 1
movzx eax, al
add esp, 0x1ec
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x10002550
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov eax, dword [0x10024070]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 4
jge 0x100025db
mov edx, dword [ebp - 0x24]
mov eax, 4
sub eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
add ecx, dword [ebp - 0x18]
mov edx, dword [edx + 0xc]
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x100025cd
mov byte [ebp - 0xd], 0
jmp 0x10002664
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x1000257b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.100052b0
sub esp, 4
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jge 0x10002660
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
call fcn.10002080
mov edx, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x28]
add ecx, dword [ebp - 0x18]
mov edx, dword [edx + 0xc]
xor esi, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x10002652
mov byte [ebp - 0xd], 0
jmp 0x10002664
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x100025f3
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
and al, 1
movzx eax, al
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000aa76
mov eax, dword [ebp - 0x2c]
add esp, 0x38
pop esi
pop ebp
ret 4

Function at 0x10006ad0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jae 0x10006b18
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
movzx eax, byte [eax + ecx]
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul eax, dword [ebp + 8], 0x1000193
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x10006ae4
mov eax, dword [ebp + 8]
add esp, 4
pop ebp
ret 0xc
Function at 0x10009d40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1000a940
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x24]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.10009e70
sub esp, 0xc
mov eax, dword [ebp - 0x2c]
lea ecx, [0x10009ed0]
mov dword [ebp - 0x28], ecx
add eax, 4
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x24]
call fcn.10009fa0
mov ecx, eax
mov eax, dword [ebp - 0x30]
xor edx, edx
lea edx, [0x10009ed0]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
call fcn.1000ec2a
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], ecx
cmp dword [eax], 0
je 0x10009e1f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x34], ecx
call fcn.10009fc0
mov ecx, dword [ebp - 0x34]
call fcn.1000a010
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax], 6
call fcn.1000afb1
jmp 0x10009e42
nop word cs:[eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x24]
call fcn.1000a010
add esp, 0x18
pop ebp
ret

Function at 0x1000a3b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1000a9a0
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.1000a4d0
sub esp, 8
mov eax, dword [ebp - 0x2c]
lea ecx, [0x1000a540]
mov dword [ebp - 0x28], ecx
add eax, 4
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x24]
call fcn.10009fa0
mov ecx, eax
mov eax, dword [ebp - 0x30]
xor edx, edx
lea edx, [0x1000a540]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
call fcn.1000ec2a
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], ecx
cmp dword [eax], 0
je 0x1000a485
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x34], ecx
call fcn.10009fc0
mov ecx, dword [ebp - 0x34]
call fcn.1000a010
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax], 6
call fcn.1000afb1
jmp 0x1000a4a8
nop dword [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x24]
call fcn.1000a010
add esp, 0x18
pop ebp
ret
Function at 0x1000eeff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000ef3e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ef3e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ef3e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000ef3e
cmp dword [ecx + 0x74], 0xe
jbe 0x1000ef3e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10011740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001176d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001176d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10011a60
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ce8c
push 0x1001ce84
push str.FlsAlloc
push 0x1f
call fcn.10011dec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011a94
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10011a9a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011ade
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ce9c
push 0x1001ce94
push str.FlsGetValue
push 0x21
call fcn.10011dec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011b15
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011b1d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001cea4
push 0x1001ce9c
push str.FlsSetValue
push 0x22
call fcn.10011dec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011b57
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001470b
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 0x100147a8
push ebx
push esi
call fcn.100147ab
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.1001460f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10014755
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100147a7
push edi
push eax
call fcn.10016058
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10014775
call fcn.10013019
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100147a6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001460f
add esp, 0x20
test eax, eax
jne 0x10014794
push edi
call fcn.10013019
jmp 0x1001479c
push ebx
call fcn.10013019
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