joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402dc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45510c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402e63
cmp eax, 3
je 0x402dfb
cmp eax, 2
jne 0x402e78
push 0x5c
push edi
call fcn.00426627
mov esi, eax
add esp, 8
test esi, esi
je 0x402e78
sub esi, edi
lea eax, [ebp - 0x20c]
sar esi, 1
push esi
push edi
push 0x104
push eax
call fcn.0042c19f
add esi, esi
add esp, 0x10
cmp esi, 0x208
jae 0x402e8a
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [ebp + esi - 0x20c], ax
call fcn.00402dc0
test eax, eax
je 0x402e78
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e78
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e9fd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040e9fd
mov esp, ebp
pop ebp
ret
call fcn.0040ebcb
int3

Function at 0x404170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440d68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45510c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x10]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4041a7
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
test eax, eax
je 0x404217
push 0
push 0x456e30
push 0x456e18
push 0
push eax
call fcn.00427b97
mov edi, eax
add esp, 0x14
test edi, edi
je 0x404217
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x404217
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404217
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi + 8], eax
test eax, eax
je 0x404217
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40423a
mov dword [edi + 8], eax
xor bl, bl
test esi, esi
je 0x404224
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov bl, 1
jmp 0x404219
Function at 0x404c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404c69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404c69
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404c58
cmp esi, edx
jae 0x404c69
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404c46
cmp esi, edx
jae 0x404c69
cmp word [esi], 0
je 0x404c69
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x407480
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4074e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
je 0x4074da
cmp ecx, 0x2e4
je 0x4074da
cmp ecx, 0x4c7
je 0x4074da
shr eax, 0x10
xor edx, edx
cmp edx, eax
sbb eax, eax
not eax
and eax, ecx
cmp dword [esi + 4], 8
ja 0x4074e7
movzx eax, ax
add eax, 0x10000
mov dword [esi + 4], eax
jmp 0x4074e7
cmp dword [esi + 4], 8
ja 0x4074e7
mov dword [esi + 4], 0x3f5
mov eax, dword [edi + 0x38]
test eax, eax
je 0x40750d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [edi + 0x38]
call dword [0x45503c]
cmp dword [esi + 4], 8
ja 0x407519
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x411dd2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 4
pop eax
mov byte [ebp - 0xdec], 0x43
inc dword [ebx - 0x3a]
test dword [0x72fffff2], edx
mov byte [ebp - 0xdea], 0x65
mov byte [ebp - 0xde9], 0x61
mov byte [ebp - 0xde8], 0x74
mov byte [ebp - 0xde7], 0x65
mov byte [ebp - 0xde6], 0x54
mov byte [ebp - 0xde5], 0x6f
mov byte [ebp - 0xde4], 0x6f
mov byte [ebp - 0xde3], 0x6c
mov byte [ebp - 0xde2], 0x68
mov byte [ebp - 0xde1], 0x65
mov byte [ebp - 0xde0], 0x6c
mov byte [ebp - 0xddf], 0x70
mov byte [ebp - 0xdde], 0x33
mov byte [ebp - 0xddd], 0x32
and esi, edx
invalid
push dword [edx]
mov byte [ebp - 0xddc], 0x53
mov byte [ebp - 0xddb], 0x6e
mov byte [ebp - 0xdda], 0x61
mov byte [ebp - 0xdd9], 0x70
mov byte [ebp - 0xdd8], 0x73
mov byte [ebp - 0xdd7], 0x68
mov byte [ebp - 0xdd6], 0x6f
mov byte [ebp - 0xdd5], 0x74
mov byte [ebp - 0xdd4], 0
mov byte [ebp - 0xbec], 0x50
mov byte [ebp - 0xbeb], 0x72
mov byte [ebp - 0xbea], 0x6f
mov byte [ebp - 0xbe9], 0x63
mov byte [ebp - 0xbe8], 0x65
mov byte [ebp - 0xbe7], 0x73
mov byte [ebp - 0xbe6], 0x73
mov byte [ebp - 0xbe5], 0x33
mov byte [ebp - 0xbe4], 0x32
mov byte [ebp - 0xbe3], 0x46
mov byte [ebp - 0xbe2], 0x69
mov byte [ebp - 0xbe1], 0x72
mov byte [ebp - 0xbe0], 0x73
mov byte [ebp - 0xbdf], 0x74
mov byte [ebp - 0xbde], 0
push edx
xor edx, 0x10554
jmp 0x411efb
xor edx, 0x135a2
pop edx
push ebx
xor ebx, 0xb781
call 0x411f16
add byte [ebx], bh
aas
xor al, 0x4e
xor eax, 0xc4833e35
add al, 0x81
retf
Function at 0x411f16
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 4
pop eax
mov byte [ebp - 0xdec], 0x43
inc dword [ebx - 0x3a]
test dword [0x72fffff2], edx
mov byte [ebp - 0xdea], 0x65
mov byte [ebp - 0xde9], 0x61
mov byte [ebp - 0xde8], 0x74
mov byte [ebp - 0xde7], 0x65
mov byte [ebp - 0xde6], 0x54
mov byte [ebp - 0xde5], 0x6f
mov byte [ebp - 0xde4], 0x6f
mov byte [ebp - 0xde3], 0x6c
mov byte [ebp - 0xde2], 0x68
mov byte [ebp - 0xde1], 0x65
mov byte [ebp - 0xde0], 0x6c
mov byte [ebp - 0xddf], 0x70
mov byte [ebp - 0xdde], 0x33
mov byte [ebp - 0xddd], 0x32
and esi, edx
invalid
push dword [edx]
mov byte [ebp - 0xddc], 0x53
mov byte [ebp - 0xddb], 0x6e
mov byte [ebp - 0xdda], 0x61
mov byte [ebp - 0xdd9], 0x70
mov byte [ebp - 0xdd8], 0x73
mov byte [ebp - 0xdd7], 0x68
mov byte [ebp - 0xdd6], 0x6f
mov byte [ebp - 0xdd5], 0x74
mov byte [ebp - 0xdd4], 0
mov byte [ebp - 0xbec], 0x50
mov byte [ebp - 0xbeb], 0x72
mov byte [ebp - 0xbea], 0x6f
mov byte [ebp - 0xbe9], 0x63
mov byte [ebp - 0xbe8], 0x65
mov byte [ebp - 0xbe7], 0x73
mov byte [ebp - 0xbe6], 0x73
mov byte [ebp - 0xbe5], 0x33
mov byte [ebp - 0xbe4], 0x32
mov byte [ebp - 0xbe3], 0x46
mov byte [ebp - 0xbe2], 0x69
mov byte [ebp - 0xbe1], 0x72
mov byte [ebp - 0xbe0], 0x73
mov byte [ebp - 0xbdf], 0x74
mov byte [ebp - 0xbde], 0
push edx
xor edx, 0x10554
jmp 0x411efb
xor edx, 0x135a2
pop edx
push ebx
xor ebx, 0xb781
call 0x411f16
add byte [ebx], bh
aas
xor al, 0x4e
xor eax, 0xc4833e35
add al, 0x81
retf

Function at 0x411f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 4
jmp 0x411f9b
pop edi
push edx
push edx
add esp, 4
add edx, 0x9475
sub edx, 0x62e4
and edx, 0x1d62
pop edx
mov byte [ebp - 0xa1c], 0x43
mov byte [ebp - 0xa1b], 0x6c
mov byte [ebp - 0xa1a], 0x6f
mov byte [ebp - 0xa19], 0x73
mov byte [ebp - 0xa18], 0x65
mov byte [ebp - 0xa17], 0x48
mov byte [ebp - 0xa16], 0x61
mov byte [ebp - 0xa15], 0x6e
mov byte [ebp - 0xa14], 0x64
mov byte [ebp - 0xa13], 0x6c
mov byte [ebp - 0xa12], 0x65
jmp dword [ebp - 0x3a]
test edi, ebp
cmc
invalid
inc dword [eax]
push ecx
push ebx
add esp, 4
xor ecx, 0xda34
or ecx, 0x4c2d
xor ecx, 0x1572c
pop ecx
push ebx
add ebx, 0xeba
call 0x412036
add byte [ebp + 0x50], al
inc ecx
xor eax, 0x434d3f3a
xor al, byte [ebx - 0x45a4fb3c]
imul eax, dword [eax], 0
add byte [esi - 0x77], ah
xchg ebp, eax
sub al, 0xeb
invalid
Function at 0x413110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
or eax, 0xeb0a
pop eax
lea eax, [ebp - 0x14d4]
mov dword [ebp - 0xf18], eax
mov ecx, dword [ebp - 0x5f0]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xf14], edx
xor eax, eax
mov word [ebp - 0x278], ax
xor ecx, ecx
mov word [ebp - 0x34], cx
push eax
sub eax, 0x11c69
or eax, 0x5c9f
add eax, 0xd9de
pop eax
push esi
push eax
add esp, 4
and esi, 0x13761
add esi, 0x88c2
xor esi, 0xf035
add esi, 0x17193
pop esi
mov edx, dword [ebp - 0xf14]
mov ax, word [edx]
mov word [ebp - 0x1372], ax
mov ecx, dword [ebp - 0xf14]
add ecx, 2
mov dword [ebp - 0xf14], ecx
mov dx, word [ebp - 0x1372]
mov word [ebp - 0x278], dx
mov eax, dword [ebp - 0xf18]
mov cx, word [eax]
mov word [ebp - 0x1374], cx
mov edx, dword [ebp - 0xf18]
add edx, 2
mov dword [ebp - 0xf18], edx
mov ax, word [ebp - 0x1374]
mov word [ebp - 0x34], ax
push ecx
push ebx
add esp, 4
or ecx, 0xbc75
jmp 0x4130f6
add ecx, 0x8d10
pop ecx
push edx
push esi
add esp, 4
call 0x413110
add byte [ebx], bh
aas
inc ebx
cmp cl, byte [ebp + 0x50]
aas
dec ebp
add esp, 4
pop edx
movzx ecx, word [ebp - 0x34]
test ecx, ecx
jne 0x413131
movzx edx, word [ebp - 0x278]
movzx eax, word [ebp - 0x34]
sub edx, eax
mov dword [ebp - 0x1a04], edx
jmp 0x41318b
movzx ecx, word [ebp - 0x278]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
je 0x413059
movzx eax, word [ebp - 0x278]
xor eax, 0x20
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x413059
movzx edx, word [ebp - 0x278]
movzx eax, word [ebp - 0x34]
cmp edx, eax
jge 0x413175
mov dword [ebp - 0x1a00], 0xffffffff
jmp 0x41317f
mov dword [ebp - 0x1a00], 1
mov ecx, dword [ebp - 0x1a00]
mov dword [ebp - 0x1a04], ecx
cmp dword [ebp - 0x1a04], 0
jne 0x4131d4
push edx
jmp 0x41319d
or edx, 0x1abd
add edx, 0xb37b
or edx, 0x16e89
pop edx
push esi
and esi, 0x17a15
or esi, 0x9050
pop esi
push edi
xor edi, 0x1270c
pop edi
mov edx, dword [ebp - 0x5f0]
mov dword [ebp - 0x38c], edx
jmp 0x41323c
push edx
sub edx, 0x9611
sub edx, 0x759e
add edx, 0x156ab
pop edx
push eax
push edi
add esp, 4
or eax, 0x8321
add eax, 0xd60e
xor eax, 0x58e3
or eax, 0x5563
pop eax
mov eax, dword [ebp - 0x5f0]
mov ecx, dword [eax]
mov dword [ebp - 0x5f0], ecx
mov edx, dword [ebp - 0x5f0]
cmp edx, dword [ebp - 0xf1c]
je 0x413232
mov eax, dword [ebp - 0x5f0]
cmp dword [eax + 0x30], 0
jne 0x412ffd
mov dword [ebp - 0x38c], 0
Function at 0x41429c
Capabilities:
Get number of processors

Disassembly:
fcom dword [ecx - 0x38a20000]
test dword [eax + 0xfffff3], edx
add byte [eax], al
add cl, ch
jmp 0x4142af
add byte [eax], al
Function at 0x604590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x162000]
push edi
jmp 0x6045aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6045b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6045a0
mov eax, 1
add ebx, ebx
jne 0x6045c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6045d4
jne 0x6045f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6045f3
dec eax
add ebx, ebx
jne 0x6045e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6045b8
add ebx, ebx
jne 0x6045ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x604645
xor ecx, ecx
sub eax, 3
jb 0x60460b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x60467a
sar eax, 1
mov ebp, eax
jmp 0x604616
add ebx, ebx
jne 0x604616
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6045e4
inc ecx
add ebx, ebx
jne 0x604624
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6045e4
add ebx, ebx
jne 0x604631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x604626
jne 0x604642
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x604626
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x604664
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x604656
jmp 0x6045a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x604664
add edi, ecx
jmp 0x6045a6
pop esi
mov edi, esi
mov ecx, 0x4667
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x604682
cmp byte [edi], 0x11
jne 0x604682
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x604687
lea edi, [esi + 0x201000]
mov eax, dword [edi]
or eax, eax
je 0x6046ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x24966c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x249798]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6046b4
mov ecx, edi
jns 0x6046e3
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 + 0x24979c]
or eax, eax
je 0x6046f9
mov dword [ebx], eax
add ebx, 4
jmp 0x6046d1
call dword [esi + 0x2497ac]
mov ebp, dword [esi + 0x2497a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x604733
sub esp, 0xffffff80
jmp 0x466320
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x4ad698], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad698], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad69c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad6a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad6a8], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad6a4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x4ad698]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x4ad6a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x4ad6a8], edi
je 0x40d429
push eax
call ebx
push dword [0x4ad6a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
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 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x4ad69c]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x4ad6a0]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad698]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407ccb
mov dword [ebp - 0x14], eax
cmp dword [0x453bf8], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x453bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x453bfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x453c00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453c08], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453c04], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x453bf8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x453c04]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x453c08], edi
je 0x40d429
push eax
call ebx
push dword [0x453c08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
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 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x453bfc]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x453c00]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x453bf8]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043de
mov esp, ebp
pop ebp
ret
Function at 0xa8f98a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a8f906
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xa8fb02
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xa8fb02
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xa8fab1
jg 0xa8f9e3
test eax, eax
je 0xa8faa7
push 1
push 0x1000
call fcn.00a7967f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xa8fa09
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0xa8fa9e
push 0x8000
push ebx
call fcn.00a77d3e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0xa8fa35
jg 0xa8fa30
cmp ecx, 0x1000
jb 0xa8fa35
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00a8f206
add esp, 0x10
cmp eax, 0xffffffff
je 0xa8fa7a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0xa8fa30
jl 0xa8fa61
test ecx, ecx
jne 0xa8fa22
push dword [ebp - 0xc]
push ebx
call fcn.00a77d3e
push esi
call fcn.00a7a3a6
add esp, 0xc
xor edi, edi
jmp 0xa8fb13
cmp byte [edi + 0x24], 0
je 0xa8fa91
cmp dword [edi + 0x20], 5
jne 0xa8fa91
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xa8fa9c
mov edi, dword [edi + 0x18]
jmp 0xa8fa9e
xor edi, edi
push esi
call fcn.00a7a3a6
pop ecx
jmp 0xa8fb13
test ecx, ecx
jg 0xa8fa73
jl 0xa8fab1
test eax, eax
jae 0xa8fa73
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a84457
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xa8fad4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa8fa73
jmp 0xa8fb0b
push ebx
call fcn.00a88cb2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xa8fa73
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0xa8fb13
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa8fb10
mov edi, dword [edi + 0x18]
jmp 0xa8fb13
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00a84457
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0xa95890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0