joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441710
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441743
push esi
call fcn.0044fad0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44173c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4417c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4417b2
mov eax, dword [esi + 8]
test eax, eax
je 0x441767
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4417ae
cmp eax, 2
je 0x4417b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44175a
cmp eax, 3
je 0x44178d
cmp eax, 1
jne 0x44175a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44175a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44175a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004417f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4417d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004417f0
add esp, 4
pop esi
ret

Function at 0x442060
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x442081
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x442081
mov eax, dword [eax + 0x44]
test eax, eax
je 0x442081
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45f370
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x532da0]
xor edx, edx
cmp eax, edx
jne 0x45f396
xor eax, eax
mov byte [eax + 0x532ca0], al
inc eax
cmp eax, 0x100
jl 0x45f37e
mov dword [0x532da0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x532ca0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x45f427
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x45f3fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x45f3c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45f430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x45f483
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45f46a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492c9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00466720
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x501d64
call fcn.004848b6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x465e93
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004848b6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x465e8c
push 0
mov ecx, eax
call fcn.0045cfa0
mov dword [esi + 0xc], eax
jmp 0x465e95
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x465e95
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x486f19
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x486f51
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00484fd0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00484fa8
jmp 0x486f5d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x488613
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 0x488655
call fcn.0048e0c8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x488655
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48864c
xor eax, eax
jmp 0x48865d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00488663
pop edi
pop esi
pop ebx
ret 4
Function at 0x48e5f8
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 0x48e626
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48e644
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048e55e
jmp 0x48e644
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48e644
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048e55e
test edi, edi
mov eax, edi
jne 0x48e62e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x414de3
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor dword [esi], edx
sub ecx, 0x3ba79ae9
inc ecx
push 0x900e172e
pop edi
add esi, 4
cmp esi, eax
jne fcn.00414de3
sub ebx, ebx
ret
Function at 0x401270
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
cmp dword [0x86d520], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
jne 0x4012a3
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, dword [0x44e158]
mov edx, dword [0x44e15c]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], edx
call fcn.00401260
mov eax, dword [0x44e160]
mov ecx, dword [0x44e164]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov ecx, dword [0x86d520]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401348
push 0
lea edx, [ebp - 0x438]
push edx
push 0
call ebx
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
mov eax, dword [ebp - 4]
mov ecx, dword [0x86d520]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401362
mov dword [0x86cabc], 0xedeb2e40
jmp 0x401374
cmp ecx, 0x3eb
jne 0x401374
mov dword [0x86c470], 0
mov ecx, dword [ebp - 8]
add ecx, edi
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov esi, edi
shr esi, cl
mov dword [0x86cab8], 0xf4ea3dee
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
cmp dword [0x86d520], 0x9e6
jne 0x4013ac
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x34]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov edx, dword [ebp - 0xc]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
nop
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
shr esi, cl
add esi, dword [ebp - 0x24]
cmp dword [0x86d520], 0x121
jne 0x401412
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
xor eax, esi
mov dword [ebp - 4], eax
sub edi, eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 8], eax
sub dword [ebp - 0x1c], 1
jne 0x4012f0
cmp dword [0x86d520], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401456
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401470
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x86d520]
mov ecx, dword [0x86c474]
shr eax, 3
sub esp, 8
test eax, eax
jbe 0x401504
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x86d520], 0x959
jne 0x4014ee
push 0
push 0
call esi
push str.magubidowofanelocidegezifi_wuf_kogizanubobowufefore_taroyopopusenexokuraxupamocor
push 0
push 0
call edi
push 0
push 0
push str.cimiyuvipu
push str.kofegezadojupirucosopigerasicoc
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov eax, dword [ebp - 4]
push eax
call fcn.00401270
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4014a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4017b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
cmp dword [0x86d520], 0x400
push esi
push edi
jne 0x401803
push 0
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
lea esi, [ebp - 0x24]
call fcn.00401900
mov ecx, esi
call fcn.00401920
mov edi, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffA]
xor esi, esi
nop
cmp esi, 0xa50
jge 0x401823
push 0
lea ecx, [ebp - 0x424]
push ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x2af68b
jle 0x401839
cmp edi, 0x78d9a205
jne 0x401842
inc esi
cmp esi, 0x1c5d
jl 0x401810
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
xor esi, esi
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call ebx
cmp esi, 0x206d47
jg 0x40186f
inc esi
cmp esi, 0x4f6a4
jl 0x401850
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
lea ebx, [ebx]
push 0
call edi
cmp esi, 0x2b259d
jle 0x401894
cmp ebx, 0x785074d5
jne 0x40189d
inc esi
cmp esi, 0x11915
jl 0x401880
mov edx, dword [0x44e39c]
mov dword [0x86d520], edx
call fcn.00401540
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov edi, 0x3078f
pop ebx
lea ebx, [ebx]
cmp dword [0x86d520], 0x51f
jne 0x4018dc
push 0
lea eax, [ebp - 0x824]
push eax
push 0x44ae18
call esi
sub edi, 1
jne 0x4018c0
mov eax, dword [0x86c474]
mov dword [0x86cab4], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4042cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d7a8]
jne 0x4042d5
repz ret
jmp fcn.00408dcc
Function at 0x40b15a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404f76
and dword [ebp - 4], 0
cmp dword [0x44f22c], 0
mov ebx, eax
jne 0x40b20b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2bc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b2bc
push eax
call fcn.00404f04
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f22c], eax
call esi
push eax
call fcn.00404f04
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f230], eax
call esi
push eax
call fcn.00404f04
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f234], eax
call esi
push eax
call fcn.00404f04
pop ecx
mov dword [0x44f23c], eax
test eax, eax
je 0x40b20b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404f04
pop ecx
mov dword [0x44f238], eax
mov eax, dword [0x44f238]
cmp eax, ebx
je 0x40b263
cmp dword [0x44f23c], ebx
je 0x40b263
push eax
call fcn.00404f7f
push dword [0x44f23c]
mov esi, eax
call fcn.00404f7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b263
test edi, edi
je 0x40b263
call esi
test eax, eax
je 0x40b25a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b25a
test byte [ebp - 0xc], 1
jne 0x40b263
or dword [ebp + 0x10], 0x200000
jmp 0x40b29c
mov eax, dword [0x44f230]
cmp eax, ebx
je 0x40b29c
push eax
call fcn.00404f7f
pop ecx
test eax, eax
je 0x40b29c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b29c
mov eax, dword [0x44f234]
cmp eax, ebx
je 0x40b29c
push eax
call fcn.00404f7f
pop ecx
test eax, eax
je 0x40b29c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f22c]
call fcn.00404f7f
pop ecx
test eax, eax
je 0x40b2bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2be
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x47638c], 1
mov dword [0x476388], 1
mov dword [0x476384], 1
mov dword [0x47602c], 1
je 0x401091
mov dword [0x47600c], eax
mov eax, dword [0x476398]
test eax, eax
je 0x401083
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4763a8]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x436030], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401062
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
jne 0x401048
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f2
cmp dx, 0x20b
jne 0x401048
cmp dword [ecx + 0x84], 0xe
jbe 0x401048
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401048
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401048
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401048

Function at 0x4021a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
call sym._index2value
movzx edx, byte [eax + 8]
and edx, 0x3f
cmp dl, 5
je 0x4021f0
jbe 0x4021d3
cmp dl, 7
je 0x402200
cmp dl, 0x14
jne 0x4021e4
mov eax, dword [eax]
xor edx, edx
mov eax, dword [eax + 0xc]
add esp, 0xc
ret
cmp dl, 4
jne 0x4021e4
mov eax, dword [eax]
xor edx, edx
movzx eax, byte [eax + 7]
add esp, 0xc
ret
xor eax, eax
xor edx, edx
add esp, 0xc
ret
mov eax, dword [eax]
mov dword [esp + 0x10], eax
add esp, 0xc
jmp sym._luaH_getn
mov eax, dword [eax]
xor edx, edx
mov eax, dword [eax + 8]
jmp 0x4021cf

Function at 0x402b30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, ebx
call sym._index2value
mov edx, dword [ebx + 0xc]
test esi, esi
jle 0x402b80
mov eax, dword [eax]
movzx ecx, word [eax + 6]
cmp ecx, esi
jl 0x402b80
shl esi, 4
add esi, eax
mov edi, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [edx], edi
mov dword [edx + 4], ebp
movzx eax, byte [esi + 0x10]
mov byte [edx + 8], al
and eax, 0xf
add edx, 0x10
mov dword [ebx + 0xc], edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [edx + 8], 0
mov eax, 0xffffffff
jmp 0x402b72
Function at 0x403760
Capabilities:
Enumerate pe sections

Disassembly:
push edi
push esi
push ebx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, ebx
call sym._index2value
movzx edx, byte [eax + 8]
mov ecx, dword [eax]
and edx, 0x3f
cmp dl, 6
je 0x4037c0
xor eax, eax
cmp dl, 0x26
jne 0x4037ba
movzx edx, byte [ecx + 6]
lea edi, [esi - 1]
cmp edi, edx
jae 0x4037ba
shl esi, 4
mov eax, 0x46fd00
add ecx, esi
mov edx, dword [ebx + 0xc]
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [edx], esi
add edx, 0x10
mov dword [edx - 0xc], edi
movzx ecx, byte [ecx + 8]
mov byte [edx - 8], cl
mov dword [ebx + 0xc], edx
pop ebx
pop esi
pop edi
ret
mov eax, dword [ecx + 0xc]
lea edx, [esi - 1]
cmp edx, dword [eax + 0xc]
jae 0x4037f0
mov edx, dword [ecx + esi*4 + 0xc]
mov eax, dword [eax + 0x3c]
mov ecx, dword [edx + 8]
mov edx, dword [eax + esi*8 - 8]
mov eax, str._no_name_
lea esi, [edx + 0x10]
test edx, edx
cmovne eax, esi
jmp 0x4037a0
xor eax, eax
jmp 0x4037ba
Function at 0x40ef90
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
xor eax, ecx
test ecx, ecx
je 0x40efbf
mov edx, eax
mov ebx, eax
sub ecx, 1
shr ebx, 2
shl edx, 5
add edx, ebx
movzx ebx, byte [esi + ecx]
add edx, ebx
xor eax, edx
test ecx, ecx
jne 0x40efa4
pop ebx
pop esi
ret

Function at 0x40efd0
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
mov ebx, dword [esp + 0xc]
cmp byte [ebx + 6], 0
mov eax, dword [ebx + 8]
jne 0x40f013
mov ecx, dword [ebx + 0xc]
xor eax, ecx
test ecx, ecx
je 0x40f00c
lea esi, [esi]
nop
mov edx, eax
mov esi, eax
sub ecx, 1
shr esi, 2
shl edx, 5
add edx, esi
movzx esi, byte [ebx + ecx + 0x10]
add edx, esi
xor eax, edx
test ecx, ecx
jne 0x40eff0
mov dword [ebx + 8], eax
mov byte [ebx + 6], 1
pop ebx
pop esi
ret

Function at 0x40f450
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
cmp ebx, 0x28
jbe 0x40f4a0
cmp ebx, 0xffffffea
ja 0x40f4b0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._luaS_createlngstrobj
mov dword [esp + 8], ebx
mov esi, eax
lea eax, [eax + 0x10]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
add esp, 0x10
mov eax, esi
pop ebx
pop esi
pop edi
ret
add esp, 0x10
mov ecx, ebx
mov edx, edi
pop ebx
pop esi
pop edi
jmp sym._internshrstr
mov dword [esp], eax
call sym._luaM_toobig
lea esi, [esi]
nop
Function at 0x417080
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx]
test eax, eax
jle 0x4170b0
mov edx, dword [esp + 0x28]
lea esi, [ebx + 8]
mov dword [edx], eax
mov dword [ebx], 0
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
mov eax, dword [ebx + 4]
xor esi, esi
mov dword [esp], eax
call sym._feof
test eax, eax
jne 0x41709e
mov eax, dword [ebx + 4]
lea esi, [ebx + 8]
mov dword [esp + 8], 0x200
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
call sym._fread
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret

Function at 0x41dc40
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [esp + 0x50]
mov dword [esp], edi
call sym.fennel_bin.exe_lua_gettop
mov esi, dword [dbg.__acrt_iob_func]
test eax, eax
jle 0x41dd0e
mov ebx, eax
lea eax, [esp + 0x2c]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], edi
call sym.fennel_bin.exe_luaL_tolstring
mov esi, dword [dbg.__acrt_iob_func]
mov ebp, eax
lea eax, [ebx + 1]
mov ebx, 1
mov dword [esp + 0x1c], eax
jmp 0x41dcd0
lea eax, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], edi
call sym.fennel_bin.exe_luaL_tolstring
mov dword [esp], 1
mov ebp, eax
call esi
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x47250d
call sym._fwrite
mov dword [esp], 1
add ebx, 1
call esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], ebp
mov dword [esp + 8], eax
call sym._fwrite
mov dword [esp + 4], 0xfffffffe
mov dword [esp], edi
call sym.fennel_bin.exe_lua_settop
cmp dword [esp + 0x1c], ebx
jne 0x41dc91
mov dword [esp], 1
call esi
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x47250b
call sym._fwrite
mov dword [esp], 1
call esi
mov dword [esp], eax
call sym._fflush
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x420660
Capabilities:
Write file on windows

Disassembly:
push ebx
mov edx, str._IO_output
sub esp, 8
mov ebx, dword [esp + 0x10]
mov eax, ebx
call sym._getiofile
add esp, 8
mov ecx, 1
mov edx, eax
mov eax, ebx
pop ebx
jmp sym._g_write

Function at 0x420980
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
sub esp, 0x220
lea ebx, [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ebx
call sym.fennel_bin.exe_luaL_buffinit
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym.fennel_bin.exe_luaL_prepbuffsize
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fread
mov dword [esp], ebx
mov esi, eax
add dword [esp + 0x18], eax
call sym.fennel_bin.exe_luaL_pushresult
xor eax, eax
test esi, esi
setne al
add esp, 0x220
pop ebx
pop esi
pop edi
ret