joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4363cc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
push 0x418034
mov esi, 0x43bfc0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x418044
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 4]
push ecx
push 0x40
push dword [0x44a624]
push dword [0x4493a0]
call eax
pop esi
pop ecx
ret
Function at 0x402776
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x402785
pop dword [ebp - 0x3c]
mov eax, 0x402785
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x5927da0c
add dword [ebp - 0x4c], 0xf52a6b3f
mov dword [ebp - 0x48], 0x8d77befa
add dword [ebp - 0x48], 0xa4bb8d4b
mov dword [ebp - 0x44], 0xb4266409
sub dword [ebp - 0x44], 0x67da1fdb
mov dword [ebp - 0x40], 0x754f9b7e
add dword [ebp - 0x40], 0x8ab06482
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xdf0b3af2
sub eax, 0xdecb2a22
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x60fdeadf
sub dword [ebp - 0x4c], 0xec8b8189
mov dword [ebp - 0x48], 0x190b1d5d
sub dword [ebp - 0x48], 0xd79ebbe8
mov dword [ebp - 0x44], 0xdea38372
sub dword [ebp - 0x44], 0x7b341706
mov dword [ebp - 0x40], 0xdf093b59
add dword [ebp - 0x40], 0x20f6c4a7
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x3335d8bd
add eax, 0xcd0a3823
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3721e
push 0
call eax
mov ecx, 0x9bedb5a4
add ecx, 0x6412937e
xor ebx, ebx
add ebx, eax
mov edx, 0xfeb1cd81
sub edx, 0xfe6ed781
add edx, dword [ebp - 0x3c]
mov edi, 0xc3ef84de
add edi, 0xe5b75f11
add dword [ebp - 0xc], esi
mov esi, dword [edx]
xor dword [ebp - 0x2c], ebx
sub esi, edi
add dword [ebp - 0x34], 0x1d7f5bee
mov dword [ebx], esi
xor dword [ebp - 0x34], esi
add ebx, 0x7e30bc25
add ebx, 0x81cf43df
add edx, 0x5283b1b2
sub edx, 0x5283b1ae
loop 0x4028a4
add eax, 0x32fc29a6
add eax, 0xcd04edb5
xor ebx, ebx
add ebx, eax
add eax, 0xdf2dc523
add eax, 0x20d23ae2
mov ecx, 0xdf31d7bf
add ecx, 0x210e2841
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x403550
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4014ac]
jne 0x4039bf
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4073f8], eax
mov dword [0x4073f4], ecx
mov dword [0x4073f0], edx
mov dword [0x4073ec], ebx
mov dword [0x4073e8], esi
mov dword [0x4073e4], edi
mov word [0x407410], ss
mov word [0x407404], cs
mov word [0x4073e0], ds
mov word [0x4073dc], es
mov word [0x4073d8], fs
mov word [0x4073d4], gs
pushfd
pop dword [0x407408]
mov eax, dword [ebp]
mov dword [0x4073fc], eax
mov eax, dword [ebp + 4]
mov dword [0x407400], eax
lea eax, [ebp + 8]
mov dword [0x40740c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x407348], 0x10001
mov eax, dword [0x407400]
mov dword [0x4072fc], eax
mov dword [0x4072f0], 0xc0000409
mov dword [0x4072f4], 1
mov eax, dword [0x4014ac]
mov dword [ebp - 0x328], eax
mov eax, dword [0x407248]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x407340], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x4014b8
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x407340], 0
jne 0x403aab
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x40383b
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x405340
call fcn.00403d60
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x407680], ebx
jne 0x4035d6
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x407674
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x403610
cmp eax, esi
jne 0x403603
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x403613
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4035ea
xor esi, esi
inc esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x403626
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x403661
mov eax, dword [0x407670]
test eax, eax
jne 0x40365b
mov dword [0x407670], esi
push 0x40118c
push 0x40117c
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x403661
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40377b
mov dword [0x4072e8], esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x403685
push 0x401178
push 0x40116c
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x407670], 2
cmp dword [ebp - 0x24], ebx
jne 0x403692
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x407684], ebx
je 0x4036b3
push 0x407684
call fcn.00402776
pop ecx
test eax, eax
je 0x4036b3
push ebx
push 2
push ebx
call dword [0x407684]
mov eax, dword [sym.imp.msvcr100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40370c
cmp al, bl
je 0x4036cc
cmp dword [ebp - 0x1c], ebx
jne 0x40370c
mov al, byte [esi]
cmp al, bl
je 0x4036dc
cmp al, 0x20
ja 0x4036dc
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4036cc
test byte [ebp - 0x40], 1
je 0x4036e8
movzx eax, word [ebp - 0x3c]
jmp 0x4036eb
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4072e4], eax
cmp dword [0x4072d8], ebx
jne 0x403761
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp al, 0x22
jne 0x40371b
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr100.dll__ismbblead]
pop ecx
test eax, eax
je 0x40372e
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4036ba
cmp dword [0x4072e8], ebx
jne 0x40376f
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4072e4]
call fcn.00403da5
ret
call fcn.00402776
jmp 0x4035a8
Function at 0x443ff1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x444000
pop dword [ebp - 0x3c]
mov eax, 0xf6bddcb8
add eax, 0x9866348
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xfa36ee1f
sub dword [ebp - 0x4c], 0xabe4a8d4
mov dword [ebp - 0x48], 0x4260c9d1
add dword [ebp - 0x48], 0xefd28274
mov dword [ebp - 0x44], 0xbe39392b
add dword [ebp - 0x44], 0x8e130b03
mov dword [ebp - 0x40], 0x6ee657e3
sub dword [ebp - 0x40], 0x6ee657e3
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x6050aa2c
add eax, 0x9fef685c
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x921f165b
sub dword [ebp - 0x4c], 0x1dacad05
mov dword [ebp - 0x48], 0x6e85b574
add dword [ebp - 0x48], 0xd2e6ac01
mov dword [ebp - 0x44], 0x6abba426
add dword [ebp - 0x44], 0xf8b3c846
mov dword [ebp - 0x40], 0xcb9104f9
sub dword [ebp - 0x40], 0xcb9104f9
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xf354a546
add eax, 0xceb6d06
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x4d88d
push 0
call eax
mov ecx, 0x5728
xor esi, esi
add esi, eax
mov edx, 0x4d2400
add edx, dword [ebp - 0x3c]
mov edi, 0xc4ade393
sub edi, 0x2d34f8dc
mov dword [ebp - 0x1c], 0x9c037f25
mov ebx, dword [edx]
xor dword [ebp - 0x34], esi
sub ebx, edi
add dword [ebp - 0x28], eax
mov dword [esi], ebx
mov dword [ebp - 0x24], 0xe9686539
add esi, 4
add edx, 0x82e6f71a
add edx, 0x7d1908ea
loop 0x444118
add eax, 0xbceacee
sub eax, 0xbcd5d7b
mov ebx, eax
add eax, 0x4559abfe
sub eax, 0x4559abf9
mov ecx, 0xc6a94d6a
sub ecx, 0xc6694d6a
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4453d2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x499c0c]
jne 0x446479
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x49c278], eax
mov dword [0x49c274], ecx
mov dword [0x49c270], edx
mov dword [0x49c26c], ebx
mov dword [0x49c268], esi
mov dword [0x49c264], edi
mov word [0x49c290], ss
mov word [0x49c284], cs
mov word [0x49c260], ds
mov word [0x49c25c], es
mov word [0x49c258], fs
mov word [0x49c254], gs
pushfd
pop dword [0x49c288]
mov eax, dword [ebp]
mov dword [0x49c27c], eax
mov eax, dword [ebp + 4]
mov dword [0x49c280], eax
lea eax, [ebp + 8]
mov dword [0x49c28c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x49c1c8], 0x10001
mov eax, dword [0x49c280]
mov dword [0x49c17c], eax
mov dword [0x49c170], 0xc0000409
mov dword [0x49c174], 1
mov eax, dword [0x499c0c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x499c10]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x49c1c0], eax
push 1
call fcn.0044d3e0
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x410f48
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x49c1c0], 0
jne 0x446565
push 1
call fcn.0044d3e0
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x41b483
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b2f4

Function at 0x41b87d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b260
mov eax, dword [0x47d340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419264
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b8bf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ba1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426310
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47f9a0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c61c
mov ecx, dword [esi*4 + 0x47f9a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ba14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ba14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ba14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c61c
add esp, 0x14
test edx, edx
jl 0x41ba14
jg 0x41b98a
test eax, eax
jb 0x41ba14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ba14
jl 0x41b9a4
cmp dword [ebp - 0x1008], eax
ja 0x41ba14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b9c2
test ebx, ebx
je 0x41b9fb
cmp ecx, edi
jae 0x41b9fb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b9dc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b9e8
cmp byte [ecx + 1], 0xa
jne 0x41b9e8
inc ecx
jmp 0x41b9e8
movzx eax, al
movsx eax, byte [eax + 0x47d608]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b9c2
cmp edx, ebx
jne 0x41b9c2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ba19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a62d
leave
ret
Function at 0x41baba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47f9a0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bafa
cmp byte [ebx], 0xa
jne 0x41bafa
or byte [eax + edi + 0x28], 4
jmp 0x41baff
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bbfd
mov al, byte [edx]
cmp al, 0x1a
je 0x41bbdf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bb2e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bb53
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bb5d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41bb10
jmp 0x41bbfd
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bbda
cmp dword [ebp - 0xc], 0
je 0x41bbda
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47f9a0]
test byte [eax + edi + 0x28], 0x48
je 0x41bbb4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bb9f
mov byte [esi], dl
jmp 0x41bbb0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47f9a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bbfd
cmp byte [ebp - 1], 0xa
jne 0x41bbc3
cmp esi, ebx
jne 0x41bbc3
mov byte [esi], 0xa
jmp 0x41bbfc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bbfd
mov byte [esi], 0xd
jmp 0x41bbfc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47f9a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bbf9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bbfd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bc06
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47f9a0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bc49
cmp word [esi], dx
jne 0x41bc49
or byte [edi + eax + 0x28], 4
jmp 0x41bc4e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41bda1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41bd81
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bc90
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bcc6
cmp eax, edx
jae 0x41bcd2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41bc68
jmp 0x41bda1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bd7d
cmp dword [ebp - 0x14], 0
je 0x41bd7d
mov eax, dword [ebx*4 + 0x47f9a0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bd55
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bd1e
mov word [esi], cx
jmp 0x41bd51
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47f9a0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47f9a0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47f9a0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bda1
pop ebx
cmp word [ebp - 4], bx
jne 0x41bd66
cmp esi, dword [ebp + 0xc]
jne 0x41bd66
mov word [esi], bx
jmp 0x41bd9e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bda1
push 0xd
jmp 0x41bd9a
mov ecx, dword [ebx*4 + 0x47f9a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bd98
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bda1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x85c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0085c1a8
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 0x85c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85c06a
add dl, dl
jne 0x85c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85c0dc
xor eax, eax
add dl, dl
jne 0x85c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85c17d
add dl, dl
jne 0x85c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x85c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x85c075
mov eax, 1
add dl, dl
jne 0x85c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85c0e1
sub eax, ebx
mov ebx, 1
jne 0x85c128
mov ecx, 1
add dl, dl
jne 0x85c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85c136
cmp eax, 0x7d00
jae 0x85c16d
cmp eax, 0x500
jb 0x85c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85c075
cmp eax, 0x7f
ja 0x85c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85c19e
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 0x85c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001c970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001c998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001c9b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.drvSOFT.x3d_public:_enum_E3RESULT___stdcall_FILETYPE::QueryFormatInfo_class_e3_XMLNODE____unsigned_int_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022650
leave
ret 4

Function at 0x1001cb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cbb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cc15
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.drvSOFT.x3d_public:_enum_E3RESULT___stdcall_FILETYPE::QueryFormatInfo_class_e3_XMLNODE____unsigned_int_
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.drvSOFT.x3d_public:_enum_E3RESULT___stdcall_FILETYPE::QueryFormatInfo_class_e3_XMLNODE____unsigned_int_
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.drvSOFT.x3d_public:_enum_E3RESULT___stdcall_FILETYPE::QueryFormatInfo_class_e3_XMLNODE____unsigned_int_
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022650
leave
ret 0x10