joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46e6c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004a7bf0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x4aa049
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.004a5050
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.004a5040
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.004a96a0
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [fcn.004703d0]
push 0
lea ecx, [esp + 0x4c]
call fcn.004e209a
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.004b8e90
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.004a7650
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [fcn.004700e8]
mov ecx, ebx
call fcn.004a4fc0
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x4aa114
push edi
mov ecx, esi
call fcn.004a7760
push eax
push ebp
mov ecx, esi
call fcn.004a7920
cmp eax, dword [esp + 0x40]
jg 0x4aa110
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x4aa0ee
mov eax, ebx
jmp 0x4aa11a
cmp edi, ebx
jl 0x4aa118
mov eax, ebx
jmp 0x4aa11a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x4aa12b
mov dword [esp + 0x30], eax
jmp 0x4aa136
cmp edi, ebx
jl 0x4aa131
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.004a4f80
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x4aa17d
push edi
mov ecx, esi
call fcn.004a7680
push eax
push ebx
mov ecx, esi
call fcn.004a7a50
cmp eax, dword [esp + 0x44]
jg 0x4aa175
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x4aa14f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4aa187
cmp edi, ebp
jl 0x4aa181
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x4aa187
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x4aa190
mov ecx, eax
jmp 0x4aa199
cmp edi, ebp
jl 0x4aa196
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.004a7670
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004e210c
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x4b0150
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46eb78
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4b0189
inc eax
mov dword [esi + 0x10], eax
jmp 0x4b029c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4b019d
mov eax, 0xffffffc7
jmp 0x4b029e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4b01ae
cmp dword [esi + 8], eax
jne 0x4b019d
cmp dword [esi + 8], eax
jne 0x4b01c7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4b01c7
mov eax, 0xffffffc7
jmp 0x4b029e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4b01db
push eax
mov ecx, ebx
call fcn.004af980
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004845c0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4b020c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004845e0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004af0f0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4b023f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c0168
call fcn.004847c0
mov eax, dword [esp + 0x38]
jmp 0x4b029e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004affb0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4b0283
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004affd0
mov esi, eax
test esi, esi
jne 0x4b02b3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004affb0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4b0255
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c0168
call fcn.004847c0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4c0168
call fcn.004847c0
mov eax, esi
jmp 0x4b029e
Function at 0x4b94f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [fcn.004703d0]
push 0
lea ecx, [esp + 0x20]
call fcn.004e209a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004b8e90
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004e1fc8
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004de88c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004de88c
push 1
push 0
push 0
mov ecx, esi
call fcn.004de834
push 1
push 0
push 1
mov ecx, esi
call fcn.004de834
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004e210c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4b9670
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004e209a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004b8e90
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004e1fc8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [fcn.004703d0]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4b9734
cmp dword [esp + 0x40], 1
jne 0x4b9732
cmp ecx, eax
jge 0x4b9734
mov eax, ecx
cmp eax, 0xc8
jge 0x4b9740
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004b94f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [fcn.004703d4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004e210c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4b9ec0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f233
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004dccaa
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4c4460
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x4c2fe0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [fcn.004700b4]
push eax
mov ecx, edi
call fcn.004e2342
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004e385e
test eax, eax
je 0x4b9fdc
mov ecx, dword [esp + 0x3c]
call fcn.004e236f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.004703b0]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4b9fa0
push edi
mov ecx, esi
call fcn.004df9dc
mov ecx, esi
call fcn.004ba140
cmp dword [esp + 0x38], 1
jne 0x4b9fd5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004dfb17
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4bca10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4bca43
push esi
call fcn.004bfb00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4bca3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4bcac9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4bcab2
mov eax, dword [esi + 8]
test eax, eax
je 0x4bca67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4bcaae
cmp eax, 2
je 0x4bcab2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4bca5a
cmp eax, 3
je 0x4bca8d
cmp eax, 1
jne 0x4bca5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4bca5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4bca5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004bcaf0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4bcad8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004bcaf0
add esp, 4
pop esi
ret
Function at 0x401000
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x248
push edi
mov edi, ecx
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401010
mov eax, dword [0x40b1b4]
mov dword [edi], eax
mov edx, dword [0x40b1b8]
mov dword [edi + 4], edx
mov ax, word [0x40b1bc]
push ecx
mov word [edi + 8], ax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x401047
xor al, al
pop edi
add esp, 0x248
ret
push esi
mov esi, dword [esp + 0x258]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x401062
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0xc]
push ecx
push str..INI
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 8], edi
je 0x401198
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
test byte [esp + 0x14], 0x10
jne 0x40117e
lea edx, [esp + 0x154]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4010a6
lea edi, [esp + 0x154]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4010b8
mov dx, word [0x40b1a8]
lea eax, [esp + 0x40]
mov word [edi], dx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010d0
lea edi, [esp + 0x154]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4010e1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x154]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
and eax, 0xfffffff8
push eax
lea ecx, [esp + 0x158]
push ecx
call ebp
push 0
lea edx, [esp + 0x158]
push edx
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x158]
push edx
call ebp
mov eax, dword [esp + 0x14]
push 0
push eax
push 4
push 0
push 2
push 0x40000000
lea ecx, [esp + 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401177
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x260]
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401090
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, 1
pop edi
add esp, 0x248
ret
Function at 0x401930
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401a0c
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x401a3e
dec eax
je 0x401a15
dec eax
jne 0x401a0c
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x401992
mov ax, 4
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4019c4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4019a8
mov ax, 5
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4019b6
mov ax, 6
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x401a0c
mov ax, 7
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x401a0c
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x4019f5
dec eax
je 0x4019de
mov ax, 8
pop edi
mov esp, ebp
pop ebp
ret
mov dl, byte [esp + 0xa2]
xor eax, eax
cmp dl, 1
setne al
add eax, 0xa
pop edi
mov esp, ebp
pop ebp
ret
mov dl, byte [esp + 0xa2]
xor eax, eax
cmp dl, 1
setne al
add eax, 8
pop edi
mov esp, ebp
pop ebp
ret
or ax, 0xffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
jb 0x401a35
mov eax, dword [esp + 0x10]
jne 0x401a28
test eax, eax
je 0x401a35
cmp eax, 0x5a
sbb eax, eax
add eax, 3
pop edi
mov esp, ebp
pop ebp
ret
mov ax, 1
pop edi
mov esp, ebp
pop ebp
ret
xor ax, ax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403550
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x403597
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x4035c5
mov eax, dword [esp + 0x18]
dec eax
je 0x4035cd
dec eax
jne 0x4035c5
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x4035b5
mov eax, 5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4035c5
mov eax, 6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4035e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x403627
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x403683
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x4036b4
dec eax
je 0x40368b
dec eax
jne 0x403683
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x40364e
mov eax, 5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x403683
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x403678
dec eax
je 0x403662
dec eax
je 0x40366d
mov eax, 7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x4036a9
jne 0x40369e
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x4036a9
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4036d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x228
push ebx
push ebp
push edi
xor ebx, ebx
push ebx
xor eax, eax
mov dword [esp + 0x10], ebx
mov ecx, 0x49
lea edi, [esp + 0x14]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403709
pop edi
pop ebp
or eax, eax
pop ebx
add esp, 0x228
ret 8
push esi
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403876
mov edi, dword [esp + 0x23c]
lea esp, [esp]
test edi, edi
je 0x4037ed
cmp byte [edi], 0
je 0x4037ed
mov al, byte [esp + 0x34]
xor esi, esi
test al, al
je 0x403763
lea ecx, [esp + 0x34]
mov edx, 1
cmp al, 0x5c
jne 0x40375a
mov esi, edx
mov al, byte [ecx + 1]
inc edx
inc ecx
test al, al
jne 0x403754
lea eax, [esp + esi + 0x34]
lea edx, [esp + 0x138]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403770
lea edx, [esp + 0x1b8]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403785
lea ecx, [esp + 0x138]
push ecx
call fcn.0040ac46
lea edx, [esp + 0x1bc]
push edx
call fcn.0040ac46
add esp, 8
lea esi, [esp + 0x1b8]
lea eax, [esp + 0x138]
lea ebx, [ebx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4037e4
test cl, cl
je 0x4037e0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4037e4
add eax, 2
add esi, 2
test cl, cl
jne 0x4037c0
xor eax, eax
jmp 0x4037e9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403802
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403730
jmp 0x40387b
cmp dword [esp + 0x240], 0x101
jne 0x40385d
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0x63
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push ebp
call esi
xor eax, eax
cmp edi, 0xffffffff
sete al
pop esi
pop edi
pop ebp
pop ebx
add eax, 0x104
add esp, 0x228
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
mov eax, 0x102
pop ebx
add esp, 0x228
ret 8
mov ebx, 0x106
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov eax, 0x103
je 0x40388d
mov eax, ebx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x228
ret 8
Function at 0x4038a0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get file attributes
Set file attributes
Timestomp file
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x2c]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffff8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x21
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403916
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret 0x10
push 0
lea edx, [esp + 0x38]
push edx
push edi
push ebx
push esi
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push ecx
mov edx, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret 0x10

Function at 0x403c80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push esi
mov esi, ecx
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx ecx, byte [esp + 0x1c]
or eax, 0xffffffff
sub ecx, 0xf1
je 0x403ce1
dec ecx
jne 0x403cfe
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi]
shl edx, 9
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
add esp, 8
ret 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi]
shl eax, 9
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
add esp, 8
ret 0x10