joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b24f
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
push esi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x22]
push ebx
push eax
mov byte [ebp - 0x25], bl
call fcn.004d9310
mov eax, dword [ebp + 0x1f0]
lea ecx, [ebp - 0x24]
add esp, 0xc
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp dx, bx
jne 0x42b294
push edi
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004d9310
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x50], cx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push 0x8000000
xor eax, eax
inc eax
push eax
push ebx
mov dword [ebp - 0x54], eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x42b347
push 0x4e20
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42b30f
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or dword [ebp - 0x2c], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42b32d
cmp dword [ebp - 0x2c], ebx
jne 0x42b32d
mov byte [ebp - 0x25], 1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], ebx
je 0x42b33d
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x3c], ebx
je 0x42b347
push dword [ebp - 0x3c]
call esi
mov eax, dword [ebp + 0x1f0]
add eax, 0xfffffff0
call fcn.0040436d
mov ecx, dword [ebp + 0x1e4]
mov al, byte [ebp - 0x25]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5e0b
add ebp, 0x1e8
leave
ret
Function at 0x42b36f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x224
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x78]
push eax
xor ebx, ebx
push 1
push ebx
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v2.0
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov byte [ebp - 0x62], bl
mov byte [ebp - 0x63], bl
mov byte [ebp - 0x61], bl
call esi
test eax, eax
jne 0x42b3c3
push dword [ebp - 0x78]
mov byte [ebp - 0x63], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x70]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v2.0.50727
push edi
call esi
test eax, eax
jne 0x42b3e3
push dword [ebp - 0x70]
mov byte [ebp - 0x61], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x63], bl
jne 0x42b3ed
cmp byte [ebp - 0x61], bl
je 0x42b458
lea eax, [ebp - 0x68]
push eax
push 1
push ebx
push 0x530378
push edi
call esi
test eax, eax
jne 0x42b458
push 0x206
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x74], 0x104
call fcn.004d9310
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push str.InstallRoot
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b44f
cmp dword [ebp - 0x6c], 1
jne 0x42b44f
cmp word [ebp - 0x60], bx
je 0x42b44f
mov byte [ebp - 0x62], 1
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1a8]
mov al, byte [ebp - 0x62]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5e0b
add ebp, 0x1ac
leave
ret
Function at 0x42b473
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x1c
mov eax, 0x5029ff
call fcn.004d9fe8
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov ecx, 0x530234
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
call fcn.00403604
test eax, eax
je 0x42b56f
call fcn.0042b36f
test al, al
je 0x42b56f
lea eax, [ebp - 0x14]
push eax
push 3
push ebx
push str.SOFTWAREMicrosoft.NETFramework_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x42b50f
push 4
pop esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x53027c
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], ebx
jne 0x42b50f
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push 0x5302f4
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8003
call esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
call fcn.00404311
add eax, 0x10
mov dword [edi], eax
call fcn.0042b24f
pop ecx
cmp al, bl
je 0x42b549
mov byte [ebp - 0xd], 1
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], ebx
jne 0x42b56f
cmp dword [ebp - 0x18], ebx
jne 0x42b566
push str.NoGuiFromShim
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040436d
mov al, byte [ebp - 0xd]
call fcn.004da0c0
ret
Function at 0x42bdb8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x42bddd
xor al, al
jmp 0x42be5f
push ebx
push edi
lea edi, [esi + 1]
push edi
call fcn.004d4af2
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x42bdf3
xor al, al
jmp 0x42be5d
push edi
push 0
push ebx
call fcn.004d9310
add esp, 0xc
push ebx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42be53
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x5304d8
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42be53
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push 0x5304dc
call fcn.00424187
add esp, 0x14
mov byte [ebp - 1], 1
push ebx
call fcn.004d69c1
mov al, byte [ebp - 1]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42bfef
xor bl, bl
mov eax, dword [esp + 8]
add eax, 0xfffffff0
call fcn.0040436d
mov al, bl
pop ebx
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0x10
cmp al, 0x10
sete bl
jmp 0x42bfdf

Function at 0x42c15f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.004d9310
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jle 0x42c1c0
cmp word [ebp + eax*2 - 0x7e], 0x5c
je 0x42c1c0
push 0x5304fc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.004042b1
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, esi
call fcn.004d5e0b
add ebp, 0x190
leave
ret
Function at 0x42c1e1
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0xe4
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push 0xc
mov eax, 0x503df5
call fcn.004d9fe8
mov eax, dword [ebp + 0xf0]
mov dword [ebp - 0x14], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
push 0xc6
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.004d9310
add esp, 0xc
xor eax, eax
push 0x530500
lea ecx, [ebp]
mov dword [ebp - 0x18], esi
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], esi
mov word [ebp], ax
call fcn.00404441
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
jae 0x42c260
lea eax, [ebp + 0xf4]
push 0x64
push eax
lea eax, [ebp + 0x1c]
push 0x64
push eax
call fcn.004d6a8d
mov eax, dword [ebp]
add esp, 0x10
cmp dword [ebp + 0x14], 8
jae 0x42c27d
lea eax, [ebp]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x20106
push esi
push esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x42c2cb
lea eax, [ebp + 0x1c]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x42c2d7
lea eax, [ebp]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x20206
push esi
push esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42c319
lea eax, [ebp + 0x1c]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp]
call fcn.0040476f
push esi
push 1
lea ecx, [ebp + 0xf4]
call fcn.0040476f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe4]
xor ecx, ebp
call fcn.004d5e0b
add ebp, 0xe8
leave
ret

Function at 0x42ca42
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004d9310
add esp, 0xc
push 0
push 0x1c
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00404466
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.004d5e0b
leave
ret
Function at 0x42caa9
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x294
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x294], eax
push 0x1c
mov eax, 0x503ce6
call fcn.004d9fe8
xor eax, eax
push 0x206
mov word [ebp + 0x8c], ax
xor edi, edi
lea eax, [ebp + 0x8e]
push edi
push eax
mov ebx, ecx
call fcn.004d9310
add esp, 0xc
push 0x104
lea eax, [ebp + 0x8c]
push eax
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42cc80
lea eax, [ebp + 0x54]
push 0x5306ec
push eax
call fcn.0041237a
pop ecx
pop ecx
mov dword [ebp - 4], edi
xor eax, eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x8c]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x30], 7
mov dword [ebp + 0x2c], edi
call fcn.00404441
xor ebx, ebx
lea eax, [ebp + 0x70]
push 0x5306f0
inc ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00412359
pop ecx
pop ecx
push edi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.0040476f
cmp dword [ebp + 0x84], 8
mov eax, dword [ebp + 0x70]
jae 0x42cb76
lea eax, [ebp + 0x70]
push dword [ebp + 0x80]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040f5c1
cmp eax, 0xffffffff
je 0x42cba7
push edi
push ebx
lea ecx, [ebp + 0x70]
call fcn.0040476f
push edi
push ebx
lea ecx, [ebp + 0x54]
call fcn.0040476f
mov al, bl
jmp 0x42cc82
push 3
push edi
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp - 0x28]
call fcn.0040f593
lea ecx, [ebp + 0x38]
push 0x5306f4
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00412359
pop ecx
pop ecx
push edi
push ebx
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0040476f
cmp dword [ebp + 0x4c], 8
mov eax, dword [ebp + 0x38]
jae 0x42cbe5
lea eax, [ebp + 0x38]
push dword [ebp + 0x48]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040f5c1
cmp eax, 0xffffffff
je 0x42cc04
push edi
push ebx
lea ecx, [ebp + 0x38]
call fcn.0040476f
jmp 0x42cb8c
push 3
push edi
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040f593
lea ecx, [ebp]
push str.Program_Files__x86__
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00412359
pop ecx
pop ecx
push edi
push ebx
mov ecx, esi
call fcn.0040476f
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x42cc3e
lea eax, [ebp]
push dword [ebp + 0x10]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040f5c1
push edi
lea ecx, [ebp]
push ebx
cmp eax, 0xffffffff
je 0x42cc5d
call fcn.0040476f
jmp 0x42cbf8
call fcn.0040476f
push edi
push ebx
lea ecx, [ebp + 0x38]
call fcn.0040476f
push edi
push ebx
lea ecx, [ebp + 0x70]
call fcn.0040476f
push edi
push ebx
lea ecx, [ebp + 0x54]
call fcn.0040476f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x294]
xor ecx, ebp
call fcn.004d5e0b
add ebp, 0x298
leave
ret
Function at 0x42ef6c
Capabilities:
Check os version
Create process on windows

Disassembly:
push 0x164
mov eax, 0x50634e
call fcn.004da051
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
mov esi, ecx
push SysReAllocString
push esi
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x130], eax
cmp eax, 0xffffffff
je 0x42f0ad
push 0x38
lea eax, [ebp - 0x168]
push edi
push eax
call fcn.004d9310
add esp, 0xc
push 0x114
lea eax, [ebp - 0x128]
push edi
push eax
mov dword [ebp - 0x16c], 0x3c
mov dword [ebp - 0x168], 0x40
mov dword [ebp - 0x164], edi
call fcn.004d9310
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42f016
cmp dword [ebp - 0x124], 6
mov dword [ebp - 0x160], str.runas
jae 0x42f020
mov dword [ebp - 0x160], str.open
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x14c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, dword [ebp - 0x134]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x12c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x130]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
cmp dword [0x550334], edi
je 0x42f0a5
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___RunExe_ret__d_.
call fcn.00427dfb
add esp, 0xc
mov eax, dword [ebp - 0x12c]
jmp 0x42f0d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x550334], edi
je 0x42f0d6
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___RunExe_failed__err__d_
call fcn.00427dfb
add esp, 0xc
or eax, 0xffffffff
call fcn.004da0d4
ret

Function at 0x42f87f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x54b3f0]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42f8c6
cmp byte [esp], 2
jne 0x42f8c0
mov eax, dword [esp]
shr eax, 8
cmp al, 2
jne 0x42f8c0
dec al
jmp 0x42f8c8
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004d5e0b
mov esp, ebp
pop ebp
ret
Function at 0x42fc50
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x114], eax
cmp eax, ebx
je 0x42fca2
cmp dword [ebp + 0xc], ebx
jl 0x42fca2
cmp byte [esi + 0xc], bl
jne 0x42fcb6
cmp dword [0x550334], ebx
je 0x42fca2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___socket__receive_failed__no_connected.
call fcn.00427dfb
pop ecx
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5e0b
leave
ret 8
mov eax, dword [esi + 4]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
mov dword [ebp - 0x11c], 0x1e
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
jne 0x42fd22
cmp dword [0x550334], ebx
je 0x42fca2
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__select_err__d_.
mov ecx, dword [0x550334]
call fcn.00427dfb
add esp, 0xc
jmp 0x42fca2
cmp edi, ebx
jne 0x42fd41
cmp dword [0x550334], ebx
je 0x42fca2
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___socket__receive_failed__select_ret_0___err__d_.
jmp 0x42fd12
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x114]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jne 0x42fd87
cmp dword [0x550334], ebx
je 0x42fd7b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._WARN___d___socket__receive_failed__size_0_.
call fcn.00427dfb
pop ecx
pop ecx
call fcn.0042fc34
mov eax, edi
jmp 0x42fca5
cmp edi, 0xffffffff
jne 0x42fd80
cmp dword [0x550334], ebx
je 0x42fca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__err__d_
jmp 0x42fd12
Function at 0x42fe19
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x42fea3
xor eax, eax
inc eax
cmp dword [ebp + 0x98], eax
jl 0x42fea3
cmp byte [esi + 0xc], bl
je 0x42fea3
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x80], 0x1e
mov dword [ebp - 0x7c], ebx
call fcn.004d9310
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x42fea3
cmp eax, ebx
je 0x42fea3
push ebx
push dword [ebp + 0x98]
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne al
jmp 0x42fea5
xor al, al
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop ebx
call fcn.004d5e0b
add ebp, 0x90
leave
ret 4

Function at 0x42febd
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x42fee6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42feea
xor eax, eax
jmp 0x42ff01
lea edi, [eax + eax]
mov eax, edi
call fcn.004d98f0
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.0042f79e
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x42ff17
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, ebx
je 0x42ff17
mov ebx, dword [eax]
mov eax, ebx
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5e0b
leave
ret 4
Function at 0x430c0f
Capabilities:
Terminate thread

Disassembly:
push ebx
mov bl, 1
test esi, esi
je 0x430c3c
cmp esi, 0xffffffff
je 0x430c3c
push dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x430c38
push 0
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, bl
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x431a94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp eax, edi
je 0x431af2
cmp dword [esi + 0x24], edi
jne 0x431af2
mov dword [esi + 0x24], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x431a33
push 0x500000
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, edi
je 0x431ad1
cmp eax, 0xffffffff
je 0x431ad1
mov al, 1
jmp 0x431af4
cmp dword [0x550334], edi
je 0x431af2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___create_download_main_thread_failed_
call fcn.00427dfb
pop ecx
pop ecx
xor al, al
pop edi
leave
ret
Function at 0x4335e9
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x433613
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x433617
xor eax, eax
jmp 0x43362e
lea edi, [eax + eax]
mov eax, edi
call fcn.004d98f0
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.0042f79e
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x433673
mov edi, dword [ebp + 0xc]
call fcn.0043583d
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x433673
and dword [ebp - 8], 0
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.0043896f
push eax
push esi
lea esi, [ebp - 0x14]
call fcn.00435d9a
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x433650
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx + 8], eax
setne al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5e0b
leave
ret 8
Function at 0x434656
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [esi + 0x54]
push ebx
push edi
xor edi, edi
mov byte [ebp - 1], 0
cmp eax, edi
je 0x43475e
cmp dword [esi + 0x60], edi
je 0x43475e
cmp byte [eax + 0x70], 0
je 0x43475e
cmp dword [esi + 0x5c], edi
je 0x43475e
lea eax, [ebp - 8]
push eax
push esi
call fcn.004341de
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4346c5
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040436d
jmp 0x43475e
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x434748
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0xfffffffffffffffc
pop eax
push 2
lea edx, [ebp - 0x20]
push edx
or ecx, 0xffffffff
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x434748
and dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [esi + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434748
mov ecx, dword [esi + 0x50]
imul ecx, ecx, 0x18
push 0xfffffffffffffffc
pop eax
push 2
sub eax, ecx
cdq
lea ecx, [ebp - 0x28]
push ecx
push edx
push eax
push ebx
call edi
test eax, eax
je 0x434748
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x50]
imul eax, eax, 0x18
push eax
push dword [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x434748
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040436d
test ebx, ebx
je 0x43475e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret