joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42560c
Capabilities:
Delete file

Disassembly:
push 0x6c
mov eax, 0x46f07a
call fcn.00454b83
mov esi, ecx
lea edi, [esi + 0x160]
push str.Bootstrapper::forceMFCStudioCleanup___deleteCurVersionKeys
push edi
call fcn.004087a0
pop ecx
pop ecx
lea ecx, [ebp - 0x74]
call fcn.0042e3c0
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x425641
mov eax, dword [eax]
mov dl, byte [esi + 0x4d]
push eax
mov ecx, edi
call fcn.0042e126
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x74]
call fcn.00408690
mov ecx, esi
call fcn.00425756
mov al, byte [esi + 0x4d]
mov byte [ebp - 0x78], al
push dword [ebp - 0x78]
lea eax, [ebp - 0x5c]
push eax
call fcn.00420796
push str.RobloxStudioLauncher.exe
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
call fcn.00408580
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00428b8a
pop ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Bootstrapper::forceMFCStudioCleanup___deleting_studio_stub:__S
push edi
call fcn.004087a0
add esp, 0xc
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.00430461
test al, al
je 0x4256de
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call fcn.00408690
lea ecx, [ebp - 0x44]
call fcn.00408690
lea ecx, [ebp - 0x5c]
call fcn.00408690
call fcn.00454b32
ret
Function at 0x425f9c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f60c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x425fe8
xor eax, eax
jmp 0x42616a
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x426016
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x426016
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x42616a
cmp dword [esi + 0x50], 0
je 0x426168
mov ecx, esi
call fcn.004274e9
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x42604a
push dword [esi + 0x50]
movsx eax, al
push eax
call fcn.00451528
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x426168
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
push 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0xf
call fcn.004174c0
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
cmp edi, 0x10
mov edi, dword [esi]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
push dword [esp + 0x3c]
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x42615f
cmp eax, 1
jg 0x426140
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x28]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x42610d
push dword [esi + 0x50]
lea eax, [esp + 0x2c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.004523bc
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x42615f
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x13]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x42613b
test edx, edx
jne 0x42607a
cmp dword [esp + 0x38], 0x20
jae 0x42615f
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.00426e21
jmp 0x426076
mov ebx, dword [ebp + 8]
jmp 0x42615f
cmp eax, 3
jne 0x42615f
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
movsx eax, byte [esp + 0x17]
push eax
call fcn.00451528
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [esp + 0x28]
call fcn.00404060
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret 4
Function at 0x427351
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46eb0c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x42749e
cmp byte [esi + 0x45], bl
je 0x42749e
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4273b5
xor al, al
jmp 0x4274a0
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004174c0
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x42741f
dec eax
jne 0x427484
mov esi, dword [esp + 0x14]
jmp 0x427426
mov esi, dword [esp + 0x14]
mov byte [esi + 0x45], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x427465
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.004523bc
add esp, 0x10
cmp edi, eax
jne 0x42748d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
je 0x42748b
test edi, edi
jne 0x4273e4
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00426e21
jmp 0x4273dc
dec eax
dec eax
jne 0x427491
inc eax
jmp 0x42748f
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00404060
mov al, bl
jmp 0x4274a0
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret
Function at 0x42d10e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042d070
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x42d12e
mov eax, dword [edi]
jmp 0x42d130
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp + 8], eax
test eax, eax
je 0x42d1c0
push eax
call fcn.0044bd08
mov dword [esi + 4], eax
cmp dword [edi + 0x14], 8
pop ecx
jb 0x42d154
mov edi, dword [edi]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42d1c0
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10]
push eax
push 0x480388
push dword [esi + 4]
mov dword [ebp + 8], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42d1c0
lea eax, [ebp + 8]
push eax
lea edi, [esi + 8]
push edi
push str.VarFileInfoTranslation
push dword [esi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42d1bb
mov eax, dword [ebp + 8]
cmp eax, 4
jb 0x42d1bb
mov ecx, dword [edi]
shr eax, 2
mov dword [esi + 0xc], eax
mov ax, word [ecx]
mov word [esi], ax
mov ax, word [ecx + 2]
mov word [esi + 2], ax
xor ebx, ebx
inc ebx
jmp 0x42d1d1
cmp dword [esi + 4], ebx
je 0x42d1d1
push dword [esi + 4]
call fcn.004501f9
pop ecx
mov dword [esi + 4], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x42dbda
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470270
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x10], ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x42dc4b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], str.Attempt_to_delete_a_null_key
call fcn.0044f8e7
mov dword [esp + 0x18], vtable.std::runtime_error.0
push 0x48e968
lea eax, [esp + 0x1c]
push eax
call fcn.00454ac3
push esi
lea ecx, [esp + 0x1c]
call fcn.00408580
cmp dword [eax + 0x10], 0
lea ecx, [esp + 0x18]
sete bl
call fcn.00408690
test bl, bl
je 0x42dc92
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], str.Attempt_to_delete_an_empty_key
call fcn.0044f8e7
mov dword [esp + 0x18], vtable.std::runtime_error.0
push 0x48e968
lea eax, [esp + 0x1c]
jmp 0x42dc45
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jns 0x42dcc9
lea ecx, [esp + 0x14]
call fcn.0042d9e8
and dword [esp + 0x40], 0
push dword [eax]
push esi
push str.Failed_to_delete_key__S__S
push dword [esp + 0x1c]
call fcn.004087a0
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.00410c00
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret
Function at 0x42e126
Capabilities:
Delete registry value

Disassembly:
push 0x28
mov eax, 0x470482
call fcn.00454b83
mov bl, dl
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push str.deleteCurVersionKeys
push esi
mov dword [ebp - 4], eax
call fcn.004087a0
xor eax, eax
pop ecx
test bl, bl
sete al
pop ecx
push 0x20006
push 0x4841d8
lea ecx, [ebp - 0x34]
add eax, 0x80000001
push eax
call fcn.00414540
test eax, eax
js 0x42e1ca
push str.deleteCurVersionKeys___key_Opened
push esi
call fcn.004087a0
pop ecx
pop ecx
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0042e040
cmp dword [eax + 0x14], 8
jb 0x42e196
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push eax
push dword [ebp - 0x34]
call esi
lea ecx, [ebp - 0x28]
call fcn.00408690
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0042e0b3
cmp dword [eax + 0x14], 8
jb 0x42e1bc
mov eax, dword [eax]
push eax
push dword [ebp - 0x34]
call esi
lea ecx, [ebp - 0x28]
call fcn.00408690
lea ecx, [ebp - 0x34]
call fcn.0040fb90
call fcn.00454b32
ret
Function at 0x42efe1
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x4704b7
call fcn.00454b83
mov edi, edx
mov esi, ecx
push edi
push str.deleteDesktopShortcut____S
push esi
call fcn.004087a0
xor ebx, ebx
push ebx
push ebx
push ebx
push 6
pop edx
lea ecx, [ebp - 0x2c]
call fcn.0042ff61
add esp, 0x18
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x42f07e
push section..data
lea ecx, [ebp - 0x30]
call fcn.00410d70
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x30]
push str._s_s.lnk
push eax
call fcn.00413760
mov ecx, dword [ebp - 0x30]
add esp, 0x10
call fcn.00430461
test al, al
je 0x42f076
push dword [ebp - 0x30]
push str.deleteDesktopShortcut____S
push esi
call fcn.004087a0
add esp, 0xc
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
lea ecx, [ebp - 0x30]
call fcn.00410c00
lea ecx, [ebp - 0x2c]
call fcn.00408690
mov al, bl
call fcn.00454b32
ret

Function at 0x42f08e
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x4704ec
call fcn.00454b83
mov bl, dl
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
push str.deleteProgramsShortcut____S
push esi
call fcn.004087a0
xor edx, edx
test bl, bl
sete dl
push 1
push 0
push 0
lea ecx, [ebp - 0x28]
add edx, 3
call fcn.0042ff61
add esp, 0x18
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x42f12f
push section..data
lea ecx, [ebp - 0x2c]
call fcn.00410d70
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0x2c]
push str._s_s.lnk
push eax
call fcn.00413760
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
call fcn.00430461
test al, al
je 0x42f127
push dword [ebp - 0x2c]
push str.deleteProgramsShortcut____S
push esi
call fcn.004087a0
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call fcn.00410c00
lea ecx, [ebp - 0x28]
call fcn.00408690
call fcn.00454b32
ret
Function at 0x42f13d
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x28a0
call fcn.00461c20
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x289c], eax
and dword [esp + 4], 0
push esi
push edi
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x24]
push eax
mov edi, edx
mov esi, ecx
mov dword [esp + 0x10], 0x2880
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov ecx, eax
test ecx, ecx
jne 0x42f19e
lea edx, [esp + 0x20]
mov eax, dword [edx + 0x1a0]
cmp eax, 6
je 0x42f1ee
cmp eax, 0x47
je 0x42f1ee
mov edx, dword [edx]
test edx, edx
jne 0x42f188
push ecx
push str.getMacAddress___Could_not_get_mac_address____d
push edi
call fcn.004087a0
and dword [esp + 0x1c], 0
xor eax, eax
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push dword [esp + 0x10]
push str._08X
push esi
call fcn.0042fa5d
add esp, 0xc
mov ecx, dword [esp + 0x28a4]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret
movzx eax, byte [edx + 0x19b]
movzx ecx, byte [edx + 0x196]
push eax
movzx eax, byte [edx + 0x19a]
push eax
movzx eax, byte [edx + 0x199]
push eax
movzx eax, byte [edx + 0x198]
push eax
movzx eax, byte [edx + 0x197]
push eax
push ecx
movzx ecx, byte [edx + 0x195]
push ecx
movzx ecx, byte [edx + 0x194]
push ecx
push str._02x_02x_02x_02x_02x_02x_02x_02x
push esi
call fcn.0042fa5d
add esp, 0x28
jmp 0x42f1d8

Function at 0x42f4a1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470625
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x49b7f8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
add ecx, esi
push edi
mov edx, dword [ecx + 0xc]
and edx, 0xfffffffe
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], edi
cmove edx, eax
push edx
call fcn.00401ac0
push 1
push esi
lea ecx, [esp + 0x14]
call fcn.0042ca81
mov dword [esp + 0x38], edi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test byte [ecx + esi + 0xc], 6
jne 0x42f55f
mov ecx, dword [ecx + esi + 0x38]
push 1
push dword [ebp + 0x10]
mov eax, dword [ecx]
push edi
push edi
lea edx, [esp + 0x24]
push edx
call dword [eax + 0x28]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
adc ecx, dword [esp + 0x20]
cmp eax, dword [0x4764e0]
jne 0x42f55f
cmp ecx, dword [0x4764e4]
jne 0x42f55f
mov eax, dword [esi]
push edi
mov ecx, dword [eax + 4]
add ecx, esi
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], edi
cmove edx, eax
push edx
call fcn.00401ac0
or dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx + 0x38]
test ecx, ecx
je 0x42f57a
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43048d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4304a1
test al, 0x10
je 0x4304a1
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x430647
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x49b7f8]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x4a62e8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x430689
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x4a62ec
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0044f834
mov esp, ebp
pop ebp
ret

Function at 0x430846
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
xor edi, edi
push edi
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]
push edi
push 0x4a6224
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x430891
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4308a7
push method.Bootstrapper.virtual_168
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
leave
ret
Function at 0x4308ab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 1
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x430905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0041a313
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0043050d
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [ebx + 8], eax
cmp dword [esi + 8], ecx
jne 0x430950
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0041a313
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0043050d
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push 0x4309d7
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call fcn.0045301b
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4309be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x430990
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x43099f
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0041a313
mov edx, str.thread
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0043050d
test edi, edi
je 0x4309ce
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4311bd
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
je 0x431282
cmp byte [ebp + 8], 0
je 0x431208
test byte [eax], 8
je 0x431208
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0041a313
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.0043163d
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.00437e5f
mov edi, eax
test edi, edi
je 0x431282
call fcn.0041a313
cmp dword [esi + 4], eax
jne 0x431238
cmp dword [esi], 0x2733
je 0x43124a
call fcn.0041a313
cmp dword [esi + 4], eax
jne 0x43127e
cmp dword [esi], 0x4d5
jne 0x43127e
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.00437e5f
mov edi, eax
test edi, edi
jne 0x43128d
call fcn.0041a313
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431294
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x4312b5
call fcn.0041a313
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x4312e0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp + 0xc]
mov edx, esi
mov ecx, eax
call fcn.00437e5f
test eax, eax
jne 0x4312e3
call fcn.0041a313
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.0041a313
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2734
mov dword [ebp - 8], eax
call fcn.004304f0
test al, al
je 0x43131d
call fcn.0041a313
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
call fcn.004304f0
test al, al
jne 0x43135c
mov edx, esi
mov ecx, edi
call fcn.00431840
test eax, eax
js 0x43135c
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, edi
mov dword [ebp - 8], 4
call fcn.004316a1
add esp, 0x14
cmp eax, 0xffffffff
je 0x43135c
call fcn.0041a313
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret