joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c4f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d99fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x5c5002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.005c8dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x5c5002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005c06e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.005c920b
push 0x10
call fcn.005c91d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x5c4fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.005b51c0
jmp 0x5c4fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.005c4b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x5c4ff0
mov ecx, edi
call fcn.005b52c0
push edi
call fcn.005c91c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5c5021
inc ebx
cmp ebx, 0x20
jb 0x5c4f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x5c6250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da808
push 0x5ca288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5c6329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5c6329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005c91d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x5c6329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x5c6329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x5c632c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005c6351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c6d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5c6d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x5c6d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5c6d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5c6d94
push eax
push esi
call fcn.005c920b
add esp, 8
pop esi
ret 0x10

Function at 0x5c6da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5c6e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x5c6e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x5df320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005c8dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x5c6dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x5c6e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5c6ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x5c6eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x5df320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005c8dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x5c6eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x5c6e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x5c7000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5c7131
push esi
call fcn.005ca145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.005b9080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x5c7131
push 0
push ebp
call fcn.005b93a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.005b9260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5c708b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005b92f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5c7121
push 0x5df918
push edi
call fcn.005c83f0
push eax
push ebx
push esi
call fcn.005c6f60
push 0x5df8f8
push edi
call fcn.005c83f0
push eax
push ebx
push esi
call fcn.005c6f60
push 0x5df8d8
push edi
call fcn.005c83f0
push eax
push ebx
push esi
call fcn.005c6f60
push 0x5df8c0
push edi
call fcn.005c83f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.005c6f60
push 0x5df8a0
push edi
call fcn.005c83f0
push eax
push ebx
push esi
call fcn.005c6f60
push 0x5df888
push edi
call fcn.005c83f0
push eax
push ebx
push esi
call fcn.005c6f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5c81b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005c8140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005c8140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005c8140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005c8140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5c8bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c8c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5da87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5c8c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5c8c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4013a0
Capabilities:
Access peb ldr_data
Get process heap flags
Write file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x4c
cmp word [eax], 0
je 0x401510
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4013b8
sub eax, esi
sar eax, 1
mov ebx, eax
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x20
mov edi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebp, eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x20
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 4
lea edx, [esp + 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
cmp dword [esp + 0x3c], edi
jae 0x4014b0
test byte [section..data], 2
jne 0x4014e0
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.Failed_to_write_output_n
mov dword [esp + 8], str.write_to_stdout
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call fcn.00401350
jmp 0x4014b0
xor ebx, ebx
jmp 0x4013c7

Function at 0x402700
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402770
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401520
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x4029c5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
lea edi, [ebp - 0x25c]
mov ecx, 0x97
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [str.073110116101114110101116082101097100070105108101]
push ecx
call fcn.004013f3
add esp, 8
mov esi, esp
lea edx, [ebp - 0x104]
push edx
mov edi, esp
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00402b65
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00402b65
mov dword [0x40acf8], eax
call fcn.00401d70
test eax, eax
jne 0x402a60
call fcn.00402331
call fcn.0040260d
call fcn.004018cb
xor eax, eax
jmp 0x402b50
mov eax, dword [ebp + 0x10]
push eax
call fcn.00402c80
add esp, 4
test eax, eax
je 0x402a85
push str.start
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402fa0
add esp, 8
test eax, eax
jne 0x402af1
push 0x44
push 0
lea edx, [ebp - 0x25c]
push edx
call fcn.00403020
add esp, 0xc
mov dword [ebp - 0x230], 1
mov word [ebp - 0x22c], 5
push str.__start
push 0x40abf4
call fcn.00402e90
add esp, 8
mov esi, esp
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x25c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40abf4
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp esi, esp
call fcn.00402b65
xor eax, eax
jmp 0x402b50
call fcn.00402985
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x208]
push edx
push 0x40abf4
call fcn.00401d9b
add esp, 8
lea eax, [ebp - 0x208]
push eax
call fcn.00402c80
add esp, 4
cmp eax, 0x26
jne 0x402b46
lea ecx, [ebp - 0x208]
push ecx
call fcn.00402075
add esp, 4
call fcn.0040260d
mov eax, 1
pop edi
pop esi
add esp, 0x25c
cmp ebp, esp
call fcn.00402b65
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x7adc6742
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x16994611
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40891f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.0040893a
and ecx, ebx
xor dword [eax], esi
inc eax
or ebx, ecx
sub ebx, ecx
cmp eax, edi
jne fcn.0040891f
add ebx, ecx
ret
Function at 0x403181
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4031a1
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4031b3
mov dword [ebp - 0xc], 0x7976e0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4031c8
mov ecx, dword [0x7a8ab8]
add ecx, eax
push ecx
call fcn.0040338f
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403379
test eax, eax
je 0x403367
test byte [ebp + 0x17], 0x80
je 0x403312
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ce38], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40ce20], 0xb
mov dword [ebp + 8], eax
jle 0x40336f
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40321e
mov esi, dword [ebp + 0x14]
mov edi, 0x7936e0
push esi
push edi
call fcn.00403379
test eax, eax
je 0x403367
sub dword [ebp + 0x14], esi
mov dword [0x40ce10], edi
mov dword [0x40ce14], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce10
mov dword [0x40ce18], edi
mov dword [0x40ce1c], eax
call fcn.00406847
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40330a
mov esi, dword [0x40ce18]
sub esi, edi
call ebx
test byte [0x7a8b14], 1
mov edi, eax
je 0x4032c5
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x40328c
cmp dword [ebp + 0x14], 0
jne 0x4032c5
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405374
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4032fe
cmp dword [ebp + 0x10], 0
jne 0x4032e4
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405eb4
test eax, eax
je 0x40330e
add dword [ebp - 4], esi
jmp 0x4032f2
mov eax, dword [0x40ce18]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x403241
jmp 0x40336f
cmp dword [ebp + 0x14], 0
jg 0x403211
jmp 0x40336f
push 0xfffffffffffffffc
jmp 0x403369
push 0xfffffffffffffffe
jmp 0x403369
test edi, edi
jne 0x403354
cmp dword [ebp + 0x14], edi
jle 0x40336f
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403328
mov esi, ebx
mov edi, 0x7936e0
push esi
push edi
call fcn.00403379
test eax, eax
je 0x403367
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405eb4
test eax, eax
je 0x40330e
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40331e
jmp 0x40336f
cmp dword [ebp + 0x14], esi
jge 0x40335c
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403379
test eax, eax
jne 0x40336c
push 0xfffffffffffffffd
pop eax
jmp 0x403372
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405843
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405894
xor eax, eax
jmp 0x4058bb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058bb
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405890
call esi
pop esi
leave
ret 4

Function at 0x4058f5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a4f30], 0x44
push eax
xor eax, eax
push 0x7a4f30
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405934
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405938
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x4059d6
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405ddd
mov edi, eax
cmp edi, 0xffffffff
je 0x405a17
test byte [esp + 0x10], 1
push esi
je 0x4059f9
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059ff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405a08
xor eax, eax
inc eax
jmp 0x405a19
test byte [esp + 0x10], 4
jne 0x405a17
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a1e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ce9
test bl, 8
mov dword [ebp - 8], eax
je 0x405a5d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8ae8], eax
jmp 0x405bda
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a77
test eax, eax
je 0x405b88
test bl, 2
je 0x405b88
mov esi, 0x7a3f30
push edi
push esi
call fcn.0040630c
cmp dword [ebp + 8], 0
je 0x405a96
push 0x40a54c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a9c
push edi
call fcn.00405c2d
cmp word [edi], 0
jne 0x405aac
cmp word [0x7a3f30], 0x5c
jne 0x405ab7
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b7d
cmp word [ebp - 0x22c], 0x2e
jne 0x405b01
cmp word [ebp - 0x22a], 0
je 0x405b60
cmp word [ebp - 0x22a], 0x2e
jne 0x405b01
cmp word [ebp - 0x228], 0
je 0x405b60
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040630c
test byte [ebp - 0x258], 0x10
je 0x405b2c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b60
push dword [ebp + 0xc]
push edi
call fcn.00405a1e
jmp 0x405b60
push dword [ebp - 4]
push edi
call fcn.004059d6
test eax, eax
jne 0x405b58
cmp dword [ebp - 4], eax
je 0x405b50
push edi
push 0xfffffffffffffff1
call fcn.00405374
push 0
push edi
call fcn.004060d2
jmp 0x405b60
inc dword [0x7a8ae8]
jmp 0x405b60
push edi
push 0xfffffffffffffff2
call fcn.00405374
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ad9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b88
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bda
cmp dword [ebp - 8], esi
jne 0x405b9c
inc dword [0x7a8ae8]
jmp 0x405bda
push edi
call fcn.0040664f
test eax, eax
je 0x405bda
push edi
call fcn.00405be1
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059d6
test eax, eax
jne 0x405bd2
cmp dword [ebp - 4], esi
je 0x405b94
push edi
push 0xfffffffffffffff1
call fcn.00405374
push esi
push edi
call fcn.004060d2
jmp 0x405bda
push edi
push 0xffffffffffffffe5
call fcn.00405374
pop edi
pop esi
pop ebx
leave
ret 8