joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43790e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x486bd8]
jne 0x437918
repz ret
jmp fcn.0043ea93

Function at 0x44ac00
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.0043e4a2
and dword [ebp - 4], 0
cmp dword [0x48acf4], 0
mov ebx, eax
jne 0x44acb1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44ad62
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44ad62
push eax
call fcn.0043e430
mov dword [esp], 0x4734d8
push edi
mov dword [0x48acf4], eax
call esi
push eax
call fcn.0043e430
mov dword [esp], 0x4734c4
push edi
mov dword [0x48acf8], eax
call esi
push eax
call fcn.0043e430
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48acfc], eax
call esi
push eax
call fcn.0043e430
pop ecx
mov dword [0x48ad04], eax
test eax, eax
je 0x44acb1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043e430
pop ecx
mov dword [0x48ad00], eax
mov eax, dword [0x48ad00]
cmp eax, ebx
je 0x44ad09
cmp dword [0x48ad04], ebx
je 0x44ad09
push eax
call fcn.0043e4ab
push dword [0x48ad04]
mov esi, eax
call fcn.0043e4ab
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44ad09
test edi, edi
je 0x44ad09
call esi
test eax, eax
je 0x44ad00
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44ad00
test byte [ebp - 0xc], 1
jne 0x44ad09
or dword [ebp + 0x10], 0x200000
jmp 0x44ad42
mov eax, dword [0x48acf8]
cmp eax, ebx
je 0x44ad42
push eax
call fcn.0043e4ab
pop ecx
test eax, eax
je 0x44ad42
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44ad42
mov eax, dword [0x48acfc]
cmp eax, ebx
je 0x44ad42
push eax
call fcn.0043e4ab
pop ecx
test eax, eax
je 0x44ad42
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48acf4]
call fcn.0043e4ab
pop ecx
test eax, eax
je 0x44ad62
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44ad64
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4501b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x450206
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x450204
mov eax, dword [ebp - 0xc]
push eax
call fcn.0044fe00
add esp, 4
jmp 0x450214
cmp dword [ebp + 0x14], 0
je 0x450214
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x450220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x450264
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call fcn.0044fe00
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x450270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4502c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x4502c4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0044fe00
add esp, 4
jmp 0x4502d4
cmp dword [ebp + 0x14], 0
je 0x4502d4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45cde0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 4
mov ecx, dword [ebp - 4]
push ecx
push 0x45cdb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
push 2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esp, ebp
pop ebp
ret
Function at 0x401250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
mov ebx, eax
mov eax, 0x40d4f8
cmove ebx, eax
mov eax, ebx
call fcn.004011d0
test eax, eax
je 0x401290
mov ebx, dword [ebp - 4]
mov eax, 1
leave
ret
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0x80000000
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ebx, dword [ebp - 4]
sub esp, 0x10
test eax, eax
leave
sete al
movzx eax, al
add eax, eax
ret
Function at 0x4017c0
Capabilities:
Enumerate files on windows
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x48c
movzx ecx, word [edx]
mov dword [ebp - 0x46c], eax
mov ebx, dword [eax + 0x14]
test cx, cx
je 0x401a05
lea edi, [ebp - 0x464]
mov eax, edx
mov dword [ebp - 0x470], edi
mov edx, edi
lea esi, [esi]
add eax, 2
mov word [edx], cx
add edx, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4017f8
xor eax, eax
mov dword [edx], 0x2a005c
mov word [edx + 4], ax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x47c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x470]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x468], 0
sub esp, 8
mov dword [ebp - 0x474], eax
cmp eax, 0xffffffff
je 0x4019e7
lea eax, [ebx + 1]
xor ebx, ebx
mov dword [ebp - 0x478], eax
lea esi, [esi]
nop
mov dword [esp + 8], 0x2b0
mov esi, ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [eax + 0x2a4], 0
mov ebx, eax
sub esp, 0xc
mov dword [eax + 0x2a8], 0
mov dword [eax + 0x2ac], 0
mov eax, dword [ebp - 0x468]
test eax, eax
cmove eax, ebx
mov dword [ebp - 0x468], eax
test esi, esi
je 0x4018c1
mov dword [esi], ebx
lea eax, [ebx + 0x18]
mov ecx, 0x94
lea esi, [ebp - 0x25c]
mov edi, eax
mov eax, dword [ebp - 0x46c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x47c]
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x478]
mov dword [ebx + 0x2a0], 0
mov dword [ebx + 0x29c], 0
mov dword [ebx + 0x14], eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [ebx + eax + 0x44]
mov word [ecx + eax + 2], dx
add eax, 2
test dx, dx
jne 0x401920
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp - 0x470]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x4019ab
lea eax, [ebx + 0x268]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
sub esp, 8
test eax, eax
je 0x40199f
mov dword [ebx + 0x29c], 1
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea eax, [ebp - 0x25c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x474]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401860
mov eax, dword [ebp - 0x474]
mov dword [ebx], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x46c]
mov edi, dword [ebp - 0x468]
mov dword [eax + 0x10], 1
mov dword [eax + 4], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x464]
mov dword [ebp - 0x470], eax
mov edx, eax
jmp 0x401809
Function at 0x401b10
Capabilities:
Set application hook

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
add eax, 0x164
sub esp, 0x4c
mov dword [ebp - 0x44], eax
mov eax, dword [0x416020]
mov esi, dword [ebx + 0x154]
mov dword [ebp - 0x48], 0x40d4bc
mov ecx, dword [ebx + 0x150]
mov dword [ebp - 0x2c], 0
mov edx, dword [ebx + 0x158]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x14c]
movd xmm3, ecx
sub edx, ecx
sub esi, eax
movd xmm0, eax
movd xmm2, edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
movd xmm1, esi
punpckldq xmm0, xmm3
punpckldq xmm1, xmm2
punpcklqdq xmm0, xmm1
movups xmmword [ebp - 0x3c], xmm0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401cd0
mov dword [esp + 0xc], eax
mov dword [esp], 5
call dword [sym.imp.user32.dll_SetWindowsHookExW]
mov dword [0x416bd8], ebx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [0x416bdc], eax
lea eax, [ebp - 0x48]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x220
mov eax, dword [0x416044]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [ebx], eax
test eax, eax
mov eax, dword [0x416bdc]
mov dword [esp], eax
je 0x401cb8
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov eax, dword [0x416060]
mov edx, 0x10
sub esp, 4
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1a0
cmp eax, edx
cmovl eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
mov eax, dword [0x416060]
mov edx, 0x10
sub esp, 0x10
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1a0
cmp eax, edx
cmovl eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x94]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18f
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x186
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
mov eax, dword [ebx]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
Function at 0x401f20
Capabilities:
Get disk size

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
lea eax, [ebp - 0x9a0]
push esi
push ebx
lea ebx, [ebp - 0x810]
sub esp, 0x9c0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x9a8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x9b0]
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
mov edx, eax
sub esp, 0x10
xor eax, eax
test edx, edx
jne 0x401fc0
lea esi, [esi]
nop
movzx edx, word [eax + 0x40d4e4]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401f78
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40b
mov eax, dword [0x416048]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
lea eax, [ebp - 0x910]
mov dword [esp + 0xc], 0x40
mov esi, dword [sym.imp.shlwapi.dll_StrFormatByteSizeW]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x9ac]
mov eax, dword [ebp - 0x9b0]
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
mov dword [ebp - 0x998], eax
lea eax, [ebp - 0x890]
sub esp, 0x10
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x9a4]
mov eax, dword [ebp - 0x9a8]
mov dword [esp + 4], edx
mov dword [esp], eax
call esi
lea esi, [ebp - 0x990]
sub esp, 0x10
mov dword [ebp - 0x994], eax
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4c3
mov eax, dword [0x416020]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x998]
sub esp, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x2400
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
jmp 0x401f8b
Function at 0x402090
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, 4
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x850
mov word [ebp - 0x820], cx
mov word [ebp - 0x81e], bx
lea ebx, [ebp - 0x810]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0
mov dword [esp + 4], 0x416068
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
lea eax, [ebp - 0x828]
sub esp, 8
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0xd
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0xd
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x65
mov eax, dword [0x416020]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x102
mov dword [esp + 4], 0x50001002
mov dword [esp + 0x10], eax
mov eax, dword [0x41602c]
mov dword [esp], eax
call sub.comctl32.dll_CreateToolbarEx
sub esp, 0x34
mov dword [0x416050], eax
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4b5
mov eax, dword [0x416020]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
cmp word [ebp - 0x810], 0
je 0x402307
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x4021b0
sub eax, ebx
sar eax, 1
add eax, 1
xor edx, edx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov word [ebp + eax*2 - 0x810], dx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x44d
mov eax, dword [0x416050]
mov dword [esp], eax
call esi
lea eax, [ebp - 0x828]
mov dword [ebp - 0x824], 0x9001
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x443
mov eax, dword [0x416050]
mov dword [esp], eax
call esi
add dword [ebp - 0x818], 1
sub esp, 0x10
mov dword [esp + 0xc], 0x416068
mov dword [esp + 8], 0
mov dword [esp + 4], 0x44d
mov eax, dword [0x416050]
mov dword [esp], eax
call esi
mov dword [ebp - 0x824], 0x9002
sub esp, 0x10
cmp word [0x416068], 0
je 0x4022e3
mov ebx, 2
mov edi, 0x416068
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
cmp eax, 5
je 0x402300
ja 0x4022f0
mov edx, 1
cmp eax, 2
je 0x402299
xor edx, edx
cmp eax, 4
sete dl
lea edx, [edx + edx + 2]
lea eax, [ebp - 0x828]
mov dword [ebp - 0x828], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x443
mov eax, dword [0x416050]
mov dword [esp], eax
call esi
add dword [ebp - 0x824], 1
sub esp, 0x10
add dword [ebp - 0x818], 1
add edi, 2
cmp word [edi - 2], 0
jne 0x4022d0
add ebx, 1
cmp word [edi], 0
jne 0x402270
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
xor edx, edx
cmp eax, 6
sete dl
lea edx, [edx + edx*2 + 2]
jmp 0x402299
mov edx, 3
jmp 0x402299
mov eax, 1
jmp 0x4021c0
Function at 0x4027a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x18
mov dword [ebp - 0x10], edx
mov edi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18f
mov eax, dword [eax]
mov dword [esp], eax
call edi
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0
mov eax, dword [ebx]
add esi, 1
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_ShowWindow]
mov dword [ebp - 0x14], eax
call eax
sub esp, 8
jmp 0x402821
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x14]
cmp dword [eax + 0x14], ecx
jle 0x402847
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x182
mov eax, dword [ebx]
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x199
mov eax, dword [ebx]
mov dword [esp], eax
call edi
lea edx, [eax + 1]
sub esp, 0x10
cmp edx, 1
ja 0x4027f8
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov dword [esp + 4], 5
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402870
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x18
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_ShowWindow]
mov dword [ebp - 0x14], eax
call eax
sub esp, 8
test ebx, ebx
je 0x402972
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [esi + 0x84]
and eax, 0x10
test edx, edx
jne 0x402998
test eax, eax
je 0x4028cc
test byte [ebp + 8], 1
je 0x402968
test edi, edi
je 0x4028e2
lea eax, [ebx + 0x44]
mov edx, edi
call fcn.00401680
test eax, eax
je 0x402968
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x4028ef
test byte [ebx + 0x18], 6
jne 0x402968
mov eax, dword [ebp + 8]
not eax
test al, 0xe
je 0x402920
lea eax, [ebx + 0x44]
call fcn.00401250
cmp eax, 1
je 0x402a10
cmp eax, 2
je 0x4029d0
test byte [ebp + 8], 8
je 0x402968
lea esi, [esi]
nop
cmp dword [ebp + 0xc], 0xffffffff
mov eax, 0xffffffff
je 0x402932
add dword [ebp + 0xc], 1
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x181
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov edx, dword [esi + 0x84]
sub esp, 0x10
test edx, edx
je 0x402968
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4029e0
lea esi, [esi]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4028aa
mov dword [esp + 4], 5
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [ebp - 0x14]
call eax
mov eax, dword [ebp + 0xc]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x402968
cmp word [ebx + 0x44], 0x2e
jne 0x4028cc
movzx eax, word [ebx + 0x46]
test ax, ax
je 0x402968
cmp ax, 0x2e
jne 0x4028cc
cmp word [ebx + 0x48], 0
jne 0x4028cc
jmp 0x402968
test byte [ebp + 8], 4
jne 0x402920
jmp 0x402968
mov edx, dword [ebx + 4]
test edx, edx
je 0x402968
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, esi
call fcn.00402870
mov ebx, dword [ebx]
mov dword [ebp + 0xc], eax
test ebx, ebx
jne 0x4028aa
jmp 0x402972
test byte [ebp + 8], 2
jne 0x402920
jmp 0x402968
Function at 0x402db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x620
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x618], edx
lea edx, [ebp - 0x214]
call fcn.00402bb0
lea eax, [ebp - 0x214]
mov dword [esp + 0xc], 0x4023a0
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 4], 0x68
mov dword [esp + 8], eax
mov eax, dword [0x416020]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
cmp eax, 1
je 0x402e20
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x618]
mov edi, eax
mov eax, dword [esi + 0x90]
call fcn.00402bb0
xor eax, eax
cmp word [ebp - 0x214], 0x2f
je 0x402e50
cmp word [ebp - 0x212], 0x3a
jne 0x402ee8
lea esi, [esi]
movzx edx, word [ebp + eax - 0x214]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x402e50
lea eax, [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x402e0f
test al, 0x10
je 0x402e0f
lea esi, [ebp - 0x614]
mov dword [esp + 8], 0
lea eax, [ebp - 0x414]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x618]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wsplitpath]
lea eax, [ebp - 0x414]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x214]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s_s
call dword [sym.imp.user32.dll_wsprintfW]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x90]
mov edx, ebx
mov eax, dword [eax + 8]
call fcn.00402bb0
cmp word [ebx], 0
mov eax, ebx
je 0x402f51
add eax, 2
cmp word [eax], 0
jne 0x402f00
mov edx, eax
sub edx, ebx
lea esi, [edx - 2]
sar edx, 1
movzx esi, word [ebx + esi]
cmp si, 0x5c
je 0x402f2d
cmp si, 0x2f
je 0x402f2d
mov ecx, 0x2f
add edx, 1
mov word [eax], cx
lea esi, [ebx + edx*2]
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x214]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x402f38
jmp 0x402e64
xor edx, edx
mov esi, 0xfffffffe
jmp 0x402f12
Function at 0x403ca0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x210
cmp dword [eax + 0x2a0], 1
mov edx, dword [ebp + 8]
je 0x403d80
mov edx, ebx
call fcn.004017c0
mov edx, dword [0x416868]
test edx, edx
je 0x403d64
movzx eax, word [ebx]
test ax, ax
je 0x403e0f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], ecx
nop
add ebx, 2
mov word [ecx], ax
add ecx, 2
movzx eax, word [ebx]
test ax, ax
jne 0x403cf0
mov ebx, dword [edi + 4]
mov eax, 0x5c
mov word [ecx], ax
test ebx, ebx
je 0x403d64
mov dword [ebp - 0x21c], edi
mov edi, ebx
mov ebx, ecx
jmp 0x403d26
mov edi, dword [edi]
test edi, edi
je 0x403d5e
test byte [edi + 0x18], 0x10
je 0x403d20
xor eax, eax
nop
movzx edx, word [edi + eax + 0x44]
mov word [ebx + eax + 2], dx
add eax, 2
test dx, dx
jne 0x403d30
mov edx, dword [ebp - 0x218]
mov eax, edi
call fcn.004017c0
mov eax, edi
mov edx, esi
call fcn.00401a20
mov edi, dword [edi]
test edi, edi
jne 0x403d26
mov edi, dword [ebp - 0x21c]
add esp, 0x210
mov edx, esi
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00401a20
mov dword [ebp - 0x218], edx
call fcn.00403520
mov eax, dword [0x416868]
test eax, eax
je 0x403d64
movzx ecx, word [ebx]
lea eax, [ebp - 0x214]
mov edx, dword [ebp - 0x218]
test cx, cx
je 0x403dc1
lea esi, [esi]
nop
add ebx, 2
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
test cx, cx
jne 0x403db0
mov ebx, dword [edi + 4]
mov ecx, 0x5c
mov word [eax], cx
test ebx, ebx
je 0x403d64
mov dword [ebp - 0x218], edi
mov edi, ebx
mov ebx, edx
jmp 0x403de6
mov edi, dword [edi]
test edi, edi
je 0x403e04
test byte [edi + 0x18], 0x10
je 0x403de0
mov eax, edi
mov edx, ebx
call fcn.00403520
mov eax, edi
mov edx, esi
call fcn.00401a20
mov edi, dword [edi]
test edi, edi
jne 0x403de6
mov edi, dword [ebp - 0x218]
jmp 0x403d64
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov ecx, eax
jmp 0x403d01
Function at 0x407070
Capabilities:
Set current directory

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x214
mov edx, dword [edi]
test esi, esi
je 0x407134
mov ebx, eax
xor eax, eax
movd xmm1, esi
mov dword [ebx + 0x94], esi
mov word [ebp - 0x218], ax
mov eax, dword [esi + 4]
test eax, eax
cmove eax, esi
movd xmm0, eax
punpckldq xmm0, xmm1
movq qword [ebx + 0x124], xmm0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x407140
mov eax, ebx
call fcn.00406e50
lea edx, [ebp - 0x218]
mov eax, esi
call fcn.00402bb0
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x218]
mov word [ebx + eax + 0x164], dx
add eax, 2
test dx, dx
jne 0x4070e0
mov eax, dword [ebx]
test eax, eax
je 0x407114
lea edi, [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.user32.dll_SetWindowTextW]
sub esp, 8
cmp word [ebp - 0x218], 0
je 0x407134
lea eax, [ebp - 0x218]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
sub esp, 4
test eax, eax
jne 0x407158
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp], edx
mov eax, ebx
mov edx, esi
call fcn.00406ed0
jmp 0x4070ce
call fcn.00401f20
jmp 0x407134