joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406633
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x498fe0]
xor eax, ebp
mov dword [ebp + 0x118], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x124]
push 0x40
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x80], 0x44
call fcn.0045bd70
push 0x3c
pop ebx
push 0x38
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], ebx
call fcn.0045bd70
mov eax, dword [ebp + 0x128]
add esp, 0x18
sub eax, esi
je 0x4066ea
dec eax
je 0x406720
dec eax
je 0x4066d7
dec eax
jne 0x406703
mov eax, dword [ebp + 0x12c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x406703
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406703
push dword [ebp + 0x12c]
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004062b3
test eax, eax
jne 0x406703
push dword [ebp + 0x12c]
push esi
push edi
push str.explorer
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp + 0x118]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0045bdea
add ebp, 0x11c
leave
ret 0xc
push edi
lea eax, [ebp + 0x14]
push str.explorer.exe__s
push eax
call fcn.0045d4bb
mov ax, word [ebp + 0x12c]
add esp, 0xc
mov word [ebp - 0x50], ax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x10
push esi
push esi
push esi
lea eax, [ebp + 0x14]
push eax
push esi
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406703
push dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 4]
call esi
jmp 0x406703
Function at 0x409ead
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x409eb8
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x409f73
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
sub edi, 8
dec esi
jne 0x409ed8
pop ebx
test edi, edi
je 0x409f8c
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x47a1e8]
inc edx
dec edi
jne 0x409f77
pop edi
not eax
pop esi
ret
Function at 0x40a4b6
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
sub esp, 0x514
lea ebp, [esp - 4]
mov eax, dword [0x498fe0]
xor eax, ebp
mov dword [ebp + 0x514], eax
push 0x28
mov eax, 0x472239
call fcn.0045c9c3
xor ebx, ebx
push 0x207
lea eax, [ebp + 0x105]
push ebx
push eax
mov byte [ebp + 0x104], bl
call fcn.0045bd70
push 0x103
lea eax, [ebp + 0x411]
push ebx
push eax
mov byte [ebp + 0x410], bl
call fcn.0045bd70
add esp, 0x18
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.00406102
call dword [sym.imp.USER32.dll_GetInputState]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp + 0x30c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x30c]
push eax
push ebx
push 0x47a864
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp + 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x30c]
push str..bat
push eax
call fcn.0045be10
pop ecx
pop ecx
push esi
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp]
push eax
call edi
lea eax, [ebp + 0x410]
push eax
push eax
push dword [0x4965bc]
lea eax, [ebp + 0x104]
push eax
call fcn.0045d4bb
add esp, 0x10
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
lea eax, [ebp + 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x40a619
or ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040610b
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 + 0x514]
xor ecx, ebp
call fcn.0045bdea
add ebp, 0x518
leave
ret
push ebx
lea ecx, [ebp - 0x14]
push ecx
push 0x208
lea ecx, [ebp + 0x104]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x30c]
push eax
call edi
push ebx
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40a5e8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x40cb38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
inc eax
cmp dword [ecx + 0x6c8], 0
je 0x40cb4c
mov eax, 0x101
lea ecx, [ebp + 0xc]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cb67
xor eax, eax
jmp 0x40cb94
push edi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
pop ebp
ret 0x18

Function at 0x40cb98
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push edi
mov edi, 0x20006
cmp dword [ecx + 0x6c8], esi
je 0x40cbb3
mov edi, 0x20106
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cbea
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40cbea
xor eax, eax
jmp 0x40cc1a
push dword [ebp + 0x14]
call fcn.0045c330
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret 0x14
Function at 0x416fa6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x416fb4
and dword [esi], 0
xor eax, eax
inc eax
cmp dword [ebp + 0x10], 0
jbe 0x416ff6
mov eax, 0x8000
cmp dword [ebp + 0x10], eax
jae 0x416fca
mov eax, dword [ebp + 0x10]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], 0
test esi, esi
je 0x416ff6
add dword [esi], edx
test eax, eax
setne al
movzx eax, al
push eax
call fcn.004169b5
pop ecx
pop esi
pop ebp
ret 0x10
Function at 0x4195ab
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
shr esi, 2
mov eax, esi
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
xor eax, eax
push edi
mov dword [ebp - 4], 1
test esi, esi
jbe 0x4195df
mov edi, dword [edx]
mov dword [ecx + eax*4], edi
inc eax
add edx, 4
cmp eax, esi
jb 0x4195d2
mov eax, dword [ecx + esi*4 - 4]
mov edx, esi
imul edx, edx, 0xc
and dword [ebp + 8], 0
lea edx, [edx + ecx + 0x70]
mov dword [ebp - 8], edx
mov edx, 0xff
cmp dword [ebp + 8], 0
jne 0x419659
mov edi, eax
and edi, edx
movzx edi, byte [edi + str.cw]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
mov ebx, eax
shr eax, 8
shr ebx, 0x10
and eax, edx
movzx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
shl dword [ebp - 4], 1
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
shl edi, 8
or eax, edi
test dword [ebp - 4], 0x100
je 0x419654
mov dword [ebp - 4], 0x1b
mov dword [ebp + 8], esi
jmp 0x4196a4
cmp dword [ebp + 8], 4
jne 0x4196a4
cmp esi, 6
jbe 0x4196a4
mov edi, eax
shr edi, 0x10
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
and edi, edx
movzx edi, byte [edi + str.cw]
shl ebx, 8
or edi, ebx
mov ebx, eax
shr ebx, 8
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
and eax, edx
movzx eax, byte [eax + str.cw]
or edi, ebx
shl edi, 8
or eax, edi
xor eax, dword [ecx]
dec dword [ebp + 8]
mov dword [ecx + esi*4], eax
add ecx, 4
cmp ecx, dword [ebp - 8]
jne 0x4195f8
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41a83a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x41a84e
xor eax, eax
leave
ret
lea eax, [ebp - 0x10]
push eax
call fcn.0041a820
neg eax
sbb eax, eax
and eax, dword [ebp - 8]
pop ecx
leave
ret
Function at 0x41ec3d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
inc eax
push 0x20
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
pop ebp
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
cmp eax, ebp
jbe 0x41eca5
mov eax, ebp
mov dword [esi + 0x54], eax
mov eax, dword [esi]
push edi
mov dword [esi + 0x58], ebx
cmp eax, dword [esi + 0x20]
je 0x41ece4
lea edi, [esi + 0xc8]
cmp dword [edi + 8], ebx
je 0x41ecc5
push edi
call fcn.0041dffe
pop ecx
add edi, 0x28
dec ebp
jne 0x41ecb9
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
je 0x41ecdf
mov eax, dword [esi + 0x14]
push ecx
push eax
call dword [eax + 4]
pop ecx
pop ecx
mov dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0041df01
mov eax, dword [esi + 0x58]
lea edi, [eax + 5]
imul edi, edi, 0x28
add edi, esi
inc eax
pop ecx
mov dword [esi + 0x58], eax
pop ecx
mov eax, edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.0041dfa7
mov ebp, eax
cmp ebp, ebx
jne 0x41ed4f
lea eax, [edi + 0x20]
push eax
call fcn.004203ee
mov ebp, eax
pop ecx
cmp ebp, ebx
jne 0x41ed4f
lea eax, [edi + 0x1c]
push eax
call fcn.004203ee
mov ebp, eax
pop ecx
cmp ebp, ebx
jne 0x41ed4f
push edi
call fcn.0041e9e2
mov ebp, eax
cmp ebp, ebx
je 0x41ed4f
mov eax, esi
mov dword [esi + 0x44], ebx
call fcn.0041e064
cmp ebp, ebx
pop edi
jle 0x41ed5e
and ebp, 0xffff
or ebp, 0x80070000
cmp ebp, ebx
je 0x41ed65
mov dword [esi + 0x40], ebp
cmp dword [esi + 0x38], ebx
jne 0x41ed77
cmp dword [esi + 0x40], ebx
jne 0x41ed77
cmp dword [esi + 0x3c], ebx
jne 0x41ed77
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x44]
neg eax
sbb eax, eax
not eax
pop esi
and eax, ebp
pop ebp
pop ebx
ret

Function at 0x41ff69
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
ret

Function at 0x4203a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.004603cd
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00420330
add esp, 0x1c
leave
ret
Function at 0x429967
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 2
jne 0x429981
mov eax, dword [eax + 0xc]
mov dword [0x49ef70], eax
xor eax, eax
inc eax
pop ebp
ret
cmp ecx, 3
jne 0x429990
mov eax, dword [eax + 0x10]
mov dword [0x49ef74], eax
jmp 0x42997c
push esi
xor esi, esi
cmp dword [eax + 8], esi
jne 0x42999c
xor eax, eax
jmp 0x429a18
mov ecx, dword [eax + 0x14]
mov dword [0x49ef48], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x49ef4c], ecx
mov ecx, dword [eax + 0x1c]
mov dword [0x49ef50], ecx
mov ecx, dword [eax + 0x20]
mov dword [0x49ef54], ecx
mov ecx, dword [eax + 0x24]
mov dword [0x49ef58], ecx
mov ecx, dword [eax + 0x28]
mov dword [0x49ef5c], ecx
mov ecx, dword [eax + 0x2c]
mov dword [0x49ef60], ecx
mov ecx, dword [eax + 0x30]
mov dword [0x49ef64], ecx
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [0x49ef70], esi
mov dword [0x49ef74], esi
push dword [eax + 8]
push 0x42991f
push esi
push esi
call fcn.004603cd
push eax
call fcn.004298c9
xor eax, eax
add esp, 0x1c
cmp dword [0x49ef78], esi
sete al
pop esi
pop ebp
ret
Function at 0x431b2c
Capabilities:
Set file attributes

Disassembly:
test dword [esp + 8], 0xf0000000
je 0x431b3e
and dword [esp + 8], 0x3fff
jmp fcn.00431ada

Function at 0x431b43
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x49ef44], 0
jne 0x431b7d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004219ab
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043d7c9
pop ecx
test esi, esi
pop esi
je 0x431b8a
mov al, 1
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x431b77
xor al, al
leave
ret

Function at 0x431c05
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x49ef44], 0
jne 0x431c42
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004219ab
mov eax, dword [eax]
pop ecx
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043d7c9
pop ecx
test esi, esi
pop esi
je 0x431c51
mov al, 1
leave
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x431c3c
xor al, al
leave
ret

Function at 0x431c55
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00432428
pop ecx
cmp eax, 0xffffffff
je 0x431c83
test al, 0x10
jne 0x431c83
test al, 1
je 0x431c83
and eax, 0xfffffffe
push eax
push esi
call fcn.00431ada
pop ecx
pop ecx
test al, al
je 0x431cbd
cmp byte [0x49ef44], 0
push esi
jne 0x431cb3
lea eax, [ebp - 0xc]
push eax
call fcn.004219ab
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043d7c9
pop ecx
test esi, esi
je 0x431cbd
mov al, 1
jmp 0x431cbf
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x431cad
xor al, al
pop esi
leave
ret
Function at 0x431ccc
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x344
lea ebp, [esp - 4]
mov eax, dword [0x498fe0]
xor eax, ebp
mov dword [ebp + 0x344], eax
push 0x1c
mov eax, 0x4746e7
call fcn.0045c9c3
mov edi, dword [ebp + 0x350]
and dword [edi + 4], 0
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x10], edi
mov esi, 0x114
cmp byte [0x49ef44], cl
jne 0x431d88
lea eax, [ebp + 0x22c]
push eax
push esi
mov byte [ebp + 0x22c], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x431d84
cmp eax, esi
jae 0x431d84
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp + 0x340], 0
call fcn.004219ff
pop ecx
pop ecx
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004215d9
push dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
call fcn.0043d7c9
pop ecx
mov al, 1
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.0045bdea
add ebp, 0x348
leave
ret
xor al, al
jmp 0x431d61
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push esi
call ebx
mov edi, eax
test edi, edi
je 0x431d84
cmp edi, esi
jae 0x431dbc
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ebp + 0x228], ax
lea eax, [ebp]
push eax
call fcn.00421581
jmp 0x431d5f
lea ecx, [ebp - 0x1c]
call fcn.00421465
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.00412d19
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x431df4
xor bl, bl
push dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call fcn.0043d7c9
pop ecx
mov al, bl
jmp 0x431d61
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push eax
mov word [eax + edi*2], cx
call fcn.00420c2b
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x431dde
dec edi
cmp edi, esi
jne 0x431dde
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.004215d9
mov bl, 1
jmp 0x431de0

Function at 0x431eab
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x474717
call fcn.0045c9c3
xor ebx, ebx
cmp byte [0x49ef44], bl
jne 0x431ef0
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004219ab
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0043d7c9
pop ecx
cmp esi, ebx
je 0x431efe
mov al, 1
call fcn.0045ca9b
ret
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x431ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x431f0f
xor al, al
jmp 0x431eea
lea ecx, [ebp - 0x50]
call fcn.004320e1
lea ecx, [ebp - 0x28]
call fcn.00421465
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004325b1
test al, al
jne 0x431f43
push dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
call fcn.0043d7c9
pop ecx
mov al, bl
jmp 0x431eea
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
jmp 0x431f32
Function at 0x432428
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x49ef44], 0
jne 0x43245e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004219ab
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043d7c9
pop ecx
mov eax, esi
pop esi
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43246e
or eax, eax
leave
ret

Function at 0x432b8c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x432bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x432bb6
xor al, al
jmp 0x432bd6
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0045fde0
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4

Function at 0x432d82
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x400000
cmp dword [ebp + 0xc], eax
jbe 0x432d92
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00432cee

Function at 0x432db5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, 0x400000
push esi
mov esi, ecx
cmp dword [ebp + 0xc], eax
jbe 0x432dca
mov dword [ebp + 0xc], eax
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
test eax, eax
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov ecx, dword [esi + 0x20d]
setne bl
cmp ecx, dword [esi]
jne 0x432e38
add dword [esi + 0x211], eax
mov ecx, dword [esi + 0x219]
mov edx, dword [esi + 0x21d]
adc dword [esi + 0x215], 0
mov eax, ecx
or eax, edx
je 0x432e38
mov eax, dword [0x49ef5c]
test eax, eax
je 0x432e38
push edx
push ecx
push dword [esi + 0x215]
add esi, 0x221
push dword [esi - 0x10]
push esi
call eax
add esp, 0x14
pop esi
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x433d8e
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
push str.GlobalMemoryStatusEx
push str.kernel32.dll
mov dword [esi], SysReAllocStringLen
mov dword [ebp - 0x60], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433de7
lea ecx, [ebp - 0x60]
push ecx
call eax
test eax, eax
je 0x433de7
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00433d3f
add esp, 0x10
mov dword [esi + 4], edx
jmp 0x433e07
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jb 0x433e03
mov eax, dword [ebp - 0x18]
and dword [esi + 4], 0
mov dword [esi], eax
mov al, 1
pop esi
leave
ret