joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x298], eax
cmp byte [0x4549b0], 1
mov eax, dword [ebp + 0x2ac]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
mov edi, str..QHUnPackDlg.cpp
mov esi, str.c:logsqhunpack.log
jne 0x40412e
lea eax, [ebp + 0x90]
push str.ExtractBinResource:_Entry
push eax
call fcn.00426df4
lea eax, [ebp + 0x90]
push eax
push 0x6e0
push edi
push esi
call fcn.004014fc
add esp, 0x18
movzx eax, word [ebp + 0x2a8]
push 0x440d04
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x78], eax
cmp eax, ebx
jne 0x404189
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [0x4549b0], 1
jne 0x404182
push eax
lea eax, [ebp + 0x90]
push str.ExtractBinResource:_FindResource_failed._Error_:___u_
push eax
call fcn.00426df4
lea eax, [ebp + 0x90]
push eax
push 0x6ee
push edi
push esi
call fcn.004014fc
add esp, 0x1c
xor al, al
jmp 0x4042fa
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x4041c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [0x4549b0], 1
jne 0x404182
push eax
lea eax, [ebp + 0x90]
push str.ExtractBinResource:_LoadResource_failed._Error_:___u_
push eax
call fcn.00426df4
lea eax, [ebp + 0x90]
push eax
push 0x6fb
jmp 0x404178
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x7c], eax
cmp eax, ebx
jne 0x404204
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [0x4549b0], 1
jne 0x404182
push eax
lea eax, [ebp + 0x90]
push str.ExtractBinResource:_LoadResource_failed._Error_:___u_
push eax
call fcn.00426df4
lea eax, [ebp + 0x90]
push eax
push 0x708
jmp 0x404178
push dword [ebp - 0x78]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x78], eax
cmp eax, ebx
jne 0x40424b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [0x4549b0], 1
jne 0x404182
push eax
lea eax, [ebp + 0x90]
push str.ExtractBinResource:_SizeofResource_failed._Error_:___u_
push eax
call fcn.00426df4
lea eax, [ebp + 0x90]
push eax
push 0x716
jmp 0x404178
push 0x104
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call fcn.004025e1
push 0x180
lea eax, [ebp - 0x74]
push 0x8102
push eax
call fcn.004016d1
mov ebx, eax
add esp, 0x18
cmp ebx, 0xffffffff
jne 0x4042b2
cmp byte [0x4549b0], 1
jne 0x404182
lea eax, [ebp + 0x90]
push str.ExtractBinResource:_Unpack_open_failed.
push eax
call fcn.00426df4
lea eax, [ebp + 0x90]
push eax
push 0x725
push edi
push esi
call fcn.004014fc
add esp, 0x18
jmp 0x404182
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push ebx
call fcn.0042626a
add esp, 0xc
cmp byte [0x4549b0], 1
jne 0x4042f1
lea eax, [ebp + 0x90]
push str.ExtractBinResource:_Exit
push eax
call fcn.00426df4
lea eax, [ebp + 0x90]
push eax
push 0x73f
push edi
push esi
call fcn.004014fc
add esp, 0x18
push ebx
call fcn.00425a6a
pop ecx
mov al, 1
mov ecx, dword [ebp + 0x298]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042529a
add ebp, 0x29c
leave
ret 0xc
Function at 0x4044a0
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3f0]
sub esp, 0x470
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x3ec], eax
push ebx
mov ebx, dword [ebp + 0x3f8]
push esi
push edi
lea eax, [ebp + 0x1e4]
push 0x104
xor esi, esi
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
call fcn.00402220
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0042541c
lea eax, [ebp - 0x24]
push str.instinp.ini
push eax
call fcn.004253ee
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x1e4]
push eax
push str.call_path
push str.INSTALL_INPUT
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00425220
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
call fcn.00425220
push 0x208
lea eax, [ebp + 0x1e4]
push esi
push eax
call fcn.00425220
lea eax, [ebp + 0x1e4]
push ebx
push eax
call fcn.0042541c
lea eax, [ebp + 0x1e4]
push 0x440f68
push eax
call fcn.004253ee
mov eax, dword [ebp - 0x2c]
add esp, 0x34
cmp dword [eax + 0x78], 1
mov edi, 0x440f64
lea eax, [ebp + 0x1e4]
jne 0x404611
push str.__SILENT
push eax
call fcn.004253ee
cmp dword [0x456fd4], 3
pop ecx
pop ecx
jl 0x4045b5
lea eax, [ebp + 0x1e4]
push edi
push eax
call fcn.004253ee
mov eax, dword [0x456fdc]
push dword [eax + 8]
lea eax, [ebp + 0x1e4]
push eax
call fcn.004253ee
add esp, 0x10
cmp dword [0x456fd4], 4
jl 0x4045e2
lea eax, [ebp + 0x1e4]
push edi
push eax
call fcn.004253ee
mov eax, dword [0x456fdc]
push dword [eax + 0xc]
lea eax, [ebp + 0x1e4]
push eax
call fcn.004253ee
add esp, 0x10
cmp dword [0x456fd4], 5
jl 0x40461e
lea eax, [ebp + 0x1e4]
push edi
push eax
call fcn.004253ee
mov eax, dword [0x456fdc]
push dword [eax + 0x10]
lea eax, [ebp + 0x1e4]
push eax
call fcn.004253ee
add esp, 0x10
jmp 0x40461e
push str.__STANDARD
push eax
call fcn.004253ee
pop ecx
pop ecx
cmp word [0x454a60], si
je 0x404648
lea eax, [ebp + 0x1e4]
push edi
push eax
call fcn.004253ee
lea eax, [ebp + 0x1e4]
push 0x454a60
push eax
call fcn.004253ee
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x1e4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40466c
xor eax, eax
jmp 0x4046ca
mov esi, dword [ebp - 0x2c]
mov ecx, esi
call fcn.00403c0f
cmp dword [esi + 0x78], 1
jne 0x4046af
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x40469e
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
jmp 0x404668
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40468c
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov eax, dword [ebp - 0x28]
mov dword [0x4549b4], eax
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x3ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042529a
add ebp, 0x3f0
leave
ret 4
Function at 0x405339
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x1134]
mov eax, 0x11b4
call fcn.004252d0
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x1130], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00405a13
cmp byte [0x4549b0], 1
mov dword [0x45508c], esi
jne 0x405397
lea eax, [ebp - 0x78]
push str.CQHUnPackDlg::OnInitDialog:_Entry
push eax
call fcn.00426df4
lea eax, [ebp - 0x78]
push eax
push 0x7f
push str..QHUnPackDlg.cpp
push str.c:logsqhunpack.log
call fcn.004014fc
add esp, 0x18
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [esi + 0x53c]
push dword [edi]
push 1
push 0x80
push dword [esi + 0x20]
call ebx
push dword [edi]
xor edi, edi
push edi
push 0x80
push dword [esi + 0x20]
call ebx
mov ebx, 0x104
push ebx
lea eax, [ebp + 0xf28]
push eax
push 0x86
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
call edi
lea eax, [ebp + 0xf28]
push eax
mov ecx, esi
call fcn.0040d167
push ebx
lea eax, [ebp + 0xf28]
push eax
push 0x87
push 0
call edi
lea eax, [ebp + 0xf28]
push eax
lea ecx, [esi + 0x494]
call fcn.0040d167
push ebx
lea eax, [ebp + 0xf28]
push eax
push 0x99
xor ebx, ebx
push ebx
call edi
lea eax, [ebp + 0xf28]
push eax
push 2
mov ecx, esi
call fcn.0040d07d
mov ecx, eax
call fcn.0040d167
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x455084], eax
cmp eax, ebx
jne 0x40545e
push ebx
mov ecx, esi
call fcn.0040569a
xor eax, eax
jmp 0x4054e0
lea eax, [ebp - 0x80]
push eax
push ebx
push esi
push 0x404a75
push ebx
push ebx
call fcn.004291b3
add esp, 0x18
mov dword [0x455078], eax
cmp eax, ebx
jne 0x40548a
push dword [0x455084]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40544f
lea eax, [ebp - 0x7c]
push eax
push ebx
push esi
push 0x404bd3
push ebx
push ebx
call fcn.004291b3
add esp, 0x18
mov dword [0x455080], eax
cmp eax, ebx
jne 0x4054dd
push dword [0x455084]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [0x455078]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x455078]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [0x455084]
call edi
jmp 0x40544f
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1130]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042529a
add ebp, 0x1134
leave
ret

Function at 0x405f99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x405fbd
cmp dword [edi + 0x54], 0
jne 0x405fbd
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00406ec9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00405f5a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40c819
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 0x40c860
call fcn.00406ec9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40c860
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40c87c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040c391
mov esi, eax
test edi, edi
je 0x40c87a
test ebx, ebx
je 0x40c87a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d7c8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43bbb8
call fcn.00427b98
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40d7ed
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40d833
lea ecx, [ebp - 0x10]
call fcn.00405b80
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.0040d00b
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.00405575
mov eax, esi
call fcn.00427c70
ret 8

Function at 0x40ff8a
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 0x40ffd2
call fcn.00406ec9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ffd2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x410015
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 0x40fffe
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 0x40fffe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x410012
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 0x4238c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43cf61
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x452440]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.004224b0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov esi, dword [esp + 0x28]
neg eax
sbb eax, eax
inc eax
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00424d80
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x18], 1
mov byte [esp + 0x30], 0
call fcn.0040554e
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x423a70
Capabilities:
Get file size

Disassembly:
push ecx
mov ecx, dword [ecx]
push esi
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423a98
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x423a98
xor al, al
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.0042b750
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
pop ecx
ret 4

Function at 0x423b80
Capabilities:
Read file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp]
test eax, eax
mov dword [edx], ecx
setne al
pop ecx
ret 0xc
mov eax, dword [esp + 8]
mov edx, dword [0x452434]
cmp eax, edx
jbe 0x423b90
mov eax, edx
mov dword [esp + 8], eax
jmp 0x423b40

Function at 0x423bf0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [0x452434]
cmp eax, edx
jbe 0x423c00
mov eax, edx
mov ecx, dword [ecx]
push 0
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
mov dword [edx], ecx
setne al
ret 0xc

Function at 0x423ee0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x423f20
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call fcn.00423ee0
add esp, 8
test al, al
jne 0x423f36
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
pop esi
ret
Function at 0x423ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43cf61
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x452440]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.004224b0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00424d80
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x18], 1
mov byte [esp + 0x30], 0
call fcn.0040554e
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret

Function at 0x424080
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
cmp byte [0x456fbc], 0
jne 0x4240bf
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00423ff0
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push edx
push eax
call fcn.00423ee0
mov bl, al
mov eax, dword [esp + 0x14]
push eax
call fcn.0040554e
add esp, 0x14
mov al, bl
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
add esp, 0xc
ret

Function at 0x4240e0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
cmp byte [0x456fbc], 0
jne 0x42411a
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00423ff0
mov eax, dword [eax]
push eax
call fcn.00423f00
mov edx, dword [esp + 0x10]
push edx
mov bl, al
call fcn.0040554e
add esp, 0x10
mov al, bl
pop ebx
add esp, 0xc
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
add esp, 0xc
ret

Function at 0x424130
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
cmp byte [0x456fbc], 0
jne 0x42416a
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00423ff0
mov eax, dword [eax]
push eax
call fcn.00423f20
mov edx, dword [esp + 0x10]
push edx
mov bl, al
call fcn.0040554e
add esp, 0x10
mov al, bl
pop ebx
add esp, 0xc
ret
push esi
mov esi, dword [esp + 0x14]
push 0
push esi
call fcn.00424080
add esp, 8
test al, al
jne 0x424183
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
add esp, 0xc
ret
Function at 0x4248f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43d010
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push edi
mov eax, dword [0x452440]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 4]
mov dword [esi + 8], ecx
mov edx, dword [edi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x14]
push 1
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x18]
push 0
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x1c]
push 0
push ecx
call fcn.0042b750
mov ecx, dword [edi + 0x20]
xor ebp, ebp
add eax, ecx
adc edx, ebp
add edi, 0x2c
push edi
lea ecx, [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x24], 0
call fcn.00423fa0
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00424860
add esp, 0xc
push eax
lea ecx, [esi + 0x28]
mov byte [esp + 0x30], 1
call fcn.004225b0
mov ecx, dword [esp + 0x18]
push ecx
mov byte [esp + 0x30], 0
call fcn.0040554e
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x34], 0xffffffff
call fcn.0040554e
add esp, 8
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x24
ret

Function at 0x42529a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452440]
jne 0x4252a4
repz ret
jmp fcn.0042e619

Function at 0x42543b
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 0x42546c
call fcn.00426dbe
mov dword [eax], esi
call fcn.00426dab
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042c152
add esp, 0x14
push 0x16
pop eax
jmp 0x4254c1
test dword [ebp + 0xc], 0xfffffff9
jne 0x425448
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x425499
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426dd1
pop ecx
call fcn.00426dab
mov eax, dword [eax]
jmp 0x4254c1
test al, 0x10
jne 0x4254bf
test al, 1
je 0x4254bf
test byte [ebp + 0xc], 2
je 0x4254bf
call fcn.00426dbe
mov dword [eax], 5
call fcn.00426dab
mov dword [eax], 0xd
jmp 0x425490
xor eax, eax
pop esi
pop ebp
ret
Function at 0x43648e
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.0042d31b
and dword [ebp - 4], 0
cmp dword [0x457b08], 0
mov ebx, eax
jne 0x43653f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4365f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4365f0
push eax
call fcn.0042d2a9
mov dword [esp], 0x44669c
push edi
mov dword [0x457b08], eax
call esi
push eax
call fcn.0042d2a9
mov dword [esp], 0x446688
push edi
mov dword [0x457b0c], eax
call esi
push eax
call fcn.0042d2a9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x457b10], eax
call esi
push eax
call fcn.0042d2a9
pop ecx
mov dword [0x457b18], eax
test eax, eax
je 0x43653f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042d2a9
pop ecx
mov dword [0x457b14], eax
mov eax, dword [0x457b14]
cmp eax, ebx
je 0x436597
cmp dword [0x457b18], ebx
je 0x436597
push eax
call fcn.0042d324
push dword [0x457b18]
mov esi, eax
call fcn.0042d324
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x436597
test edi, edi
je 0x436597
call esi
test eax, eax
je 0x43658e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43658e
test byte [ebp - 0xc], 1
jne 0x436597
or dword [ebp + 0x10], 0x200000
jmp 0x4365d0
mov eax, dword [0x457b0c]
cmp eax, ebx
je 0x4365d0
push eax
call fcn.0042d324
pop ecx
test eax, eax
je 0x4365d0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4365d0
mov eax, dword [0x457b10]
cmp eax, ebx
je 0x4365d0
push eax
call fcn.0042d324
pop ecx
test eax, eax
je 0x4365d0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457b08]
call fcn.0042d324
pop ecx
test eax, eax
je 0x4365f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4365f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d9b
cmp byte [esi + ebx - 1], 0xa
je 0x401d6f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x403118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret