joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4087d8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
xor esi, esi
call fcn.004087b1
push eax
call fcn.00404751
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x40889b
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 4]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
push esi
push ebx
push dword [ebp - 4]
call fcn.00405317
add esp, 0x10
mov byte [ebx + esi], 0
mov byte [ebx + esi + 1], 0
mov byte [ebx + esi + 2], 0
cmp byte [ebx], 0xff
jne 0x40883c
cmp byte [ebx + 1], 0xfe
jne 0x40883c
lea eax, [ebx + 2]
push eax
jmp 0x408843
cmp byte [ebx + 1], 0
jne 0x40884a
push ebx
call fcn.004057aa
jmp 0x408880
lea edx, [esi + 1]
mov eax, edi
call fcn.0040574f
mov eax, edi
call fcn.0040579e
xor ecx, ecx
mov word [eax], cx
push esi
mov eax, edi
call fcn.0040579e
push eax
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, edi
call fcn.0040579e
and word [eax + esi*2], 0
mov eax, edi
call fcn.00408917
push dword [ebp - 4]
xor esi, esi
inc esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x408e1d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp + 8]
mov esi, eax
call fcn.00404751
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x408e80
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x408e78
call fcn.00408bd0
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
push eax
push ebx
mov dword [esi], eax
call fcn.00405317
mov eax, dword [esi]
mov byte [edi + eax], 0
add esp, 0x10
mov edi, esi
call fcn.00408cbb
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x4094ff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x718]
xor ebx, ebx
xor esi, esi
cmp dword [eax + 0x30], ebx
jle 0x409574
mov eax, dword [edi + 0x718]
push str._sort
mov ecx, esi
call fcn.004059f4
test eax, eax
je 0x409568
mov eax, dword [edi + 0x718]
lea ecx, [esi + 1]
cmp ecx, dword [eax + 0x30]
jge 0x409547
call fcn.00405736
jmp 0x40954c
mov eax, 0x40e414
cmp word [eax], 0x7e
mov ecx, dword [edi + 0x6e8]
jne 0x40955f
push 1
add eax, 2
jmp 0x409560
push ebx
push eax
mov eax, ecx
call fcn.0040865c
mov eax, dword [edi + 0x718]
inc esi
cmp esi, dword [eax + 0x30]
jl 0x40951c
push 0x208
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea esi, [ebp - 0x218]
call fcn.00404bb5
mov ebx, esi
call fcn.00405355
mov eax, esi
push eax
mov eax, dword [edi + 0x6e8]
add eax, 0x33c
call fcn.00408e1d
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 1
call fcn.00404cd6
test eax, eax
je 0x4095d1
mov dword [ebp - 4], 2
lea esi, [edi + 0x694]
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
lea eax, [edi + 0x698]
call fcn.0040d152
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x40a5b5
push ebx
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esi]
cmp eax, ebx
je 0x40961d
push eax
lea eax, [edi + 0x698]
call fcn.0040d17a
mov dword [esi], ebx
mov esi, dword [edi + 0x718]
push str._nosort
call fcn.004059ca
cmp eax, 0xffffffff
jne 0x409677
cmp dword [0x412638], ebx
mov edi, dword [edi + 0x6e8]
jne 0x409655
mov eax, dword [edi + 0x2bc]
mov dword [0x4125b8], eax
mov dword [0x412638], 1
mov eax, dword [edi]
mov esi, dword [edi + 0x2c]
push 0x408635
mov ecx, edi
call dword [eax + 0x60]
push eax
push esi
push ebx
mov esi, edi
call fcn.004067f6
push eax
call sub.msvcrt.dll_qsort
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409db4
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x409de6
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x40f1bc
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov eax, dword [esi + 0x6e8]
push 1
push 1
push 2
lea ecx, [ebp - 0x208]
push ecx
push eax
call fcn.00409d6c
test eax, eax
je 0x409e6a
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409e45
lea eax, [ebp - 0x208]
push eax
call fcn.00404949
pop ecx
jmp 0x409e4b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x409e5d
push dword [esi + 0x208]
mov ecx, eax
call fcn.004047ca
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop edi
pop esi
leave
ret
Function at 0x40a9cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ecx + 0x6f0], eax
jne 0x40a9f7
lea edx, [ebp - 4]
push edx
push eax
push ecx
push 0x40a5b5
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
leave
ret
Function at 0x40c62f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0040d640
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x40c68e
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00405386
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x40c6cf
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x40e414
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.0040540f
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40c6d5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40c6f3
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040c5e2
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x40c721
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c75b
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x40c757
shr ecx, 1
and word [esi + ecx*2 - 2], ax
leave
ret
and word [esi], 0
leave
ret

Function at 0x40d0b8
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40d151
push 0x40f9d8
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
test eax, eax
mov dword [esi], eax
je 0x40d151
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.WlanOpenHandle
push eax
call edi
push str.WlanCloseHandle
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.WlanGetAvailableNetworkList
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.WlanScan
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.WlanRegisterNotification
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.WlanFreeMemory
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.WlanEnumInterfaces
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.WlanGetNetworkBssList
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.WlanQueryInterface
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.WlanConnect
push dword [esi]
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
pop edi
ret
Function at 0x40d3d0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40e3c0
call fcn.0040d5e4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40d40b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d40b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d423
cmp eax, 0x20b
je 0x40d410
mov dword [ebp - 0x1c], edi
jmp 0x40d437
cmp dword [ecx + 0x84], 0xe
jbe 0x40d40b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40d431
cmp dword [ecx + 0x74], 0xe
jbe 0x40d40b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x412b20], 0xffffffff
or dword [0x412b24], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4116dc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4116d8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x412b1c], eax
call fcn.0040d5de
cmp dword [section..data], edi
jne 0x40d494
push fcn.0040d5de
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040d5cc
push 0x40e398
push 0x40e394
call sub.msvcrt.dll__initterm
mov eax, dword [0x4116d4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4116d0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x40e390
push 0x40e378
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40d4fa
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40d5b4
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40d548
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40d516
cmp ax, 0x22
jne 0x40d503
cmp word [esi], 0x22
jne 0x40d521
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40d52f
cmp ax, 0x20
jbe 0x40d51c
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40d555
movzx eax, word [ebp - 0x48]
jmp 0x40d558
cmp word [esi], 0x20
jbe 0x40d521
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40d548
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40d579
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40d5ae
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040d61d
ret
Function at 0x4029f0
Capabilities:
Check internet connectivity via wininet
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x580
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x57c], eax
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x402a2a
mov ecx, dword [esp + 0x57c]
xor ecx, esp
call fcn.005aac48
add esp, 0x580
ret
push ebx
lea ecx, [esp + 8]
push ecx
push 1
xor bl, bl
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x402a55
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x57c]
xor ecx, esp
call fcn.005aac48
add esp, 0x580
ret
push 0x3e8
lea edx, [esp + 0x19c]
push edx
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x402b0e
lea eax, [esp + 0x198]
push eax
call sub.WSOCK32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push esi
mov ecx, 4
mov edx, 0x5d8658
push edi
mov edi, edi
mov esi, dword [eax]
cmp esi, dword [edx]
jne 0x402aa8
sub ecx, 4
add edx, 4
add eax, 4
cmp ecx, 4
jae 0x402a90
test ecx, ecx
je 0x402b05
movzx esi, byte [eax]
movzx edi, byte [edx]
sub esi, edi
jne 0x402af7
sub ecx, 1
add edx, 1
add eax, 1
test ecx, ecx
je 0x402b05
movzx esi, byte [eax]
movzx edi, byte [edx]
sub esi, edi
jne 0x402af7
sub ecx, 1
add edx, 1
add eax, 1
test ecx, ecx
je 0x402b05
movzx esi, byte [eax]
movzx edi, byte [edx]
sub esi, edi
jne 0x402af7
sub ecx, 1
add edx, 1
add eax, 1
test ecx, ecx
je 0x402b05
movzx esi, byte [eax]
movzx ecx, byte [edx]
sub esi, ecx
je 0x402b05
test esi, esi
mov eax, 1
jg 0x402b07
or eax, 0xffffffff
jmp 0x402b07
xor eax, eax
test eax, eax
pop edi
setne bl
pop esi
call sub.WSOCK32.dll_WSACleanup
mov ecx, dword [esp + 0x580]
movzx eax, bl
pop ebx
xor ecx, esp
call fcn.005aac48
add esp, 0x580
ret

Function at 0x402e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402ed4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402ed0
lea ebx, [ebx]
cmp esi, eax
jae 0x402ed4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402ec0
cmp esi, eax
jb 0x402eda
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4033f0
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
movzx eax, word [ebp + 2]
cmp ax, 0x3a
push esi
lea esi, [ebp + 2]
push edi
jne 0x40341a
movzx ecx, word [esi + 2]
cmp cx, 0x5c
je 0x403415
cmp cx, 0x2f
jne 0x40341a
add esi, 4
jmp 0x40348b
movzx ecx, word [ebp]
cmp cx, 0x5c
jne 0x403429
cmp ax, cx
je 0x403434
cmp cx, 0x2f
jne 0x40348b
cmp ax, cx
jne 0x40348b
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
je 0x403458
cmp ax, 0x5c
je 0x403482
cmp ax, 0x2f
je 0x403482
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x403440
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403476
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403522
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
cmp word [esi], 0
je 0x403458
add esi, 2
movzx eax, word [esi]
test ax, ax
je 0x403458
mov edi, esi
sub edi, ebp
cmp ax, 0x5c
je 0x4034a3
cmp ax, 0x2f
jne 0x4034f2
call fcn.0057e772
push eax
mov eax, edi
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00403050
mov ebx, dword [esp + 0x14]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4034d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403506
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx eax, word [esi + 2]
add esi, 2
add edi, 2
test ax, ax
jne 0x403497
jmp 0x403458
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x405030
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5cbc38
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
mov eax, dword [0x613ad0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24c]
xor ebx, ebx
mov dword [esp + 0x244], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], ebx
call fcn.0057e772
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40509b
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push ebx
push str.DefTitlesDir
push str.general
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x6152d8
mov dword [esp + 0x254], ebx
mov dword [esp + 0x20], 1
call fcn.0059b53c
push eax
mov ecx, esi
mov dword [esp + 0x248], 1
call fcn.004024f0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x244], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40510c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], ebx
jne 0x4051eb
push 0x104
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [esp + 0x32], 0x3a
jne 0x4051c9
cmp word [esp + 0x34], 0x5c
jne 0x4051c9
lea ecx, [esp + 0x14]
call fcn.0058010f
push 0x7e96
mov dword [esp + 0x248], 2
call fcn.00443770
add esp, 4
lea edx, [esp + 0x36]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bx
jne 0x405164
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.0058019d
test eax, eax
je 0x4051b0
lea ecx, [esp + 0x14]
call fcn.0057fdef
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x18]
call eax
test eax, eax
je 0x4051b0
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00403db0
lea ecx, [esp + 0x14]
call fcn.0057fd1f
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], bl
call fcn.00580135
mov edx, dword [esi]
cmp dword [edx - 0xc], ebx
jne 0x4051eb
push esi
call fcn.004437f0
push 0x7e96
call fcn.00443770
add esp, 8
push eax
mov ecx, esi
call fcn.00404560
mov eax, esi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.005aac48
add esp, 0x23c
ret 4
Function at 0x412dd0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx + 0x9c]
sub esp, 0x58
push esi
push edi
lea esi, [ecx + 0xa4]
mov ecx, dword [ecx + 0xa0]
push eax
push ecx
push 0x5d9aa0
push esi
call fcn.00403ad0
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057df22
mov esi, dword [esi]
mov edi, eax
add esp, 0x14
mov ecx, edi
jmp 0x412e20
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
test ax, ax
jne 0x412e20
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.005abb20
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push eax
push 0x30
push eax
push eax
push eax
push edi
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x44
mov word [esp + 0x74], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x412ebc
push eax
push eax
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, dword [esp + 8]
push 0
push 0x40040
push ecx
call fcn.00590222
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.0057df27
add esp, 4
pop edi
pop esi
add esp, 0x58
ret
Function at 0x413870
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
cmp edi, 0xffff
mov dword [esp + 0x10], edi
jbe 0x4138c5
push 0
lea eax, [esp + 0x24]
push eax
push 0xffff
push esi
push ebx
call ebp
test eax, eax
je 0x4138e7
cmp dword [esp + 0x20], 0xffff
jne 0x4138e7
sub edi, 0xffff
add esi, 0xffff
cmp edi, 0xffff
ja 0x413893
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
push esi
push ebx
call ebp
test eax, eax
je 0x4138e7
cmp dword [esp + 0x20], edi
jne 0x4138e7
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x414fc0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
je 0x415057
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push eax
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
jne 0x414ff5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x10
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push ebx
push edi
call ebp
push 0
push 0
push 0
push 0
push edi
mov ecx, esi
mov dword [esp + 0x40], eax
call fcn.00413c20
mov edx, dword [esp + 0x2c]
push edx
push edi
call ebp
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
push 2
call edi
mov eax, dword [esi + 0x10]
push 0
push eax
call dword [sym.imp.GDI32.dll_CopyEnhMetaFileW]
push eax
push 0xe
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0x10
cmp dword [esp + 0x20], 0
jne 0x415081
cmp dword [esp + 0x24], 0
jne 0x415081
cmp dword [esp + 0x28], 0
jne 0x415081
cmp dword [esp + 0x2c], 0
jne 0x415081
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 4]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
test ebp, ebp
je 0x414fe9
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [esp + 0x18], eax
mov eax, dword [0x615504]
test eax, eax
je 0x4150ec
push 0
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call ebx
mov edx, dword [0x615504]
push 0
push edx
push edi
mov dword [esp + 0x1c], eax
call ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x20]
push 0xcc0020
push eax
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push eax
push ecx
push edx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [0x615504], 0
je 0x41513a
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push 0
push eax
push edx
call ebx
mov eax, dword [esp + 0x14]
push 0
push eax
push edi
call ebx
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebp
push 2
call esi
mov eax, dword [0x615504]
test eax, eax
je 0x41516f
push eax
call fcn.00413f70
add esp, 4
push eax
push 9
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0x10