joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ec38
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x49ee0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x49edf5
mov eax, dword [edi + 0x30]
call fcn.00404704
test eax, eax
jne 0x49ec8e
mov eax, dword [edi + 0x34]
call fcn.00404704
test eax, eax
jne 0x49ec8e
mov eax, edi
call fcn.0049eeac
jmp 0x49edf5
cmp dword [edi + 0xa0], 0
jne 0x49ecc5
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.0040a2cc
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5267b8]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x49ecfc
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.0040a2cc
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5267b8]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0049eeec
mov ebx, eax
test bl, bl
jne 0x49edaa
mov eax, dword [edi + 0x30]
call fcn.00404704
test eax, eax
jne 0x49ed34
mov eax, dword [edi + 0xc0]
call fcn.00404704
test eax, eax
je 0x49edaa
mov eax, dword [edi + 0xc0]
call fcn.00404704
test eax, eax
je 0x49ed56
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.0040a2cc
jmp 0x49ed82
push dword [edi + 0x30]
push 0x49ee28
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.004047c4
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.0040a2cc
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x49edaa
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.0049eeec
mov ebx, eax
test bl, bl
jne 0x49edb7
mov eax, edi
call fcn.0049eeac
jmp 0x49edf5
mov eax, dword [edi + 0x58]
test eax, eax
je 0x49edc6
mov dword [edi + 0xa8], eax
jmp 0x49edd0
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.0049ef64
test al, al
je 0x49edf5
mov eax, edi
mov si, 0xffee
call fcn.00403730
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.0049f010
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ee15
lea eax, [ebp - 0x108]
call fcn.00404434
ret
Function at 0x4bf304
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4bf3be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x10]
add dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x20]
mov dl, byte [ebx + 0x30]
mov byte [eax], dl
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
sub esi, eax
test esi, esi
je 0x4bf343
mov edx, dword [ebx + 0x10]
mov ecx, esi
call fcn.00402a38
add esi, dword [ebx + 0x10]
mov dword [ebx + 0x14], esi
mov ecx, dword [ebx + 0x18]
sub ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi + 0xc]
add dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x1c], eax
mov esi, dword [ebx + 0x14]
mov dword [ebx + 0x20], esi
cmp esi, dword [ebx + 0x18]
jne 0x4bf39a
mov edx, esi
dec edx
mov eax, dword [ebx + 0x10]
call fcn.0041dbf8
mov edi, eax
mov dword [ebx + 0x20], edi
cmp edi, dword [ebx + 0x10]
jne 0x4bf39a
lea edx, [ebp - 4]
mov eax, dword [0x524058]
call fcn.00406948
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004bf204
mov eax, dword [ebx + 0x20]
mov al, byte [eax]
mov byte [ebx + 0x30], al
mov eax, dword [ebx + 0x20]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf3c5
lea eax, [ebp - 4]
call fcn.00404434
ret

Function at 0x4e28d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x5228fe
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4e292b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x52291f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4e2921
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4e292f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x5066d8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x506706
mov eax, ebx
call fcn.0050718c
cmp dword [ebx + 0x40], 0
je 0x5066ff
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x506777
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x506769
cmp dword [ebx + 8], 0
je 0x506728
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x50673a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x506769
cmp dword [ebx + 8], 0
je 0x50671b
cmp eax, 3
je 0x50674d
dec eax
jne 0x50671b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x50671b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x50671b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x506795
cmp dword [ebx + 0x14], 0xcc
je 0x506795
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005067a0
pop ebx
ret
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x7eeeb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9

Function at 0x4014d6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ba9
cmp eax, ebx
je 0x401533
push ebx
push dword [0x7eeeb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7eeeb0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x40412d
Capabilities:
Get disk size

Disassembly:
inc eax
add byte [ebp + 0x505674c0], al
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call fcn.00405fd0
mov eax, dword [0x7eeddc]
mov eax, dword [eax + 0x11c]
test eax, eax
je 0x404177
cmp esi, 0x8430a8
jne 0x404177
push eax
push 0
call fcn.004060b4
push edi
mov edi, 0x7ded40
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404177
push edi
push esi
call fcn.00405abe
inc dword [0x7b4a1c]
push esi
push ebx
push dword [ebp + 8]
call fcn.00405715
jmp 0x404190
cmp dword [ebp + 0xc], 0x40f
je 0x4041a6
cmp dword [ebp + 0xc], 0x405
jne 0x404324
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
push ebx
call fcn.0040571b
push esi
call fcn.0040602c
test eax, eax
jne 0x4041c6
mov dword [ebp - 4], 1
push esi
mov edi, 0x7b8a40
push edi
call fcn.00405aa2
xor ebx, ebx
push ebx
call fcn.00405ba9
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x40421d
xor eax, eax
cmp eax, edi
je 0x40421b

Function at 0x4041f6
Capabilities:
Get disk size

Disassembly:
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [ebp - 0xc]
hlt
test eax, eax
jne 0x404270
test ebx, ebx
je 0x404202
mov word [ebx], ax
push edi
call fcn.00405fff
mov ebx, eax
xor eax, eax
mov word [ebx], ax
dec ebx
dec ebx
push 0x5c
pop eax
mov word [ebx], ax
cmp ebx, edi
jne 0x4041e7
xor ebx, ebx
push esi
push edi
call fcn.00405aa2
push edi
call fcn.004057f1
cmp eax, ebx
je 0x404233
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x404288
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x18]
mov esi, 0x400
push esi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
mov dword [ebp - 8], 1
jmp 0x404290
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
shrd edi, eax, 0xa
shr eax, 0xa
mov dword [ebp - 8], 1
xor ebx, ebx
jmp 0x40428b
mov edi, dword [ebp + 0xc]
mov esi, 0x400
push 5
call fcn.00403fc6
cmp dword [ebp - 8], ebx
je 0x4042a7
cmp edi, eax
jae 0x4042a7
mov dword [ebp - 4], 2
mov ecx, dword [0x7e6da8]
cmp dword [ecx + 0x10], ebx
je 0x4042dd
push 0xfffffffffffffffb
push 0x3ff
call fcn.00403efd
cmp dword [ebp - 8], ebx
je 0x4042cf
push 0xfffffffffffffffc
push esi
mov eax, edi
call fcn.00403efd
jmp 0x4042dd
push 0x40856c
push esi
push dword [ebp + 8]
call fcn.00405715
mov eax, dword [ebp - 4]
mov dword [0x7eeea4], eax
cmp eax, ebx
jne 0x4042f3
push 7
call fcn.0040141d
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
test dword [eax + 0x14], esi
je 0x4042fe
mov dword [ebp - 4], ebx
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
push eax
call fcn.004038f7
cmp dword [ebp - 4], ebx
jne 0x40431e
cmp dword [0x7b4a1c], ebx
jne 0x40431e
call fcn.004038d3
mov dword [0x7b4a1c], ebx
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0040393c
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405715
Capabilities:
Check if file exists

Disassembly:
mov word [eax], cx
push esi
call sub.KERNEL32.dll_lstrlenW
add eax, 0x448d0000
inc esi
clc
cmp eax, esi
jbe 0x40574c
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40574c
push esi
push esi
call fcn.00406200
push eax
push 0x8430a8
call fcn.00405cd2
mov esi, 0x8430a8
push esi
call fcn.0040625c
test eax, eax
jne 0x405778
push dword [edi + 0x118]
push esi
call fcn.004062e4
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x7eedd8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x7e6d90], eax
cmp dword [edi + 0x50], 0xffffffff
mov esi, 0x7e6d60

Function at 0x40571b
Capabilities:
Check if file exists

Disassembly:
mov word [eax], cx
push esi
call sub.KERNEL32.dll_lstrlenW
add eax, 0x448d0000
inc esi
clc
cmp eax, esi
jbe 0x40574c
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40574c
push esi
push esi
call fcn.00406200
push eax
push 0x8430a8
call fcn.00405cd2
mov esi, 0x8430a8
push esi
call fcn.0040625c
test eax, eax
jne 0x405778
push dword [edi + 0x118]
push esi
call fcn.004062e4
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x7eedd8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x7e6d90], eax
cmp dword [edi + 0x50], 0xffffffff
mov esi, 0x7e6d60

Function at 0x405737
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405746
test al, 0x10
jne 0x40574c
push esi
call fcn.0040622f

Function at 0x405917
Capabilities:
Create process on windows

Disassembly:
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x7d4a90], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405941
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405af8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405b15
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405b18
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405b9b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
sbb byte [eax - 0x75], dl
inc ebp
sbb bh, dh
fcomp dword [ebx]
shl byte [0x100], 0xd
sbb dword [eax], eax
add al, byte [eax]
Function at 0x405ba9
Capabilities:
Query or enumerate registry value

Disassembly:
sbb byte [eax - 0x75], dl
inc ebp
sbb bh, dh
fcomp dword [ebx]
shl byte [0x100], 0xd
sbb dword [eax], eax
add al, byte [eax]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405c14
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
or byte [eax], al
add bh, bh
jne 0x405bff
pop esi
pop ebp
ret 0x14

Function at 0x405be0
Capabilities:
Query or enumerate registry value

Disassembly:
or byte [eax], al
add bh, bh
jne 0x405bff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405bfd
cmp dword [ebp + 0x14], 1
je 0x405c02
cmp dword [ebp + 0x14], 2
je 0x405c02
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
invalid
invalid
invalid
invalid
inc eax

Function at 0x40625c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7d4ad8
push esi
call fcn.00405cd2
push esi
call fcn.00405a21
mov edi, eax
test edi, edi
jne 0x40627d
xor eax, eax
jmp 0x4062db
push edi
call fcn.00405d01
test byte [0x7eee28], 0x80
je 0x40629a
movzx eax, word [edi]
test ax, ax
je 0x406279
cmp ax, 0x5c
je 0x406279
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4062bc
push esi
call fcn.00405db2
test eax, eax
je 0x4062b6
test byte [eax], 0x10
je 0x4062e0
push esi
call fcn.0040622f
push esi
call ebx
cmp eax, edi
jg 0x4062a7
push esi
call fcn.00406200
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4062da

Function at 0x4062e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
test eax, eax
jge 0x406302
mov ecx, dword [0x7e6da8]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x7eedf8]
lea ecx, [ecx + eax*2]
mov eax, 0x7ded40
push edi
mov edi, eax
cmp dword [ebp + 8], eax
jb 0x40632e
mov edx, dword [ebp + 8]
sub edx, eax
sar edx, 1
cmp edx, 0x4008
jae 0x40632e
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
movzx edx, word [ecx]
test dx, dx
je 0x40655d
push ebx
push esi
Function at 0x406575
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089ac
mov ebx, 0x7d8ae0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x4065c3
push 1
push ebp
push edi
call fcn.00405b18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40673a
cmp eax, esi
jg 0x40673a
push esi
mov edi, 0x7de138
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40673a
cmp eax, esi
jg 0x40673a
push ebp
push ebp
push esi
push 0x7d92e0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40673a
push ebp
push ebp
push esi
mov esi, 0x7d9930
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40673a
push esi
push 0x7d92e0
push str._s_s_r_n
push 0x7d9d30
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x7eeddc]
push dword [eax + 0x128]
push edi
call fcn.004062e4
push 4
push 0xc0000000
push edi
call fcn.00405b18
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40673a
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406730
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406730
cmp edi, dword [esp + 0x10]
jne 0x406730
push str._Rename__r_n
push esi
call fcn.00405a7e
cmp eax, ebp
jne 0x4066c7
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4066f8
push 0x4089a0
add eax, 0xa
push eax
call fcn.00405a7e
mov ebp, eax
test ebp, ebp
je 0x4066f6
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4066e9
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4066e3
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x4066fa
xor ebp, ebp
mov eax, edi
push ebx
push 0x7d9d30
add eax, esi
push eax
call fcn.00405ad4
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
Function at 0x406773
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040625c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x4067a8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7eee88], eax
jmp 0x40694e
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4067c3
test eax, eax
je 0x4068f9
test cl, 2
je 0x4068f9
push edi
push ebx
mov esi, 0x7da130
push esi
call fcn.00405cd2
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4067e6
push str..
push esi
call edi
jmp 0x4067ec
push ebx
call fcn.0040622f
cmp word [ebx], 0
jne 0x4067fc
cmp word [0x7da130], 0x5c
jne 0x406804
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4068e8
xor edi, edi
Function at 0x54b660
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552c04
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5b3940]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
movzx eax, word [0x5c0190]
test eax, eax
jne 0x54b6ad
mov dword [ebp - 0x14], 0x104
lea ecx, [ebp - 0x14]
push ecx
push 0x5c0190
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.NETWORK_SERVICE
push 0x5c0190
call fcn.0050be35
add esp, 8
test eax, eax
jne 0x54b711
lea edx, [ebp - 0x18]
push edx
call fcn.005386d0
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push str.WebShareSettings_
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004015d0
add esp, 0xc
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407f90
mov eax, dword [ebp + 8]
jmp 0x54b786
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0054b470
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 1
push str.Settings_
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004015d0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00407f90
lea ecx, [ebp - 0x10]
call fcn.00405840
push eax
call fcn.00538500
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401800
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407f90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4526d2
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [0x6d01a8]
test eax, eax
je 0x452756
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [0x6d01dc]
test eax, eax
jne 0x452706
xor eax, eax
jmp 0x452755
test edi, edi
je 0x452702
mov eax, dword [edi + 0x3c]
add eax, edi
je 0x452702
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
test ecx, ecx
je 0x452702
and dword [ebp - 4], 0
push ebx
movzx ebx, word [eax + 6]
sub esi, edi
test ebx, ebx
jbe 0x452752
lea eax, [ecx + 0x10]
mov edx, dword [eax]
mov edi, dword [eax - 8]
cmp edx, edi
mov ecx, dword [eax - 4]
ja 0x45273d
mov edx, edi
cmp esi, ecx
jb 0x452747
add edx, ecx
cmp esi, edx
jbe 0x452759
inc dword [ebp - 4]
add eax, 0x28
cmp dword [ebp - 4], ebx
jb 0x45272f
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
inc eax
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
sub esi, ecx
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x452754
Function at 0x47fec8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6c0f76
call fcn.00692bd4
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
call fcn.00436670
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov edi, 0xc8
push edi
mov dword [esi], 0x6d7000
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
mov ecx, dword [0x732128]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.0043c95d
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004349ab
push 0xa7
push 0x101
push 0x75
push 0x84
lea eax, [ebp - 0x28]
push eax
call dword [0x6d03dc]
mov ecx, dword [0x732128]
push ebx
push ebx
push ebx
push 0x3b
call fcn.0043cb73
mov ecx, dword [ebp - 0x10]
push eax
push 0x16
push 0x4b
lea eax, [ebp - 0x28]
push eax
call fcn.00435366
call fcn.0043bce8
mov ecx, eax
call fcn.0043beae
push dword [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x14], ecx
call fcn.00439b46
push dword [ebp - 0x14]
mov ecx, dword [0x732100]
call fcn.0043aa67
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00436c0b
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x47ffb0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 0x10], ebx
push edi
mov ecx, esi
call fcn.004234ee
push edi
mov ecx, esi
call fcn.0042350a
call fcn.0042270c
mov eax, dword [eax + 0xc]
sub eax, dword [esi + 0x48]
push ebx
mov ecx, esi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x1a
call fcn.00436bd8
mov ecx, esi
mov dword [esi + 0xc4], ebx
call fcn.0047fadf
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [0x73c860], esi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret