joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12e2510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x131fc54]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.012fe180
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x12e25df
mov eax, 0x13185fc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x12e2555
sub eax, edx
sar eax, 1
je 0x12e25df
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.01313238]
push 0x13185fc
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.012fc6c7
push 0x13185f4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.012fc16e
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x12e25df
push eax
push 1
push 0x200
push esi
call fcn.012fc9e4
mov eax, dword [esp + 0x14]
push eax
call fcn.012fc41c
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.012fbef2
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.012fbef2
add esp, 0x214
ret

Function at 0x12e27c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 0
call dword [0x1313250]
push 0x13185f4
lea eax, [esp + 0x10]
push 0x1344960
push eax
call fcn.012fc16e
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x12e28f1
push 2
push 0
push eax
call fcn.012fce5f
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.012fd081
mov esi, eax
add esp, 4
push esi
call fcn.012f1b7d
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.012fce5f
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.012fc9e4
add esp, 0x10
cmp esi, eax
jne 0x12e28d3
call dword [0x131323c]
push eax
call fcn.012fcda1
add esp, 4
call fcn.012fcdb3
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x131a7e0]
fmul qword [0x131a7d8]
fadd qword [0x131a7d0]
call fcn.012fea20
cmp esi, eax
jl 0x12e28d3
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.012e2770
mov ecx, dword [esp + 0xc]
push ecx
call fcn.012fc41c
add esp, 4
push 0x1344960
call dword [0x1313230]
push 0x1318304
lea edx, [esp + 0x10]
push 0x1344960
push edx
call fcn.012fc16e
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x12e28f1
push eax
push esi
push 1
push edi
call fcn.012fc323
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x12e28e4
push eax
call fcn.012fc41c
add esp, 4
test edi, edi
je 0x12e28f1
push edi
call fcn.012f1b88
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x12e47b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0x12e48a1
cmp edi, 0xa
jb 0x12e48a1
lea eax, [edi*4]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.012fbf50
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.012e4630
add esp, 8
test eax, eax
je 0x12e489a
mov eax, dword [esp + 0x1c]
push 0x1318304
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.012fc16e
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x12e4825
lea ebp, [eax - 2]
jmp 0x12e4850
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.012fc323
add esp, 0x10
cmp eax, edi
je 0x12e4867
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12e4850
push eax
call fcn.012fc41c
add esp, 4
test esi, esi
je 0x12e485d
push esi
call fcn.012fc01a
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [0x131323c]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.012fc323
add esp, 0x10
jmp 0x12e483f
mov ebp, 0xfffffffd
jmp 0x12e483f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x12e6620
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x12e6627
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x12e6704
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x131a170]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x131a170]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x131a170]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x131a170]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x131a170]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x131a170]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x131a170]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x131a170]
inc ecx
sub edx, 8
sub esi, 1
jne 0x12e6640
pop edi
test edx, edx
je 0x12e672b
jmp 0x12e6710
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x131a170]
inc ecx
sub edx, 1
jne 0x12e6710
not eax
pop esi
ret

Function at 0x12e6730
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x131a170]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x131a170]
mov dword [edx + 8], ecx
ret

Function at 0x12e6780
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x131a170]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x131a170]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x12e7b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x12e7b9e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x12e7b92
cmp dword [edi + 0x7c], ebx
je 0x12e7bad
call fcn.012e7f60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.012e78f0
add esp, 0xc
test eax, eax
je 0x12e7bd4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.012fbf50
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x12e7c12
push 0x4000
call fcn.012fbf50
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x12e7c1f
push esi
call fcn.012fc01a
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x12e7c67
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.012e6a40
test eax, eax
jne 0x12e7c67
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x12e7c8e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x12e7c94
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x12e7cd1
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x12e7cd1
call fcn.012e6730
add ebp, 1
jne 0x12e7cc0
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x412565
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004123e4

Function at 0x41695c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004162ca

Function at 0x416967
Capabilities:
Set environment variable

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

Function at 0x402aa0
Capabilities:
Accept command line arguments

Disassembly:
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004029e0
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
ret 0x10

Function at 0x402d76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406018]
jne 0x402d80
repz ret
jmp fcn.004031ad
Function at 0x411b50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x504d4c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411b68
mov edx, dword [eax + 4]
jmp 0x411b6a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x411b89
test edx, edx
je 0x411b89
cmp dword [edx], 0
jne 0x411b89
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.0045dbf3
add esp, 4
pop ebp
ret

Function at 0x411ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49a690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x411bf4
mov ecx, dword [edi + 4]
push 0
push ebx
call fcn.00412650
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045db95
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x411c1c
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00412650
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045db95
mov esp, ebp
pop ebp
ret 0x18
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
push dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x411c78
cmp eax, 0x3e5
je 0x411c78
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00412650
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045db95
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.004126d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045db95
mov esp, ebp
pop ebp
ret 0x18

Function at 0x411ca0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411cd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.0045db30
mov dword [esp + 0xc], eax
test esi, esi
jne 0x411cd9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x48b678
lea ecx, [esp + 8]
call fcn.0041a010
int3
Function at 0x411cf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x504d4c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x411d32
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x411d32
mov eax, dword [ecx]
test eax, eax
je 0x411d32
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x411d29
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call fcn.0045dbf3
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.0045dba4
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x411d53
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x4120f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49a690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
cmp dword [ebx], 0x40
mov esi, dword [ebp + 0x10]
push edi
mov edi, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
jne 0x41212a
call fcn.0045db30
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx], 0x2745
cmp dword [ebx], 0
jne 0x41220b
test eax, eax
je 0x41219d
test esi, esi
je 0x41219d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov edi, dword [ebp - 8]
cmp edi, dword [esi]
jbe 0x41218c
call fcn.0045db30
mov dword [ebx], 0x2726
mov dword [ebx + 4], eax
jmp 0x41219d
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.00460250
add esp, 0xc
mov dword [esi], edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp esi, 0xffffffff
jne 0x4121ca
call fcn.0045db30
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045db95
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x10]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0045db30
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x41220b
call fcn.0045db30
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045db95
mov esp, ebp
pop ebp
ret
Function at 0x2ec3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02ec378f
jae 0x2ec370e
xor ecx, ecx
call fcn.02ec378f
jae 0x2ec373d
xor eax, eax
call fcn.02ec378f
jae 0x2ec374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02ec378f
adc al, al
jae 0x2ec372f
jne 0x2ec3779
stosb byte es:[edi], al
jmp 0x2ec3711
call fcn.02ec379b
sub ecx, ebx
jne 0x2ec3756
call fcn.02ec3799
jmp 0x2ec3775
lodsb al, byte [esi]
shr eax, 1
je 0x2ec3783
adc ecx, ecx
jmp 0x2ec3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02ec3799
cmp eax, 0x7d00
jae 0x2ec3772
cmp ah, 5
jae 0x2ec3773
cmp eax, 0x7f
ja 0x2ec3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2ec3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x2ee3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02ee378f
jae 0x2ee370e
xor ecx, ecx
call fcn.02ee378f
jae 0x2ee373d
xor eax, eax
call fcn.02ee378f
jae 0x2ee374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02ee378f
adc al, al
jae 0x2ee372f
jne 0x2ee3779
stosb byte es:[edi], al
jmp 0x2ee3711
call fcn.02ee379b
sub ecx, ebx
jne 0x2ee3756
call fcn.02ee3799
jmp 0x2ee3775
lodsb al, byte [esi]
shr eax, 1
je 0x2ee3783
adc ecx, ecx
jmp 0x2ee3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02ee3799
cmp eax, 0x7d00
jae 0x2ee3772
cmp ah, 5
jae 0x2ee3773
cmp eax, 0x7f
ja 0x2ee3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2ee3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

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 0x401695
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x40169f
repz ret
jmp fcn.0040197b

Function at 0x405dcb
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.00403be5
and dword [ebp - 4], 0
cmp dword [0x40e878], 0
mov ebx, eax
jne 0x405e7c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405f2d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405f2d
push eax
call fcn.00403b73
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e878], eax
call esi
push eax
call fcn.00403b73
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e87c], eax
call esi
push eax
call fcn.00403b73
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e880], eax
call esi
push eax
call fcn.00403b73
pop ecx
mov dword [0x40e888], eax
test eax, eax
je 0x405e7c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403b73
pop ecx
mov dword [0x40e884], eax
mov eax, dword [0x40e884]
cmp eax, ebx
je 0x405ed4
cmp dword [0x40e888], ebx
je 0x405ed4
push eax
call fcn.00403bee
push dword [0x40e888]
mov esi, eax
call fcn.00403bee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405ed4
test edi, edi
je 0x405ed4
call esi
test eax, eax
je 0x405ecb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405ecb
test byte [ebp - 0xc], 1
jne 0x405ed4
or dword [ebp + 0x10], 0x200000
jmp 0x405f0d
mov eax, dword [0x40e87c]
cmp eax, ebx
je 0x405f0d
push eax
call fcn.00403bee
pop ecx
test eax, eax
je 0x405f0d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405f0d
mov eax, dword [0x40e880]
cmp eax, ebx
je 0x405f0d
push eax
call fcn.00403bee
pop ecx
test eax, eax
je 0x405f0d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e878]
call fcn.00403bee
pop ecx
test eax, eax
je 0x405f2d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405f2f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18f2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.018f21a8
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 0x18f207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x18f206a
add dl, dl
jne 0x18f2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x18f20dc
xor eax, eax
add dl, dl
jne 0x18f2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x18f217d
add dl, dl
jne 0x18f20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18f20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18f20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18f20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x18f20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x18f2075
mov eax, 1
add dl, dl
jne 0x18f20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18f20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x18f20e1
sub eax, ebx
mov ebx, 1
jne 0x18f2128
mov ecx, 1
add dl, dl
jne 0x18f210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18f2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x18f2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x18f2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18f213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18f214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x18f2136
cmp eax, 0x7d00
jae 0x18f216d
cmp eax, 0x500
jb 0x18f2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x18f2075
cmp eax, 0x7f
ja 0x18f2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x18f2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x18f219e
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 0x18f2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1004baa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
push edi
mov edi, 0x20a
push edi
mov esi, ecx
call fcn.0100154c
pop ecx
push eax
mov ecx, esi
call fcn.0100bef9
push edi
push 0
push dword [esi]
call sub.msvcrt.dll_memset
mov esi, dword [esi]
add esp, 0xc
push 0x105
push esi
push 0x1004bf4
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_ExpandEnvironmentStringsW]
pop edi
pop esi
test eax, eax
je 0x101087b
xor eax, eax
ret
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jle 0x1004bf0
and eax, 0xffff
or eax, 0x80070000
ret

Function at 0x1004c63
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_GetFileSizeEx]
test eax, eax
je 0x1010d64
cmp dword [ebp - 0xc], esi
jne 0x1010d81
cmp dword [ebp - 0x10], esi
je 0x1010d8b
test byte [ebp - 0x10], 1
jne 0x1010d8b
mov edi, dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_ReadFile]
push esi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
test eax, eax
je 0x1010d64
cmp dword [ebp - 4], 2
jne 0x1010d8b
mov eax, 0xfeff
cmp word [ebp - 8], ax
jne 0x1010d8b
mov esi, dword [ebp - 0x10]
push ebx
shr esi, 1
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0100154c
pop ecx
push 0
lea ecx, [ebp - 4]
push ecx
lea ebx, [esi + esi]
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], eax
call edi
test eax, eax
je 0x1010d95
lea eax, [esi + esi - 2]
cmp dword [ebp - 4], eax
jne 0x1010dba
mov eax, dword [ebp - 8]
xor ecx, ecx
mov word [ebx + eax - 2], cx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0100bef9
push 0
call fcn.0100151c
xor eax, eax
pop ecx
pop ebx
pop edi
pop esi
leave
ret 8
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, esi
jle 0x1004d49
and eax, 0xffff
or eax, 0x80070000
jmp 0x1004d49
mov eax, 0x8007000e
jmp 0x1004d49
mov eax, 0x80070057
jmp 0x1004d49
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jle 0x1010da9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 8]
call fcn.0100151c
mov eax, esi
jmp 0x1004d47
mov esi, 0x80004005
jmp 0x1010dab