joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46544f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48baac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00453e76
mov dword [ebp - 0x14], eax
cmp dword [0x48fe70], edi
jne 0x465540
push 0x800
push edi
push 0x479484
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4654cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x465620
push 0x479484
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x465620
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x465620
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x48fe70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x48fe74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x48fe78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48fe80], eax
test eax, eax
je 0x46553d
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48fe7c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x465565
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x465558
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x46557a
push 4
pop eax
jmp 0x465622
cmp dword [ebp - 0x14], edi
je 0x46557a
push dword [0x48fe70]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46555f
mov eax, dword [0x48fe7c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4655d8
cmp dword [0x48fe80], esi
je 0x4655d8
push eax
call ebx
push dword [0x48fe80]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4655d8
test eax, eax
je 0x4655d8
call ecx
test eax, eax
je 0x4655cd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4655cd
test byte [ebp - 8], 1
jne 0x4655d8
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x465608
mov eax, dword [0x48fe74]
cmp eax, esi
je 0x465605
push eax
call ebx
test eax, eax
je 0x465605
call eax
mov edi, eax
test edi, edi
je 0x465605
mov eax, dword [0x48fe78]
cmp eax, esi
je 0x465605
push eax
call ebx
test eax, eax
je 0x465605
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x48fe70]
call ebx
test eax, eax
je 0x465620
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x465622
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e402
leave
ret
Function at 0x4678eb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0045bf27
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x467923
xor eax, eax
jmp 0x46794f
cmp esi, dword [ebp - 4]
je 0x46794c
cmp dword [ebp + 0xc], 0
je 0x46794c
push dword [edi + 0x9c]
call fcn.004674f9
push dword [edi + 0x9c]
mov esi, eax
call fcn.004522f1
pop ecx
pop ecx
cmp esi, eax
je 0x46791f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4031b0
pop dword [ebp - 0x34]
mov eax, 0xdc6b184a
sub eax, 0xdc2ae69a
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xf93310ea
sub dword [ebp - 0x44], 0xaae0cb9f
mov dword [ebp - 0x40], 0x28f821b4
sub dword [ebp - 0x40], 0xf6c4d56f
mov dword [ebp - 0x3c], 0x10e64a7e
sub dword [ebp - 0x3c], 0xc49a0650
mov dword [ebp - 0x38], 0x5cd1bcc9
sub dword [ebp - 0x38], 0x5cd1bcc9
lea eax, [ebp - 0x44]
push eax
mov eax, 0x863845e9
sub eax, 0x85f8057d
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xb4fd0768
sub dword [ebp - 0x44], 0x408a9e12
mov dword [ebp - 0x40], 0xd4c238e5
add dword [ebp - 0x40], 0x6caa2890
mov dword [ebp - 0x3c], 0xfc048380
sub dword [ebp - 0x3c], 0x98951714
mov dword [ebp - 0x38], 0xc9242ec7
add dword [ebp - 0x38], 0x36dbd139
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x36c18
push 0
call eax
mov ecx, 0xd5d6bc60
add ecx, 0x2a298c27
xor edi, edi
add edi, eax
mov edx, 0x10b0cd89
sub edx, 0x106fc589
add edx, dword [ebp - 0x34]
mov esi, 0xd5831d70
sub esi, 0xf7c76613
add dword [ebp - 0xc], 0x86b7738e
mov ebx, dword [edx]
mov dword [ebp - 4], 0xcdb2e2df
xor ebx, esi
xor dword [ebp - 0x1c], edx
mov dword [edi], ebx
mov dword [ebp - 4], 0xad1e30f6
add edi, 0xf7afbbd5
add edi, 0x850442f
add edx, 0xe89e77c6
sub edx, 0xe89e77c2
loop 0x4032cf
add eax, 0xf22bf431
add eax, 0xdd520be
mov ebx, eax
add eax, 0x1eb43fa1
sub eax, 0x1eb43f9c
mov ecx, 0x135de997
add ecx, 0xece21669
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x41002c
Capabilities:
Get common file path

Disassembly:
push 0x60
mov eax, 0x487acc
call fcn.00430dba
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x68]
xor ebx, ebx
mov dword [ebp - 0x6c], esi
push 0x7fff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], ebx
call fcn.0040f0cf
mov edi, dword [ebp - 0x60]
push edi
push dword [ebp - 0x64]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4100d4
push dword [ebp - 0x64]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4100e7
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
push esi
push edi
mov dword [ebp - 0x58], 1
call fcn.0040ecab
cmp dword [esi + 0x14], 0x10
pop ecx
pop ecx
mov ecx, esi
jb 0x4100a0
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
cmp byte [eax + ecx - 1], 0x5c
je 0x4100bf
mov ebx, 0x4901e4
push ebx
call fcn.0045a710
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.00407942
cmp byte [ebp - 0x5c], 0
je 0x4100cc
push edi
call fcn.00430d39
pop ecx
mov eax, esi
call fcn.00430d64
ret
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x28]
call fcn.00405cbe
mov byte [ebp - 4], 3
jmp 0x4100f8
push str.Cannot_get_temporary_directory_long_path_name
lea ecx, [ebp - 0x28]
call fcn.00405cbe
mov byte [ebp - 4], 2
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.00409785
push 0x4c5848
lea eax, [ebp - 0x54]
push eax
call fcn.0045221c
int3
Function at 0x416c28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x416c2d
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x416c4c
push 0
push 0x5e
push str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.0040c6b6
add esp, 0x10
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x416c57
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416c81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x416c85
cmp eax, 3
jbe 0x416c7d
cmp eax, 0xf
je 0x416c7d
cmp eax, 0x15
jne 0x416c85
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.00416d99
int3

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x417117
push 0
push 0x9f
push str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.0040c6b6
add esp, 0x10
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x417122
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417135
shr eax, 4
and al, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.00416d99
int3

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

Disassembly:
jmp 0x417144
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x417166
push 0
push 0xaa
push str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.0040c6b6
add esp, 0x10
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x417171
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41718c
and eax, 0x410
cmp eax, 0x400
pop esi
sete al
ret
lea eax, [esi + 4]
push eax
call fcn.00416d99
int3
Function at 0x417833
Capabilities:
Query environment variable

Disassembly:
push 0x60
mov eax, 0x487f9c
call fcn.00430dba
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x6c], esi
and dword [ebp - 0x58], 0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push ebx
call fcn.0040eb43
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x417905
push edi
lea ecx, [ebp - 0x68]
call fcn.0040f0cf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x28]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push esi
lea eax, [edi - 1]
mov dword [ebp - 0x58], 1
push eax
push dword [ebp - 0x60]
call fcn.0040ecc6
add esp, 0xc
cmp byte [ebp - 0x5c], 0
je 0x4178e3
push dword [ebp - 0x60]
call fcn.00430d39
pop ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4178fd
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x28]
call fcn.004045ad
pop ecx
pop ecx
mov eax, esi
call fcn.00430d64
ret
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.00409388
push 0x4c57c8
lea eax, [ebp - 0x54]
push eax
call fcn.0045221c
int3

Function at 0x417994
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 6
xor ebx, ebx
push ebx
push dword [ebp + 8]
call fcn.00452040
mov eax, 0x288
push eax
mov dword [ebp - 4], eax
call fcn.0043180d
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
add esp, 0x10
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x4179e1
push edi
call fcn.00430d39
push dword [ebp - 4]
call fcn.0043180d
pop ecx
pop ecx
mov edi, eax
jmp 0x4179e5
test eax, eax
jne 0x417a2f
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x417a28
mov esi, edi
test edi, edi
je 0x417a28
test bl, bl
jne 0x417a28
cmp dword [esi + 0x1a0], 6
jne 0x417a22
cmp dword [esi + 0x190], 6
jne 0x417a22
push 6
lea eax, [esi + 0x194]
inc bl
push eax
push dword [ebp + 8]
call fcn.00451540
add esp, 0xc
mov esi, dword [esi]
test esi, esi
jne 0x4179f6
push edi
call fcn.00430d39
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f9aa
Capabilities:
Create service
Persist via windows service

Disassembly:
push 0x90
mov eax, 0x489379
call fcn.00430dba
mov ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
call fcn.0041f946
and dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x58]
push eax
push ebx
call fcn.0040eb43
and dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.0040eb43
xor esi, esi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.0040eb43
add esp, 0x18
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x58]
push 8
pop edi
cmp dword [ebp - 0x14], edi
push esi
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], edi
push esi
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], edi
push esi
cmovae eax, dword [ebp - 0x58]
push esi
push esi
push edx
push 1
push 3
push 0x10
push 0xf01ff
push ecx
push eax
push dword [ebx + 0x18]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x41fad8
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x41fa83
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.004045ad
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], esi
push 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
pop ebx
mov dword [ebp - 0x14], ebx
cmp eax, edi
jb 0x41faab
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.004045ad
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], ebx
cmp eax, edi
jb 0x41fad0
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x58]
call fcn.004045ad
pop ecx
pop ecx
call fcn.00430d64
ret 8
push str.cannot_register_service
lea ecx, [ebp - 0x70]
call fcn.00405cbe
push esi
push ebx
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x9c]
call fcn.00409760
push 0x4c5848
lea eax, [ebp - 0x9c]
push eax
call fcn.0045221c
int3

Function at 0x41fba1
Capabilities:
Modify service

Disassembly:
push 0x48
mov eax, 0x48763e
call fcn.00430dba
mov esi, ecx
call fcn.0041f95e
mov eax, dword [ebp + 8]
xor edi, edi
sub eax, edi
je 0x41fbd4
sub eax, 1
je 0x41fbd0
sub eax, 1
je 0x41fbcc
or eax, 0xffffffff
jmp 0x41fbd7
push 4
jmp 0x41fbd6
push 3
jmp 0x41fbd6
push 2
pop eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x41fbf8
call fcn.00430d64
ret 4
push str.cannot_change_service_startup_mode
lea ecx, [ebp - 0x28]
call fcn.00405cbe
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x54]
call fcn.00409785
push 0x4c5848
lea eax, [ebp - 0x54]
push eax
call fcn.0045221c
int3
Function at 0x4212c5
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x489818
call fcn.00430dba
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
call fcn.004211a5
and dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
push ebx
call fcn.0040eb43
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.0040eb43
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
add esp, 0x10
lea edx, [ebp - 0x40]
lea eax, [eax*2 + 2]
push 8
pop esi
cmp dword [ebp - 0x14], esi
push eax
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], esi
push ecx
cmovae edx, dword [ebp - 0x40]
push 1
push 0
push edx
push dword [edi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x42139e
mov eax, dword [ebp - 0x14]
cmp eax, esi
jb 0x42136c
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.004045ad
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
cmp eax, esi
jb 0x421396
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.004045ad
pop ecx
pop ecx
call fcn.00430d64
ret 8
push ebx
mov ecx, edi
call fcn.00421052
int3

Function at 0x422cfa
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x489a7b
call fcn.00430d86
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00423565
pop ecx
pop ecx
xor ecx, ecx
mov ebx, dword [eax]
mov dword [eax], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ecx
je 0x422d34
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0042421b
xor ecx, ecx
lea edi, [esi + 4]
push edi
push ecx
push ebx
push 0x42313a
push ecx
push ecx
call fcn.0045ccc8
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x422d59
mov eax, esi
call fcn.00430d4f
ret 4
and dword [edi], 0
push 6
call fcn.004301d7
int3

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

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
push dword [0x4d6858]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov dword [esi + 8], eax
push dword [0x4d6858]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret 8

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

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
push dword [0x4d6858]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov dword [esi + 8], eax
push dword [0x4d6858]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret 8
Function at 0x424a7e
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp edi, 0xffffffff
je 0x424b6d
cmp byte [esp + 0x24], 0
mov ebp, dword [esp + 0x20]
je 0x424ad3
test byte [ebp], 8
je 0x424ad3
xor eax, eax
mov dword [esp + 0x1c], eax
call fcn.004230e5
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push 0x80
push 0xffff
push ebp
push edi
call fcn.0042600e
add esp, 0x1c
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.00423483
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x424b6d
call fcn.004264f6
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x2733
call fcn.004065c6
pop ecx
pop ecx
test al, al
jne 0x424b35
call fcn.004264f6
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x4d5
call fcn.004065c6
pop ecx
pop ecx
test al, al
je 0x424b78
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.00423483
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424b78
call fcn.004230e5
and dword [ebx], 0
mov dword [ebx + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x4258c3
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x4d6864
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x42590d
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x425923
push method.Poco::Util::Subsystem.virtual_20
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
leave
ret
Function at 0x42600e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
or edi, 0xffffffff
cmp dword [ebp + 8], edi
jne 0x426032
call fcn.004264f6
mov ecx, dword [ebp + 0x20]
mov dword [ecx + 4], eax
mov eax, edi
mov dword [ecx], 0x2719
jmp 0x4260e5
cmp dword [ebp + 0x10], 0xa5100000
push esi
mov esi, dword [ebp + 0x14]
jne 0x426094
cmp esi, 2
jne 0x42605a
call fcn.004264f6
mov ecx, dword [ebp + 0x20]
mov dword [ecx], 0x2726
mov dword [ecx + 4], eax
jmp 0x4260e2
cmp esi, 1
jne 0x4260ab
cmp dword [ebp + 0x1c], 4
jne 0x426044
mov esi, dword [ebp + 0xc]
mov cl, byte [esi]
mov al, cl
or cl, 4
and al, 0xfb
movzx edx, cl
movzx ecx, al
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
cmove edx, ecx
mov byte [esi], dl
call fcn.004230e5
mov ecx, dword [ebp + 0x20]
and dword [ecx], 0
mov dword [ecx + 4], eax
xor eax, eax
jmp 0x4260e4
cmp dword [ebp + 0x10], 0xffff
jne 0x4260ab
cmp esi, 0x80
jne 0x4260ab
mov eax, dword [ebp + 0xc]
or byte [eax], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp + 0x20]
push esi
push eax
call fcn.00423483
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4260e2
call fcn.004230e5
and dword [esi], edi
mov dword [esi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x42642a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d0284]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
inc eax
lock xadd dword [esi], eax
inc eax
cmp eax, 1
jne 0x426473
movzx ecx, byte [ebp + 0x10]
lea eax, [ebp - 0x194]
push eax
movzx eax, byte [ebp + 0xc]
shl cx, 8
or cx, ax
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esi + 4]
xchg dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00430d3e
leave
ret
Function at 0x42aae5
Capabilities:
Set thread local storage value

Disassembly:
push 0x28
mov eax, 0x48a3ea
call fcn.00430d86
mov ebx, ecx
mov edi, dword [ebp + 8]
push dword [edi]
call fcn.0042c664
pop ecx
test eax, eax
je 0x42ab25
xor esi, esi
lea ecx, [ebp + 0xb]
push esi
call fcn.0042bb6e
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call fcn.0042a862
pop ecx
pop ecx
xchg dword [ebp + 0xc], eax
jmp 0x42abb2
mov esi, dword [ebp + 0xc]
push esi
push 0x38
mov dword [ebp - 0x28], esi
call fcn.00424a55
pop ecx
pop ecx
push esi
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0042b589
push eax
push edi
mov ecx, ebx
mov dword [ebp + 0xc], eax
call fcn.0042cbca
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
test al, al
je 0x42abaa
push dword [edi]
lea ecx, [ebp - 0x34]
call fcn.0042b8a7
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
call fcn.004230e5
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push esi
push eax
push dword [ebp + 0xc]
push dword [ebx + 0x14]
call fcn.0042c8d8
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.0042bc4c
push dword [ebp - 0x2c]
push dword [0x4d686c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [ebp - 0x28]
call fcn.0042dbe3
call fcn.00430d4f
ret 8