joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44df32
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x538318], 0
push esi
push edi
jne 0x44dea8
call fcn.0044de14
test eax, eax
je 0x44deed
mov eax, dword [0x538318]
cmp eax, 1
jne 0x44dec9
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x44deed
jmp 0x44df2f
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x44df2f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44def1
xor eax, eax
jmp 0x44df2f
mov eax, dword [esi]
push dword [0x538318]
call edi
mov edi, eax
test edi, edi
je 0x44df13
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x44df2f
lea edi, [esi + 0xff0]
push esi
push dword [0x538318]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x44df19
mov eax, esi
pop edi
pop esi
ret
jmp 0x44de94

Function at 0x44f5f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x44f5fc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44f694
push esi
call fcn.0044f890
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
cmp eax, 2
je 0x44f679
cmp eax, 3
je 0x44f679
cmp eax, 0x7b
je 0x44f679
cmp eax, 0xf
je 0x44f679
cmp eax, 0x15
je 0x44f679
cmp eax, 0x57
je 0x44f679
cmp eax, 0xa1
je 0x44f679
cmp eax, 0x35
je 0x44f679
cmp eax, 0x20
jne 0x44f66e
mov eax, dword [0x53875c]
mov dword [ecx], eax
mov edx, dword [0x538760]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x53875c]
mov dword [ecx], eax
mov edx, dword [0x538760]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x53875c]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x538760]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x44f6c1
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x44f6f0
Capabilities:
Create directory

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
call fcn.0044f890
mov ebp, eax
mov dword [esp + 0xc], esi
call fcn.0044f890
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0x10], eax
jb 0x44f71a
mov eax, dword [edi]
jmp 0x44f71c
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x44f73d
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 1
pop ebp
add esp, 8
ret
call fcn.0044f890
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x44f78e
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.0044f5f0
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x44f78e
mov eax, dword [esp + 0x18]
mov edx, dword [0x53875c]
mov ecx, dword [0x538760]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret

Function at 0x4508a0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x5387b0]
test eax, eax
je 0x450928
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x450927
mov ecx, dword [0x5387b0]
test ecx, ecx
jne 0x4508c6
xor eax, eax
jmp 0x4508cf
push ecx
call esi
mov ecx, dword [0x5387b0]
cmp byte [eax + 0x18], 0
je 0x450927
test ecx, ecx
je 0x450927
push ecx
call esi
test eax, eax
je 0x450927
mov eax, dword [0x5387b0]
test eax, eax
je 0x4508ec
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x450927
mov eax, dword [0x5387b0]
test eax, eax
je 0x450908
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x5253f0
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.0045ed14
pop esi
pop ecx
ret
Function at 0x450f60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4e0460
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53450c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5387b0]
test eax, eax
jne 0x450f94
xor esi, esi
jmp 0x450f9d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x450fe7
cmp dword [esi + 0x14], 0
jne 0x451029
cmp dword [esi + 0x10], 0
jne 0x451030
push 0x4506a0
push 0x5387a8
call fcn.00450930
mov eax, dword [0x5387b0]
add esp, 8
test eax, eax
je 0x4510dd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x451015
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x451015
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x451070
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x45105e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x451030
cmp dword [esi + 0x14], 0
je 0x450fb9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x451095
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4510c6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4510c6
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4510c6
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x45107a
jmp 0x450fb3
lea ecx, [esp + 0x18]
call fcn.0045ea0d
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.0040a0b0
int3
Function at 0x4511d0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4e04b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53450c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x451110
push 0
push 0
call fcn.004665c7
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x45123b
lea ecx, [esp + 0x10]
call fcn.0045ea0d
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.0040a0b0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x45125e
cmp eax, 0xffffffff
je 0x45125e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4527c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0706
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x53450c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 1
mov esi, ecx
push 2
lea ecx, [ebp - 0xc8]
call fcn.00403e50
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edi
lea edx, [ebp - 0xc8]
push edx
mov dword [ebp - 4], 0
call eax
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00403f50
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x452839
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x18], esi
jb 0x452851
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0045e266
add esp, 4
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x30], eax
mov dword [ebp + edx - 0xc8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 1
mov dword [ebp - 0xc4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.004049e0
lea ecx, [ebp - 0xc4]
call fcn.00403a00
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x78]
mov dword [ebp + ecx - 0xc8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x78], vtable.std::ios_base.0
call fcn.0044ec40
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f14f
mov esp, ebp
pop ebp
ret 4
Function at 0x452f10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e07d7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53450c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x452f5e
mov dword [ebx], 0x4ef92c
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.00402380
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00406840
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x452faa
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00402240
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00405930
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x537ba4]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x458f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1568
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x53450c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call edx
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 0
call fcn.00451dd0
mov eax, dword [esi + 0x30]
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x30]
call edx
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp esi, eax
je 0x458fed
lea ebx, [ebx]
mov ecx, esi
call fcn.00451dd0
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov eax, dword [ebp - 0x18]
add esi, 8
cmp esi, eax
jne 0x458fd0
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45901e
mov edi, eax
cmp esi, eax
je 0x459015
mov edi, edi
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push 0
mov ecx, esi
call edx
add esi, 8
cmp esi, edi
jne 0x459000
mov esi, dword [ebp - 0x1c]
push esi
call fcn.0045e266
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45aee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e18c4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x53450c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.log4cplus::Hierarchy.0
mov dword [ebp - 4], 4
call fcn.00458f70
mov eax, dword [esi + 8]
push eax
call fcn.0045b7e0
add esp, 4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00451d40
lea edi, [esi + 0x20]
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00459d00
mov edi, dword [edi + 4]
push edi
call fcn.0045e266
lea edi, [esi + 0x10]
add esp, 4
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0045aaa0
mov edi, dword [edi + 4]
push edi
call fcn.0045e266
mov ecx, dword [esi + 0xc]
add esp, 4
mov byte [ebp - 4], 0
test ecx, ecx
je 0x45af9a
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0045b760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45d800
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1e38
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x53450c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x400
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x4f00a0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x10], 0
call fcn.0045d610
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 4], esi
mov esi, edi
sub esi, ebx
lea ecx, [esi - 1]
push ecx
push ebx
call sub.WS2_32.dll_gethostname
mov dword [ebp - 0x18], eax
test eax, eax
je 0x45d8da
cmp dword [ebp - 0x18], 0
je 0x45d933
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x271e
jne 0x45d8de
lea eax, [esi + esi]
mov byte [ebp - 0x10], 0
cmp eax, esi
jbe 0x45d8ab
lea edx, [ebp - 0x10]
sub eax, edi
push edx
add eax, ebx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0045d670
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
jmp 0x45d8c5
jae 0x45d8c5
lea esi, [eax + ebx]
cmp esi, edi
je 0x45d8c5
push 0
push edi
push esi
call fcn.0045e5f0
mov edi, esi
add esp, 0xc
mov dword [ebp - 0x24], edi
mov esi, edi
sub esi, ebx
lea eax, [esi - 1]
push eax
push ebx
call sub.WS2_32.dll_gethostname
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x45d870
mov esi, ebx
jmp 0x45d8e1
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0x45d936
mov edi, dword [ebp + 8]
mov eax, esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45d900
sub eax, edx
push eax
push esi
mov ecx, edi
call fcn.004013e0
test ebx, ebx
je 0x45d91f
push ebx
call fcn.0045e266
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
cmp byte [ebp + 0xc], 0
je 0x45d8e7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x45d94d
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45d966
jmp 0x45d907

Function at 0x45d9b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1e6e
mov eax, dword fs:[0]
push eax
mov eax, dword [0x53450c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 1
test byte [0x5389bc], al
jne 0x45da18
or dword [0x5389bc], eax
mov ecx, 0x5389b0
mov dword [ebp - 4], 0
call fcn.0045b6e0
mov dword [0x5389b0], 0x4f00ac
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x4eb680
mov dword [0x5389b8], eax
call fcn.0045f2ab
add esp, 4
mov eax, 0x5389b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45dab0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x53450c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ecx + 8]
mov esi, dword [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x45dbf9
cmp dword [eax + 0x10], ebx
je 0x45dbf9
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.00426ed0
push 1
lea edx, [ebp - 0x68]
push edx
mov ecx, eax
call fcn.0045da30
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x45db2c
xor ecx, ecx
jmp 0x45db2e
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x45db3a
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
push 0xffffffffffffffff
push ebx
add eax, 0x1c
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.004011d0
jmp 0x45dc19
mov dword [ebp - 4], 0xffffffff
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x51822f
mov ecx, esi
mov byte [esi], bl
call fcn.004013e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f14f
mov esp, ebp
pop ebp
ret 4

Function at 0x45f14f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53450c]
jne 0x45f159
repz ret
jmp fcn.00467eac
Function at 0x475c5d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0046789d
and dword [ebp - 0x14], 0
cmp dword [0x53984c], 0
mov dword [ebp - 0x18], eax
jne 0x475d10
push 0x4f30a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x475db8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f309c
push ebx
call edi
test eax, eax
je 0x475db8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4f308c
push ebx
mov dword [0x53984c], eax
call edi
push eax
call esi
push 0x4f3078
push ebx
mov dword [0x539850], eax
call edi
push eax
call esi
push 0x4f305c
push ebx
mov dword [0x539854], eax
call edi
push eax
call esi
mov dword [0x53985c], eax
test eax, eax
je 0x475d10
push 0x4f3044
push ebx
call edi
push eax
call esi
mov dword [0x539858], eax
mov eax, dword [0x539858]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x475d69
cmp dword [0x53985c], ecx
je 0x475d69
push eax
call esi
push dword [0x53985c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x475d69
test ebx, ebx
je 0x475d69
call edi
test eax, eax
je 0x475d60
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x475d60
test byte [ebp - 8], 1
jne 0x475d69
or dword [ebp + 0x10], 0x200000
jmp 0x475d9c
mov eax, dword [0x539850]
cmp eax, dword [ebp - 0x18]
je 0x475d9c
push eax
call esi
test eax, eax
je 0x475d9c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x475d9c
mov eax, dword [0x539854]
cmp eax, dword [ebp - 0x18]
je 0x475d9c
push eax
call esi
test eax, eax
je 0x475d9c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x53984c]
call esi
test eax, eax
je 0x475db8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x475dba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f14f
leave
ret