joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473edf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x84a88959]
adc dh, byte [edx]
mov bl, ah
fdiv qword [0x5e713488]
sub dword [esi - 0x20fa62d0], edi
adc al, byte [eax + 0x370e57d]
enter 0xffffffffffff941d, 0x16
mov cl, 0x36

Function at 0x4bb6b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33c0
cmp edx, dword [eax]
je 0x4bb6d3
add eax, 8
inc ecx
cmp eax, 0x4c3450
jl 0x4bb6c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33c0]
jne 0x4bb801
mov eax, dword [0x4c8df4]
cmp eax, 1
je 0x4bb7db
test eax, eax
jne 0x4bb704
cmp dword [0x4c32e8], 1
je 0x4bb7db
cmp edx, 0xfc
je 0x4bb801
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb73b
lea eax, [ebp - 0x1a4]
push 0x4c09b8
push eax
call fcn.004bc090
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc520
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb77e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc520
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c09b4
push edi
call fcn.004be3f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0998
push eax
call fcn.004bc090
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc0a0
lea eax, [ebp - 0xa0]
push 0x4c0994
push eax
call fcn.004bc0a0
push dword [esi + 0x4c33c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc0a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c096c
push eax
call fcn.004be364
add esp, 0x2c
pop edi
jmp 0x4bb801
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33c4]
push 0
push eax
push dword [esi]
call fcn.004bc520
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5f598a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f59a5
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124babca]
pop edx
test eax, eax
je 0x5f5a77
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f5a66
test dword [ebp - 0x2a8], 1
jne 0x5f5a66
and dword [ebp - 0x2a8], 0x100
jne 0x5f5a66
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2ce1]
pop edx
pop esi
test eax, eax
je 0x5f5a09
jmp 0x5f5a66
cmp word [esi], 0x5a4d
jne 0x5f5a66
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f5a66
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2dcd]
pop edx
test eax, eax
je 0x5f5a66
lea eax, [ebp - 0x28c]
push eax
call fcn.005f58e6
test eax, eax
jne 0x5f5a5f
jmp 0x5f5a66
mov eax, esi
jmp 0x5f5a77
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f59a5
pop esi
leave
ret 4
Function at 0x40d190
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x478d40]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40d1d9
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 0x40d1d9
push 0xc00
call eax
test eax, eax
jne 0x40d26e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40d26e
cmp ecx, 0x104
ja 0x40d26e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x40d212
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40d26d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x40d235
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x40d232
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004372f8
mov esp, ebp
pop ebp
ret
Function at 0x4110a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x20
mov eax, dword [edi + 4]
cmp eax, ecx
mov dword [edi + 0x78], 0
cmova eax, ecx
mov dword [edi + 0x7c], 0
mov dword [edi + 0x54], eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 1
mov dword [edi + 0x70], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x90], 0xffffffff
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x58], 0
cmp eax, dword [edi + 0x20]
je 0x4111d6
mov ecx, 0x20
lea ebx, [edi + 0xd0]
mov dword [ebp + 8], ecx
nop word [eax + eax]
mov eax, dword [ebx]
test eax, eax
je 0x4111a8
mov dword [ebx], 0
nop dword [eax]
mov ecx, dword [ebx - 8]
mov esi, dword [eax]
push eax
mov ecx, dword [ecx + 0x14]
push ecx
mov eax, dword [ecx + 4]
call eax
mov eax, esi
test esi, esi
jne 0x411190
mov ecx, dword [ebp + 8]
add ebx, 0x28
sub ecx, 1
mov dword [ebp + 8], ecx
jne 0x411180
mov edx, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
test edx, edx
je 0x4111d1
mov eax, dword [edi + 0x14]
push edx
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x5c], 0
mov eax, dword [edi]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x10]
mov dword [edi + 0x98], eax
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
mov dword [edi + 0x9c], 0
lea ebx, [edi + eax*8]
mov dword [edi + 0xa0], 0
lea eax, [ecx + 1]
mov dword [edi + 0xa4], 0
mov dword [edi + 0x58], eax
lea eax, [ebx + 0x20]
push eax
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call fcn.00412eb0
mov dword [ebp + 8], eax
lea esi, [ebx + 0x1c]
test eax, eax
jne 0x4112b9
push esi
call fcn.00412eb0
mov dword [ebp + 8], eax
test eax, eax
jne 0x4112b9
lea eax, [ebx + 0x20]
push eax
call fcn.00412fd0
test eax, eax
jne 0x4112be
push esi
call fcn.00412fd0
test eax, eax
jne 0x4112be
push ebx
call fcn.00412770
mov dword [ebp + 8], eax
test eax, eax
je 0x4112cf
mov dword [edi + 0x44], 0
lea esi, [edi + 0xe4]
mov dword [ebp - 4], 0x20
cmp dword [esi - 4], 0
lea ebx, [esi + 4]
je 0x4112a4
push ebx
call fcn.00412fd0
push esi
call fcn.00412fd0
lea eax, [esi - 4]
push eax
call fcn.004131f0
push esi
call fcn.00413000
push ebx
call fcn.00413000
add esi, 0x28
sub dword [ebp - 4], 1
jne 0x411286
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4112c8
movzx eax, ax
or eax, 0x80070000
test eax, eax
je 0x4112cf
mov dword [edi + 0x40], eax
cmp dword [edi + 0x38], 0
jne 0x4112e8
cmp dword [edi + 0x40], 0
jne 0x4112e8
cmp dword [edi + 0x3c], 0
jne 0x4112e8
mov dword [edi + 0x44], 0
xor ecx, ecx
cmp dword [edi + 0x44], ecx
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412c60
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x412cab
cmp edx, 0x40
je 0x412c97
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00438b90
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x412cb1
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00438b90
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
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
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x412cf4
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
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 ebx
pop ebp
ret 8

Function at 0x412d60
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x475020]
mov dword [ecx], eax
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
pop ebp
ret 4

Function at 0x4131a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0043bb47
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4131cd
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4163a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47bb94], 0
jne 0x4163e8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414ab0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043753c
add esp, 4
test esi, esi
pop esi
jne 0x4163e0
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x416680
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00417950
cmp eax, 0xffffffff
je 0x4166ad
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x4166ad
and eax, 0xfffffffe
push eax
push esi
call fcn.00416dc0
test al, al
je 0x4166d9
cmp byte [0x47bb94], 0
push esi
jne 0x4166eb
lea eax, [ebp - 0xc]
push eax
call fcn.00414ab0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043753c
add esp, 4
test esi, esi
jne 0x4166e2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x416700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dd0b
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x478d40]
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 + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x47bb94], cl
jne 0x4167ac
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x416888
cmp eax, 0x114
jae 0x416888
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00414a80
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00413a40
push dword [ebp - 0x36c]
call fcn.0043753c
add esp, 4
mov al, 1
jmp 0x41688a
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x416888
cmp esi, 0x114
jae 0x4167f7
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.00413bf0
mov al, 1
jmp 0x41688a
lea ecx, [ebp - 0x360]
call fcn.004139b0
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x41681d
push esi
lea ecx, [ebp - 0x360]
call fcn.00414330
push dword [ebp - 0x360]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test edx, edx
je 0x41687a
mov ecx, dword [ebp - 0x360]
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x416849
inc eax
cmp word [ecx + eax*2], 0
jne 0x416841
mov dword [ebp - 0x35c], eax
cmp eax, edx
jne 0x41687a
lea eax, [esi - 1]
cmp eax, edx
jne 0x41687a
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.00413a40
push dword [ebp - 0x360]
call fcn.0043753c
add esp, 4
mov al, 1
jmp 0x41688a
push dword [ebp - 0x360]
call fcn.0043753c
add esp, 4
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.004372f8
mov esp, ebp
pop ebp
ret 4
Function at 0x416910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dd50
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x478d40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x47bb94], 0
mov esi, dword [ebp + 8]
jne 0x41699d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00414a80
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00413a40
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.0043753c
add esp, 4
jmp 0x4169c8
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.00413bf0
push esi
call fcn.004187a0
test edi, edi
je 0x4169de
cmp edi, 0x114
jae 0x4169de
mov al, 1
jmp 0x4169e0
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.004372f8
mov esp, ebp
pop ebp
ret 4

Function at 0x416a20
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47bb94], 0
jne 0x416a66
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414ab0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043753c
add esp, 4
test esi, esi
pop esi
jne 0x416a5e
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4
Function at 0x416cf0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47bb94], 0
jne 0x416d2d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414ab0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043753c
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x416dc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47bb94], 0
jne 0x416e09
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414ab0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043753c
add esp, 4
test esi, esi
pop esi
jne 0x416e01
xor al, al
mov esp, ebp
pop ebp
ret 8
mov al, 1
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47bb94], 0
jne 0x41798a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00414ab0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043753c
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
or eax, 0xffffffff
cmp ecx, 0xffffffff
cmovne eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x417c00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417c32
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417c32
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x417d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
nop
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x417d98
test ecx, ecx
je 0x417d8d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x417d50
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
nop
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x418038
test ecx, ecx
je 0x41802d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x417ff0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x418f60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x418fef
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x418fef
push ebx
push edi
xor edi, edi
xor ebx, ebx
xor eax, eax
mov edx, 2
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
nop word [eax + eax]
lea ecx, [edx - 2]
mov eax, esi
shr eax, cl
lea ecx, [edx - 1]
and eax, 1
add edi, eax
mov eax, esi
shr eax, cl
mov ecx, edx
and eax, 1
add dword [ebp - 8], eax
mov eax, esi
shr eax, cl
lea ecx, [edx + 1]
and eax, 1
add edx, 4
add dword [ebp - 4], eax
mov eax, esi
shr eax, cl
and eax, 1
lea ecx, [edx - 2]
add ebx, eax
cmp ecx, 0x20
jb 0x418fa0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add ecx, ebx
add eax, ecx
add eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424a00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e760
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x478d40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x48], 0x40000
mov dword [esi + 0x24], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x4c], 0x40000
mov dword [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x50], 0x40000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x54], 0x40000
mov dword [esi + 0x30], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x58], 0x40000
push 0x419220
push 0x4249f0
push 4
push 4
lea eax, [esi + 0x2f8]
mov dword [ebp - 4], 0
push eax
mov dword [esi], 0x4669dc
mov dword [esi + 4], 0x4669ec
mov dword [esi + 8], 0x4669fc
mov dword [esi + 0xc], 0x466a0c
mov dword [esi + 0x10], 0x466a20
mov dword [esi + 0x14], 0x466a34
mov dword [esi + 0x18], 0x466a44
mov word [esi + 0x2e0], 0
mov dword [esi + 0x2e8], 0
mov dword [esi + 0x2ec], 0
mov dword [esi + 0x2f0], 0
mov dword [esi + 0x2f4], 0
call fcn.0043736c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ecb0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x478d40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 3
mov dword [edi + 0x11], 0
mov word [edi + 0x15], 0
mov byte [edi + 0x17], 0
call fcn.004139b0
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
call fcn.004139b0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call fcn.004139b0
lea esi, [edi + 0x78]
mov dword [edi + 0x44], 0
xor eax, eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], eax
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 6
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.004139b0
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.004139b0
lea esi, [edi + 0xa8]
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x18]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004139b0
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.004139b0
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