joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428f35
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 0x428fd2
push ebx
push esi
call fcn.00428efe
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.0042754b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x428f7f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x428fd1
push edi
push eax
call fcn.00426aaf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x428f9f
call fcn.00426a75
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x428fd0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042754b
add esp, 0x20
test eax, eax
jne 0x428fbe
push edi
call fcn.00426a75
jmp 0x428fc6
push ebx
call fcn.00426a75
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 0x4303f0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
mov edi, ecx
call fcn.00430480
lea ebx, [esi + 0x14]
xor esi, esi
test ebx, ebx
je 0x43046d
nop dword [eax + eax]
mov edx, dword [edi + esi*4 + 0x20]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x461fa0]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x461ba0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x4623a0]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x4617a0]
mov dword [edi + esi*4 + 0x20], ecx
inc esi
cmp esi, ebx
jb 0x430410
pop edi
pop esi
pop ebx
ret 4

Function at 0x430480
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov ebp, 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x4304b1
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x4304a4
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [esp + 0x14], esi
xor esi, esi
mov eax, dword [esp + 0x14]
test esi, esi
jne 0x430523
movzx eax, bl
mov esi, edi
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
mov eax, 0x1b
xor ebx, ebp
add ebp, ebp
or ebx, edx
test ebp, 0x100
cmovne ebp, eax
jmp 0x430570
cmp esi, 4
jne 0x430574
cmp edi, 6
jbe 0x430574
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esp + 0x14]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x4304c8
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4316b0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x45f008]
xor eax, esp
mov dword [esp + 0x2d0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4316fa
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4316fa
push 0xc00
call eax
test eax, eax
jne 0x431786
push 0x106
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x431786
cmp eax, 0x104
ja 0x431786
cmp word [esp + eax*2 - 2], 0x5c
je 0x431727
mov ecx, 0x5c
mov word [esp + eax*2], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x431785
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push ebp
push edi
lea edi, [esp + 0x10]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x431760
nop
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x431750
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [esp + 0x18]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x431746
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.00421268
add esp, 0x2d4
ret
Function at 0x436aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, 0x20
push edi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x436bb6
lea ebx, [esi + 0xd0]
mov ebp, ecx
nop
mov ecx, dword [ebx]
test ecx, ecx
je 0x436b95
mov dword [ebx], 0
nop dword [eax]
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x436b80
add ebx, 0x28
sub ebp, 1
jne 0x436b70
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x436bb1
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], ebp
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.004367f0
mov edi, eax
test edi, edi
jne 0x436c7e
push dword [ebx + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x436c49
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x436c7e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0x1c]
call ebp
test eax, eax
jne 0x436c62
call edi
test eax, eax
mov edi, 1
cmovne edi, eax
test edi, edi
jne 0x436c7e
push ebx
call fcn.00435720
mov edi, eax
test edi, edi
je 0x436c90
mov ecx, esi
mov dword [esi + 0x44], 0
call fcn.00436630
test edi, edi
jle 0x436c89
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x436c90
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x436ca9
cmp dword [esi + 0x40], 0
jne 0x436ca9
cmp dword [esi + 0x3c], 0
jne 0x436ca9
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x436dd0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x436e18
cmp edx, 0x40
je 0x436e0a
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00423d20
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
lea edx, [esi + 0x20]
mov edi, 4
nop dword [eax + eax]
mov ecx, dword [edx + 4]
lea ebx, [ebx + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [ebx - 8], eax
bswap ecx
mov dword [ebx - 4], ecx
sub edi, 1
jne 0x436e60
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x437260
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x436f60
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret
Function at 0x43ae40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x45f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x460541], 0
jne 0x43aeca
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x128]
mov edi, eax
lea ecx, [ebp - 0x360]
call fcn.00437e80
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00438ee0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x360]
call fcn.00421279
add esp, 4
jmp 0x43aef5
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x354]
push eax
call fcn.00438e70
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43af31
mov eax, dword [esi]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x43af31
cmp eax, 0x2f
je 0x43af31
cmp dword [esi + 8], ecx
jne 0x43af19
mov ecx, esi
call fcn.00439040
mov ecx, dword [esi + 4]
mov edx, 0x5c
mov eax, dword [esi]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
test edi, edi
je 0x43af41
cmp edi, 0x114
jae 0x43af41
mov al, 1
jmp 0x43af43
xor al, 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.00421268
mov esp, ebp
pop ebp
ret
Function at 0x43afe0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x451fb6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x45f008]
xor eax, ebp
mov dword [ebp + 0x344], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x460541], cl
jne 0x43b092
lea eax, [ebp + 0x22c]
mov byte [ebp + 0x22c], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x43b11f
cmp eax, 0x114
jae 0x43b11f
lea edx, [ebp + 0x22c]
mov byte [ebp + 0x340], 0
lea ecx, [ebp - 0x18]
call fcn.00437e80
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00438ee0
push dword [ebp - 0x18]
call fcn.00421279
add esp, 4
mov al, 1
jmp 0x43b121
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x43b11f
cmp esi, 0x114
jae 0x43b0cf
xor eax, eax
mov ecx, edi
mov word [ebp + 0x228], ax
lea eax, [ebp]
push eax
call fcn.00438e70
mov al, 1
jmp 0x43b121
lea ecx, [ebp - 0x18]
call fcn.00438f50
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x10]
jbe 0x43b0ec
push esi
lea ecx, [ebp - 0x18]
call fcn.004387c0
push dword [ebp - 0x18]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x43b114
push esi
lea ecx, [ebp - 0x18]
call fcn.00401b60
cmp dword [ebp - 0x14], ebx
jne 0x43b114
lea eax, [esi - 1]
cmp eax, ebx
jne 0x43b114
mov eax, ecx
jmp 0x43b078
push dword [ebp - 0x18]
call fcn.00421279
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.00421268
lea esp, [ebp + 0x348]
pop ebp
ret

Function at 0x43b150
Capabilities:
Set current directory

Disassembly:
sub esp, 0xc
cmp byte [0x460541], 0
jne 0x43b187
mov edx, ecx
lea ecx, [esp]
push esi
call fcn.00437ec0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [esp + 4]
mov esi, eax
call fcn.00421279
add esp, 4
test esi, esi
setne al
pop esi
add esp, 0xc
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
add esp, 0xc
ret
Function at 0x43b480
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 0xc
cmp byte [0x460541], 0
push esi
push edi
mov edi, ecx
jne 0x43b4b3
mov edx, edi
lea ecx, [esp + 8]
call fcn.00437ec0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [esp + 8]
mov esi, eax
call fcn.00421279
add esp, 4
jmp 0x43b4c1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43b4de
cmp esi, 0xffffffff
je 0x43b4de
mov eax, esi
and al, 0x11
cmp al, 1
jne 0x43b4de
and esi, 0xfffffffe
mov ecx, edi
mov edx, esi
call fcn.0043b9d0
test al, al
je 0x43b527
cmp byte [0x460541], 0
jne 0x43b514
mov edx, edi
lea ecx, [esp + 8]
call fcn.00437ec0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 8]
mov esi, eax
call fcn.00421279
add esp, 4
test esi, esi
je 0x43b527
pop edi
mov al, 1
pop esi
add esp, 0xc
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x43b527
pop edi
mov al, 1
pop esi
add esp, 0xc
ret
pop edi
xor al, al
pop esi
add esp, 0xc
ret
Function at 0x43b820
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45204c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x45f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x460541], 0
jne 0x43b88c
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00437ec0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00421279
add esp, 4
test esi, esi
je 0x43b8ad
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
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43b8ad
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43b8ce
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
lea ecx, [ebp - 0x50]
call fcn.00401be0
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0043c180
test al, al
jne 0x43b8f0
xor bl, bl
jmp 0x43b8f9
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00421279
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b980
Capabilities:
Delete directory

Disassembly:
sub esp, 0xc
cmp byte [0x460541], 0
jne 0x43b9b8
mov edx, ecx
lea ecx, [esp]
push esi
call fcn.00437ec0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [esp + 4]
mov esi, eax
call fcn.00421279
add esp, 4
test esi, esi
pop esi
je 0x43b9c9
mov al, 1
add esp, 0xc
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x43b9c9
mov al, 1
add esp, 0xc
ret
xor al, al
add esp, 0xc
ret

Function at 0x43b9d0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
cmp byte [0x460541], 0
push esi
mov esi, edx
jne 0x43ba0c
mov edx, ecx
lea ecx, [esp + 4]
call fcn.00437ec0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
mov esi, eax
call fcn.00421279
add esp, 4
test esi, esi
je 0x43ba1f
mov al, 1
pop esi
add esp, 0xc
ret
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x43ba1f
mov al, 1
pop esi
add esp, 0xc
ret
xor al, al
pop esi
add esp, 0xc
ret

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

Disassembly:
sub esp, 0xc
cmp byte [0x460541], 0
jne 0x43c874
mov edx, ecx
lea ecx, [esp]
push esi
call fcn.00437ec0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [esp + 4]
mov esi, eax
call fcn.00421279
add esp, 4
mov eax, esi
pop esi
add esp, 0xc
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
add esp, 0xc
ret
Function at 0x43ca70
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
mov ecx, 0x400000
mov dword [ebx], 0
nop dword [eax]
cmp esi, 0x400000
mov dword [esp + 0x1c], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [ebx], ecx
test eax, eax
je 0x43cad7
test ecx, ecx
je 0x43cace
add edi, ecx
sub esi, ecx
mov ecx, 0x400000
jne 0x43ca90
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc

Function at 0x43cbb0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
mov ecx, 0x400000
mov dword [ebx], 0
nop dword [eax]
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [ebx], ecx
test eax, eax
je 0x43cc17
test ecx, ecx
je 0x43cc0e
add edi, ecx
sub esi, ecx
mov ecx, 0x400000
jne 0x43cbd0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc

Function at 0x43e170
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x70
mov eax, dword [0x45f008]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov esi, ecx
mov dword [esp + 0x28], 0x40
push str.GlobalMemoryStatusEx
push 0x459350
mov dword [esi], SysReAllocStringLen
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43e1f1
lea ecx, [esp + 0x28]
push ecx
call eax
test eax, eax
je 0x43e1f1
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
cmp ecx, edx
ja 0x43e1d4
mov eax, dword [esp + 0x50]
jb 0x43e1da
cmp eax, dword [esp + 0x30]
jb 0x43e1da
mov eax, dword [esp + 0x30]
mov ecx, edx
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], ecx
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00421268
add esp, 0x70
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x10]
mov al, 1
cmp dword [esp + 0x20], ecx
mov dword [esi + 4], 0
cmovb ecx, dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.00421268
add esp, 0x70
ret
Function at 0x44f310
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453208
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x45f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x14]
xor ecx, ecx
mov edx, 2
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004213b4
mov ecx, dword [esi + 0x14]
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ecx*2 + 2]
push ecx
push dword [esi + 0x10]
push edi
call fcn.0042e540
add esp, 0x10
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [eax + 4], ecx
jbe 0x44f4aa
mov esi, ebx
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
mov eax, esi
sub eax, ebx
mov dword [ebp - 0x10], ecx
mov edx, dword [ecx + 4]
cmp edx, eax
jbe 0x44f41a
lea ecx, [ebx + edx]
mov eax, ecx
lea esi, [ecx + 0x10]
shr eax, 1
add esi, eax
and esi, 0xfffffff0
dec esi
cmp esi, ebx
jb 0x44f3c1
cmp esi, 0x3ffffffe
jbe 0x44f3c6
mov esi, 0x3ffffffe
cmp esi, ebx
jbe 0x44f4c7
mov eax, esi
sub eax, ebx
cmp eax, edx
jb 0x44f4c7
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004213b4
lea ecx, [ebx*2 + 2]
mov edi, eax
push ecx
push dword [ebp - 0x20]
push edi
call fcn.0042e540
push dword [ebp - 0x20]
call fcn.00421279
mov ecx, dword [ebp - 0x10]
add esp, 0x14
dec esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], esi
mov eax, dword [ecx + 4]
lea eax, [eax*2 + 2]
push eax
push dword [ecx]
lea eax, [edi + ebx*2]
push eax
call fcn.0042e540
mov eax, dword [ebp - 0x10]
add esp, 0xc
add ebx, dword [eax + 4]
cmp byte [0x460541], 0
mov dword [ebp - 0x1c], ebx
jne 0x44f466
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00437ec0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x2c]
call fcn.00421279
add esp, 4
jmp 0x44f46f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, ebx
jne 0x44f484
lea ecx, [ebp - 0x20]
call fcn.00439040
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, 0x5c
mov word [edi + ebx*2], ax
inc ecx
inc ebx
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov word [edi + ebx*2], ax
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x44f392
push edi
call fcn.00421279
add esp, 4
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
push 0x45c3e8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x13329ac
push eax
call fcn.00423cb0
int3