joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c1d0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x41c209
push eax
lea ecx, [ebp - 0x4c]
mov ebx, 1
call fcn.004055b0
mov esi, eax
jmp 0x41c225
xor eax, eax
mov dword [ebp - 0x20], 7
mov ebx, 2
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
lea esi, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
cmp dword [esi + 0x14], 8
jae 0x41c257
mov eax, dword [esi + 0x10]
inc eax
je 0x41c262
add eax, eax
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00420b40
add esp, 0xc
jmp 0x41c262
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
test bl, 2
je 0x41c2ae
and ebx, 0xfffffffd
cmp dword [ebp - 0x20], 8
jb 0x41c29a
push dword [ebp - 0x34]
call fcn.00420949
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
test bl, 1
je 0x41c2c4
cmp dword [ebp - 0x38], 8
jb 0x41c2c4
push dword [ebp - 0x4c]
call fcn.00420949
add esp, 4
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
push eax
call fcn.0041bca0
test al, al
je 0x41c2e6
mov eax, dword [str.Mozilla_5.0__iPhone__CPU_iPhone_OS_6_0_like_Mac_OS_X__AppleWebKit_536.26__KHTML__like_Gecko__Version_6.0_Mobile_10A5376e_Safari_8536.25]
test eax, eax
jne 0x41c30a
push eax
mov dword [edi], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 8], 8
pop edi
pop esi
pop ebx
jb 0x41c2fa
push dword [ebp - 0x1c]
call fcn.00420949
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 0xc
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
jne 0x41c2dd
push 0x8007000e
call fcn.0040e310
int3
Function at 0x41e870
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc68
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00421940
add esp, 0xc
mov dword [ebp - 0xc14], 0xc
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc10], 0
mov dword [ebp - 0xc0c], 1
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x40
mov edi, eax
mov dword [ebp - 0xc68], 0x44
lea eax, [ebp - 0xc64]
push 0
push eax
call fcn.00421940
add esp, 0xc
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xc24], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [ebp - 0xc00], 0
xor eax, eax
mov dword [ebp - 0xc3c], 1
mov word [ebp - 0xc38], ax
lea eax, [ebp - 0xbfc]
push eax
call fcn.0041e7e0
add esp, 4
lea eax, [ebp - 0x20c]
cmp dword [ebp - 0xbe8], 8
lea ecx, [ebp - 0xbfc]
cmovae ecx, dword [ebp - 0xbfc]
push 0
push eax
push 0x104
push 0
push dword [0x451090]
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 2
push 1
push 0
lea eax, [ebp - 0xc00]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41ea73
test edi, edi
je 0x41ea7a
cmp word [ebp - 0x20c], 0
je 0x41ea73
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.0040e530
add esp, 8
test eax, eax
je 0x41ea7a
push ebx
call fcn.0041e720
xor eax, eax
push 0x9d6
push eax
mov word [ebp - 0xbe4], ax
lea eax, [ebp - 0xbe2]
push eax
call fcn.00421940
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4540b8
push dword [ebp - 0xc00]
lea eax, [ebp - 0xbe4]
push edi
push 0x4412b8
push 0xffffffffffffffff
push 0x4ec
push eax
call fcn.004220a0
add esp, 0x20
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0xc68]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0xbe4]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41ea73
mov eax, dword [ebp - 0xc24]
push 0xffffffffffffffff
mov dword [ebp - 0xc04], eax
lea eax, [ebp - 0xc08]
push 0
push eax
push 2
mov dword [ebp - 0xc08], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0xc24]
call esi
push dword [ebp - 0xc20]
call esi
test edi, edi
je 0x41ea7a
push edi
call esi
cmp dword [ebp - 0xbe8], 8
pop edi
pop esi
pop ebx
jb 0x41ea94
push dword [ebp - 0xbfc]
call fcn.00420949
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
Function at 0x41f160
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x451094]
cmp eax, 0xffffffff
jne 0x41f283
push 0x110
lea eax, [ebp - 0x114]
mov dword [0x451094], 0
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f27e
cmp dword [ebp - 0x108], 2
jne 0x41f27e
mov ecx, dword [ebp - 0x114]
cmp ecx, 5
jne 0x41f216
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x41f1fe
cmp eax, 2
jne 0x41f27e
mov dword [0x451094], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
mov eax, 1
mov dword [0x451094], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
cmp ecx, 6
jne 0x41f25b
mov ecx, dword [ebp - 0x110]
test ecx, ecx
jne 0x41f23d
mov eax, 3
mov dword [0x451094], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, 1
setne al
add eax, 4
mov dword [0x451094], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
mov eax, dword [0x451094]
cmp ecx, 6
mov edx, 8
cmova eax, edx
mov dword [0x451094], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
mov eax, dword [0x451094]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret
Function at 0x41f2a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.0041f160
push 0
push 0x8000000
push 3
push 0
push 7
push SysReAllocStringLen
cmp eax, 1
jle 0x41f36c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f395
mov ebx, 0x100000
cmp dword [ebp + 0x10], ebx
push 4
cmova ebx, dword [ebp + 0x10]
push 0x1000
push ebx
push 0
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x41f38e
xor edi, edi
lea ecx, [ebp - 4]
push edi
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f34c
mov ebx, dword [ebp + 0xc]
mov edi, edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41f34c
test ebx, ebx
je 0x41f333
cmp edi, ebx
sbb eax, eax
neg eax
je 0x41f34c
push 0
lea eax, [ebp - 4]
add edi, ecx
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f320
push 0x8000
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f395
push 9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41f39e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push edi
mov dword [ebp - 8], eax
call fcn.0041f4e0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f3e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push 0
jne 0x41f3f2
call fcn.0041f420
pop ebp
ret
push 0
push 0
push fcn.0041f420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41f410
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret

Function at 0x41f4e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41f533
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
lea edx, [esi - 1]
test eax, eax
mov ecx, 0x1000
cmove eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
add edx, eax
cmp eax, edx
jae 0x41f531
mov cl, byte [eax]
add eax, dword [ebp - 0x20]
cmp eax, edx
jb 0x41f528
mov al, byte [edx]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x434941
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x451270]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00426981
mov dword [ebp - 0x14], eax
cmp dword [0x455230], esi
jne 0x434a34
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4349c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x434b14
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x434b14
push 0x447ebc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x434b14
push eax
call ebx
push 0x447ec8
push edi
mov dword [0x455230], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x455234], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x455238], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x455240], eax
test eax, eax
je 0x434a31
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45523c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x434a59
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x434a4c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x434a6e
push 4
pop eax
jmp 0x434b16
cmp dword [ebp - 0x14], esi
je 0x434a6e
push dword [0x455230]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x434a53
mov eax, dword [0x45523c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x434acc
cmp dword [0x455240], edi
je 0x434acc
push eax
call ebx
push dword [0x455240]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x434acc
test eax, eax
je 0x434acc
call ecx
test eax, eax
je 0x434ac1
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 0x434ac1
test byte [ebp - 8], 1
jne 0x434acc
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x434afc
mov eax, dword [0x455234]
cmp eax, edi
je 0x434af9
push eax
call ebx
test eax, eax
je 0x434af9
call eax
mov esi, eax
test esi, esi
je 0x434af9
mov eax, dword [0x455238]
cmp eax, edi
je 0x434af9
push eax
call ebx
test eax, eax
je 0x434af9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x455230]
call ebx
test eax, eax
je 0x434b14
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x434b16
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421184
mov esp, ebp
pop ebp
ret
Function at 0x4052bf
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, 0x4000000
je 0x4052d2
mov eax, 0x200
push esi
mov esi, ecx
and esi, 0x20000000
push edi
mov edx, 0x40000000
mov edi, 0x80000000
je 0x4052f0
test edx, ecx
je 0x4052f0
test edi, ecx
jne 0x40531e
test esi, esi
je 0x4052fd
test edx, ecx
je 0x4052fd
or eax, 0x20
jmp 0x405321
mov esi, ecx
and esi, edx
je 0x40530c
test edi, ecx
je 0x405315
or eax, 4
jmp 0x405321
test edi, ecx
je 0x405315
or eax, 8
jmp 0x405321
test esi, esi
je 0x40531e
or eax, 2
jmp 0x405321
or eax, 0x40
pop edi
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 0x40388d
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0xfffffff6
xor eax, eax
mov bl, byte [edx + esi + 0xa]
xor bl, byte [ecx + esi + 0xa]
or al, bl
inc esi
jne 0x403896
pop esi
pop ebx
ret
Function at 0x4094e3
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x80
jb 0x409697
movdqu xmm4, xmmword [edx]
not ecx
movdqu xmm3, xmmword [edx + 0x10]
movdqu xmm2, xmmword [edx + 0x20]
movdqu xmm1, xmmword [edx + 0x30]
movdqa xmm5, xmmword [0x4ee430]
add edx, 0x40
add eax, 0xffffffc0
movd xmm0, ecx
pxor xmm0, xmm4
movdqa xmm4, xmmword [0x4ee420]
movdqa xmm6, xmm0
movdqa xmm7, xmm0
movdqu xmm0, xmmword [edx]
add eax, 0xffffffc0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm7, xmm5, 0x11
pxor xmm0, xmm6
movdqu xmm6, xmmword [edx + 0x10]
pxor xmm0, xmm7
movdqa xmm7, xmm3
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
movdqu xmm6, xmmword [edx + 0x20]
pxor xmm3, xmm7
movdqa xmm7, xmm2
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
movdqu xmm6, xmmword [edx + 0x30]
add edx, 0x40
cmp eax, 0x3f
pxor xmm2, xmm7
movdqa xmm7, xmm1
pclmulqdq xmm1, xmm5, 0x11
pclmulqdq xmm7, xmm4, 0
pxor xmm7, xmm6
pxor xmm1, xmm7
ja 0x409525
movdqa xmm4, xmmword [0x4ee440]
movdqa xmm5, xmmword [0x4ee450]
movdqa xmm6, xmm0
cmp eax, 0x10
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm4, 0
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm2, xmm4, 0
pxor xmm0, xmm2
pxor xmm0, xmm1
jb 0x40962f
movdqu xmm1, xmmword [edx]
movdqa xmm2, xmm0
add eax, 0xfffffff0
pclmulqdq xmm0, xmm5, 0x11
add edx, 0x10
pclmulqdq xmm2, xmm4, 0
cmp eax, 0xf
pxor xmm2, xmm1
pxor xmm0, xmm2
ja 0x409608
movdqa xmm1, xmmword [0x4ee450]
pxor xmm2, xmm2
test eax, eax
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
movss xmm2, xmm0
psrldq xmm0, 4
pclmulqdq xmm2, xmmword [0x4ee460], 0
pxor xmm0, xmm2
pxor xmm2, xmm2
movss xmm2, xmm0
pclmulqdq xmm2, xmmword [0x4ee470], 0x10
pblendw xmm2, xmm1, 0xfc
pclmulqdq xmm2, xmmword [0x4ee480], 0
pxor xmm2, xmm0
pextrd ecx, xmm2, 1
not ecx
je 0x4096a1
push eax
call fcn.0040938e
add esp, 4
ret
mov eax, ecx
ret
Function at 0x40d4ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x298
mov dword [esp + 0x18c], ecx
xor ecx, ecx
xor eax, eax
imul ebx, dword [edx + 0x28], 0x34
movsd xmm0, qword [edx + 0x2c]
mov esi, edx
inc ecx
cmp dword [edx + 0x1c], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0xac], ecx
mov ecx, dword [edx + 0x20]
movsd qword [esp + 0x19c], xmm0
mov dword [esp + 0x1a4], eax
call fcn.0040d54c
Function at 0x438ece
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
cmp word [edx], 0
mov ecx, dword [0x537f60]
mov eax, 2
mov edi, 0x17
mov ebx, edx
cmove edi, eax
cmp ecx, 3
jne 0x438feb
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_socket]
cmp eax, 0xffffffff
je 0x438f38
lea ebp, [esp + 4]
mov edi, eax
mov dword [ebp], 1
push ebp
push 0x8004667e
push eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
je 0x438f55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x438f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esi + 8], ebx
mov dword [esi + 4], 0
mov dword [esi], 1
jmp 0x43902f
cmp word [ebx], 0
je 0x438f77
mov eax, dword [ebx + 0x18]
movups xmm0, xmmword [ebx + 4]
mov edx, 0x1c
mov cx, 0x17
mov dword [esp], eax
movzx eax, word [ebx + 0x1c]
add ebx, 0x14
jmp 0x438f8a
movzx eax, word [ebx + 6]
add ebx, 2
mov cx, 2
xorps xmm0, xmm0
mov edx, 0x10
rol ax, 8
mov word [esp + 4], cx
mov word [esp + 6], ax
mov ebx, dword [ebx]
mov eax, dword [esp]
mov dword [esp + 8], ebx
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], eax
push edx
push ebp
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x438fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x20]
mov ebx, eax
mov dword [ecx + 4], eax
mov dword [ecx], 0
call fcn.0040b924
cmp al, 0xd
jne 0x439018
xor ecx, ecx
mov edx, ebx
call fcn.004373a1
xor eax, eax
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi], eax
jmp 0x43902f
lea eax, [esp + 0x20]
lea ebp, [esp + 4]
mov ecx, 0x537f60
xor edx, edx
mov byte [eax], 1
mov dword [ebp], eax
push 0x520960
push 0x520814
push ebp
call fcn.004ebd00
add esp, 0xc
jmp 0x438ef9
mov dword [esi + 8], ebx
mov dword [esi + 4], 0
mov dword [esi], 1
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43ae5d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [section..data]
mov edi, ecx
test eax, eax
je 0x43afdd
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x43ae8f
cmp dword [eax + 4], 0
mov esi, eax
je 0x43ae8f
add esi, 4
jmp 0x43afd4
mov eax, dword [section..data]
test eax, eax
je 0x43afec
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x43afd2
mov esi, eax
test eax, eax
jne 0x43aef4
mov al, byte [0x538038]
mov ecx, 8
mov edx, 4
call fcn.00439850
test eax, eax
je 0x43b05a
mov dword [eax], section..data
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [section..data]
test eax, eax
je 0x43affb
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
je 0x43af08
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
jne 0x43afc0
lea ecx, [esp + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 0x10], xmm0
movups xmmword [ecx], xmm0
call fcn.0043b134
test eax, eax
jne 0x43b00a
movups xmm0, xmmword [esp + 0x30]
movups xmm1, xmmword [esp + 0x40]
mov ecx, 0x158
mov edx, 8
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm1
mov al, byte [0x538038]
call fcn.00439850
test eax, eax
je 0x43b04b
mov ebx, eax
xor eax, eax
xor edi, edi
inc eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov eax, ebx
add eax, 8
push pe_nt_image_headers32
push edi
push eax
call fcn.004e4930
add esp, 0xc
movups xmm0, xmmword [esp + 0x10]
movups xmm1, xmmword [esp]
mov dword [ebx + 0x108], 0x40
mov eax, 0x10000
movups xmmword [ebx + 0x110], xmm0
movups xmmword [ebx + 0x120], xmm1
xorps xmm1, xmm1
movups xmmword [ebx + 0x130], xmm1
mov dword [ebx + 0x144], edi
mov dword [ebx + 0x140], eax
mov dword [ebx + 0x14c], edi
mov dword [ebx + 0x148], eax
mov dword [ebx + 0x150], edi
add esi, 4
mov ecx, dword [esi]
mov dword [esi], ebx
test ecx, ecx
je 0x43afd4
call fcn.0043b069
jmp 0x43afd4
xor esi, esi
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
ret
mov ecx, section..data
call fcn.004ec0d0
jmp 0x43ae73
mov ecx, section..data
call fcn.004ec0d0
jmp 0x43ae9d
mov ecx, section..data
call fcn.004ec0d0
jmp 0x43aeec
xor edx, edx
lea ecx, [esp + 0x20]
lea esi, [esp + 0x28]
mov dword [ecx], eax
mov dword [esi], ecx
mov dword [ecx + 4], 0x521494
lea ecx, [esp + 0x30]
inc edx
mov dword [esi + 4], 0x43b0ef
mov dword [ecx], 0x52146c
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edx
mov edx, 0x521474
call fcn.004e88e0
mov ecx, 8
mov edx, 0x158
call fcn.004e8590
mov ecx, 4
mov edx, 8
call fcn.004e8590
Function at 0x43b134
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebx
push edi
push esi
mov ebx, ecx
push 2
push 0x20
push ecx
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor edi, edi
cmp eax, 0xc0000000
jb 0x43b180
mov esi, eax
push 0x20
push ebx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x43b180
mov al, byte [0x538038]
mov ecx, 4
mov edx, 4
call fcn.00439850
test eax, eax
je 0x43b186
mov edi, eax
add esi, 0x80000000
mov dword [eax], esi
mov eax, edi
pop esi
pop edi
pop ebx
ret
mov ecx, 4
mov edx, 4
call fcn.004e8590