joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40359a
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00409d99
cmp dword [esp + 0x10], 0
jne 0x4035c2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4035ba
and dword [ecx], 0
xor eax, eax
inc eax
jmp 0x40368a
push ebx
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 8]
add dword [edi + 0x220], eax
adc dword [edi + 0x224], 0
test ecx, ecx
je 0x4035fb
mov dword [ecx], eax
test ebx, ebx
jne 0x403687
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00409d99
mov ecx, dword [edi + 8]
mov ebp, 0x43d8a8
push 1
push ebp
call fcn.00409c72
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.0040a285
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.00409f61
push dword [edi + 0x230]
push str._IXStream__Access__x_
push dword [edi + 8]
call fcn.00409f61
add esp, 0x18
mov ecx, edi
call fcn.0040324d
push eax
push 0x6d68
push ebp
push dword [edi + 8]
call fcn.00409dd2
add esp, 0x10
mov ecx, edi
call fcn.0040324d
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.00409fe7
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
pop ecx
ret 0xc
Function at 0x40368f
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 8]
call fcn.00409d99
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0x18]
test eax, eax
push 0
cmovne ebx, eax
xor ecx, ecx
push ebx
test eax, eax
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x2c]
sete cl
mov dword [esp + 0x20], eax
and dword [ebx], 0
push dword [esi + 0x21c]
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x24], 0
mov edi, eax
mov ebp, dword [ebx]
jbe 0x403732
test edi, edi
jne 0x403732
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x403702
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x403732
mov eax, dword [esp + 0x10]
sub eax, dword [ebx]
mov ecx, dword [esp + 0x20]
add ecx, dword [ebx]
push 0
push ebx
push eax
push ecx
push dword [esi + 0x21c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebp, dword [ebx]
mov edi, eax
cmp dword [esp + 0x10], 0
jne 0x4036e4
mov dword [ebx], ebp
add dword [esi + 0x220], ebp
adc dword [esi + 0x224], 0
test edi, edi
je 0x403759
cmp dword [esp + 0x28], 0
jne 0x403752
cmp ebp, dword [esp + 0x24]
jne 0x403759
mov eax, edi
jmp 0x403816
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
mov ebx, eax
push 3
call fcn.00409d99
mov ecx, dword [esi + 8]
push 1
push 0x43d8a8
call fcn.00409c72
mov ecx, dword [esi + 8]
push ecx
test edi, edi
je 0x403786
push 0
jmp 0x403787
push ebx
call fcn.0040a285
push dword [esi + 0x21c]
push str._IXStream__Handle__p_
push dword [esi + 8]
call fcn.00409f61
push dword [esp + 0x20]
push str._IXStream__bExact__d_
push dword [esi + 8]
call fcn.00409f61
push ebp
push dword [esp + 0x40]
push str._IXStream__A_lire__u___lu__u_
push dword [esi + 8]
call fcn.00409f61
mov ecx, dword [esi + 0x220]
mov eax, dword [esi + 0x224]
sub ecx, ebp
sbb eax, 0
push eax
push ecx
push str._IXStream__Offset__I64u_
push dword [esi + 8]
call fcn.00409f61
add esp, 0x38
mov ecx, esi
call fcn.0040324d
push eax
push 0x6d63
push 0x43d8a8
push dword [esi + 8]
call fcn.00409dd2
add esp, 0x10
mov ecx, esi
call fcn.0040324d
mov ecx, dword [esi + 8]
push eax
push 1
call fcn.00409fe7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x403c93
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push 1
mov ecx, dword [edi + 8]
call fcn.00409d99
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x403cb4
sub eax, 1
jne 0x403cc7
push 2
jmp 0x403cb6
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x24]
test eax, eax
jne 0x403cce
xor eax, eax
jmp 0x403d56
push dword [edi + 0x21c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x403d53
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 8]
mov esi, eax
push 3
call fcn.00409d99
mov ecx, dword [edi + 8]
mov ebx, 0x43d8a8
push 1
push ebx
call fcn.00409c72
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.0040a285
push dword [edi + 0x21c]
push str._IXStream__Handle__p_
push dword [edi + 8]
call fcn.00409f61
add esp, 0xc
mov ecx, edi
call fcn.0040324d
push eax
push 0x6d64
push ebx
push dword [edi + 8]
call fcn.00409dd2
add esp, 0x10
mov ecx, edi
call fcn.0040324d
mov ecx, dword [edi + 8]
push eax
push 1
call fcn.00409fe7
pop esi
xor eax, eax
pop ebx
jmp 0x403d56
xor eax, eax
inc eax
pop edi
pop ebp
ret 0xc

Function at 0x404426
Capabilities:
Delete file

Disassembly:
sub esp, 0x218
push ebp
push esi
mov edx, ecx
lea ecx, [esp + 0xc]
push edi
call fcn.004066b9
push 0
push edx
call fcn.00406c0b
cmp dword [esp + 0x21c], 0
lea ebp, [esp + 0x10]
push 0x8001
cmovne ebp, dword [esp + 0x220]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404215
test eax, eax
je 0x4044b7
push 1
mov esi, 0x43d8a8
xor ecx, ecx
push esi
call fcn.00409c72
push ebp
push 0x6ddb
push esi
push 0
call fcn.00409db4
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.00409fe7
mov ecx, dword [esp + 0x21c]
call fcn.00402820
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x218
ret
Function at 0x4044d1
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
push 0x8001
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x40454f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40454f
push ecx
mov edx, ebp
lea ecx, [esp + 0x14]
call fcn.00404abf
pop ecx
test eax, eax
je 0x40454b
mov edx, dword [esp + 0x10]
push ecx
and edx, 0xfffffffe
mov ecx, ebp
call fcn.00404ba9
pop ecx
test eax, eax
je 0x40454b
mov ecx, ebp
pop edi
pop esi
pop ebp
add esp, 8
jmp fcn.00404426
xor eax, eax
jmp 0x404584
call fcn.00404215
test eax, eax
je 0x404582
push 1
mov edi, 0x43d8a8
xor ecx, ecx
push edi
call fcn.00409c72
push ebp
push 0x6ddb
push edi
push 0
call fcn.00409db4
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.00409fe7
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x4046ac
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, esi
push 0x3a
mov edi, dword [esi + 0x20c]
test edi, edi
pop ecx
cmovne eax, edi
cmp cx, word [eax + edx*2 - 2]
jne 0x4046d9
cmp byte [esp + 0x24], 0
je 0x40475c
jmp 0x404717
test edi, edi
mov ecx, esi
cmovne ecx, edi
dec edx
push ecx
call fcn.0040827a
pop ecx
mov ebx, eax
mov byte [esp + 0x13], 0
push 0x5c
pop ebp
test ebx, ebx
je 0x404739
test edi, edi
mov eax, esi
cmovne eax, edi
add eax, 2
cmp eax, ebx
jne 0x40472b
test edi, edi
mov eax, esi
cmovne eax, edi
cmp word [eax], bp
jne 0x40472b
cmp byte [esp + 0x24], 0
je 0x404726
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4047b7
mov byte [esp + 0x13], 1
test edi, edi
mov eax, esi
cmovne eax, edi
xor ecx, ecx
cmp eax, ebx
cmove ebx, ecx
test edi, edi
mov eax, esi
cmovne eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404755
mov ecx, eax
call fcn.004047bf
jmp 0x4047b7
cmp byte [esp + 0x13], 0
je 0x404761
xor eax, eax
inc eax
jmp 0x4047b7
test ebx, ebx
je 0x40478e
xor eax, eax
mov ecx, esi
mov word [ebx], ax
mov edx, ebx
mov eax, dword [esi + 0x20c]
test eax, eax
push 0
cmovne ecx, eax
sub edx, ecx
mov ecx, esi
sar edx, 1
call fcn.004046ac
pop ecx
test eax, eax
je 0x40471f
mov word [ebx], bp
mov eax, dword [esi + 0x20c]
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x14], 0xc
cmovne esi, eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4047d6
Capabilities:
Delete directory

Disassembly:
sub esp, 0x218
push ebp
push esi
mov edx, ecx
lea ecx, [esp + 0xc]
push edi
call fcn.004066b9
push 0
push edx
call fcn.00406c0b
cmp dword [esp + 0x21c], 0
lea ebp, [esp + 0x10]
push 0x8001
cmovne ebp, dword [esp + 0x220]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404215
test eax, eax
je 0x404867
push 1
mov esi, 0x43d8a8
xor ecx, ecx
push esi
call fcn.00409c72
push ebp
push 0x6ddf
push esi
push 0
call fcn.00409db4
add esp, 0x10
xor ecx, ecx
push ebp
push 1
call fcn.00409fe7
mov ecx, dword [esp + 0x21c]
call fcn.00402820
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x404adb
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
lea ecx, [esp + 0x18]
call fcn.004066b9
push 0
push esi
call fcn.00406c0b
cmp dword [esp + 0x224], 0
lea ebp, [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmovne ebp, dword [esp + 0x224]
push 0x8001
call ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], eax
call esi
mov ecx, dword [esp + 0x230]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404215
test eax, eax
je 0x404b84
push 1
mov esi, 0x43d8a8
xor ecx, ecx
push esi
call fcn.00409c72
mov eax, dword [esp + 0x14]
push ebp
push dword [eax]
push 0x6de2
push esi
push 0
call fcn.00409db4
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.00409fe7
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [esp + 0x224]
cmp dword [eax], 0xffffffff
setne bl
call fcn.00402820
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x21c
ret

Function at 0x404ba9
Capabilities:
Set file attributes

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404215
test eax, eax
je 0x404c1c
push 1
mov esi, 0x43d8a8
xor ecx, ecx
push esi
call fcn.00409c72
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.00409db4
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.00409fe7
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret
Function at 0x404c26
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x468
mov eax, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], eax
push edi
xor edi, edi
mov esi, ecx
push 0x8001
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
call fcn.004066b9
push edi
push esi
call fcn.00406c0b
cmp dword [esp + 0x224], edi
lea esi, [esp + 0x18]
cmovne esi, dword [esp + 0x224]
call fcn.0040aa1f
test eax, eax
lea eax, [esp + 0x228]
je 0x404c92
push edi
push edi
push edi
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x404c9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
push dword [esp + 0x10]
mov esi, eax
call dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx], 0xffffffff
jne 0x404cec
call ebp
cmp eax, 2
je 0x404cc3
call ebp
call fcn.00404215
test eax, eax
je 0x404d18
push 1
mov esi, 0x43d8a8
xor ecx, ecx
push esi
call fcn.00409c72
push 0x6de7
push esi
push edi
call fcn.00409db4
add esp, 0xc
jmp 0x404d18
mov edx, ebx
lea ecx, [esp + 0x228]
call fcn.00404e62
mov ecx, ebx
test eax, eax
jne 0x404d09
call fcn.00404d31
mov edi, eax
jmp 0x404d18
lea edx, [esp + 0x228]
call fcn.004053cb
xor edi, edi
inc edi
mov ecx, dword [esp + 0x224]
call fcn.00402820
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x468
ret

Function at 0x404ebd
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x404f20
call fcn.00404215
test eax, eax
je 0x404f28
push 1
mov esi, 0x43d8a8
xor ecx, ecx
push esi
call fcn.00409c72
push 0x6de5
push esi
push ebp
call fcn.00409db4
add esp, 0xc
jmp 0x404f28
cmp ebp, 0x104
jbe 0x404f2c
xor eax, eax
jmp 0x404f2f
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x404f33
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x105
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x404f96
call fcn.00404215
test eax, eax
je 0x404f9e
push 1
mov esi, 0x43d8a8
xor ecx, ecx
push esi
call fcn.00409c72
push 0x6e93
push esi
push ebp
call fcn.00409db4
add esp, 0xc
jmp 0x404f9e
cmp ebp, 0x104
jbe 0x404fa2
xor eax, eax
jmp 0x404fa5
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x404fa9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0
push dword [ebp + 8]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test edi, edi
setne bl
call fcn.00404215
test eax, eax
je 0x40501e
push 1
mov esi, 0x43d8a8
xor ecx, ecx
push esi
call fcn.00409c72
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.00409db4
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4054cb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.00405701
test eax, eax
je 0x405586
movzx eax, word [esi]
push eax
call fcn.0041ffc3
pop ecx
mov word [ebp - 8], ax
lea ecx, [ebp - 8]
push 0x3a
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
call fcn.0040541d
cmp eax, 3
je 0x405586
cmp eax, 2
je 0x405586
mov ebx, 0x104
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x405582
push 0x1a
lea eax, [ebp - 0x214]
push str.DeviceLanmanRedirector_
push eax
call fcn.0041fb81
add esp, 0xc
test eax, eax
jne 0x405582
lea edx, [ebp - 0x1e0]
lea ecx, [ebp - 0x420]
call fcn.0040548d
test eax, eax
je 0x405582
lea eax, [ebp - 0x420]
mov edx, ebx
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.0040814c
pop ecx
lea eax, [esi + 4]
mov ecx, edi
push eax
call fcn.004081a5
jmp 0x405595
xor eax, eax
jmp 0x40559a
push 0xffffffffffffffff
push esi
mov edx, 0x104
mov ecx, edi
call fcn.0040814c
xor eax, eax
pop ecx
inc eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40559f
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x18
push ebx
push edi
mov edi, dword [esp + 0x24]
mov ebx, ecx
mov ecx, edi
call fcn.00405701
test eax, eax
jne 0x4055bc
mov eax, 0x4b0
jmp 0x405639
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 1
push 1
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x405639
push ebp
push esi
mov ebp, 0x640
push ebp
call fcn.0041e3fb
mov esi, eax
pop ecx
test esi, esi
je 0x405634
movzx ecx, word [edi]
push ecx
call fcn.0041ffc3
movzx eax, ax
pop ecx
mov dword [esp + 0x20], eax
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ebp
push eax
push dword [esp + 0x28]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
mov dword [esp + 0x24], eax
cmp eax, 0xea
jne 0x40563f
mov ebp, dword [esp + 0x14]
push ebp
push esi
call fcn.0041ffd6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4055f8
push 8
pop eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x18
ret
test eax, eax
jne 0x4056c2
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x4055f8
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], ecx
mov edx, dword [ecx]
test edx, edx
je 0x405673
movzx eax, word [edx]
push eax
call fcn.0041ffc3
pop ecx
cmp word [esp + 0x20], ax
je 0x405684
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc edi
add ecx, 0x20
mov dword [esp + 0x18], ecx
cmp edi, eax
jl 0x405654
jmp 0x4055f8
shl edi, 5
mov edx, 0x104
push 0xffffffffffffffff
mov ecx, ebx
push dword [edi + esi + 0x14]
call fcn.0040814c
mov edi, dword [esp + 0x34]
add edi, 4
pop ecx
pop ecx
cmp word [edi], 0x5c
je 0x4056b7
push ecx
push 0x43da54
mov ecx, ebx
call fcn.004081a5
pop ecx
pop ecx
push ecx
push edi
mov ecx, ebx
call fcn.004081a5
pop ecx
pop ecx
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
push esi
call fcn.0041e3f6
mov eax, dword [esp + 0x28]
pop ecx
jmp 0x405637

Function at 0x407306
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx], vtable.CMD5.1.0
mov dword [ecx + 8], vtable.CMD5.0
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov eax, ecx
mov dword [ecx + 0x10], 0x67452301
mov dword [ecx + 0x14], 0xefcdab89
mov dword [ecx + 0x18], 0x98badcfe
mov dword [ecx + 0x1c], 0x10325476
ret
Function at 0x409155
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ebx, word [esi + 2]
movzx eax, word [edi + 2]
cmp bx, ax
jae 0x409174
or eax, 0xffffffff
jmp 0x409250
jbe 0x40917e
xor eax, eax
inc eax
jmp 0x409250
movzx edx, word [edi + 4]
push ebp
movzx ebp, word [esi + 6]
cmp edx, 6
ja 0x409209
movzx eax, word [esi + 4]
mov ecx, ebp
sub ecx, eax
lea eax, [edx + 6]
add eax, ecx
cdq
push 7
pop ecx
idiv ecx
movzx eax, word [edi + 6]
imul eax, eax, 7
inc edx
movzx ecx, dx
add eax, ecx
mov dword [esp + 0x18], eax
add eax, 0xfffffff9
mov dword [esp + 0x14], eax
cmp ebx, 2
jne 0x4091ea
movzx ecx, word [esi]
test cl, 3
jne 0x4091ea
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x4091e5
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x4091ea
push 0xc
pop ecx
jmp 0x4091ec
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x4387f4]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x40920d
movzx edx, word [edi + 6]
movzx ecx, word [edi + 8]
imul eax, edx, 0x18
add ecx, eax
movzx eax, word [edi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, bp
imul edx, ecx, 0x3c
imul ecx, eax, 0x18
movzx eax, word [esi + 8]
pop ebp
add ecx, eax
movzx eax, word [esi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, word [esi + 0xc]
imul ecx, ecx, 0x3c
add ecx, eax
xor eax, eax
cmp ecx, edx
setg al
or esi, 0xffffffff
cmp ecx, edx
cmovl eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x40aa27
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
mov eax, str.runas
push esi
xor esi, esi
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 0x30], esi
mov dword [ebp - 0x38], 0x440
cmove eax, esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], edx
movups xmmword [ebp - 0x1c], xmm0
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
je 0x40aa91
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret