joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cc60
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x28
ret

Function at 0x42d700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x42d70b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x42d803
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x44a878]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44a878]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44a878]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44a878]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44a878]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44a878]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44a878]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x44a878]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x42d726
test edi, edi
je 0x42d822
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x44a878]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x42d807
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x42fb30
Capabilities:
Set file attributes

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x42fb43
xor eax, eax
pop edi
add esp, 8
ret
push esi
mov esi, dword [esp + 0x14]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 3
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42fb80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 8
ret
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.0042fae0
lea ecx, [esp + 8]
push ecx
mov edx, ecx
push edx
mov eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
push esi
je 0x42fb72
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
add esp, 8
ret

Function at 0x42fbc0
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x1c]
push ecx
mov dword [ebp], 0
push ebx
mov dword [eax], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x42fbf7
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
push esi
call fcn.00436216
mov edx, dword [esp + 0x24]
add esp, 4
mov edi, eax
push edi
push esi
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42fc36
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x447c0c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
push edi
jne 0x42fc40
call fcn.00436024
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x28]
mov dword [ebp], edx
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
call fcn.00436024
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x42fce0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x42fd00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x452504]
push esi
mov esi, dword [esp + 0x114]
lea edx, [esp + 4]
mov dword [esp + 0x10c], eax
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42fd22
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fd33
sub eax, edx
je 0x42fd8a
mov cl, byte [esp + eax + 3]
cmp cl, 0x5c
lea eax, [esp + eax + 3]
jne 0x42fd4e
mov byte [eax], 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42fd8a
lea ecx, [esp + 4]
push 0x5c
push ecx
call fcn.00436b20
add esp, 8
test eax, eax
je 0x42fd74
mov byte [eax], 0
lea edx, [esp + 4]
push edx
call fcn.0042fd00
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x10c]
pop esi
call fcn.00435083
add esp, 0x10c
ret
Function at 0x42fe50
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push esi
push 0x1a
call fcn.0042fda0
mov esi, dword [esp + 0xc]
add esp, 4
mov edx, esi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x42fe61
push 0x44654a
push esi
call fcn.004363db
add esp, 8
test eax, eax
jne 0x42fe83
mov dword [esi], 0x5c3a43
push edi
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42fe87
mov eax, dword [0x44b138]
mov dword [edi], eax
mov ecx, dword [0x44b13c]
mov dword [edi + 4], ecx
mov dl, byte [0x44b140]
push esi
mov byte [edi + 8], dl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
pop edi
jne 0x42febc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x42fed0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x1a
call fcn.0042fda0
mov esi, dword [esp + 0x18]
add esp, 4
mov edx, esi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x42fee4
push 0x44654a
push esi
call fcn.004363db
add esp, 8
test eax, eax
jne 0x42ff06
mov dword [esi], 0x5c3a43
mov edi, esi
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42ff10
mov eax, dword [0x44b138]
mov dword [edi], eax
mov ecx, dword [0x44b13c]
mov dword [edi + 4], ecx
mov dl, byte [0x44b140]
push esi
mov byte [edi + 8], dl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x42ff45
push esi
call fcn.0042fd00
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, 2
push eax
push esi
call ebp
mov edi, esi
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42ff60
mov eax, dword [str.HUL]
mov dword [edi], eax
mov cl, byte [0x44837c]
push esi
mov byte [edi + 4], cl
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x42ff8c
push esi
call fcn.0042fd00
add esp, 4
push esi
call ebx
or eax, 2
push eax
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4301d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2714
call fcn.00435d80
mov edx, dword [0x4683c4]
test edx, edx
mov eax, dword [0x452504]
mov dword [esp + 0x2710], eax
je 0x430200
xor eax, eax
mov cl, byte [eax + 0x468360]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x4301f2
mov ecx, dword [esp + 0x2718]
lea eax, [esp + 0x271c]
push eax
push ecx
lea edx, [esp + edx + 8]
push edx
call fcn.0043733d
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x2710]
call fcn.00435083
add esp, 0x2714
ret
Function at 0x431370
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x444e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0041bdb0
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.0041bdb0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov ebp, 0xf
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x54], ebp
mov dword [esi + 0x50], ebx
mov byte [esi + 0x40], bl
mov dword [esi + 0x80], ebp
mov dword [esi + 0x7c], ebx
mov byte [esi + 0x6c], bl
lea edi, [esi + 0x90]
mov ecx, edi
mov byte [esp + 0x1c], 4
call fcn.0041bdb0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea ecx, [esi + 0xa0]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
xor eax, eax
lea edx, [esi + 0x58]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
push 5
push str.1.0.0
mov byte [esp + 0x24], 6
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x9c], ebx
call fcn.00402c70
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4319a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 6
call fcn.00431460
cmp dword [esi + 0xb8], 0x10
jb 0x4319e5
mov eax, dword [esi + 0xa4]
push eax
call fcn.00435091
add esp, 4
xor ebx, ebx
mov ebp, 0xf
lea edi, [esi + 0x90]
mov dword [esi + 0xb8], ebp
mov dword [esi + 0xb4], ebx
mov ecx, edi
mov byte [esi + 0xa4], bl
call fcn.00430bd0
mov ecx, dword [edi + 4]
push ecx
call fcn.00435091
mov dword [edi + 4], ebx
mov eax, dword [esi + 0x80]
mov edi, 0x10
add esp, 4
cmp eax, edi
jb 0x431a35
mov edx, dword [esi + 0x6c]
push edx
call fcn.00435091
add esp, 4
mov dword [esi + 0x80], ebp
mov dword [esi + 0x7c], ebx
mov byte [esi + 0x6c], bl
cmp dword [esi + 0x54], edi
jb 0x431a52
mov eax, dword [esi + 0x40]
push eax
call fcn.00435091
add esp, 4
mov dword [esi + 0x54], ebp
mov dword [esi + 0x50], ebx
mov byte [esi + 0x40], bl
cmp dword [esi + 0x34], edi
jb 0x431a6c
mov ecx, dword [esi + 0x20]
push ecx
call fcn.00435091
add esp, 4
lea edi, [esi + 0xc]
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], ebx
mov ecx, edi
mov byte [esi + 0x20], bl
call fcn.00430bd0
mov edx, dword [edi + 4]
push edx
call fcn.00435091
add esp, 4
mov ecx, esi
mov dword [edi + 4], ebx
call fcn.00430bd0
mov eax, dword [esi + 4]
push eax
call fcn.00435091
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x432370
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x432429
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x432429
push esi
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x18], eax
jbe 0x43241d
push eax
call fcn.00436216
mov esi, eax
add esp, 4
test esi, esi
jne 0x4323bc
pop esi
pop edi
mov eax, 0x8007000e
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x18]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x432414
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push 0x447c0c
push esi
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x432414
mov eax, dword [esp + 0xc]
test eax, eax
je 0x432414
mov ecx, dword [eax + 8]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
push esi
mov dword [ebx], edx
call fcn.00436024
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.00436024
add esp, 4
pop esi
pop edi
mov eax, 0x80004005
pop ebx
add esp, 8
ret
pop edi
mov eax, 0x80070057
pop ebx
add esp, 8
ret
Function at 0x433870
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
push str.DevicePhysicalMemory
lea eax, [esp + 0x18]
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [0x468a10]
lea eax, [esp + 0x1c]
push eax
xor edx, edx
push 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edx
push esi
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x3c], edx
call dword [0x468a14]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [esp + 0xc]
push ecx
push 0x28
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
je 0x433930
mov ecx, dword [esp + 0x10]
movzx edx, word [esp + 0xe]
mov eax, ecx
and eax, 0xff
shl eax, 0x10
and ecx, 0xff000000
add eax, ecx
add eax, edx
and eax, 0x7fffffff
push 0x1000
and eax, 0xfffff000
push eax
mov eax, dword [esi]
push edi
push 4
push eax
call ebx
test eax, eax
je 0x433929
mov edi, dword [eax + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, 0xfff
je 0x43393a
xor edi, edi
mov ecx, dword [esi]
push 0x1000
push edi
push 0
push 4
push ecx
call ebx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x433960
Capabilities:
Read file via mapping

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [ecx + ebp]
cmp ebp, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
jb 0x4339a3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
mov edx, ebp
shr edx, 0x16
mov eax, dword [eax + edx*4]
test al, 1
je 0x433a89
test al, al
js 0x4339fa
mov ecx, dword [edi]
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, ebp
shr edx, 0xc
and edx, 0x3ff
mov ebx, dword [eax + edx*4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test bl, 1
je 0x433a89
and ebx, 0xfffff000
mov ecx, ebx
jmp 0x433a09
mov ecx, ebp
and ecx, 0x3ff000
and eax, 0xfffff000
add ecx, eax
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov esi, ebp
and esi, 0xfff
mov eax, 0x1000
sub eax, esi
sub ebx, edx
cmp ebx, eax
jbe 0x433a28
mov ebx, eax
mov eax, dword [edi]
push 0x1000
push ecx
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
add esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add esi, ebx
add edx, ebx
add ebp, ebx
cmp ebp, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
jb 0x43399f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x434550
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x28
mov esi, 0xe0000001
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4345bd
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4345bd
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4345bd
xor esi, esi
mov eax, dword [esp + 4]
test eax, eax
je 0x4345cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x434de0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x452504]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
sub eax, 2
jne 0x434e23
cmp dword [esp + 4], 6
jne 0x434e23
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x434e25
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00435083
add esp, 0x118
ret

Function at 0x434e40
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x452504]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
sub eax, 2
je 0x434e86
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00435083
add esp, 0x118
ret
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x114]
cmp edx, 6
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00435083
add esp, 0x118
ret

Function at 0x434eb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x452504]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
sub eax, 2
jne 0x434ef3
cmp dword [esp + 4], 5
jne 0x434ef3
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x434ef5
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00435083
add esp, 0x118
ret

Function at 0x434f10
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x452504]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
sub eax, 2
jne 0x434f68
cmp dword [esp + 4], 5
jne 0x434f68
mov eax, dword [esp + 8]
test eax, eax
jne 0x434f68
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00435083
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.00435083
add esp, 0x118
ret
Function at 0x435d39
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x435d59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00438679
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x435d7c
test byte [esp + 8], 2
je 0x435d7c
call fcn.00438667
mov dword [eax], 0xd
call fcn.00438670
mov dword [eax], 5
jmp 0x435d55
xor eax, eax
ret

Function at 0x4370ad
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44b680
call fcn.00438fe4
push 8
call fcn.0043b4cb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x468a6c], esi
jne 0x4370e1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x468a68], esi
mov al, byte [ebp + 0x10]
mov byte [0x468a64], al
cmp dword [ebp + 0xc], edi
jne 0x43712b
cmp dword [0x46a3cc], edi
je 0x43711b
mov eax, dword [0x46a3c8]
sub eax, 4
mov dword [0x46a3c8], eax
cmp eax, dword [0x46a3cc]
jb 0x43711b
mov eax, dword [eax]
cmp eax, edi
je 0x4370fc
call eax
jmp 0x4370fc
push 0x451054
mov eax, 0x45104c
call fcn.0043702b
pop ecx
push 0x451060
mov eax, 0x451058
call fcn.0043702b
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0043715c
cmp dword [ebp + 0x10], edi
jne 0x43716a
mov dword [0x468a6c], esi
push dword [ebp + 8]
call fcn.00436fe9
xor edi, edi
xor esi, esi
inc esi
call fcn.0043901f
ret

Function at 0x437584
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4375a1
call fcn.00438667
mov dword [eax], 0x16
xor eax, eax
jmp 0x43760b
push esi
push 0x8c
push 1
call fcn.00438893
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4375f6
push esi
call fcn.00439862
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4375d4
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4374ef
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x43760a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00437394
test ebx, ebx
pop ecx
je 0x437608
push ebx
call fcn.00438679
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x437a49
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x437c1d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x469060]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x437c1d
test cl, 0x48
je 0x437ab4
cmp byte [eax + 5], 0xa
je 0x437ab4
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x437aee
call fcn.00438667
mov dword [eax], 9
call fcn.00438670
mov dword [eax], esi
jmp 0x437afe
cmp eax, 0x6d
je 0x437c1d
push eax
call fcn.00438679
pop ecx
or eax, 0xffffffff
jmp 0x437c1f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x437c18
test eax, eax
je 0x437b2d
cmp byte [ebx], 0xa
jne 0x437b2d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x437b36
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x437c12
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x437c02
cmp al, 0xd
je 0x437b68
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x437bf4
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x437b82
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x437b7d
add dword [ebp + 0x10], 2
jmp 0x437bd6
mov dword [ebp + 0x10], eax
jmp 0x437bf0
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x437bf0
cmp dword [ebp - 0xc], 0
je 0x437bf0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x437bcb
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x437bd6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x437bf3
cmp ebx, dword [ebp + 0xc]
jne 0x437bdb
cmp byte [ebp - 1], 0xa
jne 0x437bdb
mov byte [ebx], 0xa
jmp 0x437bf3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00438066
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x437bf4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x437b4c
jmp 0x437c12
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x437c12
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x437c1f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret