joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e1b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100d1d0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1004e67
call esi
mov edi, eax
cmp edi, ebx
je 0x1004e4d
mov dword [0x100d1d0], 1
jmp 0x1004e6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1004e62
push 2
pop eax
mov dword [0x100d1d0], eax
jmp 0x1004e67
mov eax, dword [0x100d1d0]
cmp eax, 1
jne 0x1004ee4
cmp edi, ebx
jne 0x1004e78
call esi
mov edi, eax
cmp edi, ebx
je 0x1004eed
cmp word [edi], bx
mov eax, edi
je 0x1004e8d
inc eax
inc eax
cmp word [eax], bx
jne 0x1004e7f
inc eax
inc eax
cmp word [eax], bx
jne 0x1004e7f
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x1004edb
call fcn.01006bff
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1004edb
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1004ed8
push dword [ebp - 4]
call fcn.01006bbd
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1004f3c
cmp eax, 2
je 0x1004ef1
cmp eax, ebx
je 0x1004ef1
xor eax, eax
jmp 0x1004f3e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1004eed
cmp byte [esi], bl
je 0x1004f0e
inc eax
cmp byte [eax], bl
jne 0x1004f04
inc eax
cmp byte [eax], bl
jne 0x1004f04
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.01006bff
cmp eax, ebx
je 0x1004f35
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10062f2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1006323
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100632a
cmp ebx, dword [ebp + 8]
jae 0x100632a
xor eax, eax
jmp 0x100651a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100633b
xor eax, eax
inc eax
jmp 0x1006519
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1006351
cmp ecx, edx
jae 0x1006496
cmp dword [eax + 4], 0
je 0x100635a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1006342
cmp dword [ebp + 8], 0
je 0x100637c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1006496
cmp eax, esi
jae 0x1006496
mov eax, dword [0x100d1e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x10063a1
cmp dword [esi*4 + 0x100d1f0], edi
je 0x100649a
inc esi
cmp esi, eax
jl 0x100638f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006516
cmp dword [ebp - 8], 0x1000000
jne 0x1006516
test byte [ebp - 0xc], 0xcc
je 0x100641f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1006516
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1006516
cmp word [eax + 0x18], 0x10b
jne 0x1006516
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1006516
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100641f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100641f
test byte [ecx + 0x27], 0x80
jne 0x1006496
push 1
push 0x100d230
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1006333
mov ecx, dword [0x100d1e8]
test ecx, ecx
mov edx, ecx
jle 0x1006453
lea eax, [ecx*4 + 0x100d1ec]
cmp dword [eax], edi
je 0x1006453
dec edx
sub eax, 4
test edx, edx
jg 0x1006447
test edx, edx
jne 0x1006484
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1006460
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1006478
lea eax, [edx*4 + 0x100d1f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1006466
cmp ecx, 0x10
jge 0x1006484
inc ecx
mov dword [0x100d1e8], ecx
push 0
push 0x100d230
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1006333
xor eax, eax
jmp 0x1006519
test esi, esi
jle 0x1006333
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x100d230
call ebx
test eax, eax
jne 0x1006333
cmp dword [esi*4 + 0x100d1f0], edi
je 0x10064f0
mov eax, dword [0x100d1e8]
lea esi, [eax - 1]
test esi, esi
jl 0x10064de
cmp dword [esi*4 + 0x100d1f0], edi
je 0x10064da
dec esi
jns 0x10064ce
test esi, esi
jge 0x10064ee
cmp eax, 0x10
jge 0x10064e9
inc eax
mov dword [0x100d1e8], eax
lea esi, [eax - 1]
jmp 0x10064f0
je 0x1006508
xor ecx, ecx
test esi, esi
jl 0x1006508
lea eax, [ecx*4 + 0x100d1f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x10064f6
push 0
push 0x100d230
call ebx
jmp 0x1006333
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006523
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100d234], ebx
push esi
push edi
jne 0x10065a5
push 0x1001954
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10065e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001948
push edi
call esi
test eax, eax
mov dword [0x100d234], eax
je 0x10065e0
push 0x1001938
push edi
call esi
push 0x1001924
push edi
mov dword [0x100d238], eax
call esi
cmp dword [0x100cd64], 2
mov dword [0x100d23c], eax
jne 0x10065a5
push 0x1001908
push edi
call esi
test eax, eax
mov dword [0x100d244], eax
je 0x10065a5
push 0x10018f0
push edi
call esi
mov dword [0x100d240], eax
mov eax, dword [0x100d240]
test eax, eax
je 0x10065ea
call eax
test eax, eax
je 0x10065d1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100d244]
test eax, eax
je 0x10065d1
test byte [ebp - 8], 1
jne 0x10065ea
cmp dword [0x100cd70], 4
jb 0x10065e4
or byte [ebp + 0x12], 0x20
jmp 0x1006609
xor eax, eax
jmp 0x1006619
or byte [ebp + 0x12], 4
jmp 0x1006609
mov eax, dword [0x100d238]
test eax, eax
je 0x1006609
call eax
mov ebx, eax
test ebx, ebx
je 0x1006609
mov eax, dword [0x100d23c]
test eax, eax
je 0x1006609
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100d234]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007590
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100e5e8]
mov eax, dword [0x100c050]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x1007776
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100e600]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x1007776
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x1007601
xor eax, eax
jmp 0x100778a
test al, 0x20
je 0x1007614
push 2
push 0
push 0
push ecx
call fcn.01009306
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10076d4
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x1007750
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x1007683
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1007671
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x100764d
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007702
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x100770e
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x1007639
jmp 0x100770e
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007702
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x100770e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x100776e
cmp dword [ebp - 0x40c], eax
je 0x100774a
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x100773c
mov dword [0x100cd58], 9
mov dword [0x100cd5c], eax
jmp 0x1007787
push dword [ebp - 0x40c]
call fcn.010091d0
pop ecx
jmp 0x1007787
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1007762
cmp byte [edi], 0x1a
je 0x10075fa
mov dword [0x100cd58], 0x1c
jmp 0x1007780
sub eax, dword [ebp - 0x420]
jmp 0x100778a
mov dword [0x100cd58], 9
and dword [0x100cd5c], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01004073
leave
ret
Function at 0x100a2e2
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100a3f0
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100a3de
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x100cd64], 2
jne 0x100a363
push 0x1002274
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x100a363
push 0x100225c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x100a363
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x100a363
cmp dword [ebp - 4], esi
jbe 0x100a363
mov esi, dword [ebp - 4]
mov edx, dword [0x100cd64]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x100a38c
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x100a398
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x100a3aa
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x100a3de
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100a3de
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100a3de
xor eax, eax
inc eax
jmp 0x100a3e0
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408a10
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x813e5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], ecx
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a92ff
mov esp, ebp
pop ebp
ret
Function at 0x412b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x813e5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x412b97
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x412b9e
mov al, 1
jmp 0x412c82
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x40], edx
call fcn.004038b0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
call dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
call fcn.004038b0
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00406700
add esp, 8
movzx eax, al
test eax, eax
je 0x412be4
xor al, al
jmp 0x412c82
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.004137c0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x412c26
cmp dword [ebp - 0x30], 1
je 0x412c2d
cmp dword [ebp - 0x30], 3
je 0x412c7c
jmp 0x412c80
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x412c5c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.006d70e2
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x412c5c
xor al, al
jmp 0x412c82
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x412c70
mov dword [ebp - 0x38], 1
jmp 0x412c77
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x412c82
mov al, 1
jmp 0x412c82
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a92ff
mov esp, ebp
pop ebp
ret
Function at 0x423790
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esp, ebp
pop ebp
ret

Function at 0x4238e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esp, ebp
pop ebp
ret

Function at 0x423af0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov esp, ebp
pop ebp
ret
Function at 0x423d20
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call reloc.KERNEL32.dll_HeapReAlloc
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00423b90
add esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x423dab
call fcn.00423bd0
movzx edx, al
test edx, edx
jne 0x423d9b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [edx]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00423910
add esp, 0x14
movzx eax, al
test eax, eax
jne 0x423dab
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [edx], 2
xor al, al
jmp 0x423e27
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00423b90
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
push 8
lea ecx, [ebp - 0x10]
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
push 8
lea eax, [ebp - 0x18]
push eax
push 0x1005
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [eax], 0
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x423e90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x813e5c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 2
jne 0x423ec6
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
jmp 0x423ee7
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x17
jne 0x423ee7
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
push 0x401
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.006cfab0
add esp, 0xc
lea ecx, [ebp - 0x408]
call fcn.004311e0
mov dword [ebp - 0x40c], eax
lea ecx, [ebp - 0x408]
call fcn.00402b00
mov dword [ebp - 0x410], eax
push 2
push 0
push 0
mov ecx, dword [ebp - 0x40c]
push ecx
mov edx, dword [ebp - 0x410]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x423f59
lea ecx, [ebp - 0x408]
call fcn.00402b00
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0040f970
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a92ff
mov esp, ebp
pop ebp
ret
Function at 0x44ccf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7158bb
mov eax, dword fs:[0]
push eax
mov eax, 0x8090
call fcn.005a9fc0
mov eax, dword [0x813e5c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x7d5cb4
push 0x7d5c94
push 0x7d5cd8
push 0x123
push 0x7d5cb8
push 0x7d5cf8
mov ecx, 0x826e24
call fcn.0040f530
push eax
push 0x7d5ce0
push 1
call fcn.00449e30
add esp, 0x24
mov dword [ebp - 0x8030], 0xffffffff
push 0x44
push 0
lea eax, [ebp - 0x809c]
push eax
call fcn.006cfab0
add esp, 0xc
mov dword [ebp - 0x809c], 0x44
xor ecx, ecx
mov dword [ebp - 0x8040], ecx
mov dword [ebp - 0x803c], ecx
mov dword [ebp - 0x8038], ecx
mov dword [ebp - 0x8034], ecx
push 0x7fff
push 0
lea edx, [ebp - 0x8010]
push edx
call fcn.006cfab0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call fcn.0040f530
push eax
push 0x7d5d50
lea eax, [ebp - 0x8010]
push eax
call fcn.004526b0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call reloc.KERNEL32.dll_HeapReAlloc
movzx ecx, al
test ecx, ecx
je 0x44cde6
mov dword [ebp - 0x802c], 0
jmp 0x44cdf2
lea edx, [ebp - 0x8010]
mov dword [ebp - 0x802c], edx
mov ecx, dword [ebp + 8]
call fcn.0040f530
lea ecx, [ebp - 0x8040]
push ecx
lea edx, [ebp - 0x809c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x802c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x44cf00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x8028]
push edx
call fcn.004028c0
add esp, 8
mov dword [ebp - 0x8044], eax
mov eax, dword [ebp - 0x8044]
mov dword [ebp - 0x8048], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x8048]
call fcn.0040f530
mov dword [ebp - 0x804c], eax
mov ecx, dword [ebp + 0xc]
call fcn.0040f530
mov dword [ebp - 0x8050], eax
mov ecx, dword [ebp + 8]
call fcn.0040f530
mov dword [ebp - 0x8054], eax
mov ecx, 0x826e24
call fcn.0040f530
mov dword [ebp - 0x8058], eax
push 0x7d5d4c
mov ecx, dword [ebp - 0x804c]
push ecx
push 0x7d5d60
mov edx, dword [ebp - 0x8050]
push edx
push str._strArgv:
mov eax, dword [ebp - 0x8054]
push eax
push str.CreateProcessA_failed__strExe:
push 0x7d5d64
push 0x13d
push str.Utils::ExecutExeAtNewProcess
push 0x7d5d90
mov ecx, dword [ebp - 0x8058]
push ecx
push 0x7d5e04
push 2
call fcn.00449e30
add esp, 0x38
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8028]
call fcn.00402bd0
or eax, 0xffffffff
jmp 0x44cf43
push 0xffffffffffffffff
mov edx, dword [ebp - 0x8040]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x8030]
push eax
mov ecx, dword [ebp - 0x8040]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x8040]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x803c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x8030]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a92ff
mov esp, ebp
pop ebp
ret
Function at 0x44cf60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x7d5d8c
push 0x7d5e24
push 0x7d5e1c
push 0x150
push str.Utils::QueryValue
push 0x7d5e38
mov ecx, 0x826e24
call fcn.0040f530
push eax
push 0x7d5ebc
push 1
call fcn.00449e30
add esp, 0x24
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
call fcn.00403350
test eax, eax
je 0x44cfcf
mov ecx, dword [ebp + 0xc]
call fcn.00403350
test eax, eax
jne 0x44cfd4
jmp 0x44d133
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040f530
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x44cff5
jmp 0x44d133
push 0x7526b0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005a9b68
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x44d01a
jmp 0x44d133
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xc]
call fcn.0040f530
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x44d04a
jmp 0x44d133
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x44d06a
jmp 0x44d133
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
and eax, 0xffff
movzx ecx, ax
mov edx, 4
imul eax, edx, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax]
and eax, 0xffff
movzx edx, ax
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 8], 0
jne 0x44d0bb
jmp 0x44d133
push 0x7526b0
push 0x80
call fcn.005a9b68
add esp, 8
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x44d0de
jmp 0x44d133
mov ecx, dword [ebp + 8]
call fcn.0040f530
push eax
mov edx, dword [ebp - 0x18]
push edx
push str.StringFileInfo_08lx_s
push 0x80
mov eax, dword [ebp - 0xc]
push eax
call fcn.00422060
add esp, 0x14
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x44d127
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0040f970
mov byte [ebp - 1], 1
xor eax, eax
jne 0x44cfb7
cmp dword [ebp - 8], 0
je 0x44d152
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004648a0
add esp, 4
mov dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
je 0x44d171
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004648a0
add esp, 4
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret