joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c1a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
jb 0x5c1b22
mov ecx, dword [esi]
xorps xmm0, xmm0
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edi
lea edi, [ebp - 0x30]
add ecx, ebx
push 0x5c1df0
push edi
push eax
push ecx
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x5c1ae3
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x5c1ac0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x5c1b03
mov ecx, edi
call fcn.005c8650
cmp al, 0xb
jne 0x5c1af5
jmp 0x5c1b14
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov ecx, edi
call fcn.005c8650
cmp al, 0xb
je 0x5c1b14
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
jmp 0x5c1b1a
add ebx, dword [ebp - 0x14]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
cmova ebx, eax
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6e12cc
push ecx
push ebx
call fcn.00500680
nop

Function at 0x5c2120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x5c21f2
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x5c214c
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x5c21c1
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x5c21dc
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x5c2187
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x5c21a4
jmp 0x5c2198
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x5c219f
cmp eax, 0x6d
jne 0x5c21b6
mov word [esi], 4
jmp 0x5c21ae
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x5c21ae
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.0058a350
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x5c2157
mov ecx, ebx
push 1
call fcn.0058a350
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x5c2157
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call fcn.00584a60
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x5c6490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.005c8d40
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp edx, 0x80000000
jne 0x5c64c9
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0x80000000
jmp 0x5c64e8
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call fcn.005b9f90
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x5c64fb
lea ecx, [ebp - 0x18]
call fcn.00582f50
mov dword [esi], 0x80000000
add esp, 0x28
jmp 0x5c6537
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push ebx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5c651f
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
add esp, 0x28
jmp 0x5c6537
test edi, edi
mov dword [esi], 0x80000000
je 0x5c651a
add edi, edi
push 2
push edi
push ebx
call fcn.004ed020
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5c70f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x5c7135
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x6e4fd8
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], fcn.005a5fb0
mov dword [esp + 0x34], 1
lea eax, [esp + 0x28]
push 0x6e5004
push eax
call fcn.004faa60
add esp, 8
ud2
Function at 0x5c7d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x6b6a34]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
push 4
push 8
call fcn.004ed010
add esp, 8
test eax, eax
je 0x5c7dbb
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x5c7e10
push eax
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x5c7d73
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x5c7db1
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x5c7d99
push dword [ebx + 8]
push eax
push dword [ebp - 0x10]
call fcn.004ed020
add esp, 0xc
push 4
push 8
push esi
call fcn.004ed020
add esp, 0xc
call sub.KERNEL32.dll_GetLastError
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp + 0x14]
push 8
push 4
call fcn.004ed3a0
add esp, 8
ud2
Function at 0x5c8000
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x5c8070
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.api_ms_win_core_synch_l1_2_0.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x5c80aa
cmp dword [ebp - 0x14], 0
je 0x5c8091
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x5c80c7
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x71519c]
mov dword [edi + 8], eax
lock cmpxchg dword [0x71519c], edi
jne 0x5c8050
mov byte [0x715198], 1
push 0
push 0
push ebx
call sub.api_ms_win_core_synch_l1_2_0.dll_InitOnceComplete
jmp 0x5c80a0
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x5c8102
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x5c8095
mov esi, dword [ebp - 0x10]
jmp 0x5c80a0
mov esi, dword [edi]
jmp 0x5c809f
mov esi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x6e5420
push 0x6e5480
push eax
call fcn.00584a90
push 0
push 4
push ebx
call sub.api_ms_win_core_synch_l1_2_0.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x6e5438
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x6e5470
push eax
call fcn.004faa60
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x6e5438
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00584ac0
Function at 0x5c9fb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x715184]
cmp eax, 3
jne 0x5ca096
cmp ebx, 0x17f
ja 0x5ca0a7
lea esi, [ebp - 0x1c0]
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c0], 0
inc ebx
lea eax, [ebp - 0x20]
push ebx
push esi
push eax
call fcn.004f8330
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x5ca035
mov esi, dword [ebp + 8]
mov eax, dword [0x6e3bd0]
mov ecx, dword [0x6e3bd4]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x5ca0b7
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push ecx
push edx
push 0
push eax
call sub.WS2_32.dll_getaddrinfo
mov esi, dword [ebp + 8]
test eax, eax
je 0x5ca080
call sub.WS2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x5ca0b7
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
jmp 0x5ca0b7
call fcn.005b3f50
cmp ebx, 0x17f
jbe 0x5c9fe8
mov ecx, esi
mov edx, edi
push dword [ebp - 0x10]
push ebx
call fcn.005b4db0
add esp, 8
mov eax, esi
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5ca620
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x80
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x5ca6c5
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x5ca6dd
cmp ecx, 0x17
jne 0x5ca701
cmp eax, 0x1b
jbe 0x5ca717
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
lea esp, [ebp - 4]
pop esi
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x5ca70c
cmp eax, 0xf
jbe 0x5ca728
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov byte [esi + 4], 2
mov dword [esi + 8], 0x6e5a1c
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x6e59fc
push 0x43
push 0x6e59b8
call fcn.004faaf0
push 0x6e59a8
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.004faaf0
nop dword [eax]
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x5c]
push 0xb
push 0x6e5a8c
push dword [ebp + 0xc]
push edi
call fcn.004fec30
add esp, 0x10
mov esi, dword [esi]
lea ecx, [ebp - 0x34]
mov edx, esi
call fcn.005ca620
cmp word [ebp - 0x34], 2
jne 0x5ca7b8
cmp byte [ebp - 0x30], 3
jne 0x5ca7f9
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x5ca7a7
push dword [ebx + 8]
push eax
push dword [ebp - 0x10]
call fcn.004ed020
add esp, 0xc
push 4
push 0xc
push dword [ebp - 0x14]
call fcn.004ed020
add esp, 0xc
jmp 0x5ca7f9
movsd xmm1, qword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x1c]
movsd xmm2, qword [ebp - 0x34]
movsd qword [ebp - 0x44], xmm1
movsd xmm1, qword [ebp - 0x2c]
movsd qword [ebp - 0x3c], xmm0
movsd qword [ebp - 0x54], xmm2
movsd qword [ebp - 0x4c], xmm1
lea eax, [ebp - 0x54]
push 0x6e5a78
push eax
push 4
push str.addrlinenolibrary_std_src...._backtrace_src_symbolizemod.rs
push edi
call fcn.004fb2f0
add esp, 0x14
mov dword [ebp - 0x54], esi
lea eax, [ebp - 0x54]
push 0x6e20f8
push eax
push 6
push 0x6e355e
push edi
call fcn.004fb2f0
add esp, 0x14
push eax
call fcn.004fb4e0
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5cacd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.005cac90
nop
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x5cad52
mov esi, dword [eax + 0x24]
test esi, esi
je 0x5cad77
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
nop word cs:[eax + eax]
nop
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00500940
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x5cad5e
mov dword [ebp - 0x20], ebx
movzx eax, byte [ebp - 0x13]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [ebp - 0x14]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x10]
push 3
push 0x6e3e5c
call fcn.004ffa40
add esp, 0xc
test al, al
jne 0x5cad73
test bl, 1
je 0x5cad77
add edi, dword [ebp - 0x24]
cmp esi, edi
jb 0x5cad81
mov ebx, dword [ebp - 0x20]
add ebx, edi
sub esi, edi
jne 0x5cad00
jmp 0x5cad77
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00656910
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004ffa40
add esp, 0xc
test al, al
je 0x5cad77
mov al, 1
jmp 0x5cad79
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6e4404
push esi
push edi
call fcn.00500680
nop dword [eax]
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x5cae12
mov esi, dword [eax + 0x24]
test esi, esi
je 0x5cae37
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
nop word cs:[eax + eax]
nop
push esi
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00500940
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x5cae1e
mov dword [ebp - 0x20], ebx
movzx eax, byte [ebp - 0x13]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [ebp - 0x14]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x10]
push 3
push 0x6e3e5c
call fcn.004ff700
add esp, 0xc
test al, al
jne 0x5cae33
test bl, 1
je 0x5cae37
add edi, dword [ebp - 0x24]
cmp esi, edi
jb 0x5cae41
mov ebx, dword [ebp - 0x20]
add ebx, edi
sub esi, edi
jne 0x5cadc0
jmp 0x5cae37
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00656a70
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004ff700
add esp, 0xc
test al, al
je 0x5cae37
mov al, 1
jmp 0x5cae39
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6e4404
push esi
push edi
call fcn.00500680
nop dword [eax]
Function at 0x5cf2c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x32], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x36], 0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0xc]
push esi
push eax
call fcn.005ba390
add esp, 8
cmp byte [esp + 0xc], 4
jne 0x5cf335
mov esi, dword [esp + 0x10]
jmp 0x5cf346
movzx eax, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
cmp al, 4
jne 0x5cf3f1
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call fcn.005ba5c0
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x5cf3a9
cmp byte [esp + 0x20], 3
jne 0x5cf3e6
mov eax, dword [esp + 0x24]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], ecx
push ecx
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x5cf397
push dword [ebx + 8]
push eax
push dword [esp + 0xc]
call fcn.004ed020
add esp, 0xc
push 4
push 0xc
push dword [esp + 0x10]
call fcn.004ed020
add esp, 0xc
jmp 0x5cf3e6
cmp dword [esp + 0x54], 0
jne 0x5cf3e6
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 8], eax
je 0x5cf403
mov dword [esp + 0x18], 0
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
push ebx
push eax
push esi
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x5cf46b
mov eax, dword [esp + 0x18]
jmp 0x5cf405
mov dword [edi], 0
jmp 0x5cf476
movzx ecx, al
mov edx, esi
call fcn.005810f0
mov dword [edi], 0
jmp 0x5cf47c
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x18], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x5cf45a
mov ebx, eax
push dword [esp + 8]
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [esp + 0x14], eax
push ebx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5cf45a
mov eax, dword [esp + 4]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [esp + 8]
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x5cf476
mov dword [edi], 0
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
jmp 0x5cf476
call sub.KERNEL32.dll_GetLastError
mov dword [edi], 0
push esi
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5d14d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x714d90]
mov esi, ecx
test eax, eax
je 0x5d14f9
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x5d1511
cmp dword [eax + 4], 0
je 0x5d1511
add eax, 8
pop esi
pop edi
pop ebp
ret
push 0x714d90
call fcn.005c8000
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x5d14ec
mov eax, dword [0x714d90]
test eax, eax
je 0x5d15a8
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x5d15c4
mov edi, eax
test eax, eax
jne 0x5d1570
mov eax, dword [0x6b6a34]
movzx eax, byte [eax]
push 4
push 0x10
call fcn.004ed010
add esp, 8
test eax, eax
je 0x5d15d9
mov dword [eax], 0x714d90
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x714d90]
test eax, eax
je 0x5d15ca
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x5d1590
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x5d1594
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x5d1594
xor ecx, ecx
xor edx, edx
lea eax, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
pop esi
pop edi
pop ebp
ret
push 0x714d90
call fcn.005c8000
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5d152e
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x714d90
call fcn.005c8000
add esp, 4
jmp 0x5d1569
push 0x10
push 4
call fcn.004ed3a0
nop word cs:[eax + eax]
nop dword [eax]

Function at 0x5d15f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov eax, dword [0x714da0]
mov esi, ecx
test eax, eax
je 0x5d16c9
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x5d161f
cmp dword [eax + 4], 0
mov edi, eax
jne 0x5d16c4
mov eax, dword [0x714da0]
test eax, eax
je 0x5d16ea
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x5d1706
mov edi, eax
test eax, eax
jne 0x5d1682
mov eax, dword [0x6b6a34]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.004ed010
add esp, 8
test eax, eax
je 0x5d1723
mov dword [eax], 0x714da0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x714da0]
test eax, eax
je 0x5d1711
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x5d1697
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x5d1699
mov eax, dword [esi + 4]
jmp 0x5d1699
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x5d16c4
test ecx, ecx
je 0x5d16c4
lock dec dword [ecx]
jne 0x5d16c4
lea ecx, [ebp - 0xc]
call fcn.00589210
add edi, 8
jmp 0x5d1708
push 0x714da0
call fcn.005c8000
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x5d1613
jmp 0x5d161f
push 0x714da0
call fcn.005c8000
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5d163c
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebp
ret
push 0x714da0
call fcn.005c8000
add esp, 4
jmp 0x5d167b
push 0xc
push 4
call fcn.004ed3a0
nop dword [eax]
Function at 0x5d1730
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x714db0]
mov esi, ecx
test eax, eax
je 0x5d1759
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x5d1771
cmp byte [eax + 4], 0
je 0x5d1771
add eax, 5
pop esi
pop edi
pop ebp
ret
push 0x714db0
call fcn.005c8000
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x5d174c
mov eax, dword [0x714db0]
test eax, eax
je 0x5d17e4
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x5d17fc
mov edi, eax
test eax, eax
jne 0x5d17c1
mov eax, dword [0x6b6a34]
movzx eax, byte [eax]
push 4
push 8
call fcn.004ed010
add esp, 8
test eax, eax
je 0x5d1811
mov dword [eax], 0x714db0
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x714db0]
test eax, eax
je 0x5d1802
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test esi, esi
je 0x5d17d6
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
lea eax, [edi + 5]
mov byte [edi + 4], 1
mov byte [edi + 5], cl
pop esi
pop edi
pop ebp
ret
push 0x714db0
call fcn.005c8000
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x5d1786
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x714db0
call fcn.005c8000
add esp, 4
jmp 0x5d17ba
push 8
push 4
call fcn.004ed3a0
nop word [eax + eax]