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

Disassembly:
push 0x20
mov eax, 0x43a771
call fcn.00425445
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax + 0x14], 7
jbe 0x41fa51
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 1
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41fb4f
mov eax, dword [ebp + 0x10]
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x41fa77
mov ecx, dword [eax]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41fb42
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
shr eax, 1
cmp dword [ecx + 0x10], eax
jbe 0x41faa0
mov eax, dword [ecx + 0x10]
inc eax
mov ecx, 0x10000
cmp eax, ecx
jb 0x41faac
mov eax, ecx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00401c1d
mov edi, dword [ebp - 0x28]
mov eax, edi
mov esi, dword [ebp - 0x2c]
sub eax, esi
and eax, 0xfffffffe
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 7
jbe 0x41fadc
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41fb2b
mov word [ebp - 0xe], ax
cmp edi, dword [ebp - 0x24]
je 0x41fb08
mov word [edi], ax
add edi, 2
mov dword [ebp - 0x28], edi
jmp 0x41fb18
lea eax, [ebp - 0xe]
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041eebc
mov esi, dword [ebp - 0x2c]
push esi
call fcn.0042a8de
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.00401b5c
mov bl, 1
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41fb42
mov eax, dword [ebp - 0x24]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call fcn.00401282
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x41fb5a
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
call fcn.00402d63
mov al, bl
call fcn.00425413
ret 0x14
Function at 0x4236a3
Capabilities:
Hide graphical window

Disassembly:
and dword [0x4548e0], 0
push 1
push dword [esp + 8]
mov byte [0x4548ed], 1
mov byte [0x4548ee], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401d92
cmp dword [0x448690], 0
jne 0x4236e3
cmp byte [0x4548f8], 0
je 0x4236ec
cmp dword [0x4548f0], 0
jne 0x4236ff
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x4237ee
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x439259
call fcn.00425478
cmp byte [0x4543dc], 0
mov esi, dword [ebp + 8]
je 0x4238d7
cmp dword [0x454408], 0
je 0x4238d7
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
xor ebx, ebx
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
pop edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
push 0x4543f8
call fcn.004216a2
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42389d
mov ecx, esi
cmp dword [esi + 0x14], edi
jbe 0x423870
mov ecx, dword [esi]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jbe 0x42387b
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push ebx
push edx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x4238d7
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
cmp eax, 0x1000
jb 0x4238ce
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00401a0b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.004253c6
pop ecx
pop ecx
call fcn.00425427
ret 4
Function at 0x42664c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42668b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42668b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42668b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42668b
cmp dword [ecx + 0x74], 0xe
jbe 0x42668b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4389b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4389dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4389dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408940
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.00408969
xor dword [edi], ecx
add edx, ebx
inc edi
push edx
pop ebx
cmp edi, eax
jne fcn.00408940
add edx, 0x2d968070
mov ebx, 0x61ed5319
ret
Function at 0x405d20
Capabilities:
Accept command line arguments

Disassembly:
jl 0x405d1a
add dword [eax], eax
pop ds
or ch, byte [edi]
pop ebp
add byte [eax], dl
lodsd eax, dword [esi]
test eax, 0x90909090
pop ebp
outsd dx, dword [esi]
nop
nop
cmp al, 0x6f
nop
nop
nop
outsd dx, dword [esi]
mov ebp, esp
push ecx
not byte [edi + 0x71]
cmc
add dword [edi - 0x7c3f7c00], esp
test ebp, edi
add byte [eax], al
add byte [ebx + 0x411adc3d], al
add byte [ecx + ecx*4], dl
mov esi, gs
add byte [eax], al
add byte [ecx + 0x9d0308], ah
test dword [ebp + 0xe1b80f], esp
add byte [eax], al
mov dword [0x6a0384], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x405ddd
mov eax, dword [0x410358]
test eax, eax
jne 0x405d89
mov al, 0x68
adc byte [esp + esi], bh
add byte [edx - 0x68], ch
call 0x10da940
pushal
xchg esi, eax
or al, 0xa3
mov dl, 3
inc ecx
jnp 0x405d07
ror byte [edi], 0x84
scasd eax, dword es:[edi]
add byte [eax], al
add byte [ebp - 0x136f03b3], cl
lea ecx, [ebp - 4]
nop
in al, dx
push esi
int1
mov esi, eax
call [ebp + 0x558b2520]
cld
mov eax, dword [ebp + 0x6f]
push edx
push esi
push eax
call 0xbc1fd0
mov ecx, dword [ebp + 8]
add esp, 0xc
push esi
outsb dx, byte [esi]
add edi, edi
adc eax, 0x9cc058
cmp edi, 0x15
push esp
rol byte [eax], 0x8b
fsubr dword [edx + 0x5f]
push ebx
call dword [0x84c124]
add al, 0x7f
test dword [eax + eax], ebx
mov edi, dword [ebp + 0x10]
add esp, 0xffffffc1
test edi, edi
jecxz 0x405e02
lea esi, [eax*4 + 0x70]
mov eax, dword [0xc15c15ff]
inc eax
add byte [ebx + 0x789a1c3], al
call dword [sym.imp.MSVCRT.dll_malloc]
add ebx, 0xffffffa1
mov dword [edi], eax
call dword [sym.imp.MSVCRT.dll_printf]
mov edi, dword [edi]
mov ecx, esi
mov esi, dword [eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xchg edi, eax
retf 0xe10f
push ebx
call dword [0xfa40c050]
mov esi, dword [sym.imp.MSVCRT.dll___p__wenviron]
call esi
mov ecx, dword [eax]
pop ebx
test dword [edi - 0x295e6d8c], ebp
mov edi, dword [eax]
call esi
fadd st(7)
add byte [eax], al
ret
Function at 0x403e97
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push 4
push 5
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.0040372f
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push 0
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call fcn.00403f05
push esi
call fcn.00407840
pop ecx
pop ecx
dec eax
js 0x403ef3
cmp byte [eax + esi], 0x2e
jne 0x403eea
add eax, esi
push str.nC7C
push eax
call fcn.00407750
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x403f05
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x403f1c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
xor esi, esi
push eax
call fcn.00407750
lea eax, [ebp - 0x208]
push eax
call fcn.00407840
add esp, 0xc
test eax, eax
je 0x403f62
cmp byte [ebp + eax - 0x209], 0x5c
lea eax, [ebp + eax - 0x209]
jne 0x403f62
and byte [eax], 0
push 1
pop esi
lea eax, [ebp - 0x208]
push str..
push eax
call fcn.00407760
pop ecx
lea eax, [ebp - 0x348]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404068
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00407750
pop ecx
test esi, esi
pop ecx
jne 0x403fbc
lea eax, [ebp - 0x104]
push 0x40f044
push eax
call fcn.00407760
pop ecx
pop ecx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00407760
test byte [ebp - 0x348], 0x10
pop ecx
pop ecx
je 0x404035
lea eax, [ebp - 0x31c]
push 0x40f0ac
push eax
call fcn.00407660
pop ecx
test eax, eax
pop ecx
je 0x40404b
lea eax, [ebp - 0x31c]
push 0x40f0a8
push eax
call fcn.00407660
pop ecx
test eax, eax
pop ecx
je 0x40404b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 1
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x40404b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.00403f1c
add esp, 0xc
jmp 0x40404b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 0
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x404061
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403f94
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x404a18
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x4938f0], 0
jne 0x404a53
push 4
push 0x410252
call fcn.0040347e
lea ecx, [ebp - 4]
push ecx
push 0x40494a
push eax
push closesocket
call fcn.00404691
add esp, 0x18
jmp 0x404a8f
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403ce3
lea eax, [ebp - 0x418]
push eax
push 0x4934e0
call fcn.00407750
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x4048b6
push eax
push closesocket
call fcn.0040470f
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x4938f4], eax
jne 0x404b70
push esi
lea eax, [ebp - 0x51c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
and byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x41078d
push eax
call fcn.00407750
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.00407840
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.0040372f
lea eax, [ebp - 0x17]
push eax
call fcn.0040c9ac
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407750
lea eax, [ebp - 0x418]
push 0x40f044
push eax
call fcn.00407760
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407760
lea eax, [ebp - 0x418]
push str.nC7C
push eax
call fcn.00407760
lea eax, [ebp - 0x418]
push eax
call fcn.00403e63
add esp, 0x38
test eax, eax
je 0x404b4d
inc esi
cmp esi, 0xa
jl 0x404ab4
lea eax, [ebp - 0x18]
push eax
push 0x4933dc
call fcn.00407760
lea eax, [ebp - 0x418]
push eax
push 0x4935e4
call fcn.00407750
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404cc5
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404d00
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404d00
cmp byte [ecx + 1], 0x5a
jne 0x404d00
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404d00
mov eax, dword [eax]
pop esi
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, edx
ret
xor eax, eax
pop esi
ret
Function at 0x4057be
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x410b93
call fcn.0040347e
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x410c93
je 0x405823
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x493908], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x493904], eax
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x49390c], eax
push 3
push 0x410b93
call fcn.0040347e
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x40584d
push 3
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x493910], eax
mov edi, str._vsosoC_anGgg
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40586e
push 1
push edi
call fcn.0040347e
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x493914], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405b0f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405bd3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004078bb
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
and byte [ebp - 0x21b], 0
lea eax, [ebp - 0x21f]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407760
lea eax, [ebp - 0x11c]
push str.nC7C
push eax
call fcn.00407760
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.0040756c
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x405bd7
call fcn.00401808
xor eax, eax
jmp 0x405c2b
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403dc6
push esi
call fcn.00407beb
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004047e2
pop ecx
test eax, eax
pop ecx
je 0x405c29
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403f05
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x406106
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x41096d
call fcn.0040347e
pop ecx
pop ecx
push eax
push 0x410252
push closesocket
call fcn.004045ef
lea eax, [ebp - 0x10c]
push eax
call fcn.00405ec6
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.00407ace
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x4061b0
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x4061b0
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x4060ae
push eax
call fcn.00403f1c
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x40616a
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406a36
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
mov ax, word [0x4128f4]
push esi
push edi
push 7
mov word [ebp - 0x60], ax
pop ecx
xor eax, eax
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4128f0]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
mov dword [ebp - 0x20], 0x20
cmp dword [0x4938f0], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jne 0x406c61
cmp dword [0x493908], edi
je 0x406c61
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x406aba
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x80]
push eax
lea eax, [esi + 2]
push eax
call fcn.0040c920
pop ecx
test eax, eax
pop ecx
je 0x406c61
lea eax, [ebp - 0xa8]
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x80]
push ebx
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], edi
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], 0x7f
call fcn.00407760
pop ecx
lea eax, [ebp - 0xe8]
pop ecx
push 0x22
push eax
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push edi
call esi
mov dword [ebp - 4], 2
mov ebx, 0x40f044
mov al, byte [ebp - 4]
push 0x14
add al, 0x41
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
mov al, byte [ebp - 0x1c]
push 0x34
mov byte [ebp - 0x60], al
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x60]
push 0xffffffffffffffff
push eax
push 1
push edi
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xe8]
push 2
push eax
call dword [0x493908]
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], eax
je 0x406c53
cmp eax, edi
jne 0x406bd9
cmp dword [ebp - 8], edi
jne 0x406bd9
push 1
push str.nC7C
push edi
call fcn.004047b6
pop ecx
and eax, 1
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.00404261
lea eax, [ebp - 0x358]
push ebx
push eax
call fcn.00407750
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x358]
push eax
call fcn.00407760
push 1
lea eax, [ebp - 0x45c]
push edi
push eax
lea eax, [ebp - 0x358]
push edi
push eax
push dword [ebp + 8]
call fcn.0040284d
add esp, 0x38
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], edi
jne 0x406c53
push 1
push 0x410dc2
lea eax, [ebp - 0x560]
push edi
push eax
call fcn.00404261
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call fcn.00407750
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00407760
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00407760
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.00407760
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00407760
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x254]
push 0xffffffffffffffff
push eax
call fcn.0040704c
add esp, 0x48
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x406b1c
pop ebx
pop edi
pop esi
leave
ret
Function at 0x406c65
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x439c
call fcn.00407f60
lea eax, [ebp + 0xc]
push edi
push eax
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 8], 0x3e80
push 3
push 1
pop edi
push edi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x406ddb
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x439c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.MPR.dll_WNetEnumResourceA
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x406dd2
push esi
lea esi, [ebp - 0x4388]
test byte [esi - 8], 2
lea eax, [esi - 0x14]
je 0x406ce4
push dword [ebp + 0x10]
push 2
push eax
call fcn.00406c65
add esp, 0xc
jmp 0x406dbf
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.00404bd2
add esp, 0xc
test eax, eax
jne 0x406dbf
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.00406a36
pop ecx
pop ecx
push edi
push str.nC7C
push ebx
call fcn.004047b6
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00404261
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x406dbf
push edi
lea eax, [ebp - 0x51c]
push ebx
push eax
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040284d
add esp, 0x18
push edi
push 0x410dc2
push ebx
call fcn.004047b6
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404261
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call fcn.00407750
lea eax, [ebp - 0x10c]
push 0x40f044
push eax
call fcn.00407760
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00407760
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
call fcn.0040704c
add esp, 0x38
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x406cc8
pop esi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetCloseEnum
pop ebx
pop edi
leave
ret