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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb740
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4fad60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x3c]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp eax, ecx
je 0x42e559
push ecx
call fcn.00430d60
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [edi + 0x40]
push ecx
push eax
mov eax, esi
call fcn.004313c0
add esp, 0xc
mov dword [edi + 0x40], esi
or eax, 0xffffffff
xor ecx, ecx
mov esi, edi
call fcn.00404150
lea esi, [edi + 0x1c]
or eax, 0xffffffff
xor ecx, ecx
call fcn.00404150
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42e580
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x42e64c
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
test ebx, ebx
js 0x42e645
je 0x42e60b
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov dword [ebp - 0x18], 0
call fcn.0048d7af
add esp, 4
push 0
lea edx, [ebp - 0x18]
push edx
push ebx
push eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e639
mov eax, dword [ebp - 0x18]
cmp ebx, eax
jne 0x42e639
mov ebx, dword [ebp - 0x14]
push eax
push edi
mov ecx, ebx
call fcn.0042dcc0
push ebx
call fcn.00491285
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 8]
mov ecx, edi
call fcn.0042e030
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.00491285
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4334b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 0x258], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4334f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
or eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24c]
push ecx
push ebx
mov dword [ebp - 0x24c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x433534
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
push esi
jmp 0x433540
lea edx, [ebp - 0x228]
push edx
call fcn.00491c7a
add esp, 4
xor ecx, ecx
mov word [ebp - 0x20], cx
mov ecx, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x433564
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x20]
call fcn.00403e70
mov edx, dword [ebp - 0x258]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.004925c1
add esp, 8
test eax, eax
jne 0x4335da
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 0x250], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push eax
call esi
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x254]
push edx
push eax
mov dword [ebp - 0x254], edi
call esi
mov eax, dword [ebp - 0x254]
cmp dword [ebp - 0x250], eax
je 0x43361d
cmp eax, edi
je 0x43361d
cmp dword [ebp - 0xc], 8
jb 0x4335ec
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00490a16
add esp, 4
lea edx, [ebp - 0x24c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x433540
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 8
mov esi, dword [ebp - 0x244]
jb 0x43363c
mov eax, dword [ebp - 0x20]
push eax
call fcn.00490a16
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x437230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c11c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0x4e4a94
lea ecx, [ebp - 0x20]
push 5
push ecx
mov dword [ebp - 0x28], eax
call fcn.00493d3a
mov edx, dword [str.0000]
mov esi, eax
mov al, byte [0x4e4b28]
add esp, 0x10
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x14], al
cmp esi, 4
jge 0x4372b4
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edi, 4
sub edi, esi
push edi
lea edx, [ebp - 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [ebp - 0x24]
je 0x4372b1
xor eax, eax
jmp 0x437302
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp - 0x24]
jne 0x4372ad
mov dword [ebp - 0x2c], vtable.CKeyFileHelper.0
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp - 4], 0
jne 0x4372e8
mov eax, dword [ebp - 0x28]
push edi
call fcn.00436f40
mov eax, dword [ebp - 0x28]
push 0
lea edx, [ebp - 0x24]
push edx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
cmp edi, dword [ebp - 0x24]
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret 0xc

Function at 0x437890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
push esi
call ebx
cmp dword [ebp - 0x14], 4
je 0x4378de
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push 0x4e4a94
push eax
mov byte [ebp - 0xc], 0
call fcn.004959b1
mov edx, dword [ebp - 0x18]
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
push edx
push edi
push esi
call ebx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jne 0x4378ca
mov ecx, dword [ebp + 8]
dec ecx
jne 0x43791e
push eax
mov eax, edi
call fcn.00437020
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop ebx
call fcn.00490a21
mov esp, ebp
pop ebp
ret 4
Function at 0x43cf20
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00490a21
mov esp, ebp
pop ebp
ret

Function at 0x440670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7e83
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4fad60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 4], eax
mov dword [edi + 0x3c], eax
mov ecx, 1
mov byte [ebp - 4], cl
push eax
mov dword [edi], vtable.CEtTimeGrantDog.0
mov dword [edi + 0x94], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], ecx
mov dword [edi + 0xa0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
lea edx, [edi + 4]
call fcn.0043c7b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x44a260
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x77]
mov edi, edx
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], 0x67452301
mov dword [ebp - 0xc4], 0xefcdab89
mov dword [ebp - 0xc0], 0x98badcfe
mov dword [ebp - 0xbc], 0x10325476
mov byte [ebp - 0x78], bl
call fcn.00497ad0
lea edx, [ebp - 0x78]
add esp, 0xc
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x44a2d0
lea eax, [ebp - 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44a2e0
lea ecx, [ebp - 0x78]
sub eax, edx
push ecx
lea ebx, [ebp - 0xd0]
call fcn.00449870
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00449920
add esp, 8
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
lea ebx, [eax + 4]
jmp 0x44a326
mov edi, dword [ebp - 0xd4]
movzx eax, byte [ebp + ebx - 0x14]
push eax
push str._02x
lea ecx, [ebp - 0xd8]
push 4
push ecx
call fcn.00493dba
lea eax, [ebp - 0xd8]
add esp, 0x10
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x44a350
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x44a360
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0xc
jl 0x44a320
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x44a960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cb51e
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x4fad60]
xor eax, esp
mov dword [esp + 0x1b4], eax
push esi
push edi
mov eax, dword [0x4fad60]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov ecx, dword [0x4fbef0]
mov edx, dword [0x4fbef4]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x4fbeec]
mov dword [esp + 0x24], eax
mov eax, dword [0x4fbef8]
xor edi, edi
mov dword [esp + 0x30], eax
mov eax, dword [0x50227c]
mov dword [esp + 0x14], 2
mov dword [esp + 0x1c], 0x44a650
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
cmp eax, edi
jne 0x44aa5a
push 0x2c
call fcn.00490dc4
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x1d0], edi
cmp esi, edi
je 0x44aa48
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
call fcn.0044b350
mov eax, esi
jmp 0x44aa4a
xor eax, eax
mov dword [esp + 0x1d0], 0xffffffff
mov dword [0x50227c], eax
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
call edx
cmp eax, edi
jne 0x44aaca
push 0x184
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.00497ad0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 0x188
mov dword [esp + 0x3c], 0x258
mov dword [esp + 0x40], 1
call fcn.0044b2c0
mov eax, dword [eax + 4]
push edi
push ebx
push 3
lea edx, [esp + 0x40]
push edx
call eax
cmp eax, edi
jne 0x44aaca
lea eax, [ebx + 0x14]
push eax
push edi
push ebx
push 0x44a530
push edi
push edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.00490a21
mov esp, ebp
pop ebp
ret 4
Function at 0x44ba60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 0
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00490a21
mov esp, ebp
pop ebp
ret

Function at 0x44d960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x44d968
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44d977
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x44dae0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x4fad60]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push edi
cmp esi, 0xffffffff
jne 0x44db0e
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
push 1
lea edx, [esp + 0x14]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x44dafb
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44dba5
cmp dword [esp + 0xc], 0x40
jne 0x44dba5
mov edx, 0x5a4d
cmp word [esp + 0x18], dx
jne 0x44dba5
mov eax, dword [esp + 0x54]
mov edi, eax
cmp eax, 0x2000
jae 0x44dba5
cmp eax, 0x40
jb 0x44dba5
push 1
push 0
add eax, 0xffffffc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x44dba5
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44dba5
cmp dword [esp + 0xc], 4
jne 0x44dba5
cmp dword [esp + 0x18], 0x4550
jne 0x44dba5
mov bl, 1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push 0
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [esp + 0x5c]
pop edi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x44ee20
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5806
mov eax, dword fs:[0]
push eax
mov eax, 0x104c
call fcn.004aa1a0
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xffe
mov ebx, ecx
xor edi, edi
lea ecx, [ebp - 0x100e]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x1010], ax
call fcn.00497ad0
add esp, 0xc
push edi
push 0x23
lea edx, [ebp - 0x1010]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44ee90
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
mov esi, ebx
call fcn.00403e70
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44eec4
and eax, 0x10
jne 0x44eed2
push edi
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
push 9
mov eax, str.piclesoft
lea esi, [ebp - 0x102c]
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], edi
mov word [ebp - 0x102c], dx
call fcn.00403e70
push ebx
mov edx, esi
lea ecx, [ebp - 0x1048]
mov dword [ebp - 4], edi
call fcn.0044e150
add esp, 4
mov edi, eax
mov esi, ebx
mov byte [ebp - 4], 1
call fcn.00409010
mov esi, 8
cmp dword [ebp - 0x1034], esi
jb 0x44ef3a
mov eax, dword [ebp - 0x1048]
push eax
call fcn.00490a16
add esp, 4
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x1034], 7
mov dword [ebp - 0x1038], edi
mov word [ebp - 0x1048], cx
cmp dword [ebp - 0x1018], esi
jb 0x44ef6c
mov edx, dword [ebp - 0x102c]
push edx
call fcn.00490a16
add esp, 4
lea eax, [ebp - 0x1058]
mov dword [ebp - 0x1058], 0xc
mov dword [ebp - 0x1050], edi
test eax, eax
je 0x44ef9b
push edi
lea ecx, [ebp - 0x1054]
push ecx
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
cmp dword [ebx + 0x14], esi
jb 0x44efa4
mov eax, dword [ebx]
jmp 0x44efa6
mov eax, ebx
lea edx, [ebp - 0x1058]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebx + 0x14], esi
jb 0x44efbb
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44efd3
and eax, 0x10
je 0x44efd3
mov eax, 1
jmp 0x44efd5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x4500f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6f60
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x450130
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45015c
and eax, 0x10
je 0x45015c
cmp dword [ebp + 0x1c], esi
jb 0x450152
mov eax, dword [ebp + 8]
push eax
call fcn.00490a16
add esp, 4
mov eax, 1
jmp 0x450254
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x450167
lea eax, [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45018e
cmp dword [ebp + 0x1c], esi
jb 0x450152
mov ecx, dword [ebp + 8]
push ecx
call fcn.00490a16
add esp, 4
mov eax, 1
jmp 0x450254
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4501b6
cmp dword [ebp + 0x1c], esi
jb 0x450152
mov edx, dword [ebp + 8]
push edx
call fcn.00490a16
add esp, 4
mov eax, 1
jmp 0x450254
mov esi, 7
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
push ecx
lea ebx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0044dbd0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
push edi
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
call fcn.004500f0
mov ecx, esp
mov dword [ebp - 0x30], esp
push edi
mov eax, ebx
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00404570
call fcn.004500f0
add esp, 0x1c
cmp dword [ebp - 0x18], 8
mov ebx, eax
jb 0x450234
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
jb 0x450252
mov eax, dword [ebp + 8]
push eax
call fcn.00490a16
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x451350
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0xc], 0
push ebx
push edi
lea edi, [esi + 8]
lea ebx, [esi + 4]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ebx], 0
jne 0x451418
push str.ntdll.dll
mov dword [ebp - 0x124], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4513c2
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4513c2
push edi
push ebx
push esi
call eax
xor eax, eax
mov word [edi + 2], ax
mov eax, 1
jmp 0x4513c8
mov eax, dword [ebp - 0x124]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x451418
lea ecx, [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
mov eax, dword [ebp - 0x11c]
mov dword [esi], eax
mov dword [ebx], ecx
mov dword [edi], edx
je case.default.0x4514c8
mov eax, dword [esi]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x4514c8
jmp dword [eax*4 + 0x451548]
mov ebx, dword [ebx]
cmp ebx, 0xa
je 0x451454
cmp ebx, 0x5a
jne case.default.0x4514c8
pop edi
mov dword [esi + 0x10], 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x10], 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebx]
sub ebx, 0
je 0x4514aa
dec ebx
je 0x451493
dec ebx
jne case.default.0x4514c8
pop edi
mov dword [esi + 0x10], 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x10], 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x10], 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebx]
cmp ebx, 4
ja case.default.0x4514c8
jmp dword [ebx*4 + 0x451564]
pop edi
mov dword [esi + 0x10], 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x10], 0xd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x10], 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x10], 0xf
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
jne case.default.0x4514c8
mov dword [esi + 0x10], 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00490a21
mov esp, ebp
pop ebp
ret