joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46653b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x434db8
call fcn.004642ac
push 8
call fcn.0046427b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4725d8], esi
jne 0x46656f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4725d4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4725d0], al
cmp dword [ebp + 0xc], edi
jne 0x4665b9
cmp dword [0x473c28], edi
je 0x4665a9
mov eax, dword [0x473c24]
sub eax, 4
mov dword [0x473c24], eax
cmp eax, dword [0x473c28]
jb 0x4665a9
mov eax, dword [eax]
cmp eax, edi
je 0x46658a
call eax
jmp 0x46658a
push 0x40141c
mov eax, 0x401414
call fcn.004664b9
pop ecx
push 0x401428
mov eax, 0x401420
call fcn.004664b9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4665ea
cmp dword [ebp + 0x10], edi
jne 0x4665f8
mov dword [0x4725d8], esi
push dword [ebp + 8]
call fcn.00466477
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4665f7
push 8
call fcn.004641c6
pop ecx
ret
call fcn.004642e7
ret

Function at 0x466739
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x404174]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4045d0]
je 0x46676e
inc eax
cmp eax, 0x13
jb 0x46675f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4045d0]
jne 0x466894
mov eax, dword [0x4723cc]
cmp eax, 1
je 0x46686c
cmp eax, edx
jne 0x46679e
cmp dword [0x404164], 1
je 0x46686c
cmp ecx, 0xfc
je 0x466894
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4667d4
lea eax, [ebp - 0x80]
push 0x4356cc
push eax
call fcn.00464030
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00462fa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x466808
mov eax, edi
push eax
call fcn.00462fa0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4356c8
push edi
call fcn.00462440
add esp, 0x10
push edi
call fcn.00462fa0
push dword [esi + 0x4045d4]
mov ebx, eax
call fcn.00462fa0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00462760
mov ebx, esp
push 0x4356ac
push ebx
call fcn.00464030
push edi
push ebx
call fcn.00464040
push 0x4356a8
push ebx
call fcn.00464040
push dword [esi + 0x4045d4]
push ebx
call fcn.00464040
push 0x12010
push 0x435680
push ebx
call fcn.00469f40
add esp, 0x2c
jmp 0x466894
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4045d4]
push dword [esi]
call fcn.00462fa0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00468d30
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x466ea1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.00462e86
test eax, eax
pop ecx
jne 0x466ebd
or eax, 0xffffffff
jmp 0x46709a
mov dword [0x473b20], eax
mov dword [0x473b04], 0x20
lea ecx, [eax + 0x480]
jmp 0x466ef2
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x473b20]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x466ed4
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x466ff9
mov eax, dword [esp + 0x48]
test eax, eax
je 0x466ff9
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x466f33
mov edi, eax
cmp dword [0x473b04], edi
jge 0x466f89
mov esi, 0x473b24
push ebx
call fcn.00462e86
test eax, eax
pop ecx
je 0x466f83
add dword [0x473b04], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x466f72
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x466f5c
add esi, 4
cmp dword [0x473b04], edi
jl 0x466f40
jmp 0x466f89
mov edi, dword [0x473b04]
xor ebx, ebx
test edi, edi
jle 0x466ff9
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x466fee
mov cl, byte [ebp]
test cl, 1
je 0x466fee
test cl, 8
jne 0x466fb2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x466fee
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x473b20]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.00468686
test eax, eax
pop ecx
pop ecx
je 0x467019
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x466f8f
xor ebx, ebx
mov ecx, dword [0x473b20]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x46707b
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x46701e
push 0xfffffffffffffff6
pop eax
jmp 0x467028
or eax, 0xffffffff
jmp 0x467097
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x467075
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x467075
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x467053
or byte [esi + 4], 0x40
jmp 0x46705c
cmp eax, 3
jne 0x46705c
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.00468686
test eax, eax
pop ecx
pop ecx
je 0x467019
inc dword [esi + 8]
jmp 0x46707f
or byte [esi + 4], 0x40
jmp 0x46707f
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x466ffb
push dword [0x473b04]
call dword [sym.imp.KERNEL32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x468830
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x404174]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x468861
xor eax, eax
jmp 0x4689ea
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x473b20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x46889d
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0046a5b2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x468978
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4689b6
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x468901
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4688f2
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4688d2
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x468941
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x46894a
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4688c3
jmp 0x46894c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4689e5
cmp dword [ebp - 0x6c], edi
je 0x4689b6
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4689ab
call fcn.004666b4
mov dword [eax], 9
call fcn.004666bd
mov dword [eax], esi
jmp 0x4689e0
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4689a0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x46894c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x46894c
push dword [ebp - 0x6c]
call fcn.004666c6
pop ecx
jmp 0x4689e0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4689ce
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4689ce
xor eax, eax
jmp 0x4689e8
call fcn.004666b4
mov dword [eax], 0x1c
call fcn.004666bd
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4689e8
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00468d30
add ebp, 0x3a0
leave
ret
Function at 0x469809
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00462760
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4698a4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x472598]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4698a4
cmp eax, 1
je 0x4698c5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4698a4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x469871
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4698a0
xor eax, eax
inc eax
jmp 0x4698e4
cmp edi, eax
jae 0x4698a8
xor eax, eax
jmp 0x4698e4
cmp eax, esi
jae 0x4698af
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x472598]
jmp 0x4698c8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x469f40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x472778], ebx
push esi
push edi
jne 0x469fc0
push 0x435954
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x469ffb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x435948
push edi
call esi
test eax, eax
mov dword [0x472778], eax
je 0x469ffb
push 0x435938
push edi
call esi
push 0x435924
push edi
mov dword [0x47277c], eax
call esi
cmp dword [0x472598], 2
mov dword [0x472780], eax
jne 0x469fc0
push 0x435908
push edi
call esi
test eax, eax
mov dword [0x472788], eax
je 0x469fc0
push 0x4358f0
push edi
call esi
mov dword [0x472784], eax
mov eax, dword [0x472784]
test eax, eax
je 0x46a005
call eax
test eax, eax
je 0x469fec
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x472788]
test eax, eax
je 0x469fec
test byte [ebp - 8], 1
jne 0x46a005
cmp dword [0x4725a4], 4
jb 0x469fff
or byte [ebp + 0x12], 0x20
jmp 0x46a024
xor eax, eax
jmp 0x46a034
or byte [ebp + 0x12], 4
jmp 0x46a024
mov eax, dword [0x47277c]
test eax, eax
je 0x46a024
call eax
mov ebx, eax
test ebx, ebx
je 0x46a024
mov eax, dword [0x472780]
test eax, eax
je 0x46a024
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x472778]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46b261
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x46b435
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x473b20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x46b435
test cl, 0x48
je 0x46b2cc
cmp byte [eax + 5], 0xa
je 0x46b2cc
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46b31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x46b306
call fcn.004666b4
mov dword [eax], 9
call fcn.004666bd
mov dword [eax], esi
jmp 0x46b316
cmp eax, 0x6d
je 0x46b435
push eax
call fcn.004666c6
pop ecx
or eax, 0xffffffff
jmp 0x46b437
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x46b430
test eax, eax
je 0x46b345
cmp byte [ebx], 0xa
jne 0x46b345
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x46b34e
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x46b42a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x46b41a
cmp al, 0xd
je 0x46b380
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x46b40c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x46b39a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x46b395
add dword [ebp + 0x10], 2
jmp 0x46b3ee
mov dword [ebp + 0x10], eax
jmp 0x46b408
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46b3c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46b408
cmp dword [ebp - 0xc], 0
je 0x46b408
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x46b3e3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x46b3ee
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x46b40b
cmp ebx, dword [ebp + 0xc]
jne 0x46b3f3
cmp byte [ebp - 1], 0xa
jne 0x46b3f3
mov byte [ebx], 0xa
jmp 0x46b40b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00468711
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x46b40c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x46b364
jmp 0x46b42a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x46b42a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x46b437
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401650
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432840
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [ebp - 0x44], eax
xor edi, edi
nop
lea eax, [edi + 0x41]
mov dword [ebp - 0x1a], 0x3a
movzx eax, ax
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov word [ebp - 0x1c], ax
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x34]
push 0x104
mov dword [ebp - 0x38], 0x104
call fcn.00401880
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MPR.dll_WNetGetConnectionW]
lea edx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x34]
call fcn.00401dc0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
jne 0x40174f
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [ebp - 0x44], eax
je 0x40178e
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3a]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.004019b0
push 0x43b2a4
lea ecx, [ebp - 0x34]
call fcn.00401b10
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x401782
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 0x10], xmm0
add dword [esi + 4], 0x18
jmp 0x4017c4
lea ecx, [ebp - 0x34]
push ecx
push eax
mov ecx, esi
call fcn.00401e70
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x4017c4
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4017ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017ee
push ecx
push edx
call fcn.004205b6
add esp, 8
inc edi
cmp edi, 0x1a
jb 0x4016b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042552f
int3
Function at 0x406960
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432f80
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp dword [edx + 0x10], eax
je 0x406b68
mov eax, 2
movlpd qword [ebp - 0x43c], xmm0
lea ecx, [ebp - 0x45c]
mov word [ebp - 0x444], ax
call fcn.00403830
cmp dword [eax + 0x14], 0x10
jb 0x4069db
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x440], eax
cmp ecx, 0x10
jb 0x406a22
mov edx, dword [ebp - 0x45c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406a18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b86
push ecx
push edx
call fcn.004205b6
add esp, 8
push 0x6987
call dword [sym.imp.WS2_32.dll_htons]
push 0x401
mov word [ebp - 0x442], ax
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.00423800
add esp, 0xc
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
push 8
push 0x20
push eax
push 0x401
lea eax, [ebp - 0x434]
push eax
push 0x10
lea eax, [ebp - 0x444]
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x406b68
xorps xmm0, xmm0
mov dword [ebp - 0x464], eax
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x460], eax
movups xmmword [ebp - 0x474], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406aa0
sub ecx, edx
lea eax, [ebp - 0x434]
push ecx
push eax
lea ecx, [ebp - 0x474]
call fcn.00408490
lea edx, [ebp - 0x474]
lea ecx, [ebp - 0x45c]
call fcn.004036e0
push eax
mov ecx, esi
call fcn.00402b00
mov ecx, dword [ebp - 0x448]
cmp ecx, 8
jb 0x406b15
mov edx, dword [ebp - 0x45c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406b0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b8b
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x460]
xor eax, eax
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], ax
cmp ecx, 0x10
jb 0x406b68
mov edx, dword [ebp - 0x474]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406b5e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406b8b
push ecx
push edx
call fcn.004205b6
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret 8
call fcn.0042552f
call fcn.0042552f
int3
Function at 0x40a660
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433460
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov esi, ecx
cmp dword [edx + 0x10], 0
xorps xmm0, xmm0
je 0x40a7b0
push 0x210
movups xmmword [ebp - 0x2c], xmm0
call fcn.00420581
mov edx, eax
mov dword [ebp - 0x18], 0x107
xor eax, eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x104
mov ecx, 0x82
mov edi, edx
add esp, 4
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x40a6fc
mov eax, dword [eax]
push dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov ecx, eax
test ecx, ecx
je 0x40a786
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x38], edi
cmp ecx, edi
ja 0x40a72d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40a79d
mov eax, dword [ebp - 0x18]
mov edx, ecx
sub edx, edi
sub eax, edi
cmp edx, eax
ja 0x40a776
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
lea eax, [eax + edi*2]
mov dword [ebp - 0x30], eax
test edx, edx
je 0x40a768
mov edi, dword [ebp - 0x30]
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea eax, [edi + edx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x40a79d
push ecx
push edx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push edx
call fcn.00402c90
jmp 0x40a79d
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae ecx, dword [ebp - 0x2c]
xor eax, eax
mov word [ecx], ax
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
jmp 0x40a7cd
push 0
movups xmmword [esi], xmm0
push 0x43b320
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004083a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40a800
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432990
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
push 0x210
movups xmmword [ebp - 0x2c], xmm0
call fcn.00420581
mov edx, eax
mov dword [ebp - 0x18], 0x107
xor eax, eax
mov dword [ebp - 0x2c], edx
add esp, 4
mov dword [ebp - 0x1c], 0x104
mov edi, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0x104
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemWow64DirectoryW]
test eax, eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
setne byte [ebp - 0x2d]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x40a8e0
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a8d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a900
push ecx
push edx
call fcn.004205b6
add esp, 8
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042552f
int3