joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459000
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x686583
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.006795e1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x986038
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x985f80
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x68812c]
push eax
mov ecx, edi
call fcn.0067ec77
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00680193
test eax, eax
je 0x45911c
mov ecx, dword [esp + 0x3c]
call fcn.0067eca4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x688604]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4590e0
push edi
mov ecx, esi
call fcn.0067c30c
mov ecx, esi
call fcn.004592c0
cmp dword [esp + 0x38], 1
jne 0x459115
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0067c447
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x45b310
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45b343
push esi
call fcn.004696f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45b33c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45b3c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45b3b2
mov eax, dword [esi + 8]
test eax, eax
je 0x45b367
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45b3ae
cmp eax, 2
je 0x45b3b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45b35a
cmp eax, 3
je 0x45b38d
cmp eax, 1
jne 0x45b35a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45b35a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45b35a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045b3f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45b3d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045b3f0
add esp, 4
pop esi
ret
Function at 0x64cb80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x64cb9e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x64cb93
pop esi
ret
Function at 0xdc6ee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7a3000]
push edi
jmp 0xdc6efa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xdc6f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdc6ef0
mov eax, 1
add ebx, ebx
jne 0xdc6f13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xdc6f24
jne 0xdc6f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdc6f43
dec eax
add ebx, ebx
jne 0xdc6f30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xdc6f08
add ebx, ebx
jne 0xdc6f3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xdc6f95
xor ecx, ecx
sub eax, 3
jb 0xdc6f5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xdc6fca
sar eax, 1
mov ebp, eax
jmp 0xdc6f66
add ebx, ebx
jne 0xdc6f66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdc6f34
inc ecx
add ebx, ebx
jne 0xdc6f74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdc6f34
add ebx, ebx
jne 0xdc6f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xdc6f76
jne 0xdc6f92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xdc6f76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xdc6fb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xdc6fa6
jmp 0xdc6ef6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xdc6fb4
add edi, ecx
jmp 0xdc6ef6
pop esi
mov edi, esi
mov ecx, 0x1dad2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xdc6fd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xdc6fd7
lea edi, [esi + 0x9c2000]
mov eax, dword [edi]
or eax, eax
je 0xdc7048
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa34124]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa34354]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xdc6ffd
mov ecx, edi
jns 0xdc702c
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa34358]
or eax, eax
je 0xdc7042
mov dword [ebx], eax
add ebx, 4
jmp 0xdc701a
call dword [esi + 0xa34368]
mov ebp, dword [esi + 0xa3435c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0xdc707c
sub esp, 0xffffff80
jmp 0x402458
Function at 0x4017d0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0xffffffff
je 0x4017dd
mov al, 1
pop esi
ret
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4017e8
xor al, al
pop esi
ret
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x401832
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401832
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x401847
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
cmp dword [esi + 0x20], 0xffffffff
pop esi
setne al
ret

Function at 0x401860
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42668c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4018a0
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406a3a
mov esp, ebp
pop ebp
ret 8
Function at 0x405570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x42668c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
push eax
mov dword [edi + 0x10], 0
call fcn.0040b380
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040b380
add esp, 0x18
lea eax, [ebp - 0x418]
push eax
push 0x1a
push 0
mov dword [ebp - 0x418], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x405629
lea ecx, [ebp - 0x414]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x405629
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp word [ebp - 0x20c], 0
je 0x405678
push esi
lea esi, [ebp - 0x20c]
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405640
sub esi, ecx
sar esi, 1
push esi
mov ecx, edi
call fcn.00402570
push esi
lea ecx, [ebp - 0x20c]
push ecx
push eax
push dword [edi]
call fcn.00408691
mov eax, dword [edi]
add esp, 0x10
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [edi + 4], esi
pop esi
jmp 0x405689
mov eax, dword [edi]
test eax, eax
je 0x405689
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov eax, dword [edi + 4]
add eax, 8
push eax
mov ecx, edi
call fcn.00402570
push 0x4240d8
push eax
push dword [edi]
call fcn.0040825a
add dword [edi + 4], 8
mov eax, dword [edi + 4]
add esp, 0xc
add eax, 8
push eax
mov ecx, edi
call fcn.00402570
push str.WeChat_
push eax
push dword [edi]
call fcn.0040825a
add dword [edi + 4], 8
add esp, 0xc
mov ecx, edi
call fcn.004056f0
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00406a3a
mov esp, ebp
pop ebp
ret
Function at 0x4056f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42668c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 4], 0
setle al
test al, al
je 0x405722
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406a3a
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.0040b380
mov edi, dword [edi]
add esp, 0xc
mov dword [ebp - 0x21c], edi
test edi, edi
je 0x405752
cmp word [edi], 0
jne 0x40575d
mov edi, 0x423ff0
mov dword [ebp - 0x21c], edi
movzx eax, word [edi]
push ebx
mov ebx, 1
push esi
mov dword [ebp - 0x220], ebx
test ax, ax
je 0x4058a5
lea ecx, [ebp - 0x204]
mov ebx, 0x5c
sub ecx, edi
mov dword [ebp - 0x224], ecx
lea esi, [ebx - 0x2d]
lea edx, [ebx - 0x22]
nop
cmp bx, ax
je 0x40579e
cmp si, ax
jne 0x405882
cmp dx, word [edi - 2]
je 0x405882
xor ebx, ebx
cmp word [ebp - 0x204], bx
je 0x40582f
lea esi, [ebp - 0x204]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4057c0
sub esi, ecx
sar esi, 1
jns 0x4057d5
xor eax, eax
jmp 0x40580c
mov edi, 2
cmp esi, edi
jle 0x4057e6
mov edi, edi
add edi, edi
cmp edi, esi
jl 0x4057e0
lea eax, [edi*2 + 2]
push eax
push 0
call fcn.00408b52
add esp, 8
test eax, eax
je 0x405803
xor ecx, ecx
mov ebx, eax
mov word [eax], cx
lea eax, [edi + 1]
mov edi, dword [ebp - 0x21c]
push esi
lea ecx, [ebp - 0x204]
push ecx
push eax
push ebx
call fcn.00408691
xor eax, eax
add esp, 0x10
mov word [ebx + esi*2], ax
test ebx, ebx
je 0x40582f
cmp word [ebx], ax
mov eax, ebx
jne 0x405834
mov eax, 0x423ff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
jne 0x405864
push 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
mov dword [ebp - 0x220], ecx
test ecx, ecx
je 0x40593e
test ebx, ebx
je 0x405871
push ebx
call fcn.00408538
add esp, 4
mov ecx, dword [ebp - 0x224]
mov esi, 0x2f
lea ebx, [esi + 0x2d]
lea edx, [esi + 0xb]
mov ax, word [edi]
mov word [ecx + edi], ax
movzx eax, word [edi + 2]
add edi, 2
mov dword [ebp - 0x21c], edi
test ax, ax
jne 0x405790
mov ebx, dword [ebp - 0x220]
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x20c], 0
call fcn.00402130
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x4058df
cmp word [esi], 0
mov eax, esi
jne 0x4058e4
mov eax, 0x423ff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
jne 0x405906
push 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
setne bl
test esi, esi
je 0x405918
push esi
call fcn.00408538
add esp, 4
mov ecx, dword [ebp - 0x20c]
test ecx, ecx
je 0x40592b
push ecx
call fcn.00408538
add esp, 4
pop esi
mov al, bl
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406a3a
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x40594b
push ebx
call fcn.00408538
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
xor al, al
pop edi
call fcn.00406a3a
mov esp, ebp
pop ebp
ret
Function at 0x40f800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov ecx, 0xfab1b9f1
call fcn.0040f92e
mov ecx, 0x5ec57f12
mov ebx, eax
call fcn.0040f92e
mov byte [ebp - 4], 0x62
lea edx, [ebp - 8]
mov byte [ebp - 3], 0x69
lea ecx, [ebp - 4]
mov byte [ebp - 2], 0x6e
mov edi, eax
xor eax, eax
mov byte [ebp - 1], al
mov byte [ebp - 0x1c], 0x5b
mov byte [ebp - 0x1b], 0x4c
mov byte [ebp - 0x1a], 0x6f
mov byte [ebp - 0x19], 0x67
mov byte [ebp - 0x18], 0x5d
mov byte [ebp - 0x17], 0x20
mov byte [ebp - 0x16], 0x4c
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0x12], 0x69
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x67
mov byte [ebp - 0xf], al
mov byte [ebp - 0x30], 0x5b
mov byte [ebp - 0x2f], 0x4c
mov byte [ebp - 0x2e], 0x6f
mov byte [ebp - 0x2d], 0x67
mov byte [ebp - 0x2c], 0x5d
mov byte [ebp - 0x2b], 0x20
mov byte [ebp - 0x2a], 0x4c
mov byte [ebp - 0x29], 0x6f
mov byte [ebp - 0x28], 0x61
mov byte [ebp - 0x27], 0x64
mov byte [ebp - 0x26], 0x20
mov byte [ebp - 0x25], 0x66
mov byte [ebp - 0x24], 0x61
mov byte [ebp - 0x23], 0x69
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x64
mov byte [ebp - 0x1f], al
mov dword [ebp - 8], eax
call fcn.0040f9ca
mov esi, eax
test esi, esi
jne 0x40f8d4
lea eax, [ebp - 0x30]
push eax
call edi
pop ecx
push 0xfffffffffffffffa
call ebx
push 0xfffffffffffffffa
pop eax
jmp 0x40f8f5
lea eax, [ebp - 0x1c]
push eax
call edi
pop ecx
mov ecx, 0x2dc0cbba
call fcn.0040f92e
lea ecx, [ebp - 0xc]
push ecx
push pe_nt_image_headers32
push dword [ebp - 8]
push esi
call eax
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f92e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call fcn.0040fa80
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov edi, eax
mov dword [ebp - 0x14], eax
mov esi, dword [edi + 0x10]
mov edi, dword [edi]
test esi, esi
je 0x40f9a2
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
test ebx, ebx
je 0x40f9a2
mov ecx, dword [ebx + esi + 0xc]
add ecx, esi
call fcn.0040f900
mov ecx, dword [ebx + esi + 0x20]
mov dword [ebp - 8], eax
add ecx, esi
xor eax, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
cmp dword [ebx + esi + 0x18], eax
jbe 0x40f9a2
mov ecx, dword [ecx + eax*4]
add ecx, esi
call fcn.0040f900
add eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
je 0x40f9ae
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebx + esi + 0x18]
jb 0x40f980
cmp edi, dword [ebp - 0x14]
jne 0x40f94a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + esi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x40f9a9
Function at 0x4145d1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42668c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040b62a
mov dword [ebp - 0x14], eax
cmp dword [0x428920], edi
jne 0x4146c2
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41464f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4147a2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4147a2
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4147a2
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x428920], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x428924], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x428928], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x428930], eax
test eax, eax
je 0x4146bf
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42892c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4146e7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4146da
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4146fc
push 4
pop eax
jmp 0x4147a4
cmp dword [ebp - 0x14], edi
je 0x4146fc
push dword [0x428920]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4146e1
mov eax, dword [0x42892c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41475a
cmp dword [0x428930], esi
je 0x41475a
push eax
call ebx
push dword [0x428930]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41475a
test eax, eax
je 0x41475a
call ecx
test eax, eax
je 0x41474f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41474f
test byte [ebp - 8], 1
jne 0x41475a
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41478a
mov eax, dword [0x428924]
cmp eax, esi
je 0x414787
push eax
call ebx
test eax, eax
je 0x414787
call eax
mov edi, eax
test edi, edi
je 0x414787
mov eax, dword [0x428928]
cmp eax, esi
je 0x414787
push eax
call ebx
test eax, eax
je 0x414787
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x428920]
call ebx
test eax, eax
je 0x4147a2
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4147a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406a3a
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

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

Function at 0x402bc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x406020]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, ecx
push edi
mov eax, esi
call fcn.00401aa2
push 0x410
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call edi
test eax, eax
jne 0x402c23
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00402d5e
add esp, 0x420
ret
cmp eax, 0x208
jae 0x402c0a
lea ecx, [esp + 8]
push ecx
push 0x209
call edi
test eax, eax
je 0x402c0a
cmp eax, 0x208
jae 0x402c0a
lea eax, [esp + 8]
mov word [esp + 0x418], 0
call fcn.00401b6e
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00402d5e
add esp, 0x420
ret

Function at 0x402d5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406020]
jne 0x402d68
repz ret
jmp fcn.004032dd
Function at 0x86a58d
Capabilities:
Execute anti-debugging instructions

Disassembly:
stc
pop ebp
cmc
mov byte [esp], cl
jmp 0x86a599
add esp, 0
mov ch, bh
mov esi, dword [esp]
bts ebp, edx
rdtsc
push eax
jmp 0x86a5bd

Function at 0x86a750
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ecx, dword [esp + 3]
mov ah, 0xe5
stc
mov bh, 0xe3
jmp 0x86a79c
mov word [esp], bp
add bx, 0xdc41
xchg word [esp + 2], cx
jmp 0x86a7af
bswap eax
setnp bl
shl dl, 4
push word [esp + 1]
bsr edx, edx
jmp 0x86a76f
mov dword [esp], ecx
mov byte [esp + 3], bl
clc
pop di
cpuid
mov bx, word [esp + 1]
jmp 0x86a785
lea esp, [esp + 2]
inc ebp
mov bl, byte [esp + 2]
mov cl, 0x83
add esp, 2
rdtsc
jmp 0x86a7f9
add esp, 0
rdtsc
bswap edi
xchg bx, bp
bsf ecx, ebp
mov esi, esp
jmp 0x86a7e3

Function at 0x86a990
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bx, 0xdb21
xchg byte [esp + 0xc], dh
mov bp, word [esp + 1]
jmp 0x86a996
cld
lea ecx, [eax + eax]
jmp 0x86a97a
bsr bp, sp
btc bp, cx
xchg dword [esp + 1], esi
xchg dl, dh
xchg word [esp + 7], si
lea esp, [esp + 4]
jmp 0x86a9e0
add esp, 1
sub cl, 0x42
lea ebp, [ebx + edi]
pop word [esp + 2]
jmp 0x86a9ca