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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10228a00]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101b4c3a
cmp byte [ebx], 0xa
jne 0x101b4c3a
or byte [edi + eax + 0x28], 4
jmp 0x101b4c3f
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x101b4d3e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x101b4d21
inc eax
cmp dl, 0xd
je 0x101b4c6b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x101b4c91
cmp eax, ecx
jae 0x101b4c9f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x101b4c53
jmp 0x101b4d3e
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101b4d1c
cmp dword [ebp - 0x10], 0
je 0x101b4d1c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10228a00]
test byte [eax + edi + 0x28], 0x48
je 0x101b4cf6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101b4ce1
mov byte [esi], dl
jmp 0x101b4cf2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10228a00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101b4d3e
cmp byte [ebp - 1], 0xa
jne 0x101b4d05
cmp esi, ebx
jne 0x101b4d05
mov byte [esi], 0xa
jmp 0x101b4d3d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101b5780
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101b4d3e
mov byte [esi], 0xd
jmp 0x101b4d3d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10228a00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101b4d3b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101b4d3e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101b4d47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10228a00]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101b4d8d
cmp word [ebx], dx
jne 0x101b4d8d
or byte [eax + edi + 0x28], 4
jmp 0x101b4d92
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x101b4ef5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x101b4ed5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x101b4dd3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x101b4e09
cmp eax, edx
jae 0x101b4e17
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x101b4dae
jmp 0x101b4ef5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101b4ed0
cmp dword [ebp - 0x18], 0
je 0x101b4ed0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10228a00]
test byte [eax + edi + 0x28], 0x48
je 0x101b4ea6
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x101b4e6a
mov word [esi], cx
jmp 0x101b4ea1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10228a00]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10228a00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10228a00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x101b4ef5
pop eax
cmp word [ebp - 4], ax
jne 0x101b4eb6
cmp esi, ebx
jne 0x101b4eb6
mov word [esi], ax
jmp 0x101b4ef2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101b5780
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101b4ef5
push 0xd
pop eax
jmp 0x101b4eb1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10228a00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x101b4eef
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x101b4ef5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101b98f2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x101b998f
push ebx
push esi
call fcn.101b98bb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101b88cd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101b993c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101b998e
push edi
push eax
call fcn.101b2601
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101b995c
call fcn.101b221d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101b998d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101b88cd
add esp, 0x20
test eax, eax
jne 0x101b997b
push edi
call fcn.101b221d
jmp 0x101b9983
push ebx
call fcn.101b221d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x101b9992
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x101b99a3
pop esi
ret
push ebx
push edi
push esi
call fcn.101b98bb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.101b2601
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x101b99cb
push ebx
push esi
push edi
call fcn.1019d290
add esp, 0xc
push 0
call fcn.101b221d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x101b9d9b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101b99e0

Function at 0x101bbfd2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101af274
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101bc041
cmp esi, dword [ebp - 4]
je 0x101bc03c
cmp dword [ebp + 0xc], 0
je 0x101bc03c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x101bc019
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101bbb24
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x101bc043
xor eax, eax
inc eax
jmp 0x101bc043
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101bc0a8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102090c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.101af274
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.101af274
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x101bc11f
cmp word [ecx], dx
je 0x101bc11f
mov eax, dword [0x101cee14]
push edi
dec eax
push eax
push 0x101ced00
call fcn.101bc047
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x101bc192
cmp word [eax], dx
je 0x101bc192
mov eax, dword [edi]
test eax, eax
je 0x101bc143
cmp word [eax], dx
je 0x101bc143
lea eax, [ebp - 0x10]
push eax
call fcn.101bba2a
jmp 0x101bc14c
lea eax, [ebp - 0x10]
push eax
call fcn.101bbac5
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x101bc1bc
mov eax, dword [0x101cecfc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101ce9f0
call fcn.101bc047
add esp, 0xc
test al, al
je 0x101bc1bc
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x101bc187
cmp word [eax], di
je 0x101bc187
lea eax, [ebp - 0x10]
push eax
call fcn.101bba2a
pop ecx
jmp 0x101bc1be
lea eax, [ebp - 0x10]
push eax
call fcn.101bbac5
jmp 0x101bc184
mov eax, dword [edi]
test eax, eax
je 0x101bc1a9
cmp word [eax], dx
je 0x101bc1a9
lea eax, [ebp - 0x10]
push eax
call fcn.101bb9df
pop ecx
jmp 0x101bc1bc
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x101bc287
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.101bbecc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x101bc287
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101bc287
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x101bc287
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x101bc214
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.101b3d8a
test ebx, ebx
je 0x101bc282
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.101b3d8a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101bc287
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101bc287
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.101bfa14
add esp, 0x10
xor eax, eax
inc eax
jmp 0x101bc289
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1019ba64
leave
ret
Function at 0x101be829
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102090c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x101be86c
call fcn.101a8157
mov dword [eax], 0xf
call fcn.101a816a
mov dword [eax], 0xd
call fcn.101a0e86
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019ba64
leave
ret
test eax, eax
jne 0x101be873
inc eax
jmp 0x101be860
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x101be85e
xor eax, eax
cmp ecx, 1
setne al
jmp 0x101be860
Function at 0x101c0186
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.101c0102
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101c02f5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101c02f5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101c02aa
jg 0x101c01e2
test eax, eax
je 0x101c02a0
push 1
push 0x1000
call fcn.101b139e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101c0205
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101c0297
push 0x8000
push ebx
call fcn.101c0033
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x101c022e
jg 0x101c0229
cmp ecx, 0x1000
jb 0x101c022e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101b2001
add esp, 0x10
cmp eax, 0xffffffff
je 0x101c0273
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x101c0229
jl 0x101c025a
test ecx, ecx
jne 0x101c021b
push dword [ebp - 0xc]
push ebx
call fcn.101c0033
push esi
call fcn.101b221d
add esp, 0xc
xor ebx, ebx
jmp 0x101c0303
cmp byte [edi + 0x24], 0
je 0x101c028a
cmp dword [edi + 0x20], 5
jne 0x101c028a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101c0295
mov ebx, dword [edi + 0x18]
jmp 0x101c0297
xor ebx, ebx
push esi
call fcn.101b221d
pop ecx
jmp 0x101c0303
test ecx, ecx
jg 0x101c026c
jl 0x101c02aa
test eax, eax
jae 0x101c026c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101b5780
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101c02ca
cmp byte [edi + 0x1c], 0
je 0x101c026c
jmp 0x101c02fb
push ebx
call fcn.101b6571
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101c026c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101c0303
cmp byte [edi + 0x1c], 0
je 0x101c0300
mov ebx, dword [edi + 0x18]
jmp 0x101c0303
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101b5780
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101c1880
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101c18ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101c18ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402bff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a8af0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c93
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402c50
cmp dword [ebp + 0x10], ebx
jne 0x402c87
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402bff
test eax, eax
jne 0x402c62
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402c37
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406408
cmp eax, ebx
je 0x402c9a
push ebx
push dword [0x7a8af0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c93
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 [0x7a8af0], ebx
jne 0x402c90
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c90
jmp 0x402c93
Function at 0x403027
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 0x403047
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403059
mov dword [ebp - 0xc], 0x78f6f8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40306e
mov ecx, dword [0x7a8a98]
add ecx, eax
push ecx
call fcn.00403235
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040321f
test eax, eax
je 0x40320d
test byte [ebp + 0x17], 0x80
je 0x4031b8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ce58], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40ce40], 0xb
mov dword [ebp + 8], eax
jle 0x403215
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4030c4
mov esi, dword [ebp + 0x14]
mov edi, 0x78b6f8
push esi
push edi
call fcn.0040321f
test eax, eax
je 0x40320d
sub dword [ebp + 0x14], esi
mov dword [0x40ce30], edi
mov dword [0x40ce34], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce30
mov dword [0x40ce38], edi
mov dword [0x40ce3c], eax
call fcn.00406527
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4031b0
mov esi, dword [0x40ce38]
sub esi, edi
call ebx
test byte [0x7a8af4], 1
mov edi, eax
je 0x40316b
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403132
cmp dword [ebp + 0x14], 0
jne 0x40316b
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.00405191
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4031a4
cmp dword [ebp + 0x10], 0
jne 0x40318a
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405cb9
test eax, eax
je 0x4031b4
add dword [ebp - 4], esi
jmp 0x403198
mov eax, dword [0x40ce38]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x4030e7
jmp 0x403215
cmp dword [ebp + 0x14], 0
jg 0x4030b7
jmp 0x403215
push 0xfffffffffffffffc
jmp 0x40320f
push 0xfffffffffffffffe
jmp 0x40320f
test edi, edi
jne 0x4031fa
cmp dword [ebp + 0x14], edi
jle 0x403215
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4031ce
mov esi, ebx
mov edi, 0x78b6f8
push esi
push edi
call fcn.0040321f
test eax, eax
je 0x40320d
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405cb9
test eax, eax
je 0x4031b4
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4031c4
jmp 0x403215
cmp dword [ebp + 0x14], esi
jge 0x403202
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040321f
test eax, eax
jne 0x403212
push 0xfffffffffffffffd
pop eax
jmp 0x403218
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405660
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083b0
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], 0x4083a0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4056b1
xor eax, eax
jmp 0x4056d8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4056d8
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4056ad
call esi
pop esi
leave
ret 4

Function at 0x405712
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405be2
mov edi, eax
cmp edi, 0xffffffff
je 0x40581c
test byte [esp + 0x10], 1
push esi
je 0x4057fe
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405804
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40580d
xor eax, eax
inc eax
jmp 0x40581e
test byte [esp + 0x10], 4
jne 0x40581c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405823
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.00405aee
test bl, 8
mov dword [ebp - 8], eax
je 0x405862
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a8ac8], eax
jmp 0x4059df
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40587c
test eax, eax
je 0x40598d
test bl, 2
je 0x40598d
mov esi, 0x7a3f48
push edi
push esi
call fcn.00406032
cmp dword [ebp + 8], 0
je 0x40589b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4058a1
push edi
call fcn.00405a32
cmp word [edi], 0
jne 0x4058b1
cmp word [0x7a3f48], 0x5c
jne 0x4058bc
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 0x405982
cmp word [ebp - 0x22c], 0x2e
jne 0x405906
cmp word [ebp - 0x22a], 0
je 0x405965
cmp word [ebp - 0x22a], 0x2e
jne 0x405906
cmp word [ebp - 0x228], 0
je 0x405965
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406032
test byte [ebp - 0x258], 0x10
je 0x405931
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405965
push dword [ebp + 0xc]
push edi
call fcn.00405823
jmp 0x405965
push dword [ebp - 4]
push edi
call fcn.004057db
test eax, eax
jne 0x40595d
cmp dword [ebp - 4], eax
je 0x405955
push edi
push 0xfffffffffffffff1
call fcn.00405191
push 0
push edi
call fcn.00405ed3
jmp 0x405965
inc dword [0x7a8ac8]
jmp 0x405965
push edi
push 0xfffffffffffffff2
call fcn.00405191
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4058de
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40598d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4059df
cmp dword [ebp - 8], esi
jne 0x4059a1
inc dword [0x7a8ac8]
jmp 0x4059df
push edi
call fcn.00406375
test eax, eax
je 0x4059df
push edi
call fcn.004059e6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004057db
test eax, eax
jne 0x4059d7
cmp dword [ebp - 4], esi
je 0x405999
push edi
push 0xfffffffffffffff1
call fcn.00405191
push esi
push edi
call fcn.00405ed3
jmp 0x4059df
push edi
push 0xffffffffffffffe5
call fcn.00405191
pop edi
pop esi
pop ebx
leave
ret 8