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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040f060
mov eax, dword [0x436040]
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.0041d25f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ff0c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420068
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040df10
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 + 0x438e10]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00420ec7
mov ecx, dword [esi*4 + 0x438e10]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x420061
cmp eax, dword [ecx + edi + 0x24]
jne 0x420061
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420061
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00420ec7
add esp, 0x14
test edx, edx
jl 0x420061
jg 0x41ffd7
test eax, eax
jb 0x420061
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420061
jl 0x41fff1
cmp dword [ebp - 0x1008], eax
ja 0x420061
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42000f
test ebx, ebx
je 0x420048
cmp ecx, edi
jae 0x420048
mov al, byte [ecx]
cmp al, 0xd
jne 0x420029
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420035
cmp byte [ecx + 1], 0xa
jne 0x420035
inc ecx
jmp 0x420035
movzx eax, al
movsx eax, byte [eax + 0x436308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42000f
cmp edx, ebx
jne 0x42000f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420066
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040def7
leave
ret
Function at 0x42035f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x438e10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42039f
cmp byte [ebx], 0xa
jne 0x42039f
or byte [edi + eax + 0x28], 4
jmp 0x4203a4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4204a3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x420486
inc eax
cmp dl, 0xd
je 0x4203d0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4203f6
cmp eax, ecx
jae 0x420404
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4203b8
jmp 0x4204a3
push 0
lea eax, [ebp - 0x10]
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 0x420481
cmp dword [ebp - 0x10], 0
je 0x420481
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x438e10]
test byte [eax + edi + 0x28], 0x48
je 0x42045b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420446
mov byte [esi], dl
jmp 0x420457
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x438e10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4204a3
cmp byte [ebp - 1], 0xa
jne 0x42046a
cmp esi, ebx
jne 0x42046a
mov byte [esi], 0xa
jmp 0x4204a2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420ee5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4204a3
mov byte [esi], 0xd
jmp 0x4204a2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x438e10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4204a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4204a3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4204ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x438e10]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4204f2
cmp word [ebx], dx
jne 0x4204f2
or byte [eax + edi + 0x28], 4
jmp 0x4204f7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42065a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42063a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x420538
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42056e
cmp eax, edx
jae 0x42057c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x420513
jmp 0x42065a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420635
cmp dword [ebp - 0x18], 0
je 0x420635
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x438e10]
test byte [eax + edi + 0x28], 0x48
je 0x42060b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4205cf
mov word [esi], cx
jmp 0x420606
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x438e10]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x438e10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x438e10]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42065a
pop eax
cmp word [ebp - 4], ax
jne 0x42061b
cmp esi, ebx
jne 0x42061b
mov word [esi], ax
jmp 0x420657
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420ee5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42065a
push 0xd
pop eax
jmp 0x420616
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x438e10]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x420654
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42065a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4227b7
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 0x422854
push ebx
push esi
call fcn.00422780
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.00421472
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422801
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422853
push edi
push eax
call fcn.0041c41b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422821
call fcn.0041c1f1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422852
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421472
add esp, 0x20
test eax, eax
jne 0x422840
push edi
call fcn.0041c1f1
jmp 0x422848
push ebx
call fcn.0041c1f1
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 0x424e84
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041af30
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x424ef3
cmp esi, dword [ebp - 4]
je 0x424eee
cmp dword [ebp + 0xc], 0
je 0x424eee
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x424ecb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004249d6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x424ef5
xor eax, eax
inc eax
jmp 0x424ef5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x424f5a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041af30
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041af30
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x424fd1
cmp word [ecx], dx
je 0x424fd1
mov eax, dword [0x42f9ec]
push edi
dec eax
push eax
push 0x42f8d8
call fcn.00424ef9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x425044
cmp word [eax], dx
je 0x425044
mov eax, dword [edi]
test eax, eax
je 0x424ff5
cmp word [eax], dx
je 0x424ff5
lea eax, [ebp - 0x10]
push eax
call fcn.004248dc
jmp 0x424ffe
lea eax, [ebp - 0x10]
push eax
call fcn.00424977
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42506e
mov eax, dword [0x42f8d4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42f5c8
call fcn.00424ef9
add esp, 0xc
test al, al
je 0x42506e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x425039
cmp word [eax], di
je 0x425039
lea eax, [ebp - 0x10]
push eax
call fcn.004248dc
pop ecx
jmp 0x425070
lea eax, [ebp - 0x10]
push eax
call fcn.00424977
jmp 0x425036
mov eax, dword [edi]
test eax, eax
je 0x42505b
cmp word [eax], dx
je 0x42505b
lea eax, [ebp - 0x10]
push eax
call fcn.00424891
pop ecx
jmp 0x42506e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x425139
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00424d7e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x425139
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x425139
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x425139
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4250c6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041dbeb
test ebx, ebx
je 0x425134
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041dbeb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425139
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425139
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00427e47
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42513b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040def7
leave
ret
Function at 0x429b50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x429b7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x429b7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b652
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop esi
sub eax, eax
call fcn.0043b692
mov eax, 0x7e1cc749
xor dword [edx], esi
add eax, eax
add edx, 1
mov eax, eax
sub eax, 0xaff5b205
inc eax
cmp edx, ebx
jne fcn.0043b652
add eax, ecx
or eax, ecx
add ecx, 1
ret
Function at 0x496336
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c5dd0]
jne 0x496340
repz ret
jmp fcn.0049a98f

Function at 0x498d20
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c5dd0]
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.00493202
and dword [ebp - 0x14], 0
cmp dword [0x4c8cdc], 0
mov dword [ebp - 0x18], eax
jne 0x498dd3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x498e7b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a3030
push ebx
call edi
test eax, eax
je 0x498e7b
mov esi, dword [fcn.0048f480]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c8cdc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c8ce0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c8ce4], eax
call edi
push eax
call esi
mov dword [0x4c8cec], eax
test eax, eax
je 0x498dd3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c8ce8], eax
mov eax, dword [0x4c8ce8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048f484]
cmp eax, ecx
je 0x498e2c
cmp dword [0x4c8cec], ecx
je 0x498e2c
push eax
call esi
push dword [0x4c8cec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x498e2c
test ebx, ebx
je 0x498e2c
call edi
test eax, eax
je 0x498e23
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x498e23
test byte [ebp - 8], 1
jne 0x498e2c
or dword [ebp + 0x10], 0x200000
jmp 0x498e5f
mov eax, dword [0x4c8ce0]
cmp eax, dword [ebp - 0x18]
je 0x498e5f
push eax
call esi
test eax, eax
je 0x498e5f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x498e5f
mov eax, dword [0x4c8ce4]
cmp eax, dword [ebp - 0x18]
je 0x498e5f
push eax
call esi
test eax, eax
je 0x498e5f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c8cdc]
call esi
test eax, eax
je 0x498e7b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x498e7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496336
leave
ret

Function at 0x43b63c
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
dec edi
call fcn.0043b678
inc edi
sub edx, 0x1266abe4
xor dword [eax], esi
add edx, 1
add edi, 1
inc eax
add edx, 0x4d8e7b37
sub edi, 0x23b82473
cmp eax, ebx
jne fcn.0043b63c
sub edi, edi
and edi, edx
ret
Function at 0x401130
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x804
mov eax, dword [0x42aab0]
xor eax, esp
mov dword [esp + 0x800], eax
cmp byte [0x42bec1], 0
je 0x401194
mov ecx, dword [esp + 0x808]
push esi
lea eax, [esp + 0x810]
push eax
push ecx
push 0x3ff
lea edx, [esp + 0x10]
push 0x400
push edx
call fcn.0040d472
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x14
lea eax, [esp + 4]
push eax
mov word [esp + 0x806], 0
call esi
push 0x4224bc
call esi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0040d490
add esp, 0x804
ret

Function at 0x4011b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x42aab0]
xor eax, esp
mov dword [esp + 0x400], eax
cmp byte [0x42bec1], 0
je 0x401212
mov ecx, dword [esp + 0x408]
push esi
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
lea edx, [esp + 0x10]
push 0x400
push edx
call fcn.0040d70f
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x14
lea eax, [esp + 4]
push eax
mov byte [esp + 0x407], 0
call esi
push 0x4224c0
call esi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0040d490
add esp, 0x404
ret

Function at 0x401330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401349
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401384
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401380
lea ebx, [ebx]
cmp esi, eax
jae 0x401384
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401370
cmp esi, eax
jb 0x40138a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x401db0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x634
mov eax, dword [0x42aab0]
xor eax, esp
mov dword [esp + 0x630], eax
mov eax, dword [esp + 0x638]
push ebx
push ebp
mov ebp, dword [esp + 0x64c]
push esi
push edi
mov edi, dword [esp + 0x650]
mov esi, ecx
mov ecx, dword [esp + 0x64c]
xor ebx, ebx
push 0x103
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lea edx, [esp + 0x29]
push ebx
push edx
mov dword [esp + 0x24], ecx
mov dword [esi], vtable.CLimitSingleInstance.0
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov byte [esp + 0x30], bl
call fcn.0040ef80
push 0x103
lea eax, [esp + 0x441]
push ebx
push eax
mov byte [esp + 0x448], bl
call fcn.0040ef80
push 0x103
lea ecx, [esp + 0x245]
push ebx
push ecx
mov byte [esp + 0x34], bl
mov word [esp + 0x35], bx
mov byte [esp + 0x24c], bl
call fcn.0040ef80
push 0xff
lea edx, [esp + 0x151]
push ebx
push edx
mov byte [esp + 0x158], bl
call fcn.0040ef80
push 0x103
lea eax, [esp + 0x361]
push ebx
push eax
mov byte [esp + 0x368], bl
call fcn.0040ef80
add esp, 0x3c
push 0x104
lea ecx, [esp + 0x434]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x440]
push edx
call fcn.0040ef2a
add esp, 0x14
cmp edi, ebx
jne 0x401ed7
mov edi, str.startup
push 0x422518
push edi
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x33c]
push edx
call fcn.0040ecf4
add esp, 0x14
cmp ebp, ebx
jne 0x401f03
mov ebp, str.Mutex
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x401f12
lea eax, [esp + 0x128]
lea ecx, [esp + 0x32c]
push ecx
mov ecx, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x2c]
push edx
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
call ebp
push 0x10b
mov dword [esi + 4], eax
mov eax, dword [str.Global_]
mov ecx, dword [0x42250c]
lea edx, [esp + 0x539]
push ebx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x540], bl
call fcn.0040ef80
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x548]
push str._s_s
push edx
call fcn.0040ec79
add esp, 0x1c
lea eax, [esp + 0x534]
push eax
push ebx
push ebx
call edi
mov dword [esi + 0x10], eax
call ebp
mov ecx, dword [esp + 0x640]
pop edi
mov dword [esi + 0xc], eax
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d490
add esp, 0x634
ret 0x10
Function at 0x4026a0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x402851
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x402851
push edi
push 0x422a28
push esi
call fcn.0040f59c
mov edi, eax
add esp, 8
test edi, edi
mov byte [esp + 0xf], 1
jne 0x4026f5
push esi
push str.cannot_find_entry_file:__s._n
call fcn.004011b0
add esp, 8
pop edi
mov byte [esp + 0xb], 0
mov al, byte [esp + 0xb]
pop esi
pop ebx
add esp, 0xc
ret
push ebp
push 2
push 0
push edi
call fcn.0040f453
lea eax, [esp + 0x20]
push eax
push edi
call fcn.0040f361
mov ebp, dword [esp + 0x28]
push 0
push 0
push edi
call fcn.0040f453
push ebp
call fcn.0040d124
add esp, 0x24
mov esi, eax
test esi, esi
push edi
je 0x40283d
push ebp
push 1
push esi
call fcn.0040f346
push edi
call fcn.0040f06d
xor byte [esi], 0x4e
mov eax, 1
add esp, 0x14
cmp ebp, eax
jle 0x40275e
jmp 0x402750
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
add eax, 1
cmp eax, ebp
jl 0x402750
mov edx, dword [esp + 0x20]
push edx
push 0x422a04
call dword [0x42c138]
mov edi, eax
push edi
push str.__file__
push ebx
call dword [0x42c134]
add esp, 0x14
test edi, edi
je 0x402795
add dword [edi], 0xffffffff
jne 0x402795
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x18]
push edi
call ecx
add esp, 4
add ebp, 0xfffffff8
lea edx, [esi + 8]
push ebp
push edx
call dword [0x42c11c]
add esp, 8
test eax, eax
jne 0x4027d1
push str.Marshal_fail
call fcn.004011b0
add esp, 4
push esi
mov byte [esp + 0x17], 0
call fcn.0040d1e7
mov al, byte [esp + 0x17]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push ebx
push ebx
push eax
mov ebp, eax
call dword [0x42c128]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4027fd
call dword [0x42c13c]
mov eax, dword [esp + 0x20]
push eax
push str.__s_Execute_error_______n
call fcn.004011b0
add esp, 8
test ebp, ebp
je 0x402813
add dword [ebp], 0xffffffff
jne 0x402813
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x18]
push ebp
call edx
add esp, 4
test edi, edi
je 0x402828
add dword [edi], 0xffffffff
jne 0x402828
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x18]
push edi
call ecx
add esp, 4
push esi
call fcn.0040d1e7
mov al, byte [esp + 0x17]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
call fcn.0040f06d
mov al, byte [esp + 0x17]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x4029c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x824
mov eax, dword [0x42aab0]
xor eax, esp
mov dword [esp + 0x820], eax
push esi
push 0x104
lea eax, [esp + 0x210]
push eax
push 0
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea ecx, [esp + 0x41c]
push ecx
lea edx, [esp + 0x628]
push edx
lea eax, [esp + 0x21c]
push eax
call fcn.0040f86e
lea ecx, [esp + 0x428]
push ecx
lea edx, [esp + 0x634]
push edx
lea eax, [esp + 0x228]
push eax
push str._PowerCinema__Launchclear.fiAnim__wszModule_s_wszModuleDrive_s_wszModulePath_s_
call fcn.00401130
lea ecx, [esp + 0x438]
push ecx
lea edx, [esp + 0x644]
push edx
lea eax, [esp + 0x30]
push str._s_sclear.fiAnim.exe
push eax
call fcn.0040f5af
lea ecx, [esp + 0x38]
push ecx
push str._PowerCinema__Launchclear.fiAnim__wszAppFullPath_s_
call fcn.00401130
add esp, 0x3c
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x402aaa
lea eax, [esp + 4]
push eax
push str._PowerCinema__Launchclear.fiAnim_ShellExecute_fail__wszAppFullPath_s_
call fcn.00401130
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0040d490
add esp, 0x824
ret
mov ecx, dword [esp + 0x824]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040d490
add esp, 0x824
ret