joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4421
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 + 0xc70d10]
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 0x4a4461
cmp byte [ebx], 0xa
jne 0x4a4461
or byte [eax + edi + 0x28], 4
jmp 0x4a4466
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a4564
mov al, byte [edx]
cmp al, 0x1a
je 0x4a4546
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a4495
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a44ba
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a44c4
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 0x4a4477
jmp 0x4a4564
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 0x4a4541
cmp dword [ebp - 0xc], 0
je 0x4a4541
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0xc70d10]
test byte [eax + edi + 0x28], 0x48
je 0x4a451b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a4506
mov byte [esi], dl
jmp 0x4a4517
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xc70d10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a4564
cmp byte [ebp - 1], 0xa
jne 0x4a452a
cmp esi, ebx
jne 0x4a452a
mov byte [esi], 0xa
jmp 0x4a4563
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a2ce8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a4564
mov byte [esi], 0xd
jmp 0x4a4563
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0xc70d10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a4560
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a4564
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a456d
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 + 0xc70d10]
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 0x4a45b0
cmp word [esi], dx
jne 0x4a45b0
or byte [edi + eax + 0x28], 4
jmp 0x4a45b5
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 0x4a46ee
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 0x4a46ce
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a45f7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a462d
cmp eax, edx
jae 0x4a4639
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 0x4a45cf
jmp 0x4a46ee
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 0x4a46ca
cmp dword [ebp - 0x14], 0
je 0x4a46ca
mov eax, dword [ebx*4 + 0xc70d10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a46a2
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4a46e8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0xc70d10]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0xc70d10]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0xc70d10]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4a46eb
pop ebx
cmp word [ebp - 4], bx
jne 0x4a46b3
cmp esi, dword [ebp + 0xc]
jne 0x4a46b3
mov word [esi], bx
jmp 0x4a46eb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004a2ce8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a46ee
push 0xd
jmp 0x4a46e7
mov ecx, dword [ebx*4 + 0xc70d10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a46e5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a46ee
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 0x4a87d1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c3d40
push 0x5c3d38
push str.FlsAlloc
push 0x1e
call fcn.004a8692
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a8805
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf23c]
call esi
jmp 0x4a880b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a884f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c3d50
push 0x5c3d48
push str.FlsGetValue
push 0x20
call fcn.004a8692
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a8886
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bf23c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4ac707
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4ac7a4
push ebx
push esi
call fcn.004ac6d0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004a7df8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ac751
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ac7a3
push edi
push eax
call fcn.004a5e70
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4ac771
call fcn.004a69e9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ac7a2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004a7df8
add esp, 0x20
test eax, eax
jne 0x4ac790
push edi
call fcn.004a69e9
jmp 0x4ac798
push ebx
call fcn.004a69e9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4ac7a7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ac7b8
pop esi
ret
push ebx
push edi
push esi
call fcn.004ac6d0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004a5e70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ac7e0
push ebx
push esi
push edi
call fcn.004960a0
add esp, 0xc
push 0
call fcn.004a69e9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4acba4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ac7f5
Function at 0x4adecb
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ade47
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4ae043
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4ae043
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4adff2
jg 0x4adf24
test eax, eax
je 0x4adfe8
push 1
push 0x1000
call fcn.004aab92
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4adf4a
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4adfdf
push 0x8000
push ebx
call fcn.004a26f1
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4adf76
jg 0x4adf71
cmp ecx, 0x1000
jb 0x4adf76
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004a3633
add esp, 0x10
cmp eax, 0xffffffff
je 0x4adfbb
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4adf71
jl 0x4adfa2
test ecx, ecx
jne 0x4adf63
push dword [ebp - 0xc]
push ebx
call fcn.004a26f1
push esi
call fcn.004a69e9
add esp, 0xc
xor edi, edi
jmp 0x4ae054
cmp byte [edi + 0x24], 0
je 0x4adfd2
cmp dword [edi + 0x20], 5
jne 0x4adfd2
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4adfdd
mov edi, dword [edi + 0x18]
jmp 0x4adfdf
xor edi, edi
push esi
call fcn.004a69e9
pop ecx
jmp 0x4ae054
test ecx, ecx
jg 0x4adfb4
jl 0x4adff2
test eax, eax
jae 0x4adfb4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a2ce8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4ae015
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4adfb4
jmp 0x4ae04c
push ebx
call fcn.004a0459
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4adfb4
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4ae054
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4ae051
mov edi, dword [edi + 0x18]
jmp 0x4ae054
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004a2ce8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b1bd0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4b1c02
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 4]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
push ebp
push esi
seto cl
neg ecx
or ecx, eax
push edi
push ecx
call fcn.00493242
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
mov ebp, eax
mov dword [esp + 0x20], ebp
test ecx, ecx
je 0x4b1c9c
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x1c], eax
mov ebx, dword [eax + ebp]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.00493242
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
lea ebp, [ebp + 4]
inc eax
mov dword [ebp - 4], edi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
jne 0x4b1c41
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push ebx
mov dword [ebp + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push dword [esp + 0x14]
call fcn.00455dc2
xor esi, esi
add esp, 8
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x4b1cda
mov ecx, dword [ebp + esi*4]
test ecx, ecx
je 0x4b1cda
push ecx
call fcn.0049324b
inc esi
add esp, 4
cmp esi, dword [esp + 0x10]
jne 0x4b1cc2
push ebp
call fcn.0049324b
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10

Function at 0x4b1e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b1e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b1e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
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
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x40a3a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x40a3ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a3c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a3b0
mov eax, 1
add ebx, ebx
jne 0x40a3d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a3c8
jne 0x40a3e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a3c8
xor ecx, ecx
sub eax, 3
jb 0x40a3f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a46a
mov ebp, eax
add ebx, ebx
jne 0x40a403
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a410
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a434
inc ecx
add ebx, ebx
jne 0x40a420
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a415
jne 0x40a431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a415
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a454
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a445
jmp 0x40a3b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a454
add edi, ecx
jmp 0x40a3b6
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a4b3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa4c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa534]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a471
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa53c]
or eax, eax
je 0x40a4ad
mov dword [ebx], eax
add ebx, 4
jmp 0x40a48e
call dword [esi + 0xa538]
mov ebp, dword [esi + 0xa540]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40a4e7
sub esp, 0xffffff80
jmp 0x4010d2
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a004]
jne 0x40100a
repz ret
jmp fcn.00401264

Function at 0x40343b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040243c
and dword [ebp - 0x14], 0
cmp dword [0x44c58c], 0
mov dword [ebp - 0x18], eax
jne 0x4034ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403596
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403596
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44c58c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44c590], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44c594], eax
call edi
push eax
call esi
mov dword [0x44c59c], eax
test eax, eax
je 0x4034ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44c598], eax
mov eax, dword [0x44c598]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403547
cmp dword [0x44c59c], ecx
je 0x403547
push eax
call esi
push dword [0x44c59c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403547
test ebx, ebx
je 0x403547
call edi
test eax, eax
je 0x40353e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40353e
test byte [ebp - 8], 1
jne 0x403547
or dword [ebp + 0x10], 0x200000
jmp 0x40357a
mov eax, dword [0x44c590]
cmp eax, dword [ebp - 0x18]
je 0x40357a
push eax
call esi
test eax, eax
je 0x40357a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40357a
mov eax, dword [0x44c594]
cmp eax, dword [ebp - 0x18]
je 0x40357a
push eax
call esi
test eax, eax
je 0x40357a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c58c]
call esi
test eax, eax
je 0x403596
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403598
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x465b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004659b3

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 0x80a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0080a1a8
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 0x80a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80a06a
add dl, dl
jne 0x80a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80a0dc
xor eax, eax
add dl, dl
jne 0x80a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x80a17d
add dl, dl
jne 0x80a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x80a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x80a075
mov eax, 1
add dl, dl
jne 0x80a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x80a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x80a0e1
sub eax, ebx
mov ebx, 1
jne 0x80a128
mov ecx, 1
add dl, dl
jne 0x80a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x80a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x80a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x80a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x80a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x80a136
cmp eax, 0x7d00
jae 0x80a16d
cmp eax, 0x500
jb 0x80a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80a075
cmp eax, 0x7f
ja 0x80a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x80a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x80a19e
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 0x80a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100015a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100015b4
pop dword [ebp - 0x40]
mov eax, 0x2fe82633
add eax, 0xe017ef81
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x86905de2
sub dword [ebp - 0x50], 0x383e1897
mov dword [ebp - 0x4c], 0xce9e168
sub dword [ebp - 0x4c], 0xdab69523
mov dword [ebp - 0x48], 0xf661f285
sub dword [ebp - 0x48], 0xaa15ae57
mov dword [ebp - 0x44], 0x3fc39184
add dword [ebp - 0x44], 0xc03c6e7c
lea eax, [ebp - 0x50]
push eax
mov eax, 0xda964035
sub eax, 0xca961031
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x70612d50
sub dword [ebp - 0x50], 0xfbeec3fa
mov dword [ebp - 0x4c], 0xdf66ac33
sub dword [ebp - 0x4c], 0x9dfa4abe
mov dword [ebp - 0x48], 0x1f9f111e
sub dword [ebp - 0x48], 0xbc2fa4b2
mov dword [ebp - 0x44], 0x84e8bff0
add dword [ebp - 0x44], 0x7b174010
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x688e40eb
add eax, 0xa771ef21
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3571b
push 0
call eax
mov ecx, 0x43d7
xor edi, edi
add edi, eax
mov edx, 0x21440456
add edx, 0xeebc5faa
add edx, dword [ebp - 0x40]
mov esi, 0x516abf89
add esi, 0x14b5260f
mov ebx, dword [edx]
xor ebx, esi
xor dword [ebp - 0x18], 0xdeb0318e
mov dword [edi], ebx
add dword [ebp - 0x28], eax
add edi, 4
add edx, 0xbdd5fd98
add edx, 0x422a026c
loop 0x100016d2
add eax, 0x11a25d95
sub eax, 0x11a15b66
mov ebx, eax
add eax, 0x17b64a35
add eax, 0xe849b5d0
mov ecx, 0x12b3ddc2
sub ecx, 0x2b3ddc2
add ecx, dword [ebp - 0x40]
call ebx
leave
ret