joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x40f350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.SOFTWAREJavaSoftJava_Runtime_Environment_]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
lea ecx, [ebp - 0x404]
mov esi, 0x100
push ecx
mov dword [ebp - 0x40c], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [ebp + eax*2 - 0x404]
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x404]
push ecx
mov dword [ebp - 0x40c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x80000002
call esi
test eax, eax
jne 0x404e95
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x40c]
push edx
push edi
push eax
push eax
mov eax, dword [str.CurrentVersion]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404ea8
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004098ea
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x408]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
lea ecx, [ebp - 0x408]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x404]
push edx
push 0x80000002
call esi
test eax, eax
jne 0x404e95
mov eax, dword [str.RuntimeLib]
mov ecx, dword [ebp - 0x408]
push eax
push ecx
push ebx
call fcn.00403f20
mov edx, dword [ebp - 0x408]
add esp, 0xc
push edx
mov esi, eax
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004098ea
mov esp, ebp
pop ebp
ret

Function at 0x404f10
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x40f350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
call ebx
cmp eax, 0xff
jle 0x404f4f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004098ea
mov esp, ebp
pop ebp
ret
mov eax, dword [str.SYSTEMCurrentControlSetServices_]
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x208]
push eax
push 0x20006
push 0
lea ecx, [ebp - 0x204]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404f3c
push esi
call ebx
mov ecx, dword [ebp - 0x208]
lea edx, [eax + eax + 2]
mov eax, dword [str.Description]
push edx
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x404fcc
cmp eax, 0xffffffff
je 0x404fcc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.004098ea
mov esp, ebp
pop ebp
ret
Function at 0x404ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40f350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [eax + eax]
push esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xff
jg 0x4050d4
mov edx, dword [str.SYSTEMCurrentControlSetServices_]
push edx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x20c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4050d4
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x20c]
push edi
lea edx, [ebp - 0x208]
push edx
push eax
mov eax, dword [str.Description]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x4050b4
cmp eax, 0xffffffff
je 0x4050b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4050d4
cmp dword [ebp - 0x208], 1
jne 0x4050d4
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004098ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004098ea
mov esp, ebp
pop ebp
ret

Function at 0x4050f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40f350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [eax + eax]
push esi
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x208], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xff
jg 0x4051d4
mov edx, dword [str.SYSTEMCurrentControlSetServices_]
push edx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x20c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4051d4
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x20c]
push edi
lea edx, [ebp - 0x208]
push edx
push eax
mov eax, dword [str.ObjectName]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x4051b4
cmp eax, 0xffffffff
je 0x4051b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4051d4
cmp dword [ebp - 0x208], 1
jne 0x4051d4
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004098ea
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004098ea
mov esp, ebp
pop ebp
ret
Function at 0x405460
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0x3000000
jne 0x4054a8
cmp dword [esi + 0x58], 0
jne 0x4054a8
cmp dword [ebp + 0xc], 0
je 0x4054ad
mov ecx, dword [esi + 0x5c]
lea eax, [esi + 0xc6c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4054ad
push eax
push 0xb0
push str......_src_service.c
push 1
push 3
push eax
call fcn.00403610
add esp, 0x18
xor eax, eax
pop esi
pop ebp
ret
lea eax, [esi + 0x64]
pop esi
pop ebp
ret

Function at 0x4054c0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0x3000000
jne 0x405520
cmp dword [esi + 0x58], 0
jne 0x405520
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x405520
cmp eax, 0xffffffff
je 0x405520
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x405525
push eax
push 0xd3
push str......_src_service.c
push 1
push 3
push eax
call fcn.00403610
add esp, 0x18
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40553c
push eax
add esi, 0x64
push esi
call fcn.00404f10
add esp, 8
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x405ae0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x41152c]
test eax, eax
jne 0x405b7e
push 0x411418
mov dword [0x411418], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x411428]
cmp eax, 2
jne 0x405b53
mov eax, dword [0x41141c]
cmp eax, 4
jae 0x405b21
mov eax, 1
mov dword [0x41152c], eax
ret
jne 0x405b2e
mov eax, 0x28
mov dword [0x41152c], eax
ret
cmp eax, 5
jne 0x405b48
mov eax, dword [0x411420]
neg eax
sbb eax, eax
and eax, 0xa
add eax, 0x32
mov dword [0x41152c], eax
ret
mov eax, 0x3c
mov dword [0x41152c], eax
ret
cmp eax, 1
jne 0x405b16
mov eax, dword [0x411420]
cmp eax, 0xa
jae 0x405b6d
mov eax, 0xa
mov dword [0x41152c], eax
ret
cmp eax, 0x5a
sbb eax, eax
and eax, 0xfffffffc
add eax, 0x12
mov dword [0x41152c], eax
ret
cmp eax, 1
jge 0x405b85
xor eax, eax
ret

Function at 0x405b90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x405bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x405bbc
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
push edi
lea eax, [esi + esi + 2]
push eax
push ecx
call fcn.00402da0
mov edi, eax
add esp, 8
test edi, edi
je 0x405bfc
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x405c03
push eax
push 0x54
push str......_srcutils.c
push 1
push 3
push eax
call fcn.00403610
push edi
call fcn.00402e40
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x4093f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x409407
pop dword [ebp - 0x44]
mov eax, 0xaaec36a0
add eax, 0x55545d67
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xb839cb4a
add dword [ebp - 0x54], 0x96187a01
mov dword [ebp - 0x50], 0xe4846272
sub dword [ebp - 0x50], 0xb251162d
mov dword [ebp - 0x4c], 0xd563554f
sub dword [ebp - 0x4c], 0x89171121
mov dword [ebp - 0x48], 0x6e8edd2e
add dword [ebp - 0x48], 0x917122d2
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x4ec987ae
sub dword [ebp - 0x54], 0xda571e58
mov dword [ebp - 0x50], 0x51c1f971
sub dword [ebp - 0x50], 0x105597fc
mov dword [ebp - 0x4c], 0x95d43e9f
add dword [ebp - 0x4c], 0xcd9b2dcd
mov dword [ebp - 0x48], 0x3ab12b31
sub dword [ebp - 0x48], 0x3ab12b31
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3bd2a
push 0
call eax
mov ecx, 0xf6cbdcdd
add ecx, 0x9347488
mov esi, eax
mov edx, 0xe6b7cbb3
add edx, 0x1989e44d
add edx, dword [ebp - 0x44]
mov ebx, 0x72372467
sub ebx, 0x565787b1
xor dword [ebp - 0x14], 0x438b8462
mov edi, dword [edx]
xor dword [ebp - 0x14], 0x1a3b4e33
xor edi, ebx
sub dword [ebp - 0x3c], esi
mov dword [esi], edi
add dword [ebp - 0x40], edi
add esi, 0xca17f3da
add esi, 0x35e80c2a
add edx, 0x4e7d741e
add edx, 0xb1828be6
loop 0x40951f
add eax, 0x13867
mov ebx, eax
add eax, 0x19c018cc
sub eax, 0x19c018c7
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x401174
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff830
push ebx
push edi
push esi
lea eax, [ebp - 0x3e8]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_GetCurrentDirectoryA
push str.Pic_d.jpg
lea eax, [ebp - 0x3e8]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp + 8]
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x7d0]
push eax
call sub.user32.dll_wsprintfA
add esp, 0xc
push dword [ebp + 0xc]
call sub.user32.dll_GetDC
mov ebx, eax
push ebx
call sub.gdi32.dll_CreateCompatibleDC
mov edi, eax
lea eax, [ebp - 0x7d0]
push eax
call fcn.00404be0
mov esi, eax
push esi
push edi
call sub.gdi32.dll_SelectObject
push 0xcc0020
push 0
push 0
push edi
push 0x40
push 0x3a
push 0xec
push 0xd
push ebx
call sub.gdi32.dll_BitBlt
push esi
call sub.gdi32.dll_DeleteObject
push edi
call sub.gdi32.dll_DeleteDC
push ebx
push dword [ebp + 0xc]
call sub.user32.dll_ReleaseDC
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x404c90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404cbc
xor eax, eax
leave
ret 0xc
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
add dword [ebp - 8], 0x20
push dword [ebp - 8]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 1
leave
ret 0xc

Function at 0x404d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x404d3b
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x403b80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409034], 0
je 0x403be1
cmp word [0x409310], 0xd7b2
jne 0x403ba9
cmp dword [0x409318], 0
jbe 0x403ba9
mov eax, 0x40930c
call dword [0x409328]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403c0c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408018], 0
jne 0x403bfd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404720
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x4070c4
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov eax, dword [0x4087f4]
mov byte [eax], 1
mov eax, 0x404de8
call fcn.00404ccc
xor eax, eax
push ebp
push 0x4072da
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
test ebx, ebx
jne 0x40711a
mov eax, dword [0x4087f0]
mov edx, 0x4072f4
call fcn.0040447c
call fcn.00403464
call fcn.00402e14
mov eax, 1
call fcn.00403d1c
xor edx, edx
jmp 0x407146
cmp ax, 0x22
jne 0x407139
test dl, dl
je 0x407134
cmp word [ebx + 2], 0x22
jne 0x407134
add ebx, 2
jmp 0x407143
xor dl, 1
jmp 0x407143
cmp word [ebx], 0x20
ja 0x407143
test dl, dl
je 0x40714e
add ebx, 2
movzx eax, word [ebx]
test ax, ax
jne 0x40711e
cmp word [ebx], 0
je 0x407167
jmp 0x407159
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x407167
cmp ax, 0x20
jbe 0x407156
cmp word [ebx], 0
je 0x4072a8
mov eax, 0x40bbd4
mov edx, ebx
call fcn.00404334
mov eax, 0x40bbd8
xor ecx, ecx
mov edx, 0xc
call fcn.004032b4
mov dword [0x40bbd8], 0xc
mov dword [0x40bbe0], 0xffffffff
mov eax, 0x40bb90
xor ecx, ecx
mov edx, 0x44
call fcn.004032b4
push 0x40bb80
push 0x40bb90
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0x40bbd8
mov eax, dword [0x40bbd4]
call fcn.00404254
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x407213
mov eax, dword [0x40bb84]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0xffffffffffffffff
mov eax, dword [0x40bb80]
push eax
call sub.user32.dll_WaitForInputIdle
mov eax, dword [0x40bb80]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4087ec]
xor edx, edx
mov dword [eax], edx
jmp 0x4072cc
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, 0x40bbd4
mov edx, 0x400
call fcn.004043e4
mov eax, dword [0x40bbd4]
test eax, eax
je 0x40724d
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x40724d
mov eax, 0x40bbd4
mov edx, dword [0x40bbd4]
call fcn.00403e48
mov esi, eax
test esi, esi
je 0x407258
sub esi, 4
mov esi, dword [esi]
push 0
push esi
mov eax, dword [0x40bbd4]
call fcn.00404254
push eax
push 0
push ebx
push 0
push 0x3200
call sub.kernel32.dll_FormatMessageW
mov edx, eax
mov eax, 0x40bbd4
call fcn.004043e4
mov eax, dword [0x4087f0]
mov edx, dword [0x40bbd4]
call fcn.0040447c
call fcn.00403464
call fcn.00402e14
mov eax, dword [0x4087ec]
mov dword [eax], 1
jmp 0x4072cc
mov eax, dword [0x4087f0]
mov edx, 0x40733c
call fcn.0040447c
call fcn.00403464
call fcn.00402e14
mov eax, dword [0x4087ec]
mov dword [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072e1
ret
Function at 0x40a2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40a2fc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x40a324
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40a32a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x40a392
jg 0x40a341
test esi, esi
je 0x40a392
test ecx, ecx
jl 0x40a38d
jg 0x40a34b
test eax, eax
je 0x40a38d
cmp edi, ecx
jg 0x40a35f
jl 0x40a355
cmp esi, eax
jae 0x40a35f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x40a395
mov ecx, dword [ebp + 8]
jmp 0x40a39f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40a3b9
jg 0x40a39f
test esi, esi
je 0x40a3b9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40a3b9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a3d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40a3fc
jl 0x40a3f0
test ecx, ecx
jne 0x40a3fc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40a415
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x40a45d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x40a463
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x40a463
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x40a4d6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40a48c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x40a4c4
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40a4d6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40a4a0
test edi, edi
je 0x40a4d6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc