joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0xa898f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0xaa654c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0xaa654c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0xaa5378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa898fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x11044
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x28]
push edi
push eax
push 0x1073a
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, edi
jl 0x110a1
push ebx
push edi
lea eax, [esi + 0x40]
push eax
push edi
push edi
push 0x1f03ff
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, edi
jge 0x1109e
push edi
mov byte [esi + 0x3c], 1
push edi
add esi, 0x2c
push esi
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x11146
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
call fcn.0001042e
call fcn.000105a6
call section..text
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x10b36
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov eax, 0x10b52
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
push section.INIT
lea eax, [ebp - 0xc]
push eax
mov dword [esi + 0x70], 0x10bb8
mov dword [esi + 0x34], 0x11000
call edi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 7
lea eax, [ebp - 0xc]
push eax
push 0x60
push esi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jl 0x11247
push 0x11120
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
jl 0x11238
mov eax, dword [ebp - 4]
or dword [eax + 0x1c], 0x10
mov eax, dword [ebp - 4]
or byte [eax + 0x21], 1
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x28]
and byte [esi + 0xc], 0
mov dword [esi], eax
mov dword [esi + 0x10], 0x80
mov eax, dword [0x10ab8]
cdq
mov dword [esi + 0x18], eax
lea eax, [esi + 0x20]
mov dword [esi + 0x1c], edx
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
push 0
push 1
add esi, 0x2c
push esi
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
push dword [ebp - 4]
call fcn.00011044
mov esi, eax
test esi, esi
jge 0x11245
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, esi
jmp 0x11247
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x401210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401229
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40123d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40125e
cmp esi, eax
jae 0x401237
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401250
cmp esi, eax
jae 0x401237
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

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

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
je 0x402250
mov ecx, dword [esp + 4]
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [esi*4 + 0x44e0e8]
shr eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x402231
pop edi
pop esi
not eax
ret

Function at 0x4029a0
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [ecx + 0x588]
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0xc]
mov edx, dword [edi]
push ecx
push 0x100
push 0x496068
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
neg eax
sbb eax, eax
and eax, 0x496068
je 0x402a06
cmp byte [eax], 0x30
jne 0x4029f4
cmp byte [eax + 1], 0x78
jne 0x4029f4
push 0x10
add eax, 2
push 0
push eax
call fcn.0041da28
add esp, 0xc
pop edi
pop esi
ret 0x10
push 0xa
push 0
push eax
call fcn.0041da28
add esp, 0xc
pop edi
pop esi
ret 0x10
mov al, byte [esp + 0x18]
test al, al
je 0x402a15
pop edi
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
mov edi, dword [edi]
push eax
push esi
push edi
mov ecx, 0x495b08
call fcn.00438bc6
pop edi
pop esi
ret 0x10

Function at 0x402df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43bd48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00402cf0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402940
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402e82
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403030
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43bd8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x494b80]
push ebp
push esi
push edi
mov dword [esp + 0x114], eax
mov esi, ecx
call fcn.0042e214
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x588]
push eax
xor ebp, ebp
push ebp
push str.SegNumber
push str.Main
mov dword [esp + 0x130], ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
imul eax, eax, 0x10c
push eax
mov dword [esp + 0x14], edi
call fcn.0043251a
add esp, 4
cmp edi, ebp
mov dword [esi + 0x594], eax
jbe 0x4031cb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edi, edi
lea esp, [esp]
push ebp
lea ecx, [esp + 0x14]
push str.Seg_d
push ecx
call fcn.00401930
mov eax, dword [esi + 0x588]
mov edx, dword [esi + 0x594]
add esp, 0xc
push eax
mov eax, dword [esp + 0x14]
push 0xff
add edx, edi
push edx
push 0x43efe6
push eax
push str.Main
call ebx
mov eax, dword [esi + 0x588]
mov edx, dword [esi + 0x594]
push eax
push 0xff
lea ecx, [esp + 0x20]
push ecx
push 0x43efe6
push str.StartAddr
add edx, edi
push edx
call ebx
push 0x10
lea eax, [esp + 0x1c]
push 0
push eax
mov byte [esp + 0x25], 0x30
call fcn.0041da28
mov ecx, dword [esi + 0x594]
add esp, 0xc
mov dword [ecx + edi + 0x100], eax
mov eax, dword [esi + 0x588]
push eax
mov eax, dword [esi + 0x594]
push 0xff
lea edx, [esp + 0x20]
push edx
push 0x43efe6
push str.SegSize
add eax, edi
push eax
call ebx
push 0x10
lea ecx, [esp + 0x1c]
push 0
push ecx
mov byte [esp + 0x25], 0x30
call fcn.0041da28
mov edx, dword [esi + 0x594]
add esp, 0xc
mov dword [edx + edi + 0x104], eax
mov eax, dword [esi + 0x588]
push eax
mov eax, dword [esi + 0x594]
push 0
push str.Force
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esi + 0x594]
mov dword [ecx + edi + 0x108], eax
mov eax, dword [esp + 0x14]
inc ebp
add edi, 0x10c
cmp ebp, eax
jb 0x4030c0
mov edi, eax
pop ebx
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x120], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4031f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
pop ebp
call fcn.0041cd5e
add esp, 0x118
ret
Function at 0x407103
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x407138
mov edx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x407141
mov eax, dword [esp + 8]
test eax, eax
jbe 0x407141
mov eax, dword [esi + 8]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor eax, eax
pop esi
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x407138
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 4], 0
jbe 0x40715b
mov eax, ecx
mov edx, dword [esp + 0x1c]
push ebx
push edi
lea edi, [esi + 0x54]
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4071c2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
jne 0x4071b7
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x64]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 8]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4071c2
call ebx
cmp eax, 0x3e4
je 0x4071c2
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0xc]
pop edi
pop ebx
pop esi
add esp, 0x14
ret 0xc

Function at 0x4071d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x40723b
mov ecx, dword [esi + 8]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x407205
mov eax, dword [esp + 8]
test eax, eax
jbe 0x407205
mov edx, dword [esi + 8]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x68]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407244
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x407244
xor eax, eax
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x407250
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4072c1
mov byte [esi + 0x90], 0
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov ecx, dword [esi + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x7c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40729d
mov ecx, dword [esi + 0x7c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x4072c1
mov edx, dword [esi + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x7c], 0
mov al, 1
pop esi
ret 4
xor al, al
pop esi
ret 4
Function at 0x409400
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x43c4fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x494b80]
push ebx
push esi
xor esi, esi
push 0x43efe6
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], eax
mov dword [esp + 0x10], esi
call fcn.00401a10
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x134], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, esi
je 0x4094f1
push edi
push ebx
push 2
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x18]
push edi
push ebx
push eax
lea ecx, [esp + 0x28]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x43fb4c
push edi
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
mov edx, eax
and edx, 0xffff
push edx
shr eax, 0x10
push eax
mov eax, ecx
and eax, 0xffff
push eax
shr ecx, 0x10
push ecx
lea ecx, [esp + 0x1c]
push str.V_d._d_d_d
push ecx
call fcn.00401930
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402940
mov esi, dword [esp + 0x134]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x128], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x118]
pop ebx
call fcn.0041cd5e
add esp, 0x124
ret 4

Function at 0x409d50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x494b80]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409dc4
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.0041cd5e
add esp, 0x110
ret 0xc
Function at 0x40a8a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43c608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x40a9a6
push esi
call fcn.0042e214
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x40a90b
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401560
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x40a91f
xor eax, eax
jmp 0x40a933
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a924
sub eax, edx
js 0x40a9b6
cmp eax, dword [esi - 8]
jg 0x40a9b6
push edi
push 0xd
mov dword [esi - 0xc], eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.004017f0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40a97b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40a97b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40a9a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004011f0
int3
Function at 0x40c000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 1
push edi
jl 0x40c010
cmp esi, 9
jle 0x40c01d
push str.bad_pack_level
call fcn.00412a00
add esp, 4
movzx edx, word [esi*8 + 0x492f54]
xor eax, eax
cmp esi, 1
mov ecx, 0x4000
mov edi, 0x4d2c60
rep stosd dword es:[edi], eax
movzx eax, word [esi*8 + 0x492f52]
movzx ecx, word [esi*8 + 0x492f50]
mov dword [0x496274], eax
movzx eax, word [esi*8 + 0x492f56]
mov dword [0x496264], esi
mov dword [0x496250], ecx
mov dword [0x496278], edx
mov dword [0x496258], eax
jne 0x40c075
mov eax, dword [esp + 0x10]
or byte [eax], 4
jmp 0x40c081
cmp esi, 9
jne 0x40c081
mov eax, dword [esp + 0x10]
or byte [eax], 2
xor esi, esi
push 0x10000
push 0x4ae410
mov dword [0x496270], esi
mov dword [0x496268], esi
call dword [0x496240]
add esp, 8
cmp eax, esi
mov dword [0x49626c], eax
je 0x40c0f7
cmp eax, 0xffffffff
je 0x40c0f7
mov edi, 0x106
cmp eax, edi
mov dword [0x496260], esi
jae 0x40c0d5
nop
cmp dword [0x496260], esi
jne 0x40c0d5
call fcn.0040b9d0
cmp dword [0x49626c], edi
jb 0x40c0c0
movzx ecx, byte [0x4ae410]
movzx edx, byte [0x4ae411]
shl ecx, 5
xor ecx, edx
and ecx, 0x7fff
pop edi
mov dword [0x49627c], ecx
pop esi
ret
pop edi
mov dword [0x49626c], esi
mov dword [0x496260], 1
pop esi
ret
Function at 0x412910
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x412923
or eax, 0xffffffff
mov dword [0x493948], eax
not eax
ret
mov eax, dword [0x493948]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x41294f
push edi
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edi, dword [edx*4 + 0x493548]
shr eax, 8
xor eax, edi
inc ecx
dec esi
jne 0x412932
pop edi
mov dword [0x493948], eax
pop esi
not eax
ret

Function at 0x414398
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4143eb
call fcn.00438efc
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4143eb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4143e1
xor eax, eax
jmp 0x414504
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x41441b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x41441b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x414501
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x414448
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041349b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x414501
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x414491
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x414491
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41448b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041349b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4144f1
and dword [ebp + 0xc], 0
jmp 0x4144f1
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4144f1
push 0xc
call fcn.004324ef
mov esi, eax
test esi, esi
pop ecx
je 0x4144d3
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4144d5
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4144ec
push dword [ebp - 8]
call fcn.0042d04b
jmp 0x4144f1
call fcn.0042d022
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x414456
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc