joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415565
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 4], ebx
push edi
push esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x1c], edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 0x40b3d0
push esi
call dword [sym.imp.UxTheme.dll_SetWindowTheme]
push edi
push 4
push 0x108e
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0xc004
push eax
push 0xfffffffffffffff0
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10010860
push edi
push 0x1036
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0x109d
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebx + 0x30]
push edi
push 4
push 0x21
push 0x20
push 0x20
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0x6d
push 0xfffffffffffffffa
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push 0xffffffffffffffff
push edi
mov esi, eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push 0xffffff
push esi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push edi
xor esi, esi
push esi
push 0x1003
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1f
push eax
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x2c], 0x800
mov dword [ebp - 0x24], 0x40b3e4
push esi
mov edi, dword [ebp - 4]
mov ebx, 0x1061
push ebx
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov dword [ebp - 0x30], 0xd
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], esi
push eax
inc ecx
mov dword [ebp - 0x24], 0x40b3ac
push ecx
push ebx
push dword [edi + 0x30]
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.004156d2
cmp dword [edi + 0x38], esi
jbe 0x4156cb
mov ebx, esi
mov eax, dword [edi + 0x34]
mov ecx, edi
push dword [ebx + eax + 4]
push dword [ebx + eax]
call fcn.0041586b
inc esi
lea ebx, [ebx + 0xc]
cmp esi, dword [edi + 0x38]
jb 0x4156b1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x415e32
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x558
mov eax, dword [0x4184e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x27
mov dword [edi], eax
mov dword [ebx], eax
lea eax, [ebp - 0x54]
push eax
push ecx
call sub.ole32.dll_StringFromGUID2
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
test eax, eax
je 0x415fa2
lea eax, [ebp - 0x54]
push eax
push 0x40758c
lea eax, [ebp - 0xb8]
push 0x31
push eax
call fcn.00415374
mov esi, eax
add esp, 0x10
test esi, esi
js 0x415fa2
push 0x409ef8
lea eax, [ebp - 0x54]
push eax
push 0x40b490
lea eax, [ebp - 0x144]
push 0x45
push eax
call fcn.00415374
mov esi, eax
add esp, 0x14
test esi, esi
js 0x415fa2
lea eax, [ebp - 0x558]
mov dword [ebp - 0x558], 0x208
push eax
lea eax, [ebp - 0x34c]
push eax
xor eax, eax
push eax
push 0xffff
push eax
lea eax, [ebp - 0x144]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
jle 0x415f0d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x415fa2
lea ecx, [ebp - 0x34c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x415f1e
sub ecx, edx
lea eax, [ebp - 0x34c]
push edi
sar ecx, 1
push ecx
push ecx
push eax
call fcn.00415fb5
mov esi, eax
test esi, esi
js 0x415fa2
lea eax, [ebp - 0x558]
mov dword [ebp - 0x558], 0x208
push eax
lea eax, [ebp - 0x554]
xor edi, edi
push eax
push edi
push 0xffff
push edi
lea eax, [ebp - 0xb8]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x415fa2
lea ecx, [ebp - 0x554]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x415f82
sub ecx, edx
lea eax, [ebp - 0x554]
push ebx
sar ecx, 1
push ecx
push ecx
push eax
call fcn.00415fb5
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416580
leave
ret 8
Function at 0x41607f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x4184e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xb0]
mov ebx, ecx
push eax
push 0x20019
push 0
push 0x40a048
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416234
mov eax, dword [ebx]
lea edi, [ebp - 0xa8]
mov esi, 0x4015d0
mov dword [ebp - 0xbc], eax
push 0x40
lea eax, [ebp - 0x88]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x416228
mov edi, ebx
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416209
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 4
push eax
lea eax, [ebp - 0xb8]
push eax
push 0
push 0x40b4a8
push 0
push dword [ebp - 0xac]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x416162
push dword [ebp - 0xb8]
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
jne 0x4161fd
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_704]
test eax, eax
setne bl
test eax, eax
jne 0x4161c2
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x4161c2
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_704]
test eax, eax
setne bl
test bl, bl
je 0x4161fd
lea edx, [ebp - 0x98]
xor ecx, ecx
lea ebx, [ebp - 0xa8]
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4]
jne 0x4161ea
inc ecx
cmp ecx, 4
jne 0x4161d4
mov edx, dword [ebp - 0xbc]
jmp 0x4161ef
mov edx, 0x7fffffff
lea eax, [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00416020
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea eax, [ebp - 0x88]
inc esi
push eax
push esi
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4160f4
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416580
leave
ret 0x18
Function at 0x416570
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4171d0
call fcn.00416c78
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x418cf8
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x416345
cmp eax, esi
jne 0x416338
xor esi, esi
inc esi
mov edi, esi
jmp 0x416348
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41631c
xor esi, esi
inc esi
cmp dword [0x418cfc], esi
jne 0x41635a
push 0x1f
call fcn.004ff000
pop ecx
jmp 0x416394
cmp dword [0x418cfc], ebx
jne 0x41638e
mov dword [0x418cfc], esi
push 0x401450
push 0x401444
call fcn.004164ce
pop ecx
pop ecx
test eax, eax
je 0x416394
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4164be
mov dword [0x418878], esi
cmp dword [0x418cfc], esi
jne 0x4163b7
push 0x401440
push 0x401420
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x418cfc], 2
test edi, edi
jne 0x4163c4
xor eax, eax
mov ecx, 0x418cf8
xchg dword [ecx], eax
cmp dword [0x418d08], 0
je 0x4163f0
push 0x418d08
call fcn.00416ad0
pop ecx
test eax, eax
je 0x4163f0
push ebx
push 2
push ebx
mov esi, dword [0x418d08]
mov ecx, esi
call dword [0x419350]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x41637d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x41645b
test ax, ax
je 0x41642a
test edx, edx
jne 0x41645b
test ax, ax
je 0x41642a
cmp ax, si
ja 0x41642a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x416415
test byte [ebp - 0x3c], 1
je 0x416436
movzx eax, word [ebp - 0x38]
jmp 0x416439
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x418874], eax
cmp dword [0x41888c], 0
jne 0x4164a3
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x41646c
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x416404
cmp dword [0x418878], 0
jne 0x4164b7
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x418874]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00416bc5
jmp 0x4162f3

Function at 0x4169b4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x417210
call fcn.00416c78
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x416a14
cmp eax, 0xffffffff
je 0x416a14
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x416a0d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x416a0d
cmp edx, 0x10000000
jae 0x416a0d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x416a0a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416a80
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x416abe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x416ab6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x416ac0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x416aa6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x416b90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x416bc1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x416bc1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x416bc1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403d4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x407034
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004037dc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4010c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403d7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x40703c
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004037dc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4030f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40440f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x4070f0
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004037dc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x403660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40445f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x407284
push ecx
push 8
push 1
push 5
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004037dc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x403740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40448f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x407290
push ecx
push 8
push 1
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004037dc
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4158a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x4158df
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x3e2
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test ebx, ebx
mov esi, str.mtx_p
push 0x25
cmovne esi, ebx
lea ebx, [edi + 0x18]
push esi
call fcn.00503370
add esp, 8
test eax, eax
je 0x415920
push edi
push esi
push 0x20
push ebx
call fcn.00403590
add esp, 0x10
call fcn.00418190
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20
push esi
push ebx
call fcn.0041cb60
add esp, 0xc
call fcn.00418190
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4159e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x415a28
push ebx
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [ebp - 1]
mov edi, ebx
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, edi
sub edi, edx
cmp ebx, edx
cmovbe edi, ecx
cmp edi, dword [eax + 0x34]
jbe 0x415a23
mov dword [eax + 0x34], edi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x364
lock dec dword [esi]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415a30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x415a6b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x364
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415aa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x415adb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x342
mov eax, dword [ebp + 8]
pop edi
pop esi
test eax, eax
jne 0x415ae8
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
mov esp, ebp
pop ebp
ret
Function at 0x415af0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x415b38
push ebx
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [ebp - 1]
mov edi, ebx
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, edi
sub edi, edx
cmp ebx, edx
cmovbe edi, ecx
cmp edi, dword [eax + 0x34]
jbe 0x415b33
mov dword [eax + 0x34], edi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x34d
lock inc dword [esi]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415b40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x415b7b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x34d
mov ecx, dword [ebp + 8]
mov eax, 1
lock xadd dword [ecx], eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415b90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x415bcb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x337
mov ecx, dword [ebp + 8]
pop edi
pop esi
test ecx, ecx
je 0x415bd9
mov eax, dword [ebp + 0xc]
xchg dword [ecx], eax
mov esp, ebp
pop ebp
ret

Function at 0x415be0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x415c1b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x439
call fcn.00418190
push 0x5b84a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00418190
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415fe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x41601b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x58f
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41602d
pop edi
mov eax, 0x11174
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00418190
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call fcn.00418190
test esi, esi
jne 0x416050
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x102
jne 0x416063
pop edi
mov eax, 0x11179
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x416082
call esi
test eax, eax
je 0x416048
call esi
pop edi
add eax, 0x1d4c0
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416090
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edi, [ebp - 1]
mov esi, edi
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp edi, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x4160cb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], 0x56d488
mov dword [eax + 0x40], 0x120
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4160e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Initialize winsock library
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x5b66c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5b83a0]
test eax, eax
je 0x416112
inc eax
mov dword [0x5b83a0], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x1b4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x416164
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x416152
call esi
test eax, eax
je 0x4162e4
call esi
add eax, 0x1d4c0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050101b
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x416194
call edi
test eax, eax
je 0x416244
call edi
test eax, eax
je 0x416199
call edi
add eax, 0x1d4c0
je 0x416199
jmp 0x416247
mov dword [0x5b3084], eax
push str.thr_p
call fcn.0041cd60
add esp, 4
mov dword [ebp - 0x1c0], eax
mov esi, edx
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x44
push 0
push 0x5b83a8
call fcn.00502bf0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [0x5b83c8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.thr_p
lea ecx, [ebp - 0x1b5]
mov dword [0x5b83cc], eax
push 0x20
push 0x5b83a8
mov dword [0x5b83e0], ecx
mov dword [0x5b83d8], 0xffffffff
mov dword [0x5b83dc], 0
call fcn.00403590
add esp, 0x10
push 0x5b83a8
push dword [0x5b3084]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41622f
xor eax, eax
jmp 0x416247
call edi
test eax, eax
je 0x416244
call edi
test eax, eax
je 0x416247
call edi
add eax, 0x1d4c0
jmp 0x416247
or eax, 0xffffffff
pop edi
test eax, eax
jne 0x4162e6
call fcn.004181b0
push str.pj_p
push 0x5b84a8
call fcn.004158a0
add esp, 8
test eax, eax
jne 0x4162e6
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.00422930
push 0x5c5bd8
push str.PJLIB_No_memory
call fcn.0041ea20
add esp, 0xc
test eax, eax
jne 0x4162e6
lea eax, [ebp - 0x1c0]
push eax
call fcn.004228c0
add esp, 4
test eax, eax
jne 0x4162e6
lea eax, [ebp - 0x1c0]
push eax
call fcn.00422860
add esp, 4
test eax, eax
jne 0x4162e6
inc dword [0x5b83a0]
call fcn.00418190
cmp eax, 4
jl 0x4162e4
push dword [0x5b30f8]
push str.pjlib__s_for_win32_initialized
push str.os_core_win32.c
call fcn.00418080
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0050101b
mov esp, ebp
pop ebp
ret