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

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4267eb
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
movzx eax, byte [esi]
shl eax, 7
sub edx, 1
js 0x426813
nop dword [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
imul eax, eax, 0xf4243
xor eax, ecx
sub edx, 1
jns 0x426800
xor eax, edx
mov ecx, 0xfffffffe
cmp eax, 0xffffffff
pop esi
cmove eax, ecx
ret

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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
xor esi, esi
test edi, edi
je 0x42f1e0
push ebx
mov ebx, dword [esp + 0x10]
movzx ecx, byte [esi + ebx]
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
inc esi
xor eax, ecx
cmp esi, edi
jb 0x42f128
pop ebx
pop edi
not eax
pop esi
ret
Function at 0x431560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp byte [0x46377c], 0
push esi
push edi
jne 0x4315bc
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x462bc4], eax
mov esi, dword [eax]
add eax, 4
mov dword [0x462bc4], eax
mov ecx, dword [eax]
lea edi, [eax + 4]
push ecx
push edi
mov dword [0x462bc4], edi
call fcn.0042f110
add esp, 8
cmp eax, esi
jne 0x431721
mov byte [0x46377c], 1
jmp 0x4315c2
mov edi, dword [0x462bc4]
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, 0x44e8b8
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4315f0
test dl, dl
je 0x4315ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4315f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4315d0
xor eax, eax
jmp 0x4315f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x431673
cmp byte [0x46375c], 1
je 0x431673
mov esi, dword [sym.imp.python38.dll_PyDict_New]
call esi
mov dword [0x4632c8], eax
call esi
mov dword [0x4632cc], eax
call esi
mov dword [0x4632d0], eax
call esi
mov dword [0x4632d4], eax
call esi
mov dword [0x4632d8], eax
call esi
mov dword [0x4632dc], eax
call esi
mov dword [0x4632e0], eax
call esi
mov edi, dword [sym.imp.python38.dll_PyLong_FromLong]
mov esi, 0xfffffffb
mov dword [0x4632e4], eax
nop dword [eax + eax]
push esi
call edi
mov dword [esi*4 + 0x462c8c], eax
add esp, 4
inc esi
cmp esi, 0x101
jl 0x431650
mov edi, dword [0x462bc4]
mov byte [0x46375c], 1
mov ecx, edi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x431697
test dl, dl
je 0x431693
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x431697
add eax, 2
add ecx, 2
test dl, dl
jne 0x431677
xor edx, edx
jmp 0x43169c
sbb edx, edx
or edx, 1
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4316a1
sub ecx, esi
mov eax, dword [edi + ecx + 1]
lea esi, [edi + ecx]
add esi, 5
test edx, edx
je 0x431705
add esi, eax
mov ecx, ebx
mov eax, esi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4316e0
test dl, dl
je 0x4316dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4316e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4316c0
xor edx, edx
jmp 0x4316e5
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4316f0
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x4316b8
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0042e2b0
add esp, 0x10
pop ebx
pop edi
pop esi
ret
push str.Error__corrupted_constants_object
call fcn.0043e37f
add esp, 4
call fcn.00435670
int3

Function at 0x4454eb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00445168
Function at 0x401030
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [0x809068]
mov edx, dword [0x80906c]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
call fcn.00401020
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x809070]
mov ecx, dword [0x809074]
add ebx, 0x23f
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x20
jmp 0x401092
xor esi, esi
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0xc2af54]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4010ec
push esi
lea edx, [ebp - 0x38]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x3c]
push edx
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], cx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xc2af54]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401106
mov dword [0xc2af50], 0xedeb2e40
jmp 0x401122
cmp ecx, 0x3eb
jne 0x401122
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0xc2a904], esi
lea ecx, [ebx + edi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov edx, edi
shr edx, cl
mov dword [0xc2af4c], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov edx, dword [ebp - 8]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shr esi, cl
add esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
cmp dword [0xc2af54], 0xb03
jne 0x4011a0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
add ebx, 0x61c88647
sub edi, eax
sub dword [ebp - 0x20], 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
jne 0x401090
cmp dword [0xc2af54], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x4011eb
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x804c88
push eax
mov dword fs:[0], esp
mov eax, dword [0xc2af54]
sub esp, 0x420
push ebx
push esi
push edi
cmp eax, 0x93
jne 0x4013e9
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.kegupeyuceyoxawaluxuc_natusafokepojar_wiwivobezenesipogojuzanurebenayi
push str.hodof_gihimu_mujanupirafurade_webobat_nul
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea eax, [ebp - 0x2c]
call fcn.00401690
push 0x806cec
push 0
mov dword [ebp - 4], 0
call fcn.00401b86
push 0
push 0
call fcn.00401b9d
call fcn.004017de
push 0
push 0
call fcn.00401ab7
push 0
push 0
call fcn.0040196d
push 0
push 0
call fcn.00401ab7
add esp, 0x28
push 0
call fcn.00401f64
mov ecx, dword [0x80b990]
add eax, 0x1134b
push eax
push 0
mov dword [0xc2b9b8], ecx
mov dword [0xc2af54], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0xc2a908], eax
call fcn.00401280
mov edi, dword [sym.imp.USER32.dll_SetMessageExtraInfo]
mov esi, 0x19ad64c
lea ecx, [ecx]
push 0
call edi
sub esi, 1
jne 0x401420
cmp dword [0xc2af54], esi
jbe 0x40148d
mov edi, dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
lea ecx, [ecx]
mov edx, dword [0xc2b9b8]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0xc2a908]
mov byte [ecx + esi], al
cmp dword [0xc2af54], 0x490
jne 0x401484
push 0
push 0
call edi
push 0
push 0
lea edx, [ebp - 0x10]
push edx
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
inc esi
cmp esi, dword [0xc2af54]
jb 0x401440
mov edi, dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
mov eax, dword [0xc2af54]
add eax, esi
cmp eax, 0x8d
jne 0x4014c4
push 0
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push str.wutusahafofesohelasecisojagop
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
inc esi
cmp esi, 0x38681
jl 0x40149b
call fcn.00401200
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea ebx, [ebx]
push 0
call edi
cmp esi, 0x62
jne 0x4014ee
call fcn.00401260
inc esi
cmp esi, 0x674db
jl 0x4014e0
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov ebx, dword [sym.imp.KERNEL32.dll_CompareStringA]
mov dword [ebp - 0x10], 0x7b
cmp dword [0xc2af54], 0x86
jne 0x40154a
push 0
lea ecx, [ebp - 0x42c]
push ecx
push str.fawav
call esi
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
sub dword [ebp - 0x10], 1
jne 0x401510
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0xc2a908]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401580
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0xc2af54], 0x400
push esi
push edi
jne 0x4015a4
lea eax, [ebp - 0x24]
call fcn.00401660
lea esi, [ebp - 0x24]
call fcn.00401680
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af054
jle 0x4015c2
cmp ebx, 0x787e04e5
jne 0x4015cb
inc esi
cmp esi, 0x1d8b
jl 0x4015b0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x4015fd
inc esi
cmp esi, 0x4f6a4
jl 0x4015e0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
pop ebx
push 0
call edi
cmp esi, 0x2b2589
jg 0x40161b
inc esi
cmp esi, 0x1190b
jl 0x401606
mov eax, dword [0x80b9bc]
mov dword [0xc2af54], eax
call fcn.00401340
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 0x3078f
jmp 0x401640
cmp dword [0xc2af54], 0x51f
jne 0x401650
push 0
call esi
sub edi, 1
jne 0x401640
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407610
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x808a68]
jne 0x40761a
repz ret
jmp fcn.0040aea6
Function at 0x40a91d
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.004038f2
and dword [ebp - 4], 0
cmp dword [0x80d344], 0
mov ebx, eax
jne 0x40a9ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aa7f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40aa7f
push eax
call fcn.00403880
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x80d344], eax
call esi
push eax
call fcn.00403880
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x80d348], eax
call esi
push eax
call fcn.00403880
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x80d34c], eax
call esi
push eax
call fcn.00403880
pop ecx
mov dword [0x80d354], eax
test eax, eax
je 0x40a9ce
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403880
pop ecx
mov dword [0x80d350], eax
mov eax, dword [0x80d350]
cmp eax, ebx
je 0x40aa26
cmp dword [0x80d354], ebx
je 0x40aa26
push eax
call fcn.004038fb
push dword [0x80d354]
mov esi, eax
call fcn.004038fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40aa26
test edi, edi
je 0x40aa26
call esi
test eax, eax
je 0x40aa1d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aa1d
test byte [ebp - 0xc], 1
jne 0x40aa26
or dword [ebp + 0x10], 0x200000
jmp 0x40aa5f
mov eax, dword [0x80d348]
cmp eax, ebx
je 0x40aa5f
push eax
call fcn.004038fb
pop ecx
test eax, eax
je 0x40aa5f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40aa5f
mov eax, dword [0x80d34c]
cmp eax, ebx
je 0x40aa5f
push eax
call fcn.004038fb
pop ecx
test eax, eax
je 0x40aa5f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80d344]
call fcn.004038fb
pop ecx
test eax, eax
je 0x40aa7f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aa81
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000ae90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x1028bf58], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.10009e20
lea ecx, [0x1000a5a0]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x54], edx
mov dword [esp + 0x68], 0x12ee00
mov edx, dword [0x1028bf44]
mov dword [esp + 0x48], edx
mov edx, dword [0x1028bf48]
mov dword [esp + 0x34], edx
mov edx, dword [0x1028bf4c]
mov dword [esp + 0x7c], edx
mov edx, dword [0x1028bf50]
mov dword [esp + 0x30], edx
mov edx, dword [0x1028bf54]
mov dword [esp + 0x5c], edx
mov dword [0x1028bf58], 0x212d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x1000af4e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
mov dword [0x1028bf5c], 0x1fcc
mov eax, dword [ecx + eax + 0x50]
mov dword [esp + 0x64], eax
call fcn.1000a9a0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1000af89
jmp 0x1000afc0
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x1000af75
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x1000af1c
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1000af4e
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10009540
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x1028bf58], 0x1ed4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4022e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, 0xa
xor edi, edi
pop esi
mov dword [0x4041a8], esi
push edi
dec ecx
jne 0x40230f
lea eax, [ebp - 0x4c]
push eax
mov edx, dword [0x4041a8]
mov dword [ebp - 0x3c], edx
lea ecx, str.contents
mov dword [ebp - 0x28], ecx
lea eax, section..text
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
xor eax, eax
push eax
push dword [0x4041a8]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4041b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041b8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4023c3
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ebp - 0x40]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4023aa
pop ebp
ret 0x10
Function at 0x147e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0147e1a8
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 0x147e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x147e06a
add dl, dl
jne 0x147e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x147e0dc
xor eax, eax
add dl, dl
jne 0x147e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x147e17d
add dl, dl
jne 0x147e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x147e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x147e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x147e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x147e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x147e075
mov eax, 1
add dl, dl
jne 0x147e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x147e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x147e0e1
sub eax, ebx
mov ebx, 1
jne 0x147e128
mov ecx, 1
add dl, dl
jne 0x147e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x147e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x147e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x147e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x147e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x147e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x147e136
cmp eax, 0x7d00
jae 0x147e16d
cmp eax, 0x500
jb 0x147e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x147e075
cmp eax, 0x7f
ja 0x147e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x147e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x147e19e
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 0x147e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4040f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x410048
call sym._EnterCriticalSection_4
mov ebx, dword [0x410040]
sub esp, 4
test ebx, ebx
je 0x40413b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x404134
test esi, esi
je 0x404134
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404110
mov dword [esp], 0x410048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x404320
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x404370
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x404448
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4043ae
cmp eax, 4
jne 0x4043d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4043be
cmp edx, 4
je 0x4043be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00404320
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
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 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret