joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afac5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004ad684
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x4afae6
mov eax, dword [eax + 4]
jmp 0x4afae9
add eax, 4
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
lea ecx, [ebp - 0x1c]
setne bl
call fcn.004012e0
mov al, bl
pop ebx
leave
ret

Function at 0x4afb81
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004ad684
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x4afba2
mov eax, dword [eax + 4]
jmp 0x4afba5
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.004012e0
cmp ebx, 0xffffffff
jne 0x4afbbf
xor eax, eax
jmp 0x4afbcc
push 0
pop eax
test bl, 0x10
sete al
lea eax, [eax + eax - 1]
pop ebx
leave
ret

Function at 0x4afbcf
Capabilities:
Get disk information

Disassembly:
push 0xb4
mov eax, 0x516e14
call fcn.004e5715
lea eax, [ebp - 0xa4]
mov ebx, ecx
push eax
call fcn.004a82fa
and dword [ebp - 4], 0
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xa4]
call fcn.004af9b5
cmp dword [eax + 0x18], 8
jb 0x4afc0d
mov eax, dword [eax + 4]
jmp 0x4afc10
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
lea ecx, [ebp - 0xc0]
sete bl
call fcn.004012e0
lea ecx, [ebp - 0xa4]
call fcn.004ad5ed
mov al, bl
call fcn.004e5798
ret

Function at 0x4afcb8
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x5174c8
call fcn.004e5715
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.004ad684
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x4afcdc
mov eax, dword [eax + 4]
jmp 0x4afcdf
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.004012e0
test esi, esi
je 0x4afcf8
mov al, 1
jmp 0x4afd0b
cmp byte [ebp + 8], 0
je 0x4afd09
push edi
push 0xda
call fcn.004a80b5
xor al, al
call fcn.004e5798
ret

Function at 0x4afd11
Capabilities:
Move file

Disassembly:
push 0x3c
mov eax, 0x516db3
call fcn.004e56ac
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.004ad684
mov esi, eax
and dword [ebp - 4], 0
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.004ad684
add esp, 0x10
cmp dword [esi + 0x18], 8
jb 0x4afd4b
mov esi, dword [esi + 4]
jmp 0x4afd4e
add esi, 4
cmp dword [eax + 0x18], 8
jb 0x4afd59
mov eax, dword [eax + 4]
jmp 0x4afd5c
add eax, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x28]
inc bl
call fcn.004012e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004012e0
test bl, bl
je 0x4afd91
push dword [ebp + 8]
push 0xdb
call fcn.004a80b5
mov al, 1
call fcn.004e5784
ret
Function at 0x4afd99
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004ad684
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x4afdba
mov eax, dword [eax + 4]
jmp 0x4afdbd
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [ebp - 0x1c]
setne bl
call fcn.004012e0
mov al, bl
pop ebx
leave
ret
Function at 0x4b2108
Capabilities:
Encode data using xor

Disassembly:
push 0x10
mov eax, 0x517ad3
call fcn.004e56ac
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
call fcn.004b226f
xor ebx, ebx
push ebx
push 0xc
pop edi
lea esi, [ebp - 0x1c]
call fcn.004b119d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x18]
push ebx
push edi
push 0xc
pop ebx
call fcn.004ae2db
xor esi, esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0xc]
and eax, 0xfffd
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, byte [edi + esi]
mov dl, bl
call fcn.004b229f
inc esi
cmp esi, 0xc
jl 0x4b2142
cmp byte [ebp + 0x14], 0
jne 0x4b2198
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 0xc]
shr cl, 3
test cl, 1
je 0x4b2186
xor ecx, ecx
cmp byte [eax + 0x11], bl
jmp 0x4b218b
xor ecx, ecx
cmp byte [eax + 0x17], bl
sete cl
mov eax, ecx
test eax, eax
jne 0x4b2198
xor bl, bl
jmp 0x4b219a
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.004b11bb
mov al, bl
call fcn.004e5784
ret 0x10

Function at 0x4b229f
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx + 4]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x5243b0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 4], edx
movzx edx, dl
add edx, dword [ecx + 8]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 8], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x5243b0]
pop esi
mov dword [ecx + 0xc], eax
ret
Function at 0x4b94c0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x513fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x24]
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x40]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
cmp ebp, esi
je 0x4b9607
push ebp
push 2
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x40]
push edi
push ebp
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x5227e0
push edi
call sub.VERSION.dll_VerQueryValueW
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
mov di, word [eax + 0x12]
mov bp, word [eax + 0x10]
mov bx, word [eax + 0x16]
mov ax, word [eax + 0x14]
mov word [esp + 0x2e], ax
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4b9587
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
movzx ecx, word [esp + 0x2e]
push ecx
movzx edx, bx
push edx
movzx eax, bp
push eax
movzx ecx, di
push ecx
lea edx, [esp + 0x28]
push 0x534888
push edx
mov byte [esp + 0x50], 1
call fcn.004039c0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.00403680
mov edi, dword [esp + 0x24]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x38], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b9613
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x4b9613
push 0x522764
mov ecx, edi
call fcn.00402480
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b963b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x4bc090
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x513f58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push str.Software_
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.00402480
push 6
push str.Youxun
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.004030e0
mov eax, dword [esp + 0x38]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x4bc111
push 1
push 0x5227e0
lea ecx, [esp + 0x1c]
call fcn.004030e0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004030e0
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
push edx
push SysReAllocStringLen
xor esi, esi
mov dword [esp + 0x2c], ebx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x4bc144
mov esi, dword [esp + 0x18]
jmp 0x4bc1ac
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edx
push SysReAllocStringLen
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4bc17c
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4bc17c
push esi
call ebp
xor esi, esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push ebx
push ecx
push SysReAllocStringLen
mov dword [esp + 0x34], ebx
call edi
cmp eax, ebx
jne 0x4bc1ca
xor eax, eax
cmp esi, ebx
je 0x4bc1a4
push esi
call ebp
mov esi, dword [esp + 0x20]
cmp eax, ebx
jne 0x4bc1ca
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push 4
lea eax, [esp + 0x44]
push eax
push 4
push ebx
push ecx
push esi
mov dword [esp + 0x58], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x4bc1d1
push esi
call ebp
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bc1f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc21a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc242
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x4be970
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x288
mov dword [esp + 8], 0x288
call fcn.004c0124
mov esi, eax
add esp, 4
test esi, esi
je 0x4bea44
push 0x288
push 0
push esi
call fcn.004e57c0
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4be9bf
push esi
call fcn.004c0153
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4bea3b
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x1a0], ecx
jne 0x4be9e5
cmp dword [eax + 0x190], ecx
je 0x4be9f9
mov eax, dword [eax]
test eax, eax
jne 0x4be9d5
push esi
call fcn.004c0153
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push str._02X__02X__02X__02X__02X__02X
push edx
call fcn.004039c0
add esp, 0x20
push esi
call fcn.004c0153
add esp, 4
pop esi
pop ecx
ret 4

Function at 0x4bea50
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push esi
push 0x170
mov dword [esp + 8], 0x170
call fcn.004c0124
mov esi, eax
add esp, 4
test esi, esi
je 0x4beb14
push 0x170
push 0
push esi
call fcn.004e57c0
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x4beaa5
push esi
call fcn.004c0153
add esp, 4
pop esi
pop ecx
ret 4
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x4beb0b
mov eax, esi
mov ecx, 6
cmp dword [eax + 0x34], ecx
je 0x4beadb
mov eax, dword [eax + 8]
test eax, eax
jne 0x4beac1
push esi
call fcn.004c0153
add esp, 4
pop esi
pop ecx
ret 4
movzx edx, byte [eax + 0x31]
movzx ecx, byte [eax + 0x30]
push edx
movzx edx, byte [eax + 0x2f]
push ecx
movzx ecx, byte [eax + 0x2e]
push edx
movzx edx, byte [eax + 0x2d]
movzx eax, byte [eax + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str._02X__02X__02X__02X__02X__02X
push ecx
call fcn.004039c0
add esp, 0x20
push esi
call fcn.004c0153
add esp, 4
pop esi
pop ecx
ret 4
Function at 0x4c1d4a
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4c1d75
call fcn.004c91ad
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4c1d98
push eax
push dword [esi + 4]
call fcn.004c1cd0
push esi
push eax
mov ecx, 0x54d220
call fcn.004c1957
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4c27e3
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x510491
call fcn.004e56ac
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.004c27a3
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402450
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4c284a
push eax
push dword [esi + 8]
call fcn.004c1cd0
push dword [esi + 0xc]
mov ecx, 0x54d220
push eax
call fcn.004c1957
mov eax, esi
call fcn.004e5784
ret 0x1c

Function at 0x4c6d4e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4c6d96
call fcn.004c91ad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c6d96
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c6dd9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4c6dc2
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4c6dc2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4c6dd6
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4cf668
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4cf6af
call fcn.004c91ad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4cf6af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4cf6cb
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004cf1e0
mov esi, eax
test edi, edi
je 0x4cf6c9
test ebx, ebx
je 0x4cf6c9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4cfe06
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5109c1
call fcn.004e56ac
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4cfe2b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4cfe71
lea ecx, [ebp - 0x10]
call fcn.00402450
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041cc30
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004020f0
mov eax, esi
call fcn.004e5784
ret 8
Function at 0x4df2ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x549950]
jne 0x4df2b6
repz ret
jmp fcn.004e956e

Function at 0x4df774
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4df7a5
call fcn.004e2741
mov dword [eax], esi
call fcn.004e272e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004df5de
add esp, 0x14
push 0x16
pop eax
jmp 0x4df7fa
test dword [ebp + 0xc], 0xfffffff9
jne 0x4df781
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4df7d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004e2754
pop ecx
call fcn.004e272e
mov eax, dword [eax]
jmp 0x4df7fa
test al, 0x10
jne 0x4df7f8
test al, 1
je 0x4df7f8
test byte [ebp + 0xc], 2
je 0x4df7f8
call fcn.004e2741
mov dword [eax], 5
call fcn.004e272e
mov dword [eax], 0xd
jmp 0x4df7c9
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4f57ed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004e8ed2
and dword [ebp - 4], 0
cmp dword [0x54fcbc], 0
mov ebx, eax
jne 0x4f589e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4f594f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4f594f
push eax
call fcn.004e8e60
mov dword [esp], 0x51fd78
push edi
mov dword [0x54fcbc], eax
call esi
push eax
call fcn.004e8e60
mov dword [esp], 0x51fd64
push edi
mov dword [0x54fcc0], eax
call esi
push eax
call fcn.004e8e60
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x54fcc4], eax
call esi
push eax
call fcn.004e8e60
pop ecx
mov dword [0x54fccc], eax
test eax, eax
je 0x4f589e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004e8e60
pop ecx
mov dword [0x54fcc8], eax
mov eax, dword [0x54fcc8]
cmp eax, ebx
je 0x4f58f6
cmp dword [0x54fccc], ebx
je 0x4f58f6
push eax
call fcn.004e8edb
push dword [0x54fccc]
mov esi, eax
call fcn.004e8edb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4f58f6
test edi, edi
je 0x4f58f6
call esi
test eax, eax
je 0x4f58ed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4f58ed
test byte [ebp - 0xc], 1
jne 0x4f58f6
or dword [ebp + 0x10], 0x200000
jmp 0x4f592f
mov eax, dword [0x54fcc0]
cmp eax, ebx
je 0x4f592f
push eax
call fcn.004e8edb
pop ecx
test eax, eax
je 0x4f592f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4f592f
mov eax, dword [0x54fcc4]
cmp eax, ebx
je 0x4f592f
push eax
call fcn.004e8edb
pop ecx
test eax, eax
je 0x4f592f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54fcbc]
call fcn.004e8edb
pop ecx
test eax, eax
je 0x4f594f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4f5951
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d10
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43b23b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push esi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x10]
call fcn.0040c8d0
mov edx, dword [esp + 0xe8]
lea eax, [esp + 0xc]
mov dword [esp + 0xe0], 0
mov dword [0x44d3c0], eax
test edx, edx
jne 0x406d68
xor eax, eax
jmp 0x406d79
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406d70
sub eax, esi
push eax
push edx
mov ecx, 0x44d3b4
call fcn.00401960
mov edx, dword [esp + 0xec]
test edx, edx
jne 0x406d94
xor eax, eax
jmp 0x406da9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406da0
sub eax, esi
push eax
push edx
mov ecx, 0x44d3b8
call fcn.00401960
mov edx, dword [esp + 0xf0]
test edx, edx
jne 0x406dc4
xor eax, eax
jmp 0x406dd9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406dd0
sub eax, esi
push eax
push edx
mov ecx, 0x44d3bc
call fcn.00401960
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x406450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0xc]
call fcn.00411584
lea ecx, [esp + 0xc]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401170
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xdc
ret

Function at 0x406e40
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43b23b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push esi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x10]
call fcn.0040c8d0
mov edx, dword [esp + 0xe8]
lea eax, [esp + 0xc]
mov dword [esp + 0xe0], 0
mov dword [0x44d3c0], eax
test edx, edx
jne 0x406e98
xor eax, eax
jmp 0x406ea9
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ea0
sub eax, esi
push eax
push edx
mov ecx, 0x44d3b4
call fcn.00401960
mov edx, dword [esp + 0xec]
test edx, edx
jne 0x406ec4
xor eax, eax
jmp 0x406ed9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ed0
sub eax, esi
push eax
push edx
mov ecx, 0x44d3b8
call fcn.00401960
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x406500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0xc]
call fcn.00411584
lea ecx, [esp + 0xc]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401170
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xdc
ret