joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41f64b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41f66f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41f68a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x420c3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x420c60
cmp dword [edi + 0x3c], 0
jne 0x420c60
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042c9d7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00420c8d
pop edi
pop esi
pop ebx
ret 8

Function at 0x422297
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4222cf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042507e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00425056
jmp 0x4222db
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x423a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x423ab2
call fcn.0042c9d7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x423ab2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x423aa9
xor eax, eax
jmp 0x423aba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00423ac0
pop edi
pop esi
pop ebx
ret 4

Function at 0x42d0b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x42d164
mov ecx, 0x44e020
call fcn.0042d887
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x42d142
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x42d120
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42d120
push ebx
push edi
push eax
call fcn.004262f1
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.00424e13
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x402db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a1478
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + 4]
lea edi, [ebx + 0x78]
push ecx
mov ecx, edi
call fcn.00404950
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
xor esi, esi
mov dword [edi + 8], esi
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
xor ecx, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], esi
mov edx, dword [edi + 4]
mov eax, dword [edx]
mov esi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
test esi, esi
mov edx, dword [edi + 4]
mov dword [esp + 0x20], edx
je 0x402e3f
cmp esi, edi
je 0x402e48
call fcn.0047ecbf
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
je 0x402ee6
test esi, esi
jne 0x402e63
call fcn.0047ecbf
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 4]
mov edx, dword [esp + 0x38]
jne 0x402e7d
call fcn.0047ecbf
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
add ebx, 0xc
test esi, esi
je 0x402eab
mov eax, ecx
sub eax, esi
sub edx, esi
sar eax, 2
sar edx, 2
cmp eax, edx
jae 0x402eab
mov edx, dword [ebx]
mov eax, ecx
add eax, 4
mov dword [ecx], edx
mov dword [esp + 0x34], eax
jmp 0x402ecd
cmp dword [esp + 0x30], ecx
mov esi, ecx
jbe 0x402eb8
call fcn.0047ecbf
push esi
lea eax, [esp + 0x30]
push eax
push ebx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
call fcn.00404b30
lea esi, [esp + 0x14]
call fcn.00407470
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
jmp 0x402e30
push ebx
lea ecx, [esp + 0x30]
call fcn.00402f30
cmp dword [ebx + 0x88], 0
je 0x402f02
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x402f13
push eax
call fcn.00460054
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408a29
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408a64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408a60
lea ebx, [ebx]
cmp esi, eax
jae 0x408a64
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408a50
cmp esi, eax
jb 0x408a6a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40cf80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a2131
mov eax, dword fs:[0]
push eax
push ebx
push edi
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [edi], vtable.CMarkupSTL.0
xor ebx, ebx
mov dword [edi + 0x1c], 0xf
mov dword [edi + 0x18], ebx
mov byte [edi + 8], bl
mov dword [esp + 0x14], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov byte [esp + 0x14], 1
call fcn.0042a020
mov dword [edi + 0x44], eax
mov byte [eax + 0x35], 1
mov eax, dword [edi + 0x44]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x44]
mov dword [eax], eax
mov eax, dword [edi + 0x44]
mov dword [eax + 8], eax
mov dword [edi + 0x48], ebx
push ebx
mov byte [esp + 0x18], 2
call fcn.0045d6a0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0xc
ret 4
Function at 0x414500
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
call fcn.004664d1
call fcn.0046915a
call fcn.0046915a
mov eax, dword [eax + 0xc]
push 0xdd
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0x20]
push edi
push 1
push 0x80
push eax
call ebx
mov ecx, dword [esi + 0x20]
push edi
push 0
push 0x80
push ecx
call ebx
call fcn.0041dc20
mov edx, dword [eax + 0x258]
push 0
mov ecx, esi
mov dword [esi + 0xbc], edx
call fcn.00462129
call fcn.0041dc20
add eax, 0x248
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edx
test eax, eax
jle 0x4145e1
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
sub ecx, edi
test ecx, ecx
jle 0x4145e1
test edx, edx
jge 0x4145b9
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
test edi, edi
jge 0x4145c7
xor edi, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x18]
mov ecx, edx
sub ecx, dword [esp + 0x10]
mov ebx, edi
sub ebx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x1c]
add ecx, ebx
jmp 0x4145ff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub eax, dword [esp + 0x10]
mov edi, 0x3c
sub edi, dword [esp + 0x14]
xor edx, edx
add ecx, edi
mov edi, 0x3c
push 1
mov dword [esp + 0x20], ecx
sub ecx, edi
push ecx
mov dword [esp + 0x20], eax
sub eax, edx
push eax
push edi
push edx
mov ecx, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edx
call fcn.004657ac
call fcn.00414da0
mov eax, 0xa
mov dword [esi + 0x12c], eax
mov dword [esi + 0x130], eax
pop edi
mov byte [esi + 0x14c], 1
mov dword [esi + 0x134], 0xff0000
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417020
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a0528
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c84d4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x58]
xor ebx, ebx
push ebx
mov dword [esp + 0x54], ebx
call fcn.0047eccf
cdq
mov dword [esp + 0x24], eax
add esp, 4
lea eax, [esp + 0x20]
push eax
mov esi, str._m__d__H:_M:_S
lea edi, [esp + 0x20]
mov dword [esp + 0x28], edx
call fcn.00408710
mov byte [esp + 0x50], 1
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4170a0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00408ca0
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x40], 0x10
jb 0x4170ec
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
jmp 0x4170f4
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x94]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x1004
push eax
call esi
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
lea edi, [ebp + 0x74]
push 1
mov ecx, edi
call fcn.00467afe
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x41712f
lea eax, [esp + 0x60]
mov edx, dword [ebp + 0x94]
push eax
push 1
push ebx
push ebx
push 0x1004
push edx
call esi
sub eax, 1
push eax
mov ecx, edi
call fcn.0046792c
mov eax, dword [ebp + 0x94]
push ebx
push ebx
push 0x1004
push eax
call esi
cmp eax, 0x64
jle 0x417172
mov ecx, dword [ebp + 0x94]
push ebx
push ebx
push 0x1008
push ecx
call esi
mov edx, dword [ebp + 0x94]
push ebx
push ebx
push 0x1004
push edx
call esi
push ebx
push ebx
mov edi, eax
mov eax, dword [ebp + 0x94]
push 0x1004
push eax
call esi
mov edx, dword [ebp + 0x94]
add edi, 0xffffffff
movzx ecx, di
push ecx
sub eax, 1
push eax
push 0x1013
push edx
call esi
mov esi, 0x10
cmp dword [esp + 0x40], esi
jb 0x4171c5
mov eax, dword [esp + 0x2c]
push eax
call fcn.00460054
add esp, 4
cmp dword [esp + 0x74], esi
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jb 0x4171e8
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00460054
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0047d992
add esp, 0x40
ret 0x20
Function at 0x425230
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, eax
mov esi, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x425252
mov edx, dword [esi]
xor dword [ecx], edx
add esi, 4
add ecx, 4
sub eax, 1
jne 0x425243
and edi, reloc.WS2_32.dll_closesocket
jns 0x42525f
dec edi
or edi, 0xfffffffc
inc edi
je 0x425276
xor eax, eax
test edi, edi
jle 0x425276
mov dl, byte [eax + esi]
xor byte [ecx], dl
add eax, 1
add ecx, 1
cmp eax, edi
jl 0x425267
pop edi
pop esi
ret
Function at 0x434460
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a00b8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0xc], 2
lea ecx, [esi + 0x28]
push edx
mov dword [esi + 0x24], eax
call fcn.00435b70
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
lea ecx, [esi + 0x30]
push edx
mov dword [esi + 0x2c], eax
call fcn.00435b70
lea eax, [esp + 0x24]
lea ecx, [esi + 0x34]
push eax
call fcn.00435b70
mov eax, 1
mov dword [esi + 0x38], eax
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4344e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xc], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43450e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x14
Function at 0x43500e
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x4c84d4]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0
push edi
mov edi, dword [esp + 0x20]
mov dword [esi + 0x3c], 0
jne 0x435041
mov eax, dword [esp + 0x24]
push eax
push edi
call fcn.0046b2bf
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047d992
add esp, 0x14
ret 8
xor eax, eax
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x435080
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4350d3
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
mov word [esp + 0xe], ax
push 0x10
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
jne 0x4350b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4350bd
push edi
lea ecx, [esi + 8]
call fcn.00408ab0
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047d992
add esp, 0x14
ret 8
mov eax, dword [esi + 0x24]
cmp eax, 2
je 0x43510c
cmp eax, 3
je 0x43510c
cmp eax, 4
je 0x43510c
push 0x2726
mov dword [esi + 0x3c], 7
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047d992
add esp, 0x14
ret 8
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
push ecx
push eax
mov ecx, esi
call fcn.0046b2bf
test eax, eax
jne 0x435148
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x435148
pop edi
mov dword [esi + 0x3c], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047d992
add esp, 0x14
ret 8
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push edi
lea ecx, [esi + 8]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0
call fcn.00408ab0
mov ecx, dword [esp + 0x18]
mov eax, 1
pop edi
mov dword [esi + 0x44], eax
pop esi
xor ecx, esp
call fcn.0047d992
add esp, 0x14
ret 8
Function at 0x442cf0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ecb0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea eax, [esi + 0x50]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x442d7f
push esi
call fcn.00443200
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
mov dword [esi + 0xb4], 0xffffffff
call edi
mov eax, dword [esi + 0x18]
push eax
call edi
push 0
push 4
push 0
push 0
push esi
push 0x442e90
call fcn.00469f2c
test eax, eax
mov dword [esi + 4], eax
je 0x442da7
mov ecx, dword [eax + 0x2c]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442dc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ec90
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea eax, [esi + 0x50]
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x442e5e
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x20]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x442e49
mov ecx, dword [esi + 8]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x442e46
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 4], edi
push esi
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.00443200
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443b30
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e720
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
test edi, edi
mov dword [ebp - 4], 0
je 0x443be0
mov ecx, dword [esi + 0x18]
lea eax, [esi + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x443be0
mov edx, dword [esi + 0x14]
push edx
mov dword [esi + 0x7c], 0x7d0
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 4
push 0
push 0
push esi
push 0x443cc0
call fcn.00469f2c
test eax, eax
mov dword [esi + 8], eax
je 0x443be0
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443c00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e700
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edi, [esi + 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x443c9a
push 0
push edi
call ebx
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0xc]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
cmp eax, 0x102
jne 0x443c8b
mov eax, dword [esi + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
cmp ecx, edi
je 0x443c88
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 8], edi
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret