joyce8/EMBER2024-capa huggingface dataset:
Function at 0x768a33
Capabilities:
Encode data using xor

Disassembly:
mov edi, eax
mov esi, edx
mov eax, 0x41363233
xor al, byte [esi]
call fcn.00768a6a
mov ebx, eax
xor ah, byte [esi]
call fcn.00768a6a
shr ecx, 2
mov edx, ecx
xor dword [edi], eax
mov cl, al
add edi, 4
rol ebx, cl
xor eax, ebx
mov cl, bh
ror eax, cl
add ebx, eax
dec edx
jne 0x768a51
ret

Function at 0x768a6a
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
push edx
xor edx, edx
dec esi
inc esi
xor ah, byte [esi]
xor al, dl
add eax, 0x6e203cc5
add eax, 0x21424a6
mov cl, al
ror eax, cl
xor eax, 0x8372a5a7
dec dx
jne 0x768a73
cmp byte [esi], 0
jne 0x768a70
pop edx
pop esi
pop ecx
ret

Function at 0x768abb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
add edx, 0x89421025
bswap edx
mov eax, dword [esi]
sub eax, edx
xor eax, ebx
mov ebx, dword [esi]
mov dword [edi], eax
add esi, 4
add edi, 4
dec ecx
jne 0x768acf
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x76ad01
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
pushal
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
imul eax, dword [ebp + 0x10], 0x9e3779b9
cmp dword [ebp + 0x10], 0
jbe 0x76ad61
mov edx, ebx
shl edx, 4
sub ecx, edx
mov edx, dword [esi + 8]
xor edx, ebx
sub ecx, edx
mov edx, ebx
shr edx, 5
xor edx, eax
sub ecx, edx
sub ecx, dword [esi + 0xc]
mov edx, ecx
shl edx, 4
sub ebx, edx
mov edx, dword [esi]
xor edx, ecx
sub ebx, edx
mov edx, ecx
shr edx, 5
xor edx, eax
sub ebx, edx
sub ebx, dword [esi + 4]
sub eax, 0x9e3779b9
dec dword [ebp + 0x10]
jmp 0x76ad17
mov dword [edi], ebx
mov dword [edi + 4], ecx
popal
leave
ret 0xc
Function at 0x41d4ab
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d4ea
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d4ea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d4ea
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41d4ea
cmp dword [ecx + 0x74], 0xe
jbe 0x41d4ea
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x424c4b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x424ce8
push ebx
push esi
call fcn.00424c14
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00424ba8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x424c95
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424ce7
push edi
push eax
call fcn.004236e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x424cb5
call fcn.0042372e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x424ce6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00424ba8
add esp, 0x20
test eax, eax
jne 0x424cd4
push edi
call fcn.0042372e
jmp 0x424cdc
push ebx
call fcn.0042372e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x425ef7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e9a0
push 0x42e998
push str.FlsAlloc
push 0x1f
call fcn.00425db6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425f2b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c144]
call esi
jmp 0x425f31
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x425f75
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e9b0
push 0x42e9a8
push str.FlsGetValue
push 0x21
call fcn.00425db6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425fac
push dword [ebp + 8]
mov ecx, esi
call dword [0x42c144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x425fb4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42e9b8
push 0x42e9b0
push str.FlsSetValue
push 0x22
call fcn.00425db6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425fee
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42c144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42b2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x5ea6181c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x552d5683
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x336646e7
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, str.e
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x2b5b5ec1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x44f4b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x34000]
push edi
jmp 0x44f4ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x44f4d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f4c0
mov eax, 1
add ebx, ebx
jne 0x44f4e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44f4f4
jne 0x44f513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f513
dec eax
add ebx, ebx
jne 0x44f500
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x44f4d8
add ebx, ebx
jne 0x44f50f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44f565
xor ecx, ecx
sub eax, 3
jb 0x44f52b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44f59a
sar eax, 1
mov ebp, eax
jmp 0x44f536
add ebx, ebx
jne 0x44f536
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f504
inc ecx
add ebx, ebx
jne 0x44f544
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44f504
add ebx, ebx
jne 0x44f551
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44f546
jne 0x44f562
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44f546
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44f584
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44f576
jmp 0x44f4c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44f584
add edi, ecx
jmp 0x44f4c6
pop esi
mov edi, esi
mov ecx, 0x14f1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44f5a2
cmp byte [edi], 6
jne 0x44f5a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x44f5a7
lea edi, [esi + 0x4c000]
mov eax, dword [edi]
or eax, eax
je 0x44f61f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x53ec0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x53fe4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44f5d4
mov ecx, edi
jns 0x44f603
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x53fec]
or eax, eax
je 0x44f619
mov dword [ebx], eax
add ebx, 4
jmp 0x44f5f1
call dword [esi + 0x53fe8]
mov ebp, dword [esi + 0x53ff0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44f653
sub esp, 0xffffff80
jmp 0x41dad6
Function at 0x401172
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
jmp 0x40db37
mov eax, 0x4105b4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [ebp + 8]
mov esi, 0x104
push esi
call sub.MFC42.DLL_CString::GetBuffer
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov edi, 0x20019
mov dword [ebp - 0x18], esi
push edi
mov esi, 0x80000002
push str.SoftwareMicrosoftShared_ToolsMSInfo
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401154
cmp eax, ebx
jne 0x40dbbe
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
push eax
push ebx
push str.Path
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], eax
je 0x40dbb9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40dc0d
push edi
push str.SoftwareMicrosoftShared_Tools_Location
push esi
lea ecx, [ebp - 0x10]
call fcn.00401154
cmp eax, ebx
jne 0x40dc0d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
push eax
push ebx
push str.MSInfo
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.MSInfo32.exe
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp dword [ebp - 0x10], ebx
je 0x40dc0d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, esi
call sub.MFC42.DLL_CString::FreeExtra
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp dword [ebp - 0x10], ebx
mov esi, eax
je 0x40dc38
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x402fa4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047f0
test esi, esi
jne 0x402fda
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040495c
jmp 0x402ff8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ee8
mov edi, eax
test esi, esi
je 0x402ff8
cmp dword [ebx], 0
je 0x402ff8
dec esi
jmp 0x402fe1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40302c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x43c008], 0x8088405
inc edx
mov dword [ebx + 0x43c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404564
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x446038], 0
je 0x4045cb
cmp word [0x446324], 0xd7b2
jne 0x40458d
cmp dword [0x44632c], 0
jbe 0x40458d
mov eax, 0x446320
call dword [0x44633c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4045f8
call fcn.00404db4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43c022], 0
jne 0x4045e7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405d84
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41c67c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.004048f4
lea eax, [ebp - 8]
call fcn.004048f4
lea eax, [ebp + 0x10]
call fcn.004048f4
lea eax, [ebp + 0xc]
call fcn.004048f4
xor eax, eax
push ebp
push 0x41c70d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_Wow64DisableWow64FsRedirection
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.shell32.dll_ShellExecuteW
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_Wow64RevertWow64FsRedirection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c714
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048b0
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004048b0
ret
Function at 0x41cd18
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffeec
mov edi, eax
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x10]
cmp ebx, 4
jne 0x41cd54
test esi, esi
jne 0x41cd54
dec eax
jne 0x41cd54
mov eax, edi
mov edx, 0x41ce18
call fcn.00404b10
cmp ebx, 4
jne 0x41cd6a
cmp esi, 0xa
jne 0x41cd6a
mov eax, edi
mov edx, 0x41ce3c
call fcn.00404b10
cmp ebx, 4
jne 0x41cd80
cmp esi, 0x5a
jne 0x41cd80
mov eax, edi
mov edx, 0x41ce60
call fcn.00404b10
cmp ebx, 3
jne 0x41cd96
cmp esi, 0x33
jne 0x41cd96
mov eax, edi
mov edx, 0x41ce84
call fcn.00404b10
cmp ebx, 4
jne 0x41cdab
test esi, esi
jne 0x41cdab
mov eax, edi
mov edx, 0x41ceb0
call fcn.00404b10
cmp ebx, 5
jne 0x41cdc0
test esi, esi
jne 0x41cdc0
mov eax, edi
mov edx, 0x41cedc
call fcn.00404b10
cmp ebx, 5
jne 0x41cdd6
cmp esi, 1
jne 0x41cdd6
mov eax, edi
mov edx, 0x41cf04
call fcn.00404b10
cmp ebx, 6
jne 0x41cdeb
test esi, esi
jne 0x41cdeb
mov eax, edi
mov edx, 0x41cf28
call fcn.00404b10
cmp ebx, 6
jne 0x41cdff
dec esi
jne 0x41cdff
mov eax, edi
mov edx, 0x41cf50
call fcn.00404b10
add esp, 0x114
pop edi
pop esi
pop ebx
ret

Function at 0x41cf74
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048d4
xor eax, eax
push ebp
push 0x41cfdb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x200
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ef8
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov eax, ebx
lea edx, [ebp - 0x204]
mov ecx, pe_nt_image_headers32
call fcn.00404f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cfe2
lea eax, [ebp - 4]
call fcn.004047f0
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0xa9b04c], 1
mov dword [0xa9b050], 1
mov dword [0xa9b054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
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 0x40134f
mov eax, 0
jmp 0x4013c6
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 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401924
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x4024f8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402517
mov eax, 0
jmp 0x40255b
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 0x40253a
mov eax, 0
jmp 0x40255b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x402556
mov eax, 0
jmp 0x40255b
mov eax, 1
leave
ret
Function at 0x40255d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4025bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4025b4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4025b4
mov eax, dword [ebp - 4]
jmp 0x4025d0
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402591
mov eax, 0
leave
ret
Function at 0x13a7338f
Capabilities:
Encode data using xor

Disassembly:
call 0x13a73308
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x13a73338
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x13a73354
xor edx, 0
jmp 0x13a7335f
xor edx, edx
jmp 0x13a73376
jmp 0x13a73382
xor eax, eax
push 0x8427d7c0
call 0x13a7338f
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x13a733cb
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x13a733a4
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x13a733e2
add eax, 0
jno 0x13a733e7
add esi, 0
ret 0x10

Function at 0x13a74150
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x13a74172
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x13a74314
cmp edi, dword [ebp + 0x10]
jb 0x13a74314
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.13a73c3c
inc edi
jmp 0x13a741fb
jmp 0x13a74208
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.13a73c3c
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.13a73c3c
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x13a7425c
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x13a74240
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.13a7428a
add dword [eax], 0x39
jle 0x13a74266
sub al, 0xf5
mov ch, al
call fcn.13a7429f
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10