joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c0a0
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 [0x480540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4811d8]
test eax, eax
je 0x41c0d2
inc eax
mov dword [0x4811d8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
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 0x41c12f
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x41c11d
call esi
test eax, eax
jne 0x41c107
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
mov esp, ebp
pop ebp
ret
call esi
add eax, 0x1d4c0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
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 0x41c16d
call edi
test eax, eax
je 0x41c156
call edi
test eax, eax
je 0x41c159
call edi
add eax, 0x1d4c0
jmp 0x41c159
or eax, 0xffffffff
test eax, eax
je 0x41c172
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
mov esp, ebp
pop ebp
ret
mov dword [0x480464], eax
push str.thr_p
call fcn.0041a010
add esp, 4
mov dword [ebp - 0x1c0], eax
mov esi, edx
push dword [0x480464]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x44
push 0
push 0x4811e0
call fcn.004244d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [0x481200], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.thr_p
lea ecx, [ebp - 0x1b5]
mov dword [0x481204], eax
push 0x20
push 0x4811e0
mov dword [0x481218], ecx
mov dword [0x481210], 0xffffffff
mov dword [0x481214], 0
call fcn.00402030
add esp, 0x10
push 0x4811e0
push dword [0x480464]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c208
xor eax, eax
jmp 0x41c220
call edi
test eax, eax
je 0x41c21d
call edi
test eax, eax
je 0x41c220
call edi
add eax, 0x1d4c0
jmp 0x41c220
or eax, 0xffffffff
test eax, eax
jne 0x41c2be
call fcn.00414700
push str.pj_p
push 0x4812e0
call fcn.0041b860
add esp, 8
test eax, eax
jne 0x41c2be
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.00422aa0
push 0x4826f0
push str.PJLIB_No_memory
call fcn.0041efb0
add esp, 0xc
test eax, eax
jne 0x41c2be
lea eax, [ebp - 0x1c0]
push eax
call fcn.00414970
add esp, 4
test eax, eax
jne 0x41c2be
lea eax, [ebp - 0x1c0]
push eax
call fcn.00414910
add esp, 4
test eax, eax
jne 0x41c2be
inc dword [0x4811d8]
call fcn.004146e0
cmp eax, 4
jl 0x41c2bc
push dword [0x480468]
push str.pjlib__s_for_win32_initialized
push str.os_core_win32.c
call fcn.004145d0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422f02
mov esp, ebp
pop ebp
ret
Function at 0x41c2d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41c30b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x45e
call fcn.004146e0
push 0x4812e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41c420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41c45b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x49d
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41c46d
pop edi
mov eax, 0x11174
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004146e0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41c4a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41c4db
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x439
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41c4ed
pop edi
mov eax, 0x11174
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004146e0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.004146e0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41c590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41c5cb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x45e
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41c5dd
pop edi
mov eax, 0x11174
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004146e0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41cae0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x480464]
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 0x41cb1c
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x4df
mov eax, dword [ebp + 8]
test eax, eax
je 0x41cbd7
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x41cbd7
push 0x24
push eax
call fcn.00413ae0
add esp, 8
mov edi, eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi], eax
test eax, eax
jne 0x41cb7f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41cb75
call esi
test eax, eax
je 0x41cbce
call esi
pop edi
pop esi
add eax, 0x1d4c0
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov esi, str.sem_p
test eax, eax
push 0x25
cmovne esi, eax
push esi
call fcn.00424c50
add esp, 8
test eax, eax
lea eax, [edi + 4]
je 0x41cbbb
push edi
push esi
push 0x20
push eax
call fcn.00402030
add esp, 0x10
call fcn.004146e0
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20
push esi
push eax
call fcn.00419e10
add esp, 0xc
call fcn.004146e0
mov dword [ebx], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x11174
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cbf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41cc2b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x54b
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41cc3d
pop edi
mov eax, 0x11174
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004146e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41cc56
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41cc75
call esi
test eax, eax
je 0x41cc4e
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 0x41cc80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41ccbb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x53a
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41cccd
pop edi
mov eax, 0x11174
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004146e0
push 0
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x41ccea
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41cd09
call esi
test eax, eax
je 0x41cce2
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 0x41cd80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41cdbb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x524
mov eax, dword [ebp + 8]
pop edi
pop esi
test eax, eax
jne 0x41cdcd
mov eax, 0x11174
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call fcn.0041cde0
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x41cde0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41ce1b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x503
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41ce2d
pop edi
mov eax, 0x11174
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004146e0
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call fcn.004146e0
test esi, esi
jne 0x41ce50
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x102
jne 0x41ce63
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 0x41ce82
call esi
test eax, eax
je 0x41ce48
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 0x41d080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41d0bb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x636
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 2
add eax, eax
movzx edx, ax
push ebx
mov eax, edx
mov ebx, esi
or eax, 2
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 1
test bl, 1
movzx ecx, ax
mov eax, edx
cmove ecx, eax
and bl, 8
movzx edx, cx
mov eax, edx
or eax, 8
test bl, bl
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
pop ebx
test eax, eax
je 0x41d123
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41d142
call esi
test eax, eax
je 0x41d11b
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 0x41d150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
lea edi, [ebp - 1]
mov eax, edi
mov edx, dword [esi + 0x38]
mov ecx, edx
sub ecx, eax
sub eax, edx
cmp edi, edx
cmovbe eax, ecx
cmp eax, dword [esi + 0x34]
jbe 0x41d18b
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d1a0
Capabilities:
Create thread
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41d1db
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x235
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d2d3
cmp dword [ebp + 0x10], 0
je 0x41d2d3
cmp dword [ebp + 0x20], 0
je 0x41d2d3
push ebx
mov ebx, dword [ebp + 0x1c]
push 0x44
push 1
and ebx, 1
push eax
shl ebx, 2
call fcn.00413cb0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41d223
pop ebx
pop edi
mov eax, 0x11177
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edi, str.thr_p
test eax, eax
push 0x25
cmovne edi, eax
push edi
call fcn.00424c50
add esp, 8
test eax, eax
je 0x41d24e
push esi
push edi
push 0x20
push esi
call fcn.00402030
add esp, 0x10
jmp 0x41d25a
push 0x20
push edi
push esi
call fcn.00419e10
add esp, 0xc
call fcn.004146e0
mov ecx, dword [ebp + 0x18]
or eax, 0xffffffff
test ecx, ecx
mov dword [esi + 0x34], 0
cmovne eax, ecx
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x24]
push eax
push ebx
push esi
push 0x41da50
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x41d2c5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41d2bb
call esi
test eax, eax
je 0x41d2ca
call esi
pop ebx
pop edi
add eax, 0x1d4c0
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
mov dword [eax], esi
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x11174
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41d370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [0x480464]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [ebp - 1]
mov esi, ebx
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp ebx, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x41d3ab
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x26f
cmp dword [ebp + 8], 0
mov eax, 0x47075d
pop esi
cmovne eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d570
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [0x480464]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebx, [ebp - 1]
mov esi, ebx
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, esi
sub esi, edx
cmp ebx, edx
cmovbe esi, ecx
cmp esi, dword [eax + 0x34]
jbe 0x41d5ab
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x2a7
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41d5bd
pop esi
mov eax, 0x11174
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x480464]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
jne 0x41d5d8
pop esi
mov eax, 0x1117e
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004146e0
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41d5f4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x102
jne 0x41d606
pop esi
mov eax, 0x11179
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41d625
call esi
test eax, eax
je 0x41d5ec
call esi
pop esi
add eax, 0x1d4c0
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d630
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41d643
mov eax, 0x11174
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
jne 0x41d670
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41d66a
call esi
test eax, eax
je 0x41d672
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret

Function at 0x41d680
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41d6bb
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x3b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TlsFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41d6e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41d6f7
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x41d717
call esi
test eax, eax
jne 0x41d70d
pop esi
pop ebp
ret
call esi
add eax, 0x1d4c0
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x41d8d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [0x480464]
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 0x41d90b
mov dword [eax + 0x34], esi
mov dword [eax + 0x3c], str.G:local_srcmicrosippjprojectpjlib_srcpjos_core_win32.c
mov dword [eax + 0x40], 0x2d2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41dc40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x60
push str.G:local_srcmicrosippjprojectpjlib_srcpj_sock_select.c
call fcn.0041d150
mov ecx, dword [ebp + 0x18]
add esp, 8
test ecx, ecx
je 0x41dc7c
mov eax, dword [ecx]
mov dword [ebp - 8], eax
imul eax, dword [ecx + 4], 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
jmp 0x41dc7e
xor eax, eax
push eax
lea eax, [ebx + 4]
neg ebx
sbb ebx, ebx
and ebx, eax
lea eax, [edi + 4]
neg edi
push ebx
sbb edi, edi
and edi, eax
lea eax, [esi + 4]
neg esi
push edi
sbb esi, esi
and esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422820
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x480540]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4229b0
cmp dword [esi], 0
je 0x4229b0
movzx eax, word [0x474170]
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x422883
movzx eax, word [0x474168]
cmp ecx, eax
je 0x422883
mov dword [esi], 0
mov eax, 0x11185
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [edx + 4]
cmp edi, 0xfe
jl 0x4228a5
pop edi
pop esi
mov eax, 0x11175
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
mov esp, ebp
pop ebp
ret
push edi
push dword [edx]
lea eax, [ebp - 0x104]
push eax
call fcn.00424630
add esp, 0xc
cmp edi, 0xfe
jae 0x4229c5
lea eax, [ebp - 0x104]
mov byte [ebp + edi - 0x104], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4228f2
pop edi
pop esi
mov eax, 0x11182
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x10c], ecx
movsx ecx, word [eax + 0xa]
mov eax, dword [esi]
mov dword [ebp - 0x108], eax
imul eax, eax, 0x11c
mov dword [ebp - 0x110], ecx
mov dword [esi], 0
push eax
push 0
push ebx
call fcn.004244d0
add esp, 0xc
cmp dword [edi], 0
je 0x42298f
nop dword [eax]
mov eax, dword [esi]
cmp eax, dword [ebp - 0x108]
jae 0x42298f
imul eax, eax, 0x11c
push 0xfe
push dword [ebp - 0x10c]
add eax, ebx
push eax
call fcn.00419e10
imul ecx, dword [esi], 0x11c
mov ax, word [0x474170]
push dword [ebp - 0x110]
mov word [ecx + ebx + 0x100], ax
imul eax, dword [esi], 0x11c
push dword [edi]
add eax, 0x104
add eax, ebx
push eax
call fcn.00424630
inc dword [esi]
add edi, 4
add esp, 0x18
cmp dword [edi], 0
jne 0x422930
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
and eax, 0xfffeee7e
pop esi
add eax, 0x11182
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x11174
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f02
mov esp, ebp
pop ebp
ret
call fcn.00422d0f
int3

Function at 0x42411a
Capabilities:
Parse pe header

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

Function at 0x44d4f7
Capabilities:
Parse pe header

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