joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6eca
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50f9b7
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5913d0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x5913d0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 4]
lea eax, [esp + 0x30]
push eax
call fcn.00417c21
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x88], 1
mov dword [esp + 0x14], ebx
mov byte [esp + 0x88], 2
lea eax, [esp + 0x18]
push eax
push dword [esi + 4]
call dword [0x53f6bc]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
push eax
push ecx
push dword [esp + 0x34]
call dword [0x53f118]
push dword [esp + 0x2c]
mov dword [esp + 0x18], eax
call dword [0x53f114]
mov dword [esp + 0x10], eax
push dword [esp + 0x14]
mov esi, dword [0x53f0e0]
push eax
call esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x14]
call fcn.004c6b6b
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004c6d33
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
sub ecx, dword [esp + 0x18]
push 0xcc0020
push ebx
push ebx
push edi
push eax
push ecx
push ebx
push ebx
push dword [esp + 0x4c]
call dword [0x53f12c]
push dword [esp + 0x28]
push edi
call esi
mov byte [esp + 0x88], 1
cmp dword [esp + 0x14], ebx
je 0x4c6fec
push dword [esp + 0x14]
call dword [0x53f0d8]
cmp eax, ebx
je 0x4c6fec
mov dword [esp + 0x14], ebx
mov byte [esp + 0x88], bl
cmp edi, ebx
je 0x4c7002
push edi
mov dword [esp + 0x14], ebx
call dword [0x53f0dc]
or dword [esp + 0x88], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call fcn.00417c72
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004891eb
mov esp, ebp
pop ebp
ret
Function at 0x4c73a9
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50fa17
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x5913d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.00401c63
xor ebx, ebx
mov dword [esp + 0x30], ebx
push 0x1f5
lea ecx, [esp + 0x10]
call fcn.004019e5
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00402594
mov byte [esp + 0x34], 1
lea edi, [esi + 0x24]
mov byte [esp + 0x34], bl
mov ecx, edi
call fcn.004740e4
mov eax, dword [0x5a1dc4]
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], 2
push eax
mov ecx, edi
call fcn.0047411d
mov byte [esp + 0x30], bl
cmp dword [esp + 0x10], ebx
je 0x4c7448
push dword [esp + 0x10]
call dword [0x53f0d8]
cmp eax, ebx
je 0x4c7448
mov dword [esp + 0x10], ebx
push dword [esi + 4]
lea eax, [esp + 0x18]
push edi
mov dword [esp + 0x1c], 0x37
call fcn.00474421
lea ecx, [esp + 0x1c]
lea eax, [esi + 0xfc]
push ecx
mov dword [esp + 0x20], 0x37
mov dword [esp + 0x24], edi
call fcn.0045f834
push 0x1f6
lea ecx, [esp + 0x10]
call fcn.004019e5
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00402594
mov byte [esp + 0x34], 3
lea edi, [esi + 0x5c]
mov byte [esp + 0x34], bl
mov ecx, edi
call fcn.004740e4
mov eax, dword [0x5a1dc4]
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], 4
push eax
mov ecx, edi
call fcn.0047411d
mov byte [esp + 0x30], bl
cmp dword [esp + 0x10], ebx
je 0x4c74de
push dword [esp + 0x10]
call dword [0x53f0d8]
cmp eax, ebx
je 0x4c74de
mov dword [esp + 0x10], ebx
push dword [esi + 4]
lea eax, [esp + 0x18]
push edi
mov dword [esp + 0x1c], 0x38
call fcn.00474421
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0xfc]
mov dword [esp + 0x18], 0x38
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
call fcn.0045f834
push 0x1f7
lea ecx, [esp + 0x10]
call fcn.004019e5
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00402594
mov byte [esp + 0x34], 5
lea edi, [esi + 0x94]
mov byte [esp + 0x34], bl
mov ecx, edi
call fcn.004740e4
mov eax, dword [0x5a1dc4]
mov dword [esp + 0x10], eax
mov byte [esp + 0x30], 6
push eax
mov ecx, edi
call fcn.0047411d
mov byte [esp + 0x30], bl
cmp dword [esp + 0x10], ebx
je 0x4c757b
push dword [esp + 0x10]
call dword [0x53f0d8]
cmp eax, ebx
je 0x4c757b
mov dword [esp + 0x10], ebx
push 0x39
pop ebx
push dword [esi + 4]
lea eax, [esp + 0x18]
push edi
mov dword [esp + 0x1c], ebx
call fcn.00474421
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
call fcn.0045f834
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401c40
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c94cb
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x51abe2
call fcn.004891fa
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push eax
push 0x4c94b9
push ebx
push ebx
mov dword [eax + 0x48], ecx
call fcn.0048a119
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
add esp, 0x18
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x14]
call fcn.004229df
call fcn.004892d2
ret 4

Function at 0x4cdcae
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x51681c
call fcn.004891fa
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x4cdc11
push ebx
push ebx
call fcn.0048a119
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
add esp, 0x18
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], bl
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.004229df
call fcn.004892d2
ret
Function at 0x4d008c
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x51490a
call fcn.004891fa
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x4cffc0
push ebx
push ebx
call fcn.0048a119
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
add esp, 0x18
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], bl
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.004229df
call fcn.004892d2
ret

Function at 0x4d0d4c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c50b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5913d0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
mov eax, dword [0x5913d0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 4]
lea eax, [esp + 0x40]
push eax
call fcn.00417c21
and dword [esp + 0x98], 0
push dword [esi + 4]
lea eax, [esp + 0x30]
push eax
call fcn.00466290
pop ecx
pop ecx
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x14]
push eax
call fcn.004732ec
mov byte [esp + 0x98], 1
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004d0c85
lea eax, [esp + 0x10]
push eax
mov ebx, esi
call fcn.004d0d06
push esi
lea ecx, [esp + 0x14]
call fcn.004d0bbf
call fcn.004d0b2a
mov byte [esp + 0x98], 0
lea eax, [esp + 0xc]
push eax
call fcn.00473355
or dword [esp + 0x98], 0xffffffff
lea eax, [esp + 0x3c]
push eax
call fcn.00417c72
xor eax, eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004891eb
mov esp, ebp
pop ebp
ret

Function at 0x4d9438
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push esi
push 0x4d942a
push eax
push eax
mov dword [0x5a1590], 1
call fcn.0048a119
add esp, 0x18
push 1
push eax
mov dword [esi + 0x1a0], eax
call dword [0x53f210]
ret

Function at 0x4e6dbe
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 0x54fdac
push dword [esp + 0x18]
call fcn.0048de10
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
pop ecx
jne 0x4e6de0
xor eax, eax
jmp 0x4e6e61
push 2
push edi
push esi
call fcn.0048b952
add esp, 0xc
push esi
call fcn.0048e00b
pop ecx
push edi
push edi
push esi
mov ebx, eax
call fcn.0048b952
add esp, 0xc
push ebx
push 0x22
call dword [0x53f1cc]
mov edi, eax
test edi, edi
jne 0x4e6e18
push esi
call fcn.0048a632
pop ecx
jmp 0x4e6dd9
push edi
call dword [0x53f1d0]
test eax, eax
jne 0x4e6e2c
push edi
call dword [0x53f1f4]
jmp 0x4e6e0f
push esi
push ebx
push 1
push eax
call fcn.0048a5a5
add esp, 0x10
cmp eax, ebx
push edi
jne 0x4e6e24
call dword [0x53f1d4]
push esi
call fcn.0048a632
pop ecx
push ebx
mov ebx, dword [esp + 0x14]
push edi
call fcn.004e696d
push edi
mov esi, eax
call dword [0x53f1f4]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8
Function at 0x4eab22
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5191f6
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
mov eax, dword [0x5913d0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, edi
neg eax
lea ecx, [edi + 4]
sbb eax, eax
push 0
and eax, ecx
pop ebx
mov dword [esp + 0x2c], 0x54fcf4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x7d0
mov dword [esp + 0x38], eax
je 0x4eab7f
push eax
lea esi, [esp + 0x30]
call fcn.00431127
mov dword [esp + 0x80], ebx
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
call fcn.0042f936
jmp 0x4eac18
lea eax, [esp + 0x14]
call fcn.0042fad0
mov eax, dword [eax]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.004edc3a
mov byte [esp + 0x80], 1
push dword [edi + 0x38]
push eax
mov eax, dword [edi + 0x44]
call fcn.00502f8b
mov byte [esp + 0x80], bl
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00402125
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x58]
push eax
call fcn.004edc3a
mov byte [esp + 0x80], 2
push eax
push edi
call fcn.004eaa17
mov byte [esp + 0x80], bl
push ebx
push 1
lea esi, [esp + 0x60]
call fcn.00402125
call fcn.004e99a0
lea esi, [esp + 0x18]
call fcn.0043026d
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 8]
call fcn.0042f965
lea edx, [esp + 0x14]
call fcn.00430e7d
test al, al
je 0x4eab98
mov esi, dword [edi + 0x24]
mov eax, esi
mov dword [esp + 0x10], ebx
call fcn.004233f6
test eax, eax
jbe 0x4eac9b
push dword [esp + 0x10]
mov eax, esi
call fcn.00423409
mov eax, dword [eax]
lea ecx, [esp + 0x58]
push ecx
mov ecx, eax
call fcn.004edc3a
mov byte [esp + 0x80], 3
push dword [esp + 0x10]
mov ecx, eax
call fcn.004d3e16
mov byte [esp + 0x80], bl
push ebx
push 1
lea esi, [esp + 0x60]
call fcn.00402125
mov esi, dword [edi + 0x24]
inc dword [esp + 0x10]
mov eax, esi
call fcn.004233f6
cmp dword [esp + 0x10], eax
jb 0x4eac48
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.004310da
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ebe89
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c9ba
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5913d0]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
mov eax, dword [0x5913d0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 4]
lea eax, [esp + 0x30]
push eax
call fcn.00417c21
and dword [esp + 0x88], 0
lea eax, [esp + 0xc]
push eax
push dword [esi + 4]
call dword [0x53f6bc]
mov eax, dword [esp + 0x18]
sub eax, dword [0x5a1b70]
lea esi, [esp + 0xc]
lea edi, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 0x5a1b68
mov esi, eax
lea edi, [esp + 0x34]
call fcn.004692a5
lea edx, [esp + 0xc]
mov ecx, edi
call fcn.004ebe03
or dword [esp + 0x88], 0xffffffff
mov eax, edi
push eax
call fcn.00417c72
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.004891eb
mov esp, ebp
pop ebp
ret
Function at 0x4eca1c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5194b6
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x5913d0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
push 0x32
pop edx
push 0x50
pop eax
xor ebx, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov esi, 0x547ce8
lea ecx, [edx + 0x78]
push esi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x44], 0xcf
mov dword [esp + 0x48], 0xd1
mov dword [esp + 0x4c], 0xd2
mov dword [esp + 0x50], 0xd3
mov dword [esp + 0x54], 0xd5
mov dword [esp + 0x58], 0xd7
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], ecx
call fcn.00404a8a
mov dword [esp + 0x90], ebx
push esi
lea eax, [esp + 0x24]
push eax
call fcn.00404a8a
mov byte [esp + 0x90], 1
mov eax, dword [0x5a2924]
movzx eax, word [eax + 4]
movzx ecx, ax
cmp cx, 0x409
jne 0x4ecb14
lea eax, [esp + 0x54]
jmp 0x4ecb25
movzx eax, ax
cmp ax, 0x804
lea eax, [esp + 0x6c]
je 0x4ecb25
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
xor edi, edi
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
push dword [esp + edi*4 + 0x3c]
lea esi, [esp + edi*4 + 0x28]
mov eax, dword [eax + esi]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.004019e5
push dword [esi]
mov esi, dword [ebp + 8]
push dword [esp + 0x1c]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x24]
push edi
add eax, 4
push eax
call fcn.00419f2b
push dword [esp + edi*4 + 0x3c]
mov eax, dword [esi + 8]
call fcn.004fa2d5
inc edi
cmp edi, 6
jb 0x4ecb33
mov byte [esp + 0x90], bl
lea ecx, [esp + 0x20]
call fcn.00401c40
or dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00401c40
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f1ef9
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push esi
push 0x4f1eeb
push eax
push eax
call fcn.0048a119
add esp, 0x18
mov dword [esi + 0x28], eax
ret
Function at 0x4f72e4
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0xc]
push 0x4f721a
push eax
push eax
call fcn.0048a119
add esp, 0x18
push eax
call dword [0x53f1b4]
ret 4

Function at 0x4f7305
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0xc]
push 0x4f7264
push eax
push eax
call fcn.0048a119
add esp, 0x18
push eax
call dword [0x53f1b4]
ret 4

Function at 0x4fd960
Capabilities:
Read file on windows

Disassembly:
push 0x78
mov eax, 0x513c2b
call fcn.00489263
mov eax, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
push ebx
lea esi, [eax + 0x1c]
mov dword [ebp - 0x80], edi
call fcn.0040583b
push 0x547e7c
push eax
call fcn.0048a28b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x4fd99a
xor eax, eax
jmp 0x4fda4e
push 0x547e80
lea eax, [ebp - 0x7c]
push eax
call fcn.00404a8a
mov dword [ebp - 4], ebx
push 0x547e8c
lea eax, [ebp - 0x84]
push eax
call fcn.00404a8a
mov byte [ebp - 4], 1
push 0x63
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.00489310
push esi
push 0x63
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.0048a5a5
push esi
call fcn.0048a632
add esp, 0x20
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00401f6c
mov byte [ebp - 4], 2
lea edi, [ebp - 0x78]
call fcn.00406022
call fcn.00404980
push dword [ebp - 0x7c]
mov esi, edi
call fcn.00405ff7
cmp eax, 0xffffffff
jne 0x4fda25
push dword [ebp - 0x84]
call fcn.00405ff7
cmp eax, 0xffffffff
jne 0x4fda25
mov dword [ebp - 0x80], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.00401c40
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x84]
call fcn.00401c40
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401c40
mov eax, dword [ebp - 0x80]
call fcn.004892e6
ret 4

Function at 0x4fe1a7
Capabilities:
Create thread

Disassembly:
push ebx
push 0xffffffffffffffff
push dword [esp + 0xc]
xor ebx, ebx
call fcn.0040273e
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push 0x4fe17b
push eax
push eax
call fcn.0048a119
add esp, 0x18
pop ebx
ret 4
Function at 0x50a948
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x513f15
call fcn.004891fa
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x50a935
push ebx
push ebx
call fcn.0048a119
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
add esp, 0x18
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x14]
call fcn.004229df
call fcn.004892d2
ret 4
Function at 0x405450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor esi, esi
mov ecx, dword [ebx + 0x3c]
mov edi, dword [ecx + ebx + 0x78]
mov ecx, dword [edi + ebx + 0x24]
add edi, ebx
add ecx, ebx
mov dword [ebp - 0xc], ecx
mov eax, dword [edi + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 8], eax
cmp dword [edi + 0x18], esi
jbe 0x4054d2
nop
mov ecx, dword [eax + esi*4]
add ecx, ebx
call fcn.004053d0
mov ecx, dword [ebp - 4]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4054c0
test dl, dl
je 0x4054bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4054c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4054a0
xor eax, eax
jmp 0x4054c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4054db
mov eax, dword [ebp - 8]
inc esi
cmp esi, dword [edi + 0x18]
jb 0x405490
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
pop edi
movzx eax, word [eax + esi*2]
pop esi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401080
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x33
call 0x401090
add dword [esp], 5
retf

Function at 0x401bb8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401bf7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401bf7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bf7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401bf7
cmp dword [ecx + 0x74], 0xe
jbe 0x401bf7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x417d34
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00417db3
jae 0x417d40
xor ecx, ecx
call fcn.00417db3
jae 0x417d6a
xor eax, eax
call fcn.00417db3
jae 0x417d7b
mov al, 0x10
call fcn.00417db3
adc al, al
jae 0x417d5c
jne 0x417da8
stosb byte es:[edi], al
jmp 0x417d41
call fcn.00417dbf
dec ecx
loop 0x417d87
mov eax, ebp
call fcn.00417dbd
jmp 0x417da9
lodsb al, byte [esi]
shr eax, 1
je 0x417dcf
adc ecx, 2
mov ebp, eax
jmp 0x417da9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00417dbd
cmp eax, 0x7d00
jae 0x417da7
cmp eax, 0x500
jae 0x417da8
cmp eax, 0x7f
ja 0x417da9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417d41
pop ebp
ret 8