joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f590
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x40f5b0
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
push ecx
push ecx
push 0x801a
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40f66e
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f5e2
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004093c0
push 0x5c
mov ecx, esi
call fcn.0040f680
push str.EasyAntiCheat
mov ecx, esi
call fcn.0040be90
push 0x5c
mov ecx, esi
call fcn.0040f680
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x40f628
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f649
test al, 0x10
je 0x40f649
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 7
jbe 0x40f651
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00471b48
mov esp, ebp
pop ebp
ret

Function at 0x4118c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c1ef0], 2
je 0x41196b
cmp dword [0x4c1ef0], 0
jne 0x411954
mov ecx, 1
mov edx, 0x4c1ef0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x411954
mov dword [0x4c1ee8], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x640061
mov dword [ebp - 0x1c], 0x610076
mov dword [ebp - 0x18], 0x690070
mov dword [ebp - 0x14], 0x320033
mov dword [ebp - 0x10], 0x64002e
mov dword [ebp - 0xc], 0x6c006c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4c1ee8], eax
mov dword [0x4c1ef0], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
cmp dword [0x4c1ef0], 2
je 0x41196b
nop dword [eax]
pause
cmp dword [0x4c1ef0], 2
jne 0x411960
mov ecx, dword [ebp - 4]
mov eax, dword [0x4c1ee8]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
Function at 0x411980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c1edc], 2
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, edx
je 0x411a1b
cmp dword [0x4c1edc], 0
jne 0x4119ff
mov ecx, 1
mov edx, 0x4c1edc
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4119ff
mov dword [0x4c1ed8], eax
mov dword [ebp - 0x14], 0x4f676552
mov dword [ebp - 0x10], 0x4b6e6570
mov dword [ebp - 0xc], 0x78457965
mov word [ebp - 8], 0x57
call fcn.004118c0
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c1ed8], eax
mov dword [0x4c1edc], 2
jmp 0x411a1b
cmp dword [0x4c1edc], 2
je 0x411a1b
nop dword [eax + eax]
pause
cmp dword [0x4c1edc], 2
jne 0x411a10
mov dword [edi], 0
mov esi, dword [0x4c1ed8]
test esi, esi
jne 0x411a41
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret 0xc
push edi
push 1
push 0
push ebx
push reloc.WS2_32.dll_bind
mov ecx, esi
call dword [0x4a1398]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471b48
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4595d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4595f1
jl 0x4595e8
test edi, edi
jne 0x4595f1
xor eax, eax
xor edx, edx
jmp 0x4596b2
cmp dword [ebx + 0x38], 0
je 0x459606
push eax
push edi
push dword [ebp + 8]
call fcn.004596c0
jmp 0x4596b2
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x45964d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x45964d
cmp eax, edi
jb 0x459627
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004735e0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x459653
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4596a7
mov ecx, ebx
call fcn.00458c91
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x459692
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0047ea20
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4596a7
jmp 0x459665
test edx, edx
je 0x4596a7
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0047ea20
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x462815
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4627a1
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4627bf
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x46281d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x462804
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x46280d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x462817
add ecx, eax
or byte [ecx], 4
invalid
invalid
or dword [eax + eax*2], eax
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4627f9
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x462783
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x46286a
dec eax
je 0x462861
sub eax, 3
je 0x462858
mov dword [ebp - 4], 0x40
jmp 0x462887
mov dword [ebp - 4], 4
jmp 0x46286d
mov dword [ebp - 4], 0x20
jmp 0x46286d
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4628b9
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x462839
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004620ca
invalid
Function at 0x471601
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00485e3a
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x471640
sub eax, 1
je 0x47163b
sub eax, 1
je 0x471637
xor eax, eax
leave
ret
push 3
jmp 0x471642
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x472d56
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x472d95
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x472d95
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x472d95
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x472d95
cmp dword [ecx + 0x74], 0xe
jbe 0x472d95
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x420562
Capabilities:
Read file on windows

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

Function at 0x42056d
Capabilities:
Read file on windows

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

Function at 0x420967
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d9f0
mov eax, dword [0x47ee00]
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.0041e133
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4209a9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420b05
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429400
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 + 0x481850]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421706
mov ecx, dword [esi*4 + 0x481850]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x420afe
cmp eax, dword [edi + ecx + 0x24]
jne 0x420afe
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420afe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421706
add esp, 0x14
test edx, edx
jl 0x420afe
jg 0x420a74
test eax, eax
jb 0x420afe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420afe
jl 0x420a8e
cmp dword [ebp - 0x1008], eax
ja 0x420afe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420aac
test ebx, ebx
je 0x420ae5
cmp ecx, edi
jae 0x420ae5
mov al, byte [ecx]
cmp al, 0xd
jne 0x420ac6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420ad2
cmp byte [ecx + 1], 0xa
jne 0x420ad2
inc ecx
jmp 0x420ad2
movzx eax, al
movsx eax, byte [eax + 0x47f0c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420aac
cmp edx, ebx
jne 0x420aac
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420b03
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040cde2
leave
ret
Function at 0x420ba4
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 + 0x481850]
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 0x420be4
cmp byte [ebx], 0xa
jne 0x420be4
or byte [eax + edi + 0x28], 4
jmp 0x420be9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420ce7
mov al, byte [edx]
cmp al, 0x1a
je 0x420cc9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420c18
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420c3d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420c47
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 0x420bfa
jmp 0x420ce7
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 0x420cc4
cmp dword [ebp - 0xc], 0
je 0x420cc4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481850]
test byte [eax + edi + 0x28], 0x48
je 0x420c9e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420c89
mov byte [esi], dl
jmp 0x420c9a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481850]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420ce7
cmp byte [ebp - 1], 0xa
jne 0x420cad
cmp esi, ebx
jne 0x420cad
mov byte [esi], 0xa
jmp 0x420ce6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421724
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420ce7
mov byte [esi], 0xd
jmp 0x420ce6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481850]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420ce3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420ce7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420cf0
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 + 0x481850]
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 0x420d33
cmp word [esi], dx
jne 0x420d33
or byte [edi + eax + 0x28], 4
jmp 0x420d38
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 0x420e8b
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 0x420e6b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420d7a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420db0
cmp eax, edx
jae 0x420dbc
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 0x420d52
jmp 0x420e8b
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 0x420e67
cmp dword [ebp - 0x14], 0
je 0x420e67
mov eax, dword [ebx*4 + 0x481850]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420e3f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420e08
mov word [esi], cx
jmp 0x420e3b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481850]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481850]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481850]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x420e8b
pop ebx
cmp word [ebp - 4], bx
jne 0x420e50
cmp esi, dword [ebp + 0xc]
jne 0x420e50
mov word [esi], bx
jmp 0x420e88
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421724
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420e8b
push 0xd
jmp 0x420e84
mov ecx, dword [ebx*4 + 0x481850]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420e82
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420e8b
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 0x421dbd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47ee00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x421e08
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00421f5c
test al, al
jne 0x421e02
sub edx, 2
cmp edx, edi
jne 0x421de8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x421e2a
lea eax, [edi + 2]
cmp edx, eax
je 0x421e2a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00421d09
add esp, 0x10
jmp 0x421f24
push esi
lea ecx, [ebp - 0x255]
call fcn.00421f5c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x421e6d
push dword [ebp - 0x25c]
jmp 0x421e1a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x421eaa
cmp word [ebp - 0x226], 0
je 0x421ecb
cmp word [ebp - 0x226], ax
jne 0x421eaa
cmp word [ebp - 0x224], 0
je 0x421ecb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00421d09
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x421f17
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x421e84
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x421eff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x421f24
push 0x421b39
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00427730
add esp, 0x10
jmp 0x421ef4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cde2
leave
ret

Function at 0x429200
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x42a719
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x42a718
push ebx
mov ebx, 0x480c50
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.0040151b
push eax
call fcn.00402dcf
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.0040151b
push eax
call fcn.00402dcf
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42b5b8
mov byte [edi + esi], al
call fcn.0041236e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x42a6bb
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.004065b2
pop edi
pop ebp
ret 0x14
Function at 0x1760058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017601a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x176007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x176006a
add dl, dl
jne 0x1760089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17600dc
xor eax, eax
add dl, dl
jne 0x1760096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x176017d
add dl, dl
jne 0x17600a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17600b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17600bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17600c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17600d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1760075
mov eax, 1
add dl, dl
jne 0x17600ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17600f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17600e1
sub eax, ebx
mov ebx, 1
jne 0x1760128
mov ecx, 1
add dl, dl
jne 0x176010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1760119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1760105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1760075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x176013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x176014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1760136
cmp eax, 0x7d00
jae 0x176016d
cmp eax, 0x500
jb 0x1760168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1760075
cmp eax, 0x7f
ja 0x1760170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1760075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x176019e
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 0x1760075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40192e
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xaca
jge 0x401949
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be4d9
jg 0x401963
inc edi
cmp edi, 0x332fe31
jl 0x40193a
cmp dword [0x208e264], 0x400
jne 0x4019a2
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
call fcn.00401ef2
call fcn.00401da1
push esi
call fcn.004020e4
pop ecx
pop ecx
xor edi, edi
cmp edi, 0xd036
jge 0x4019b3
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x4019d9
inc edi
cmp edi, 0x263ff
jl 0x4019a4
mov eax, dword [0x4415e4]
mov dword [0x208e264], eax
call fcn.004016c1
mov edi, 0x3078f
cmp dword [0x208e264], 0x51f
jne 0x401a05
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x4019ed
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x404374
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427338]
jne 0x40437e
repz ret
jmp fcn.0040551d