joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4338d4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4464fc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00433869
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041fec0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x433923
cmp dword [ebp - 0x1c], 5
jb 0x43393b
jmp 0x433937
cmp dword [ebp - 0x10], 1
jne 0x43393b
cmp dword [ebp - 0x1c], 4
ja 0x433937
jne 0x43393b
cmp dword [ebp - 0x18], 0
jbe 0x43393b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43cc10
call fcn.0043373d
test eax, eax
jge 0x43395c
mov byte [0x447900], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f013
add ebp, 0x78
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x74f464af
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x143b518c
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x62b9c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6333e8
cmp edx, dword [eax]
je 0x62b9e3
add eax, 8
inc ecx
cmp eax, 0x633478
jl 0x62b9d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6333e8]
jne 0x62bb11
mov eax, dword [0x63bd70]
cmp eax, 1
je 0x62baeb
test eax, eax
jne 0x62ba14
cmp dword [0x633310], 1
je 0x62baeb
cmp edx, 0xfc
je 0x62bb11
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62ba4b
lea eax, [ebp - 0x1a4]
push 0x630940
push eax
call fcn.0062c3a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062c830
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62ba8e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062c830
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x63093c
push edi
call fcn.0062e700
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x630920
push eax
call fcn.0062c3a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062c3b0
lea eax, [ebp - 0xa0]
push 0x63091c
push eax
call fcn.0062c3b0
push dword [esi + 0x6333ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062c3b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x6308f4
push eax
call fcn.0062e674
add esp, 0x2c
pop edi
jmp 0x62bb11
lea eax, [ebp + 8]
lea esi, [esi + 0x6333ec]
push 0
push eax
push dword [esi]
call fcn.0062c830
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 0x414f34
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415009
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415024
push ebx
push 0x415034
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x414fb4
mov al, 0x69
call fcn.00414bac
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f08
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x414fbd
call fcn.00414f08
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415010
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x415124
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
jmp 0x4151e3
cmp dword [esi + 0x10], 0x1000
jne 0x4151cf
test byte [esi + 0x15], 1
jne 0x4151cf
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x415180
cmp ebp, 2
je 0x415180
cmp ebp, 0x10
je 0x415180
cmp ebp, 0x20
jne 0x41519c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41519c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4151ad
mov eax, dword [esi]
add eax, ebx
call fcn.0041511c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4151a0
cmp byte [esp + 4], 0
je 0x4151cf
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415155
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x710c6c
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x7109ec
dec ecx
call fcn.00710c93
or ecx, ecx
mov esi, 0x77feed6f
sub esi, ecx
xor dword [eax], ebx
add ecx, esi
inc eax
sub esi, ecx
cmp eax, edx
jne fcn.00710c6c
mov ecx, ecx
add esi, ecx
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
mov ecx, 0x79031ab6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
mov ecx, 0x47d5dea
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4061bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4061d5
test al, 0x10
je 0x4061d9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406368
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.004045ac
add esp, 0x104
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404798
xor eax, eax
push ebp
push 0x4063e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004047a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063e7
lea eax, [ebp - 4]
call fcn.0040433c
ret

Function at 0x4074fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40754e
test eax, edx
je 0x407551
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x407511
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x407537
add ecx, 4
js 0x407527
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x407534
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40755d
test edx, edx
jne 0x407504
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a41c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a455
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040442c
jmp 0x40a45e
mov eax, ebx
mov edx, esi
call fcn.00404390
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a468
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a48a
movzx eax, byte [esp]
jmp 0x40a48c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40ab1c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a994
mov eax, dword [0x416c14]
cmp byte [eax], 0
je 0x40ab98
mov eax, dword [0x416b24]
call fcn.00403128
call fcn.00402eec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407d18
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40abe0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40abce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x416b00]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4197f0]
call fcn.00405348
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40ca44
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
lea edx, [esp + 0xc]
mov eax, dword [0x41b9bc]
mov ecx, 0x40
call fcn.00402f80
mov dword [0x41b908], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x41b908
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x40ca72
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x41b908]
add eax, esi
add eax, edi
mov dword [esp + 4], 3
mov ecx, dword [esp + 4]
mov edx, eax
shl edx, cl
mov ecx, dword [esp + 4]
neg ecx
shr eax, cl
or edx, eax
mov eax, edx
mov esi, eax
mov dword [ebx*4 + 0x41b908], esi
lea eax, [edi + esi]
mov dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + ebp*4 + 0xc]
add eax, esi
add eax, edi
shl eax, cl
mov ecx, dword [esp + 8]
neg ecx
mov edx, dword [esp + ebp*4 + 0xc]
add edx, esi
add edi, edx
shr edi, cl
or eax, edi
mov edi, eax
mov dword [esp + ebp*4 + 0xc], edi
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc ebp
and ebp, 0x8000000f
jns 0x40cb0a
dec ebp
or ebp, 0xfffffff0
inc ebp
dec dword [esp]
jne 0x40ca92
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40cb94
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edx, dword [0x41b9b4]
sub dword [eax + 8], edx
mov edx, dword [0x41b9b0]
sub dword [eax], edx
mov edx, 0x14
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov dword [eax + 0xc], ebx
mov ebx, dword [eax + 4]
mov dword [eax + 8], ebx
mov ebx, dword [eax]
mov dword [eax + 4], ebx
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
mov ebx, ecx
add ecx, ecx
inc ecx
imul ebx, ecx
mov esi, 5
mov ecx, esi
mov edi, ebx
shl edi, cl
mov ecx, esi
neg ecx
shr ebx, cl
or edi, ebx
mov ecx, edi
mov esi, ecx
mov ecx, dword [eax + 4]
mov ebx, ecx
add ecx, ecx
inc ecx
imul ebx, ecx
mov dword [esp], 5
mov ecx, dword [esp]
mov edi, ebx
shl edi, cl
mov ecx, dword [esp]
neg ecx
shr ebx, cl
or edi, ebx
mov ecx, edi
mov ebx, ecx
mov ecx, dword [eax + 8]
mov edi, edx
add edi, edi
sub ecx, dword [edi*4 + 0x41b90c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 8]
mov edi, dword [esp + 4]
shr edi, cl
mov ecx, dword [esp + 8]
neg ecx
mov ebp, dword [esp + 4]
shl ebp, cl
or edi, ebp
mov ecx, edi
xor ecx, esi
mov dword [eax + 8], ecx
mov ecx, dword [eax]
mov edi, edx
add edi, edi
sub ecx, dword [edi*4 + 0x41b908]
mov dword [esp + 0xc], ecx
mov ecx, esi
mov edi, dword [esp + 0xc]
shr edi, cl
mov ecx, esi
neg ecx
mov esi, dword [esp + 0xc]
shl esi, cl
or edi, esi
mov ecx, edi
xor ecx, ebx
mov dword [eax], ecx
dec edx
test edx, edx
jne 0x40cbb1
mov edx, dword [0x41b90c]
sub dword [eax + 0xc], edx
mov edx, dword [0x41b908]
sub dword [eax + 4], edx
mov al, 1
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d054], 1
mov dword [0x40d050], 1
mov dword [0x40d04c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d00c], eax
mov eax, dword [0x40d060]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d05c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409018], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x40152c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x60
call dbg.__main
mov eax, dword [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], 0x40a044
mov dword [esp], eax
call sym._fopen
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x5c], 0
jne 0x40157f
mov eax, dword [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_Cant_open__s_n
call sym._printf
mov eax, 1
jmp 0x401747
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym._fseek
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym._ftell
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym._rewind
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym._malloc
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sym._fread
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym._fclose
mov dword [esp + 0x39], 0x4465d468
mov dword [esp + 0x3d], 0x4815ff00
mov dword [esp + 0x41], 0x6a004440
mov dword [esp + 0x45], 0xdd986858
mov dword [esp + 0x49], 0x6e90044
mov dword [esp + 0x4c], 0xa306
mov eax, dword [esp + 0x54]
add eax, 0x420
mov edx, dword [esp + 0x39]
mov dword [eax], edx
mov edx, dword [esp + 0x3d]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x41]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x45]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x49]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x13], edx
mov dword [esp + 0x32], 0xff5ce5e9
mov dword [esp + 0x35], 0x9090ffff
mov eax, dword [esp + 0x54]
add eax, 0x9b36
mov edx, dword [esp + 0x32]
mov dword [eax], edx
mov edx, dword [esp + 0x35]
mov dword [eax + 3], edx
mov dword [esp + 0x1f], 0x49004c
mov dword [esp + 0x23], 0x410042
mov dword [esp + 0x27], 0x53004f
mov dword [esp + 0x2b], 0x44002e
mov dword [esp + 0x2e], 0x4c004c00
mov eax, dword [esp + 0x54]
add eax, 0x441d4
mov edx, dword [esp + 0x1f]
mov dword [eax], edx
mov edx, dword [esp + 0x23]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x27]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2b]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x2e]
mov dword [eax + 0xf], edx
mov eax, dword [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], 0x40a05e
mov dword [esp], eax
call sym._fopen
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sym._free
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.Patched__s_succesfuly__Dont_forget_to_copy_libaos.dll_to_the_same_folder._n
call sym._printf
mov eax, 0
leave
ret
Function at 0x4019b0
Capabilities:
Write file on windows

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

Function at 0x401a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d068]
test esi, esi
jle 0x401b30
mov eax, dword [0x40d06c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401a44
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401ac7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401a30
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401b57
mov eax, dword [0x40d06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d06c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b37
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401ac0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401ad0
add dword [0x40d068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d06c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a4e
mov eax, dword [0x40d06c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x402070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d07c]
sub esp, 4
test ebx, ebx
je 0x4020c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020be
test esi, esi
je 0x4020be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020a0
mov dword [esp], 0x40d084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402400
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402425
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402430
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402425
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402478
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40246e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40247a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402460
xor eax, eax
pop ebx
pop esi
ret