joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
push edi
push esi
push dword [ebp + 0x14]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1001e777
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
push ecx
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push ecx
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
je 0x1001e7a0
test eax, eax
mov ecx, 1
cmove esi, ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001eb60
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push esi
push 0
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
pop esi
test eax, eax
je 0x1001ebd9
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.Shell
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x1001ebd9
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10020460
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44]
push 0x40
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x40
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x40
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0x44]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100204f0
test dl, dl
je 0x100204ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100204f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100204d0
xor eax, eax
jmp 0x100204f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10020530
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x84]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020512
sub ecx, edx
lea eax, [ebp - 0x84]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret

Function at 0x10020550
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x100205af
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100205ca
mov eax, dword [ebp - 0x90]
sub eax, 2
jne 0x100205dd
mov eax, dword [ebp - 0x9c]
cmp eax, 5
je 0x100205ca
cmp eax, 6
jb 0x100205dd
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
Function at 0x10020770
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1274
call fcn.10033810
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x122c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1230], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1234], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1238], eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x1264], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1270], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x1258], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x1250], eax
lea eax, [ebp - 0xa24]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1248], eax
lea eax, [ebp - 0x1224]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x1240], eax
lea eax, [ecx + 1]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x1268], 0
mov dword [ebp - 0x125c], 0
mov dword [ebp - 0x1274], 0x3c
mov dword [ebp - 0x1260], 0x100
mov dword [ebp - 0x126c], 0x20
mov dword [ebp - 0x1254], 0x80
mov dword [ebp - 0x124c], 0x80
mov dword [ebp - 0x1244], 0x800
mov dword [ebp - 0x123c], 0x800
mov dword [ebp - 0x1228], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020864
sub ecx, dword [ebp - 0x1228]
lea eax, [ebp - 0x1274]
push eax
push closesocket
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x10020976
test ebx, ebx
je 0x100208ad
mov ecx, dword [ebp - 0x1270]
sub ebx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x100208a0
mov edx, dword [ebp - 0x122c]
test edx, edx
je 0x100208cd
mov ecx, dword [ebp - 0x1264]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100208c0
mov edx, dword [ebp - 0x1230]
test edx, edx
je 0x100208ed
mov ecx, dword [ebp - 0x1248]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100208e0
mov edx, dword [ebp - 0x1234]
test edx, edx
je 0x1002090d
mov ecx, dword [ebp - 0x1258]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10020900
test edi, edi
je 0x1002092d
mov ecx, dword [ebp - 0x1250]
sub edi, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x10020920
test esi, esi
je 0x1002094d
mov ecx, dword [ebp - 0x1240]
sub esi, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x10020940
mov ecx, dword [ebp - 0x1238]
test ecx, ecx
je 0x10020960
movzx eax, word [ebp - 0x125c]
mov dword [ecx], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100337f6
mov esp, ebp
pop ebp
ret
Function at 0x10021170
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov ecx, dword [ebp + 0x14]
xor eax, eax
test ecx, ecx
mov word [ebp - 0x26], ax
mov dword [ebp - 0x4c], eax
xorps xmm0, xmm0
setne al
movlpd qword [ebp - 0x40], xmm0
push ebx
mov dword [ebp - 0x2c], eax
xor eax, eax
push esi
test ecx, ecx
movlpd qword [ebp - 0x38], xmm0
push edi
setne al
movlpd qword [ebp - 0x1c], xmm0
push str.userenv.dll
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x50], str.WinSta0Default
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x20], 0
mov dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10021214
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push edi
call esi
push str.DestroyEnvironmentBlock
push edi
mov ebx, eax
call esi
jmp 0x1002121a
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
test ebx, ebx
je 0x1002122d
push 1
push esi
lea eax, [ebp + 0x14]
push eax
call ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push dword [ebp + 0x14]
push 0x400
push 0
push 0
push 0
push ebx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x1002127c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x1002127c
xor esi, esi
jmp 0x100212b2
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100212a6
push 0x64
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x100212ad
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax], xmm0
mov esi, 1
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100212c3
mov eax, dword [ebp - 4]
test eax, eax
je 0x100212c3
push ecx
call eax
test edi, edi
je 0x100212ce
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100212e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x44], 0x44
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
neg eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 0
sbb eax, eax
mov dword [ebp - 0x38], 0
and eax, 5
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x34], 0
push 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret
Function at 0x100218e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1004475c], 0
push esi
mov esi, dword [ebp + 8]
jne 0x1002190b
call fcn.10021390
mov dword [0x1004475c], eax
test eax, eax
je 0x10021921
push closesocket
push 0
push 0
call dword [0x10044730]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x10021932
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
push edi
push 0x74
push esi
push eax
call dword [0x10044734]
mov edi, eax
test edi, edi
je 0x10021ac4
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [0x1004472c]
test eax, eax
je 0x10021ac4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], 0
push ebx
cmp eax, 3
ja case.default.0x1002196e
jmp dword [eax*4 + 0x10021ae0]
push 0
push 0
push edi
call dword [0x1004473c]
test eax, eax
je case.default.0x1002196e
mov dword [ebp - 0x40], 1
jmp case.default.0x1002196e
lea eax, [ebp - 0x3c]
push eax
push 1
push edi
call dword [0x10044740]
test eax, eax
je case.default.0x1002196e
cmp dword [0x1004475c], 0
jne 0x100219c4
call fcn.10021390
mov dword [0x1004475c], eax
test eax, eax
je case.default.0x1002196e
mov dword [ebp - 0x48], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x7530
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [0x1004472c]
mov dword [ebp - 0x4c], eax
test eax, eax
je case.default.0x1002196e
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x44]
cmp dword [ebp - 0x1c], 1
je 0x10021a5d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x44], eax
ja 0x10021a4f
cmp dword [ebp - 0x48], 0
je 0x10021a1b
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x48], 0
jmp 0x10021a32
mov eax, dword [ebp - 0x1c]
cmp ebx, eax
je 0x10021a29
mov esi, dword [ebp - 0xc]
mov ebx, eax
jmp 0x10021a32
mov eax, dword [ebp - 0xc]
cmp eax, esi
jbe case.default.0x1002196e
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [0x1004472c]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x100219f5
jmp case.default.0x1002196e
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x4c]
test eax, eax
je case.default.0x1002196e
mov dword [ebp - 0x40], 1
jmp case.default.0x1002196e
lea eax, [ebp - 0x3c]
push eax
push 2
push edi
call dword [0x10044740]
test eax, eax
je case.default.0x1002196e
mov dword [ebp - 0x40], 1
jmp case.default.0x1002196e
lea eax, [ebp - 0x3c]
push eax
push 3
push edi
call dword [0x10044740]
xor ecx, ecx
mov edx, 1
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x40], ecx
push edi
call dword [0x10044738]
push dword [ebp - 0x50]
call dword [0x10044738]
mov eax, dword [ebp - 0x40]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x50]
call dword [0x10044738]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100337f6
mov esp, ebp
pop ebp
ret
Function at 0x10022250
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1002240a
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.QueryServiceObjectSecurity
push edi
call esi
push str.GetSecurityDescriptorDacl
mov ebx, eax
push edi
mov dword [ebp - 8], ebx
call esi
push str.BuildExplicitAccessWithNameA
push edi
mov dword [ebp - 0xc], eax
call esi
push str.SetEntriesInAclA
push edi
mov dword [ebp - 0x10], eax
call esi
push str.InitializeSecurityDescriptor
push edi
mov dword [ebp - 0x18], eax
call esi
push str.SetSecurityDescriptorDacl
push edi
mov dword [ebp - 0x1c], eax
call esi
push str.SetServiceObjectSecurity
push edi
mov dword [ebp - 0x20], eax
call esi
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x10022401
cmp dword [ebp - 0xc], 0
je 0x10022401
cmp dword [ebp - 0x10], 0
je 0x10022401
cmp dword [ebp - 0x18], 0
je 0x10022401
cmp dword [ebp - 0x1c], 0
je 0x10022401
cmp dword [ebp - 0x20], 0
je 0x10022401
test eax, eax
je 0x10022401
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push 1
push 4
push ebx
mov dword [ebp - 4], 0
call dword [ebp - 8]
test eax, eax
jne 0x10022401
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10022401
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10022401
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 4
push ebx
call dword [ebp - 8]
test eax, eax
je 0x100223f1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push eax
push esi
call dword [ebp - 0xc]
test eax, eax
je 0x100223f1
push 0
push 2
push 0xf01ff
push str.Everyone
lea eax, [ebp - 0x60]
mov dword [ebp - 8], 0
push eax
call dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x60]
push eax
push 1
call dword [ebp - 0x18]
test eax, eax
jne 0x100223f1
push 1
lea eax, [ebp - 0x40]
push eax
call dword [ebp - 0x1c]
test eax, eax
je 0x100223e8
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x40]
push 1
push eax
call dword [ebp - 0x20]
test eax, eax
je 0x100223e8
lea eax, [ebp - 0x40]
push eax
push 4
push ebx
call dword [ebp - 0x2c]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10022420
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1004475c], 0
jne 0x10022441
call fcn.10021390
mov dword [0x1004475c], eax
test eax, eax
jne 0x10022441
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x10]
mov ebx, eax
add ebx, dword [ebp + 0x14]
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [0x1004472c]
mov edi, eax
test edi, edi
je 0x100224e6
nop dword [eax]
mov eax, dword [ebp + 0xc]
cmp dword [esi + 4], eax
je 0x100224e6
cmp dword [ebp + 0x14], 0xffffffff
je 0x10022488
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
ja 0x100224d0
cmp dword [ebp - 4], 0
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x14]
je 0x100224a0
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100224af
cmp dword [ebp - 8], eax
je 0x100224aa
mov dword [ebp - 8], eax
jmp 0x100224af
cmp ebx, dword [ebp - 0xc]
jbe 0x100224e4
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp + 8]
call dword [0x1004472c]
mov edi, eax
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x100224e6
mov ebx, dword [ebp - 0x10]
jmp 0x10022470
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100226d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5018
call fcn.10033810
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2800
lea eax, [ebp - 0x2804]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x2814
lea eax, [ebp - 0x5018]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x2804]
push 0x2800
push eax
call fcn.1001a8b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
lea ecx, [ebp - 0x5018]
add esp, 0x1c
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10022743
mov eax, dword [0x1003a20c]
lea edx, [ebp - 0x2804]
mov dword [ecx], eax
mov al, byte [0x1003a210]
push esi
push edi
mov byte [ecx + 4], al
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10022766
lea edi, [ebp - 0x5018]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10022776
mov ecx, edx
lea eax, [ebp - 0x5018]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100337f6
mov esp, ebp
pop ebp
ret
Function at 0x10023720
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c4
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x394]
push edi
push eax
push 0x202
mov dword [ebp - 0x3a4], esi
or edi, 0xffffffff
mov byte [ebp - 0x395], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x10023778
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x10023860
lea eax, [ebp - 0x39c]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x3c4]
movlpd qword [ebp - 0x3b4], xmm0
push eax
movlpd qword [ebp - 0x3ac], xmm0
lea eax, [ebp - 0x204]
movaps xmm0, xmmword [0x1003a3e0]
push 0
push eax
movups xmmword [ebp - 0x3c4], xmm0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x10023764
push ebx
mov ebx, dword [ebp - 0x39c]
mov esi, ebx
test esi, esi
je 0x10023858
nop
cmp dword [esi + 0x1c], 0
jne 0x100237ff
mov byte [ebp - 0x395], 1
jmp 0x10023808
cmp byte [ebp - 0x395], 0
je 0x1002384e
push 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x3a0], 0xff
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebx + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
test eax, eax
je 0x10023883
mov ebx, dword [ebp - 0x39c]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x100237f0
or edi, 0xffffffff
push ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop ebx
call dword [sym.imp.WSOCK32.dll_WSACleanup]
test edi, edi
jne 0x10023764
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
pop edi
xor ecx, ebp
pop esi
call fcn.100337f6
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x104]
mov eax, ecx
xor edi, edi
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10023895
mov ebx, dword [ebp - 0x39c]
jmp 0x10023858
Function at 0x100238b0
Capabilities:
Get hostname
Get networking parameters
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
mov dword [ebp - 0x1e8], esi
jne 0x100239d6
push str.127.0.0.1
push ebx
call edi
add esp, 8
test eax, eax
je 0x100239d6
push 0x248
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x100239d0
push 0x248
push 0
push edi
mov dword [ebp - 0x1ec], 0x248
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1ec]
push eax
push edi
call sub.IPHLPAPI.DLL_GetNetworkParams
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp eax, 0x6f
jne 0x10023956
push edi
call esi
push dword [ebp - 0x1ec]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x100239ca
lea eax, [ebp - 0x1ec]
push eax
push edi
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
jne 0x100239ca
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1e8]
lea eax, [edi + 0x110]
push ebx
push 0x35
push eax
call fcn.10024730
test eax, eax
je 0x10023990
test edi, edi
je 0x10023a08
push edi
call esi
jmp 0x10023a05
mov esi, dword [edi + 0x10c]
test esi, esi
je 0x100239bf
nop word [eax + eax]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1e8]
lea eax, [esi + 4]
push ebx
push 0x35
push eax
call fcn.10024730
test eax, eax
jne 0x100239fd
mov esi, dword [esi]
test esi, esi
jne 0x100239a0
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
call eax
add esp, 4
mov esi, dword [ebp - 0x1e8]
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
lea eax, [ebp - 0x1e4]
mov dword [ebx], 0
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x10023a34
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x10023a85
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
call eax
add esp, 4
test ebx, ebx
je 0x100239ca
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023a11
sub ecx, edx
je 0x100239ca
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret 0xc
push 0x50
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x10023a70
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x10023a85
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x10023a63
call dword [sym.imp.WSOCK32.dll_WSACleanup]
push str.127.0.0.1
push ebx
call edi
add esp, 8
test eax, eax
jne 0x10023a1c
push 4
push ebx
mov ecx, esi
call fcn.10023720
test eax, eax
jne 0x10023a1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100337f6
mov esp, ebp
pop ebp
ret 0xc