joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x406a23
mov edx, dword [esi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406a1d
mov byte [esi + 6], 1
mov edi, dword [esp + 8]
jmp 0x406a4f
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x406a35
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0xc]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.004140b0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x406a66
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x406a60
cmp byte [esi + 6], 0
je 0x406a60
or eax, 0xffffffff
add esp, 8
ret
Function at 0x406b00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x406b45
cmp byte [esi + 1], 0
je 0x406b4d
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x406b62
cmp byte [esi + 1], 0
je 0x406b54
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 7]
mov dword [esp + 4], ebp
jmp 0x406b6b
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x406b1e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x406b6b
mov eax, dword [esi + 0x14]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x406b7f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0041231c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x406b9d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x406cb3
jmp 0x406bc0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x406bd1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x406bea
mov ebp, 0x404
cmp byte [esi], 0
je 0x406c0f
cmp byte [esi + 1], 0
je 0x406cb3
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x406c12
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebp
je 0x406c3a
mov ecx, dword [esi + 2]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406c34
mov byte [esi + 6], 1
mov eax, dword [esp + 0x1c]
jmp 0x406c60
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x406c4b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004140b0
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x406cb3
lea eax, [ebp - 3]
test eax, eax
jl 0x406c9e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x406c8e
cmp byte [eax + ebx + 1], 0x4b
jne 0x406c8e
cmp byte [eax + ebx + 2], 5
jne 0x406c8e
cmp byte [eax + ebx + 3], 6
je 0x406c94
test eax, eax
jge 0x406c70
jmp 0x406c9e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x406cb3
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x406bb4
push ebx
call fcn.004123df
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x407680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40769e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x407692
cmp dword [edi + 0x7c], ebx
je 0x4076ad
call fcn.00407a60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004073f0
add esp, 0xc
test eax, eax
je 0x4076d4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.0041231c
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407712
push 0x4000
call fcn.0041231c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x40771f
push esi
call fcn.004123df
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x407767
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00406530
test eax, eax
jne 0x407767
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40778e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x407794
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
mov al, byte [esi + 0x6c]
neg al
lea edx, [esi + 0x6d]
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
sbb eax, eax
and eax, 0xc
cmp ebp, ebx
mov dword [esi + 0x79], eax
je 0x4077d1
lea esp, [esp]
mov cl, byte [ebp]
cmp cl, bl
je 0x4077d1
call fcn.00406220
add ebp, 1
jne 0x4077c0
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x407bc0
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x407c73
cmp dword [esi + 4], 0xffffffff
jne 0x407c73
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x407bf0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407bf0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x407c29
cmp ax, 0x2f
je 0x407c29
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407c16
mov eax, dword [0x428ba0]
mov dword [edi], eax
push 0x18
call fcn.004136d6
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.00406cd0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x4084e0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x42d0a4]
xor eax, esp
mov dword [esp + 0x230], eax
push ebp
push esi
push edi
xor edi, edi
push edi
push 2
mov esi, ecx
mov dword [esp + 0x14], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x408591
push 0x22c
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00414720
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
je 0x408545
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40858a
push ebx
xor edi, edi
cmp dword [esi], edi
jle 0x40856f
lea ebx, [esi + 4]
nop
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.004138d1
add esp, 8
test eax, eax
je 0x4085ab
add edi, 1
add ebx, 0x80
cmp edi, dword [esi]
jl 0x408550
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x408546
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x10]
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004122be
add esp, 0x234
ret
lea ecx, [esp + 0x38]
push ecx
lea edx, [esi + 0xa14]
push 0x40
push edx
mov dword [esp + 0x1c], 1
mov dword [esi + 0xa0c], edi
call fcn.00412943
mov ecx, dword [esi + 0xa0c]
mov eax, dword [esp + 0x28]
shl ecx, 7
lea edx, [ecx + esi + 0x504]
push edx
mov dword [esi + 0xa10], eax
push 0x40
add esi, 0xa98
push esi
call fcn.00412943
add esp, 0x18
jmp 0x408585
Function at 0x408870
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
test esi, esi
mov ebx, eax
je 0x4089c1
test ebx, ebx
je 0x4089c1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408890
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x4089c1
push edi
push esi
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4088ce
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
call esi
jmp 0x4089a1
push 4
push 0x3000
push 0x104
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4088fa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x4089a1
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408900
sub eax, edx
push 0
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x408931
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x4089a1
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40894e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x4089a1
push 0x42ad34
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40896c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x4089a1
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x4089b3
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x408996
or ebp, eax
test esi, esi
je 0x4089a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4089ac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
call ebx
mov ebp, eax
jmp 0x408996
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x41213a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42d0a4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00412079
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00414720
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x412189
cmp dword [ebp - 0x1c], 5
jb 0x4121a1
jmp 0x41219d
cmp dword [ebp - 0x10], 1
jne 0x4121a1
cmp dword [ebp - 0x1c], 4
ja 0x41219d
jne 0x4121a1
cmp dword [ebp - 0x18], 0
jbe 0x4121a1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x426e74
call fcn.00411f2c
test eax, eax
jge 0x4121c2
mov byte [0x470bf0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004122be
add ebp, 0x78
leave
ret
Function at 0x4122be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d0a4]
jne 0x4122c8
repz ret
jmp fcn.00415226

Function at 0x41d806
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004174e1
xor ebx, ebx
cmp dword [0x42fbe8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41d8db
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41d846
xor eax, eax
jmp 0x41d99f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41d83f
push eax
call fcn.0041747e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42fbe8], eax
call esi
push eax
call fcn.0041747e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42fbec], eax
call esi
push eax
call fcn.0041747e
mov dword [0x42fbf0], eax
lea eax, [ebp - 8]
push eax
call fcn.00414843
test eax, eax
pop ecx
pop ecx
je 0x41d8a9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004166c5
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41d8db
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041747e
cmp eax, ebx
pop ecx
mov dword [0x42fbf8], eax
je 0x41d8db
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041747e
pop ecx
mov dword [0x42fbf4], eax
mov eax, dword [0x42fbf4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41d954
cmp dword [0x42fbf8], esi
je 0x41d954
push eax
call fcn.004174ea
pop ecx
call eax
cmp eax, ebx
je 0x41d921
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42fbf8]
call fcn.004174ea
pop ecx
call eax
test eax, eax
je 0x41d921
test byte [ebp - 0x18], 1
jne 0x41d954
lea eax, [ebp - 0xc]
push eax
call fcn.0041487a
test eax, eax
pop ecx
je 0x41d93c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004166c5
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41d94b
or dword [ebp + 0x10], 0x200000
jmp 0x41d985
or dword [ebp + 0x10], 0x40000
jmp 0x41d985
mov eax, dword [0x42fbec]
cmp eax, esi
je 0x41d985
push eax
call fcn.004174ea
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41d985
mov eax, dword [0x42fbf0]
cmp eax, esi
je 0x41d985
push dword [ebp - 4]
push eax
call fcn.004174ea
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42fbe8]
call fcn.004174ea
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ea9
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063aa
xor ebx, ebx
cmp eax, ebx
jne 0x402f8c
test byte [ebp + 0x10], 2
je 0x402f0a
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f71
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f46
test edi, edi
jne 0x402f71
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ea9
test eax, eax
jne 0x402f4f
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f1f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040690a
test eax, eax
jne 0x402f81
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f8c
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4032b4
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 0x4032d4
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4032e6
mov dword [ebp - 0xc], 0x422a20
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032fb
mov ecx, dword [0x434f58]
add ecx, eax
push ecx
call fcn.004034e5
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034cf
test eax, eax
je 0x4034bd
test byte [ebp + 0x17], 0x80
je 0x403468
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40d384], 0
and dword [0x40d380], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40ea08
mov dword [0x40ce68], 8
mov dword [0x416a10], eax
mov dword [0x416a0c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x416a08], 0x416a08
mov dword [ebp + 8], eax
jle 0x4034c5
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403374
mov esi, dword [ebp + 0x14]
mov edi, 0x41ea20
push esi
push edi
call fcn.004034cf
test eax, eax
je 0x4034bd
sub dword [ebp + 0x14], esi
mov dword [0x40ce58], edi
mov dword [0x40ce5c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce58
mov dword [0x40ce60], edi
mov dword [0x40ce64], eax
call fcn.00406a65
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403460
mov esi, dword [0x40ce60]
sub esi, edi
call ebx
test byte [0x434fb4], 1
mov edi, eax
je 0x40341b
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4033e2
cmp dword [ebp + 0x14], 0
jne 0x40341b
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.0040559f
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403454
cmp dword [ebp + 0x10], 0
jne 0x40343a
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004060df
test eax, eax
je 0x403464
add dword [ebp - 4], esi
jmp 0x403448
mov eax, dword [0x40ce60]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403397
jmp 0x4034c5
cmp dword [ebp + 0x14], 0
jg 0x403367
jmp 0x4034c5
push 0xfffffffffffffffc
jmp 0x4034bf
push 0xfffffffffffffffe
jmp 0x4034bf
test edi, edi
jne 0x4034aa
cmp dword [ebp + 0x14], edi
jle 0x4034c5
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40347e
mov esi, ebx
mov edi, 0x41ea20
push esi
push edi
call fcn.004034cf
test eax, eax
je 0x4034bd
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060df
test eax, eax
je 0x403464
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403474
jmp 0x4034c5
cmp dword [ebp + 0x14], esi
jge 0x4034b2
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034cf
test eax, eax
jne 0x4034c2
push 0xfffffffffffffffd
pop eax
jmp 0x4034c8
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a6e
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 0x405abf
xor eax, eax
jmp 0x405ae6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405ae6
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405abb
call esi
pop esi
leave
ret 4

Function at 0x405b20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430270], 0x44
push eax
xor eax, eax
push 0x430270
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 0x405b5f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b63
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 0x405c01
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406008
mov edi, eax
cmp edi, 0xffffffff
je 0x405c42
test byte [esp + 0x10], 1
push esi
je 0x405c24
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c2a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c33
xor eax, eax
inc eax
jmp 0x405c44
test byte [esp + 0x10], 4
jne 0x405c42
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c49
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.00405f14
test bl, 8
mov dword [ebp - 8], eax
je 0x405c88
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f88], eax
jmp 0x405e05
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405ca2
test eax, eax
je 0x405db3
test bl, 2
je 0x405db3
mov esi, 0x42f270
push edi
push esi
call fcn.0040653d
cmp dword [ebp + 8], 0
je 0x405cc1
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405cc7
push edi
call fcn.00405e58
cmp word [edi], 0
jne 0x405cd7
cmp word [0x42f270], 0x5c
jne 0x405ce2
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 0x405da8
cmp word [ebp - 0x22c], 0x2e
jne 0x405d2c
cmp word [ebp - 0x22a], 0
je 0x405d8b
cmp word [ebp - 0x22a], 0x2e
jne 0x405d2c
cmp word [ebp - 0x228], 0
je 0x405d8b
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040653d
test byte [ebp - 0x258], 0x10
je 0x405d57
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d8b
push dword [ebp + 0xc]
push edi
call fcn.00405c49
jmp 0x405d8b
push dword [ebp - 4]
push edi
call fcn.00405c01
test eax, eax
jne 0x405d83
cmp dword [ebp - 4], eax
je 0x405d7b
push edi
push 0xfffffffffffffff1
call fcn.0040559f
push 0
push edi
call fcn.004062fd
jmp 0x405d8b
inc dword [0x434f88]
jmp 0x405d8b
push edi
push 0xfffffffffffffff2
call fcn.0040559f
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405db3
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e05
cmp dword [ebp - 8], esi
jne 0x405dc7
inc dword [0x434f88]
jmp 0x405e05
push edi
call fcn.00406873
test eax, eax
je 0x405e05
push edi
call fcn.00405e0c
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c01
test eax, eax
jne 0x405dfd
cmp dword [ebp - 4], esi
je 0x405dbf
push edi
push 0xfffffffffffffff1
call fcn.0040559f
push esi
push edi
call fcn.004062fd
jmp 0x405e05
push edi
push 0xffffffffffffffe5
call fcn.0040559f
pop edi
pop esi
pop ebx
leave
ret 8