joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401c66
pop dword [ebp - 0x48]
mov eax, 0x3e580119
sub eax, 0x3e17e4b3
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x62b7954c
add dword [ebp - 0x58], 0xeb9aafff
mov dword [ebp - 0x54], 0x54d5173
sub dword [ebp - 0x54], 0xd31a052e
mov dword [ebp - 0x50], 0x64c72fcc
sub dword [ebp - 0x50], 0x187aeb9e
mov dword [ebp - 0x4c], 0x7aab93af
add dword [ebp - 0x4c], 0x85546c51
lea eax, [ebp - 0x58]
push eax
mov eax, 0xd3e17c9d
add eax, 0x2c5eb3b7
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xfb85f679
add dword [ebp - 0x58], 0x78ec72dd
mov dword [ebp - 0x54], 0xefde2a4c
add dword [ebp - 0x54], 0x518e3729
mov dword [ebp - 0x50], 0xfbc26d7b
sub dword [ebp - 0x50], 0x9853010f
mov dword [ebp - 0x4c], 0x89a74f9d
add dword [ebp - 0x4c], 0x7658b063
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x39de2
push 0
call eax
mov ecx, 0x558c
mov ebx, eax
mov edx, 0xce3542b0
add edx, 0x320b2d50
add edx, dword [ebp - 0x48]
mov edi, 0x151adaa6
add edi, 0xdff7d1d4
mov esi, dword [edx]
xor esi, edi
xor dword [ebp - 0x18], eax
mov dword [ebx], esi
add dword [ebp - 0x2c], edi
add ebx, 4
add edx, 4
loop 0x401d7d
add eax, 0x132727e2
add eax, 0xecda2121
mov ebx, eax
add eax, 0xf4929d6
sub eax, 0xf4929d1
mov ecx, 0xb5fe6e54
add ecx, 0x4a4191ac
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
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 0x402990
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x405130], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40507c], ecx
mov dword [0x4050b0], 0x30
mov dword [0x4050b4], 2
mov dword [0x4050bc], 0
mov dword [0x4050c0], 0
mov dword [0x4050b8], 0x402f20
jmp 0x4029e3
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x4050c4], eax
mov dword [0x4050d0], 0xf
mov dword [0x4050d8], 0x4040ad
mov dword [0x405074], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4050c8], eax
mov dword [0x4050dc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4050cc], eax
push 0x4050b0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x405074]
push 0
push 0
push 0x24e
push 0x281
push 0xfffff448
push 0xffffec78
push 0x40000
push str.mini
push str.second
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405128], eax
xor eax, eax
jmp 0x402a82
push 5
push dword [0x405128]
call dword [sym.imp.user32.dll_ShowWindow]
test eax, eax
jne 0x402ab6
push 0
push 0x24f
push 0x282
push 0xfffff447
push 0xffffec77
push dword [0x405128]
call dword [sym.imp.user32.dll_MoveWindow]
push dword [0x405128]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4050e0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402aef
push 0x4050e0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4050e0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402ac2
mov eax, dword [0x4050e8]
jmp 0x402afc
call 0x40213f
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 0x41ca1c
Capabilities:
Get common file path

Disassembly:
push 0x60
mov eax, 0x49b730
call fcn.0044308b
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.0041bab2
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 0x41cac4
push dword [ebp - 0x64]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x41cad7
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.0041ae08
cmp dword [esi + 0x14], 0x10
pop ecx
pop ecx
mov ecx, esi
jb 0x41ca90
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
cmp byte [eax + ecx - 1], 0x5c
je 0x41caaf
mov ebx, 0x4a6a84
push ebx
call fcn.0046c8c0
pop ecx
push eax
push ebx
mov ecx, esi
call fcn.0040ed7b
cmp byte [ebp - 0x5c], 0
je 0x41cabc
push edi
call fcn.00442db9
pop ecx
mov eax, esi
call fcn.00443035
ret
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x28]
call fcn.00408fdd
mov byte [ebp - 4], 3
jmp 0x41cae8
push str.Cannot_get_temporary_directory_long_path_name
lea ecx, [ebp - 0x28]
call fcn.00408fdd
mov byte [ebp - 4], 2
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.00413a05
push 0x4e0308
lea eax, [ebp - 0x54]
push eax
call fcn.0046426c
int3

Function at 0x41ce78
Capabilities:
Create thread

Disassembly:
push 0x90
mov eax, 0x49aaf1
call fcn.0044308b
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x9c]
push ecx
xor edi, edi
push edi
push esi
push eax
push dword [esi + 0x14]
push edi
call fcn.0046ebc3
mov ecx, dword [ebp - 0x9c]
add esp, 0x18
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
test eax, eax
je 0x41cf00
cmp dword [esi + 0x10], edi
je 0x41cef8
push dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x41cef8
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x40]
call fcn.00408fdd
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x98]
call fcn.00413a05
push 0x4e0308
lea eax, [ebp - 0x98]
jmp 0x41cf25
call fcn.00443035
ret 8
push str.cannot_create_thread
lea ecx, [ebp - 0x28]
call fcn.00408fdd
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x6c]
call fcn.00413a05
push 0x4e0308
lea eax, [ebp - 0x6c]
push eax
call fcn.0046426c
int3
Function at 0x421763
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x421768
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x421787
push 0
push 0x5e
push str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004124e9
add esp, 0x10
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x421792
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4217bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x4217c0
cmp eax, 3
jbe 0x4217b8
cmp eax, 0xf
je 0x4217b8
cmp eax, 0x15
jne 0x4217c0
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.004218d4
int3

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x421c52
push 0
push 0x9f
push str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004124e9
add esp, 0x10
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x421c5d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421c70
shr eax, 4
and al, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.004218d4
int3

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

Disassembly:
jmp 0x421c7f
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x421ca1
push 0
push 0xaa
push str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.004124e9
add esp, 0x10
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x421cac
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421cc7
and eax, 0x410
cmp eax, 0x400
pop esi
sete al
ret
lea eax, [esi + 4]
push eax
call fcn.004218d4
int3
Function at 0x42236e
Capabilities:
Query environment variable

Disassembly:
push 0x60
mov eax, 0x49ba2b
call fcn.0044308b
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.0041aca0
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 0x422440
push edi
lea ecx, [ebp - 0x68]
call fcn.0041bab2
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.0041ae23
add esp, 0xc
cmp byte [ebp - 0x5c], 0
je 0x42241e
push dword [ebp - 0x60]
call fcn.00442db9
pop ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x422438
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x28]
call fcn.00405bdd
pop ecx
pop ecx
mov eax, esi
call fcn.00443035
ret
push 0
push ebx
lea ecx, [ebp - 0x54]
call fcn.00413608
push 0x4e0248
lea eax, [ebp - 0x54]
push eax
call fcn.0046426c
int3

Function at 0x4224cf
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.00464090
mov eax, 0x288
push eax
mov dword [ebp - 4], eax
call fcn.00443c6a
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 0x42251c
push edi
call fcn.00442db9
push dword [ebp - 4]
call fcn.00443c6a
pop ecx
pop ecx
mov edi, eax
jmp 0x422520
test eax, eax
jne 0x42256a
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x422563
mov esi, edi
test edi, edi
je 0x422563
test bl, bl
jne 0x422563
cmp dword [esi + 0x1a0], 6
jne 0x42255d
cmp dword [esi + 0x190], 6
jne 0x42255d
push 6
lea eax, [esi + 0x194]
inc bl
push eax
push dword [ebp + 8]
call fcn.00463590
add esp, 0xc
mov esi, dword [esi]
test esi, esi
jne 0x422531
push edi
call fcn.00442db9
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ec7b
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 [0x4f58e4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov dword [esi + 8], eax
push dword [0x4f58e4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret 8
Function at 0x42ec7f
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 [0x4f58e4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov dword [esi + 8], eax
push dword [0x4f58e4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret 8

Function at 0x4306b9
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 0x4307a8
cmp byte [esp + 0x24], 0
mov ebp, dword [esp + 0x20]
je 0x43070e
test byte [ebp], 8
je 0x43070e
xor eax, eax
mov dword [esp + 0x1c], eax
call fcn.0042e194
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push 0x80
push 0xffff
push ebp
push edi
call fcn.00431dc1
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.0042e59e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4307a8
call fcn.004322a6
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x2733
call fcn.0040b4c8
pop ecx
pop ecx
test al, al
jne 0x430770
call fcn.004322a6
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x4d5
call fcn.0040b4c8
pop ecx
pop ecx
test al, al
je 0x4307b3
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.0042e59e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4307b3
call fcn.0042e194
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 0x431589
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, 0x4f58f0
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x4315d3
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4315e9
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 0x431cac
Capabilities:
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x49ec79
call fcn.00443057
mov edi, ecx
xor edx, edx
lea eax, [edi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x431cde
call fcn.0043224e
call fcn.0042e194
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [ecx + 4], eax
xor eax, eax
jmp 0x431d3d
xor esi, esi
mov dword [ebp - 0x10], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.0042ec7b
mov byte [ebp - 4], 2
jmp 0x431d07
cmp esi, 0xffffffff
lea eax, [esi + 1]
cmove eax, esi
mov esi, eax
push dword [ebp + 8]
mov ecx, edi
push ebx
call fcn.00430e28
test eax, eax
jne 0x431cfc
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
push dword [0x4f58e4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x431d3b
push dword [ebp - 0x10]
call fcn.0044418f
pop ecx
mov eax, esi
call fcn.00443020
ret 4

Function at 0x431dc1
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
or edi, 0xffffffff
cmp dword [ebp + 8], edi
jne 0x431de5
call fcn.004322a6
mov ecx, dword [ebp + 0x20]
mov dword [ecx + 4], eax
mov eax, edi
mov dword [ecx], 0x2719
jmp 0x431e98
cmp dword [ebp + 0x10], 0xa5100000
push esi
mov esi, dword [ebp + 0x14]
jne 0x431e47
cmp esi, 2
jne 0x431e0d
call fcn.004322a6
mov ecx, dword [ebp + 0x20]
mov dword [ecx], 0x2726
mov dword [ecx + 4], eax
jmp 0x431e95
cmp esi, 1
jne 0x431e5e
cmp dword [ebp + 0x1c], 4
jne 0x431df7
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.0042e194
mov ecx, dword [ebp + 0x20]
and dword [ecx], 0
mov dword [ecx + 4], eax
xor eax, eax
jmp 0x431e97
cmp dword [ebp + 0x10], 0xffff
jne 0x431e5e
cmp esi, 0x80
jne 0x431e5e
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.0042e59e
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x431e95
call fcn.0042e194
and dword [esi], edi
mov dword [esi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x4321da
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4ee2c4]
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 0x432223
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.0044300f
leave
ret
Function at 0x436b4a
Capabilities:
Set thread local storage value

Disassembly:
push 0x28
mov eax, 0x49f2ef
call fcn.00443057
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004394db
pop ecx
test eax, eax
je 0x436b94
xor edi, edi
lea ecx, [ebp + 0xb]
push edi
call fcn.004382ee
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call fcn.00436936
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0042fa85
jmp 0x436c37
mov esi, dword [ebp + 0xc]
push esi
push 0x38
mov dword [ebp - 0x28], esi
call fcn.00430690
pop ecx
xor edi, edi
mov dword [ebp - 0x24], eax
pop ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 1
mov ecx, eax
push esi
call fcn.00437a90
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x10]
mov ecx, esi
push eax
push ebx
mov dword [ebp + 0xc], eax
call fcn.00439b1d
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
test al, al
je 0x436c2b
push dword [ebx]
lea ecx, [ebp - 0x34]
call fcn.00437fa0
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
call fcn.0042e194
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [esi + 0x14]
call fcn.004397d3
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0043898d
mov byte [ebp - 4], 1
push dword [ebp - 0x2c]
push dword [0x4f58f8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0043ab81
call fcn.00443020
ret 8
Function at 0x43ae34
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x43ae4f
push 0
push 0
jmp 0x43aeb8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x43ae62
push 0
push 0x2719
jmp 0x43aeb8
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x18], 0
push edi
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x43ae9b
mov eax, 0x2746
jmp 0x43aea8
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test edi, edi
pop edi
je 0x43aec5
cmp eax, 0x3e5
je 0x43aec5
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.00431909
jmp 0x43aed0
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.00431980
pop esi
pop ebp
ret 0x18

Function at 0x43aed5
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x43aef0
push 0
push 0
jmp 0x43af46
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x43af03
push 0
push 0x2719
jmp 0x43af46
and dword [ebp + 0x18], 0
lea ecx, [ebp + 0x18]
push esi
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
pop esi
je 0x43af53
cmp eax, 0x3e5
je 0x43af53
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.00431909
jmp 0x43af5e
push dword [ebp + 0x1c]
mov ecx, dword [edi + 4]
call fcn.00431980
pop edi
pop ebp
ret 0x18

Function at 0x43d330
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp + 8]
push 0x20
push 0
push eax
mov dword [ebp - 4], edi
call fcn.00464090
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x24], eax
mov eax, esi
jb 0x43d361
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x43d38f
push dword [ebp - 4]
mov ecx, edi
call fcn.0043d05b
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
pop edi
pop esi
leave
ret
push esi
push eax
call fcn.0043d24a
int3
Function at 0x43d96f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ee2c4]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43d9b1
cmp dword [ebp - 0x7c], 6
jb 0x43d9b1
jne 0x43d9ad
cmp dword [ebp - 0x78], 2
jb 0x43d9b1
xor al, al
jmp 0x43d9b3
mov al, 1
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0044300f
add ebp, 0x98
leave
ret

Function at 0x43ed12
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ee2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
mov edi, ecx
call fcn.0043d8fa
cmp dword [edi + 8], 0xffffffff
je 0x43ed7c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp byte [edi + 0x20], 0
mov esi, eax
je 0x43ed60
test esi, esi
jns 0x43ed69
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x43ed31
test esi, esi
jns 0x43ed69
call fcn.0043e1d6
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044300f
leave
ret 0xc
push 0
lea ecx, [ebp - 0x30]
call fcn.0043cb22
push 0x4e7b98
lea eax, [ebp - 0x30]
push eax
call fcn.0046426c
int3

Function at 0x43ee9a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ee2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x43eed8
push 1
push 1
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43eeca
call fcn.0043e1d6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044300f
leave
ret 4
push 0
lea ecx, [ebp - 0x30]
call fcn.0043cb22
push 0x4e7b98
lea eax, [ebp - 0x30]
push eax
call fcn.0046426c
int3

Function at 0x43ef47
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ee2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x43ef8b
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x43ef7d
call fcn.0043e1d6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044300f
leave
ret 0x10
push 0
lea ecx, [ebp - 0x30]
call fcn.0043cb22
push 0x4e7b98
lea eax, [ebp - 0x30]
push eax
call fcn.0046426c
int3