joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007bc10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x100c701c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1007bc37
mov ecx, 5
int 0x29
push 2
call fcn.1007b80c
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1007bd42
test esi, esi
jne 0x1007bd42
push 2
call fcn.1007b80c
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007b0c7
mov esp, ebp
pop ebp
ret
Function at 0x100846b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100c701c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x1008e3a0
push edi
mov dword [ebp - 0x210], edi
call sub.msvcrt.dll_wcspbrk
add esp, 8
test eax, eax
jne 0x100846f0
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007b0c7
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor esi, esi
call sub.msvcrt.dll__errno
mov ebx, dword [eax]
call sub.msvcrt.dll__errno
push 0x104
push edi
mov dword [eax], esi
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wfullpath
add esp, 0xc
mov edi, eax
call sub.msvcrt.dll__errno
test edi, edi
je 0x1008472c
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
jmp 0x1008475b
cmp dword [eax], 0x22
jne 0x1008486a
call sub.msvcrt.dll__errno
push 0
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
push ebx
push 0
call sub.msvcrt.dll__wfullpath
mov esi, eax
add esp, 0xc
mov edi, esi
test edi, edi
je 0x1008486a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10084760
sub ecx, edx
sar ecx, 1
cmp ecx, 3
je 0x10084842
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10084780
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jb 0x1008486a
movzx eax, word [edi]
cmp eax, 0x5c
je 0x100847a9
cmp eax, 0x2f
jne 0x1008486a
movzx eax, word [edi + 2]
cmp eax, 0x5c
je 0x100847bb
cmp eax, 0x2f
jne 0x1008486a
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x1008486a
cmp eax, 0x2f
je 0x1008486a
movzx eax, word [edi + 6]
lea edx, [edi + 6]
mov edi, eax
test ax, ax
je 0x10084802
mov ecx, eax
cmp cx, 0x5c
je 0x100847ff
cmp cx, 0x2f
je 0x100847ff
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x100847e1
jmp 0x10084802
movzx edi, cx
test di, di
je 0x1008486a
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
je 0x1008486a
cmp cx, 0x5c
je 0x10084833
cmp cx, 0x2f
je 0x10084833
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x10084815
jmp 0x10084836
movzx edi, cx
test di, di
je 0x10084842
cmp word [edx + 2], 0
jne 0x1008486a
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
cmp eax, 1
jbe 0x1008486b
call sub.msvcrt.dll_free
add esp, 4
mov al, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007b0c7
mov esp, ebp
pop ebp
ret
push esi
call sub.msvcrt.dll_free
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor al, al
pop esi
pop ebx
pop edi
call fcn.1007b0c7
mov esp, ebp
pop ebp
ret
Function at 0x10084a40
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10084be8
push esi
xor esi, esi
push dword [edi + esi*4]
call sub.msvcrt.dll_free
inc esi
add esp, 4
cmp esi, 7
jne 0x10084a52
push ebx
lea esi, [edi + 0x1c]
mov ebx, 7
lea esp, [esp]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084a70
lea esi, [edi + 0x38]
mov ebx, 0xc
lea ebx, [ebx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084a90
lea esi, [edi + 0x68]
mov ebx, 0xc
lea ebx, [ebx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084ab0
lea esi, [edi + 0x98]
mov ebx, 2
lea ecx, [ecx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084ad0
push dword [edi + 0xa0]
call sub.msvcrt.dll_free
push dword [edi + 0xa4]
call sub.msvcrt.dll_free
push dword [edi + 0xa8]
call sub.msvcrt.dll_free
mov eax, dword fs:[0x18]
add esp, 0xc
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x10084be6
lea esi, [edi + 0xb8]
mov ebx, 7
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084b35
lea esi, [edi + 0xd4]
mov ebx, 7
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084b52
lea esi, [edi + 0xf0]
mov ebx, 0xc
nop
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084b70
lea esi, [edi + 0x120]
mov ebx, 0xc
lea ecx, [ecx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084b90
lea esi, [edi + 0x150]
mov ebx, 2
lea ecx, [ecx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084bb0
push dword [edi + 0x158]
call sub.msvcrt.dll_free
push dword [edi + 0x15c]
call sub.msvcrt.dll_free
push dword [edi + 0x160]
call sub.msvcrt.dll_free
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10084bf0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10084d82
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10084c1a
call fcn.100849e0
test al, al
jne 0x10084c1a
push dword [esi + 0xc]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10084c35
call fcn.100849e0
test al, al
jne 0x10084c35
push dword [esi + 0x10]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10084c50
call fcn.100849e0
test al, al
jne 0x10084c50
push dword [esi + 0x14]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10084c6b
call fcn.100849e0
test al, al
jne 0x10084c6b
push dword [esi + 0x18]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x10084c86
call fcn.100849e0
test al, al
jne 0x10084c86
push dword [esi + 0x1c]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10084ca1
call fcn.100849e0
test al, al
jne 0x10084ca1
push dword [esi + 0x20]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10084cbc
call fcn.100849e0
test al, al
jne 0x10084cbc
push dword [esi + 0x24]
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x10084d82
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10084cfb
call fcn.100849e0
test al, al
jne 0x10084cfb
push dword [esi + 0x38]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x10084d16
call fcn.100849e0
test al, al
jne 0x10084d16
push dword [esi + 0x3c]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x10084d31
call fcn.100849e0
test al, al
jne 0x10084d31
push dword [esi + 0x40]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10084d4c
call fcn.100849e0
test al, al
jne 0x10084d4c
push dword [esi + 0x44]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x10084d67
call fcn.100849e0
test al, al
jne 0x10084d67
push dword [esi + 0x48]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x10084d82
call fcn.100849e0
test al, al
jne 0x10084d82
push dword [esi + 0x4c]
call sub.msvcrt.dll_free
add esp, 4
pop esi
pop ebp
ret
Function at 0x10084d90
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xbc]
test ecx, ecx
je 0x10084f0d
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x10084f0d
cmp dword [eax], 0
jne 0x10084f0d
call fcn.100849e0
test al, al
jne 0x10084f0d
mov ecx, dword [edi + 0xb0]
call fcn.100849e0
test al, al
jne 0x10084f0d
mov ecx, dword [edi + 0xb8]
test ecx, ecx
je 0x10084e0f
cmp dword [ecx], 0
jne 0x10084e0f
call fcn.100849e0
test al, al
jne 0x10084e0f
push dword [edi + 0xb8]
call sub.msvcrt.dll_free
push dword [edi + 0xbc]
call fcn.10084bf0
add esp, 8
mov ecx, dword [edi + 0xb4]
test ecx, ecx
je 0x10084ef4
cmp dword [ecx], 0
jne 0x10084ef4
call fcn.100849e0
test al, al
jne 0x10084ef4
push dword [edi + 0xb4]
call sub.msvcrt.dll_free
mov esi, dword [edi + 0xbc]
add esp, 4
test esi, esi
je 0x10084ef4
mov ecx, dword [esi]
test ecx, ecx
je 0x10084e68
call fcn.100849e0
test al, al
jne 0x10084e68
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10084e83
call fcn.100849e0
test al, al
jne 0x10084e83
push dword [esi + 4]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10084e9e
call fcn.100849e0
test al, al
jne 0x10084e9e
push dword [esi + 8]
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x10084ef4
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x10084ed9
call fcn.100849e0
test al, al
jne 0x10084ed9
push dword [esi + 0x30]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10084ef4
call fcn.100849e0
test al, al
jne 0x10084ef4
push dword [esi + 0x34]
call sub.msvcrt.dll_free
add esp, 4
push dword [edi + 0xb0]
call sub.msvcrt.dll_free
push dword [edi + 0xbc]
call sub.msvcrt.dll_free
add esp, 8
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x10084f73
cmp dword [ecx], 0
jne 0x10084f73
call fcn.100849e0
test al, al
jne 0x10084f73
mov eax, dword [edi + 0xc4]
sub eax, 0xfe
push eax
call sub.msvcrt.dll_free
mov eax, dword [edi + 0xcc]
add esp, 4
sub eax, 0x80
je 0x10084f4f
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [edi + 0xd0]
sub eax, 0x80
je 0x10084f65
push eax
call sub.msvcrt.dll_free
add esp, 4
push dword [edi + 0xc0]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [edi + 0xd4]
test ecx, ecx
je 0x10084fa8
cmp dword [ecx + 0xb4], 0
jne 0x10084fa8
call fcn.100849e0
test al, al
jne 0x10084fa8
push dword [edi + 0xd4]
call fcn.10084a40
push dword [edi + 0xd4]
call sub.msvcrt.dll_free
add esp, 8
lea esi, [edi + 0x48]
lea ebx, [edi + 0xa8]
cmp esi, ebx
je 0x10084fec
mov ecx, dword [esi]
test ecx, ecx
je 0x10084fc0
call fcn.100849e0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10084fe5
call fcn.100849e0
test al, al
jne 0x10084fe5
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10084fe5
cmp dword [eax], 0
jne 0x10084fe5
push eax
call sub.msvcrt.dll_free
add esp, 4
add esi, 0x10
cmp esi, ebx
jne 0x10084fb5
push edi
call sub.msvcrt.dll_free
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100855a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x100c701c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1008569b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x1008569b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x100855fa
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x100855d8
jmp 0x1008569b
cmp edx, 0x200
jae 0x10085701
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x1008569b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x1008569a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x1008569a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x100856e3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x10085680
pop edi
mov eax, dword [0x100e05a0]
test eax, eax
jne 0x100856c1
push str.setlocale
call fcn.10086f30
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100856bc
or eax, 0xffffffff
mov dword [0x100e05a0], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x100856ef
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007b0c7
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x1008569a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1007b0c7
mov esp, ebp
pop ebp
ret
call fcn.1007b1f7
int3
Function at 0x10085d80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call sym.steam_api.dll_SteamAPI_ISteamController_GetControllerState
mov esi, dword [ebp + 8]
test al, al
je 0x10085d9e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.10085db0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f90]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405bd5
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x423f90]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
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 [0x423f90], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x402e44
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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 0x402e61
mov dword [ebp - 8], RegEnumValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e70
mov ebx, 0x40f080
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e85
mov ecx, dword [0x423f38]
add ecx, eax
push ecx
call fcn.00403073
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403041
test eax, eax
je 0x402fec
test byte [ebp + 0x17], 0x80
je 0x402fd5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40aff0
mov dword [ebp - 0xc], eax
call fcn.00405caf
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403037
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402ed5
mov esi, dword [ebp + 0x14]
mov edi, 0x40b080
push esi
push edi
call fcn.00403041
test eax, eax
je 0x402fec
sub dword [ebp + 0x14], esi
mov dword [0x40b008], edi
mov dword [0x40b00c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40aff0
mov dword [0x40b010], ebx
mov dword [0x40b014], eax
call fcn.00405ccf
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fcd
mov esi, dword [0x40b010]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423f94], 1
mov edi, eax
je 0x402f77
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f44
cmp dword [ebp + 0x14], 0
jne 0x402f77
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 - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404c62
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fc2
cmp dword [ebp + 0x10], eax
jne 0x402fa0
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fd1
cmp dword [ebp - 0x10], esi
jne 0x402fd1
add dword [ebp - 4], esi
jmp 0x402fb6
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b010]
jl 0x403037
cmp dword [ebp - 0x14], 1
jne 0x402ef8
jmp 0x403037
cmp dword [ebp + 0x14], eax
jg 0x402ec8
jmp 0x403037
push 0xfffffffffffffffc
jmp 0x402fee
push 0xfffffffffffffffe
jmp 0x402fee
test edi, edi
je 0x40302c
cmp dword [ebp + 0x14], esi
jge 0x402fe1
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403041
test eax, eax
jne 0x403034
push 0xfffffffffffffffd
pop eax
jmp 0x40303a
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402ffc
mov esi, dword [ebp + 0x14]
mov edi, 0x40b080
push esi
push edi
call fcn.00403041
test eax, eax
je 0x402fec
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fd1
cmp esi, dword [ebp + 0x10]
jne 0x402fd1
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ff1
jmp 0x403037
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405124
Capabilities:
Create process on windows

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

Function at 0x4051e9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040548b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x40521f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f68], eax
jmp 0x4053a4
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x40523a
test eax, eax
je 0x40534f
test cl, 2
je 0x40534f
mov esi, 0x4214e0
push ebx
push esi
call fcn.004058b7
cmp dword [ebp + 8], 0
je 0x405259
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40525f
push ebx
call fcn.004053f1
push 0x40900c
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405345
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004053d5
cmp byte [eax], 0
je 0x4052b0
cmp byte [ebp - 0x18], 0
je 0x4052b0
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4052c6
mov al, byte [esi + 1]
test al, al
je 0x405324
cmp al, 0x2e
jne 0x4052c6
cmp byte [esi + 2], 0
je 0x405324
push esi
push edi
call fcn.004058b7
test byte [ebp - 0x148], 0x10
je 0x4052eb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405324
push dword [ebp + 0xc]
push ebx
call fcn.004051e9
jmp 0x405324
push ebx
call fcn.0040556f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40531c
test byte [ebp + 0xc], 4
je 0x405314
push ebx
push 0xfffffffffffffff1
call fcn.00404c62
push 0
push ebx
call fcn.00405605
jmp 0x405324
inc dword [0x423f68]
jmp 0x405324
push ebx
push 0xfffffffffffffff2
call fcn.00404c62
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40528e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40534f
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x4053a4
cmp dword [ebp - 8], esi
jne 0x405364
inc dword [0x423f68]
jmp 0x4053a4
push ebx
call fcn.00405bae
test eax, eax
je 0x4053a4
push ebx
call fcn.004053aa
push ebx
call fcn.0040556f
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40539c
test byte [ebp + 0xc], 4
je 0x40535c
push ebx
push 0xfffffffffffffff1
call fcn.00404c62
push esi
push ebx
call fcn.00405605
jmp 0x4053a4
push ebx
push 0xffffffffffffffe5
call fcn.00404c62
pop esi
pop ebx
leave
ret 8
Function at 0x40548b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4218e0
push esi
call fcn.004058b7
push esi
call fcn.0040543e
mov edi, eax
test edi, edi
jne 0x4054ac
xor eax, eax
jmp 0x4054fe
push edi
call fcn.00405b15
test byte [0x423ef8], 0x80
je 0x4054c5
mov al, byte [edi]
test al, al
je 0x4054a8
cmp al, 0x5c
je 0x4054a8
sub edi, esi
jmp 0x4054dd
call fcn.00405bae
test eax, eax
je 0x4054d7
test byte [eax], 0x10
je 0x4054a8
push esi
call fcn.004053f1
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4054c9
call fcn.004053aa
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40558b
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40558e
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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_CreateFileA]
ret 0xc

Function at 0x4055bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405601
test edi, edi
jne 0x4055c8
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4055fb