joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406cd0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x406d4c
mov eax, dword [esi + 0x30]
test eax, eax
je 0x406d4c
mov edx, dword [esp + 0xc]
push edi
lea edi, [esi + 0x48]
lea ecx, [esp + 0x10]
push edi
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x406d43
mov edx, dword [esi + 0x58]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406d31
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
ret 8
mov ecx, dword [esi + 0x30]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp + 0x10]
pop edi
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x406d60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x406e05
mov eax, dword [esi + 0x30]
test eax, eax
je 0x406e05
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x406da9
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
test ecx, ecx
je 0x406e05
mov edx, dword [esp + 0x20]
mov eax, ecx
cmp edx, ecx
mov dword [esp + 4], eax
jge 0x406dc1
mov eax, edx
mov dword [esp + 4], eax
lea ecx, [esi + 0x34]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esi + 0x30]
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x406e05
mov edx, dword [esi + 0x44]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
pop esi
add esp, 0x14
ret 0xc
xor eax, eax
pop esi
add esp, 0x14
ret 0xc
Function at 0x413c11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x438228
cmp edx, dword [eax]
je 0x413c33
add eax, 8
inc ecx
cmp eax, 0x4382b8
jl 0x413c24
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x438228]
jne 0x413d61
mov eax, dword [0x43d13c]
cmp eax, 1
je 0x413d3b
test eax, eax
jne 0x413c64
cmp dword [0x437df8], 1
je 0x413d3b
cmp edx, 0xfc
je 0x413d61
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413c9b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413ea0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004100a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x413cde
lea eax, [ebp - 0x1a4]
push eax
call fcn.004100a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42ee44
push edi
call fcn.00417220
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413ea0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413eb0
lea eax, [ebp - 0xa0]
push 0x42ee24
push eax
call fcn.00413eb0
push dword [esi + 0x43822c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413eb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041718e
add esp, 0x2c
pop edi
jmp 0x413d61
lea eax, [ebp + 8]
lea esi, [esi + 0x43822c]
push 0
push eax
push dword [esi]
call fcn.004100a0
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 0x41bdf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f3a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41bebb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41bebb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41be6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41be79
or bh, 8
and edi, 0x8000000
je 0x41be94
mov eax, dword [0x43e8dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41bebb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41c2bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41c2df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41c2fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x421be7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x421c29
call fcn.00426a99
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x421c29
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x421c20
xor eax, eax
jmp 0x421c31
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00421c37
pop edi
pop esi
pop ebx
ret 4
Function at 0x473f13
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x473f41
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473f5f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00473e79
jmp 0x473f5f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473f5f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00473e79
test edi, edi
mov eax, edi
jne 0x473f49
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x322744df
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4ade6c31
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x70e39058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x70e391a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x70e3907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70e3906a
add dl, dl
jne 0x70e39089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70e390dc
xor eax, eax
add dl, dl
jne 0x70e39096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x70e3917d
add dl, dl
jne 0x70e390a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70e390b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70e390bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70e390c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x70e390d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x70e39075
mov eax, 1
add dl, dl
jne 0x70e390ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x70e390f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70e390e1
sub eax, ebx
mov ebx, 1
jne 0x70e39128
mov ecx, 1
add dl, dl
jne 0x70e3910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x70e39119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70e39105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x70e39075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x70e3913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x70e3914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x70e39136
cmp eax, 0x7d00
jae 0x70e3916d
cmp eax, 0x500
jb 0x70e39168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x70e39075
cmp eax, 0x7f
ja 0x70e39170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x70e39075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x70e3919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x70e39075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40213b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40214a
pop dword [ebp - 0x14]
mov eax, 0x40214a
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xcaf098c9
add dword [ebp - 0x24], 0x8361ac82
mov dword [ebp - 0x20], 0x761f9937
sub dword [ebp - 0x20], 0x43ec4cf2
mov dword [ebp - 0x1c], 0xdbbd9449
sub dword [ebp - 0x1c], 0x8f71501b
mov dword [ebp - 0x18], 0x6c5c5612
add dword [ebp - 0x18], 0x93a3a9ee
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xe4835a71
sub dword [ebp - 0x24], 0x7010f11b
mov dword [ebp - 0x20], 0x6051886b
add dword [ebp - 0x20], 0xe11ad90a
mov dword [ebp - 0x1c], 0x456d5672
sub dword [ebp - 0x1c], 0xe1fdea06
mov dword [ebp - 0x18], 0x15d133a9
add dword [ebp - 0x18], 0xea2ecc57
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x84f45d4c
add eax, 0x7b4c42c8
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x35b18
push 0
call eax
mov ecx, 0xfd67d9bb
add ecx, 0x29861ca
mov edx, eax
mov ebx, 0xacb8317d
sub ebx, 0xac74737d
add ebx, dword [ebp - 0x14]
mov esi, 0x2a336cfb
sub esi, 0x6f9a8081
xor dword [ebp - 4], ecx
mov edi, dword [ebx]
sub dword [ebp - 0xc], 0x932cf75e
xor edi, esi
sub dword [ebp - 0x10], 0xe2cdfb3b
mov dword [edx], edi
add edx, 0xf21bfd19
sub edx, 0xf21bfd15
add ebx, 4
loop 0x402262
add eax, 0x159f78b
add eax, 0xfea6e95c
mov ebx, eax
add eax, 5
mov ecx, 0x27e8e586
add ecx, 0xd8571a7a
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.004066d0
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004066d0
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x4066df
pop dword [ebp - 0xc]
mov eax, 0xa6e8f388
sub eax, 0xa6a88ca9
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3b7ba
push 0
mov eax, 0xfe46b782
sub eax, 0xfe033752
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x91f21023
add ecx, 0x6e0e3b2a
mov esi, eax
mov edi, 0x440b09f0
add edi, 0xbc39bc10
add edi, dword [ebp - 0xc]
mov ebx, 0x30ed296e
sub ebx, 0xc964d81c
mov dword [ebp - 8], 0x2888d801
mov edx, dword [edi]
xor dword [ebp - 4], edx
xor edx, ebx
add dword [ebp - 8], 0x3173535a
mov dword [esi], edx
sub dword [ebp - 8], 0xc76d4843
add esi, 4
add edi, 4
loop 0x40673e
add eax, 0x57f4909b
sub eax, 0x57f37094
xor ebx, ebx
add ebx, eax
add eax, 0xf0902d04
sub eax, 0xf0902cff
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x519428], 1
mov dword [0x51942c], 1
mov dword [0x519430], 1
mov dword [0x51941c], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x406a00
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], edi
mov dword [esp], edx
call sym._fread
mov ebx, eax
cmp edi, eax
je 0x406a36
mov dword [esp], esi
call sym._ferror
test eax, eax
jne 0x406a48
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret 4
mov ecx, esi
call sym._checkErr__stdZsyncio_u162_4.part.0
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret 4

Function at 0x4073c0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], edx
call sym._fwrite
mov dword [esp], ebx
mov esi, eax
call sym._ferror
test eax, eax
je 0x4073f8
mov ecx, ebx
call sym._checkErr__stdZsyncio_u162_4.part.0
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret 4
Function at 0x407950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x7fffffff
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
cmp eax, esi
mov eax, 0
sbb eax, ebp
jb 0x407a50
mov ebx, ecx
mov ecx, esi
call sym._mnewString_4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov eax, edx
mov dword [esp + 0x3c], ecx
test edx, edx
jle 0x407a90
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
add eax, 4
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fread
mov edi, eax
cmp esi, eax
je 0x4079d3
mov dword [esp], ebx
call sym._ferror
test eax, eax
jne 0x407aa8
mov dword [esp], 0x4db1c8
call sym.___emutls_get_address
cmp byte [eax], 0
mov dword [esp + 0x20], eax
jne 0x407a33
mov dword [esp], ebx
call sym._fgetc
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call sym._ungetc
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x407a33
mov edx, dword [esp + 0x2c]
test edx, edx
jns 0x407ab8
mov eax, edi
cdq
cmp edi, esi
mov ebx, edx
sbb ebx, ebp
jge 0x407a33
test edi, edi
js 0x407b40
mov edx, edi
lea ecx, [esp + 0x38]
call sym._setLengthStrV2_8
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add esp, 0x4c
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret 8
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], edx
call sym._raiseRangeErrorI
mov edx, dword [esp + 0x20]
add esp, 0x4c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
sub eax, 1
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._raiseIndexError2
jmp 0x407a33
mov ecx, ebx
call sym._checkErr__stdZsyncio_u162_4.part.0
jmp 0x4079d3
mov ecx, ebx
call sym._readAllBuffer__stdZsyncio_u516_4
mov ebx, eax
mov eax, dword [esp + 0x20]
mov esi, edx
cmp byte [eax], 0
jne 0x407b17
mov edx, ebx
lea ecx, [esp + 0x38]
call sym._prepareAdd_8
test ebx, ebx
jle 0x407b17
mov eax, ebx
add eax, 1
jo 0x407b71
test eax, eax
js 0x407b80
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 8], eax
lea edx, [ecx + edx + 4]
lea ecx, [esi + 4]
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym._memcpy
add ebx, dword [esp + 0x38]
jo 0x407b71
mov dword [esp + 0x38], ebx
test esi, esi
je 0x407a33
test dword [esi], 0x40000000
jne 0x407a33
mov dword [esp], esi
call sym._deallocShared
jmp 0x407a33
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov dword [esp + 4], edx
call sym._raiseRangeErrorI
jmp 0x407a33
call sym._raiseOverflow
jmp 0x407b17
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0x80000000
mov dword [esp + 4], 0xffffffff
call sym._raiseRangeErrorI
jmp 0x407b17