joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x40]
mov eax, 0x20
mov word [esp + 0xc], ax
mov ebx, ebp
mov ax, word [0x4e8278]
mov dword [esp + 8], ecx
mov word [esp + 0xe], ax
mov dword [esp + 0x10], 0x90028
mov dword [esp + 0x14], 0x3e003c
mov dword [esp + 0x18], 0x3d003a
mov dword [esp + 0x1c], 0x2d002b
mov dword [esp + 0x20], 0x2f002a
mov dword [esp + 0x24], 0x7e0021
mov dword [esp + 0x28], 0x7c0026
mov dword [esp + 0x2c], 0x5b005e
mov dword [esp + 0x30], 0x3f002e
mov dword [esp + 0x34], 0x7b
push esi
push edi
test ebp, ebp
je 0x42afa5
movzx eax, word [ebp]
test ax, ax
je 0x42afa5
mov esi, eax
nop word [eax + eax]
lea eax, [esp + 0x14]
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x42b015
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x42af80
movzx eax, word [ebx + 2]
add ebx, 2
mov esi, eax
test ax, ax
jne 0x42af70
mov ecx, ebp
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42afb0
sub ecx, edx
lea edi, [ebp - 2]
sar ecx, 1
lea edi, [edi + ecx*2]
cmp edi, ebp
jbe 0x42afe4
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x42afdd
cmp eax, 9
jne 0x42afe4
sub edi, 2
cmp edi, ebp
ja 0x42afd0
mov ebx, edi
sub ebx, ebp
sar ebx, 1
inc ebx
cmp ebx, 0xfd
jbe 0x42b023
cmp byte [esp + 0x4c], 0
je 0x42b009
mov ecx, dword [esp + 0x10]
push ebp
push str.This_line_does_not_contain_a_recognized_action.
call fcn.0043ec50
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
test ebx, ebx
je 0x42afa5
cmp ebx, ebp
lea edi, [ebx - 2]
cmovbe edi, ebx
jmp 0x42afc5
mov esi, dword [esp + 0x44]
push ebx
push ebp
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc
Function at 0x43f2e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4004
call fcn.004bdab0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x43f3dd
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x43f320
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x43f320
mov ecx, dword [edi + 0x24c]
movzx eax, word [edi + 0x250]
jmp 0x43f328
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
push dword [ebp + 0xc]
movzx eax, ax
push eax
push dword [ecx*4 + 0x4eb044]
lea eax, [esp + 0x1c]
push str._s___d__:___Warning:__s_n
push 0x2000
push eax
call fcn.004a1b10
mov edx, eax
add esp, 0x18
mov eax, dword [ebp + 0x10]
add edx, edx
cmp word [eax], 0
je 0x43f37b
push eax
mov ecx, edx
mov eax, 0x2000
sar ecx, 1
sub eax, ecx
push str._____Specifically:__s_n
push eax
lea eax, [esp + 0x1c]
add eax, edx
push eax
call fcn.004a1b10
add esp, 0x10
lea eax, [esp + 0x10]
cmp ebx, 3
jne 0x43f39c
push 0x4d7250
push 0
push eax
mov ecx, edi
call fcn.0043e6b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebx, 2
jne 0x43f3dd
test esi, esi
jne 0x43f3cd
mov esi, dword [edi + 0x64c]
test esi, esi
jne 0x43f3cd
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0043ec50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
push 1
push eax
call fcn.0043e8b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x445f30
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00454f90
mov edi, eax
test edi, edi
je 0x44602f
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004a7d40
mov ebx, eax
test ebx, ebx
je 0x44602f
push 0
push edi
mov byte [esp + 0x17], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x445fac
cmp esi, dword [0x4eb0cc]
je 0x445fac
mov ecx, edi
call fcn.004a81e0
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
test al, al
jne 0x445fb2
push 1
push esi
push dword [0x4eb0cc]
call edi
test eax, eax
setne byte [esp + 0xf]
jmp 0x445fb2
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x44600f
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc24
call fcn.004a6070
mov eax, dword [0x4e7024]
cmp dword [eax + 0x58], 0xffffffff
jle 0x44600f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4eb0cc], eax
je 0x445ffc
mov eax, dword [0x4e7024]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44600f
mov ecx, dword [0x4e7024]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.00401700
cmp byte [esp + 0xf], 0
je 0x446021
push 0
push esi
push dword [0x4eb0cc]
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x44605c
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4bfba0
push 0
push 0x4d4ebc
mov ecx, esi
call fcn.0043e4d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x447aa0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [0x4eaff0]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00454f90
mov ebx, eax
test ebx, ebx
je 0x447ad0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
jmp 0x447ad5
mov edi, 1
push 1
push 0
lea eax, [edi - 1]
mov ecx, esi
push eax
push 0
call fcn.004a6070
cmp eax, 1
je 0x447af3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
mov ecx, esi
test ebx, ebx
je 0x447b81
push edi
push 0
push 1
call fcn.00401520
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x447b1c
mov edi, dword [esi + 0xc]
jmp 0x447b1e
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x447b36
test byte [edi + 0x15], 8
je 0x447b31
mov ecx, edi
call fcn.00401380
add edi, 0xc
jmp 0x447b3b
mov edi, 0x4ed8c4
lea eax, [ebx + ebx]
mov dword [edi], eax
cmp byte [esi + 0x17], 0
jne 0x447b4b
mov edi, dword [esi + 0xc]
jmp 0x447b4d
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x447b65
test byte [edi + 0x15], 8
je 0x447b60
mov ecx, edi
call fcn.00401380
add edi, 0xc
jmp 0x447b6a
mov edi, 0x4ed8c4
cmp dword [edi], 2
jae 0x447bbe
push 0
push 1
mov ecx, esi
call fcn.00401520
xor ecx, ecx
mov word [eax], cx
jmp 0x447bbe
push 0
push 1
call fcn.00401520
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], cl
jne 0x447b99
mov edi, dword [esi + 0xc]
jmp 0x447b9b
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x447bb3
test byte [edi + 0x15], 8
je 0x447bae
mov ecx, edi
call fcn.00401380
add edi, 0xc
jmp 0x447bb8
mov edi, 0x4ed8c4
mov dword [edi], 0
cmp byte [esi + 0x17], 0
jne 0x447bc7
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x447be7
cmp dword [0x4ec4bc], 0
je 0x447be7
push ecx
mov ecx, 0x4ec4b0
call fcn.00405c70
pop edi
pop esi
pop ebx
ret 0x10
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x447c80
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004bdab0
push esi
mov esi, ecx
lea ecx, [esp + 4]
push edi
call fcn.00440830
push dword [ebp + 0x14]
xor eax, eax
mov byte [esp + 0x1839], 1
push dword [ebp + 0x10]
cmp edx, 6
push dword [ebp + 0xc]
cmove eax, esi
push dword [ebp + 8]
mov dword [esp + 0x1868], eax
push dword [0x4e7024]
call fcn.004a83b0
test eax, eax
je 0x447cdf
lea eax, [esp + 8]
push eax
push 0x4a7750
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esi + 0x17], 0
mov edi, dword [esp + 0x1838]
jne 0x447cef
mov esi, dword [esi + 0xc]
mov cl, byte [esi + 0x15]
test cl, 2
je 0x447d08
and cl, 0x3d
mov byte [esi + 0x15], cl
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov cl, byte [esi + 0x15]
mov eax, edi
and cl, 0x9b
cdq
or cl, 0x18
mov dword [esi], eax
mov dword [esi + 4], edx
mov byte [esi + 0x15], cl
jge 0x447d31
mov ecx, esi
call fcn.00401380
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x4e9800], 0
je 0x447d41
mov ecx, esi
call fcn.00401380
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x448dd0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004bdab0
push esi
mov esi, dword [0x4eaff0]
lea eax, [esp + 4]
push edi
push 0x7fff
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
push 1
cmp edi, 0x7fff
jb 0x448e96
push 1
lea ecx, [edi - 1]
push ecx
push 0
mov ecx, esi
call fcn.004a6070
test eax, eax
jne 0x448e27
pop edi
pop esi
add esp, 0x10000
ret 4
push edi
push 0
push 1
mov ecx, esi
call fcn.00401520
push eax
push dword [esp + 0x10014]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x448e54
push eax
push 1
mov ecx, esi
call fcn.00401520
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x17], 0
jne 0x448e5d
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x448e82
cmp dword [0x4ec4bc], 0
je 0x448e82
push ecx
mov ecx, 0x4ec4b0
call fcn.00405c70
pop edi
pop esi
add esp, 0x10000
ret 4
and byte [esi + 0x15], 0x86
mov eax, 1
pop edi
pop esi
add esp, 0x10000
ret 4
push 0
test edi, edi
lea eax, [esp + 0x10]
mov ecx, 0x4bfba0
cmove eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004a6070
pop edi
pop esi
add esp, 0x10000
ret 4
Function at 0x44be90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x2214
call fcn.004bdab0
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov byte [esp + 0x17], dl
push esi
push dword [0x4ec448]
lea ebp, [esp + 0x228]
push str.__s_s
mov eax, ebp
push 0x800
push eax
call fcn.004a1b10
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x44bef0
lea eax, [esp + 0x222]
push eax
call edi
cmp eax, 0xffffffff
je 0x44bef0
mov eax, dword [0x4ec448]
jmp 0x44bf49
lea ecx, [esp + 0x18]
call fcn.0044c450
test eax, eax
je 0x44bfe1
push esi
lea eax, [esp + 0x1c]
push eax
push str.__s_s
lea eax, [esp + 0x22c]
push 0x800
push eax
call fcn.004a1b10
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x44bfe1
lea eax, [esp + 0x222]
push eax
call edi
cmp eax, 0xffffffff
je 0x44bfe1
lea eax, [esp + 0x18]
cmp byte [esp + 0x17], 0
mov dword [esp + ebx*2 + 0x220], 0x22
je 0x44bfb2
push 0x4dc1a4
push eax
push str.__s_s
lea eax, [esp + 0x122c]
push 0x800
push eax
call fcn.004a1b10
mov ebx, eax
add esp, 0x14
lea ecx, [ebx + 1]
cmp ecx, 0x800
jg 0x44bfb2
lea eax, [esp + 0x1222]
push eax
call edi
cmp eax, 0xffffffff
je 0x44bfb2
mov dword [esp + ebx*2 + 0x1220], 0x22
lea ebp, [esp + 0x1220]
lea eax, [esp + 0x220]
jmp 0x44bfb7
mov eax, 0x4bfba0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ebp
mov ecx, 0x4eb958
call fcn.0043f9c0
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2214
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x2214
ret
Function at 0x450280
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [0x4eaff0]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 8]
xor edx, edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.004162a0
mov bl, al
add esp, 0xc
test bl, bl
jne 0x45031e
push 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0046bb70
add esp, 4
test eax, eax
jne 0x4502e4
push 1
push eax
push 0xffffffffffffffff
push 0x4bfba0
mov ecx, edi
call fcn.004a6070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.0046bdd0
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004a5890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
movzx esi, word [eax]
test esi, 0xffffff80
je 0x450330
xor eax, eax
jmp 0x45033c
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
cmp ecx, 0x50
je 0x45035a
xor eax, eax
mov edx, 2
cmp ecx, 0x54
cmovne edx, eax
jmp 0x45035f
mov edx, 1
mov cl, bl
call fcn.0046bd30
push 1
test al, al
mov edx, 0x4dc69c
push 0
mov ecx, 0x4dc698
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004a6070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x450390
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4eaff0]
push 0
call fcn.004a6070
mov eax, dword [ebp + 8]
test eax, eax
je 0x4504df
cmp word [eax], 0
je 0x4504df
push 0x103
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x28]
xor eax, eax
lea edx, [ecx + 2]
mov word [esp + 0x22e], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4503f0
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x26], 0x5c
je 0x45041d
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x4504df
mov dword [esp + ecx*2 + 0x28], 0x5c
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4504df
cmp byte [ebp + 0xc], 0
je 0x45044f
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x450457
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
shrd ebx, edi, 0x14
push 0x4bfc24
shr edi, 0x14
call fcn.004a6070
mov esi, dword [0x4eaff0]
cmp byte [esi + 0x17], 0
jne 0x450483
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x45049a
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x9b
mov dword [esi], ebx
or al, 0x18
mov dword [esi + 4], edi
mov byte [esi + 0x15], al
jge 0x4504c1
mov ecx, esi
call fcn.00401380
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4e9800], 0
je 0x4504d1
mov ecx, esi
call fcn.00401380
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x45050c
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4bfba0
push 0
push 0x4d4ebc
mov ecx, esi
call fcn.0043e4d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4526b0
Capabilities:
Set current directory

Disassembly:
sub esp, 8
push esi
mov esi, ecx
movzx eax, word [esi]
test ax, ax
je 0x4526e4
cmp word [esi + 2], 0x3a
jne 0x4526e4
cmp word [esi + 4], 0
jne 0x4526e4
mov word [esp + 4], ax
lea esi, [esp + 4]
xor eax, eax
mov dword [esp + 6], 0x5c003a
mov word [esp + 0xa], ax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x45273c
cmp byte [0x4ec450], al
je 0x452762
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x452720
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
pop esi
add esp, 8
ret
mov ecx, dword [0x4ebfa4]
push 0x4bfba0
push 0
push 0x4d4ebc
call fcn.0043e4d0
pop esi
add esp, 8
ret
cmp byte [0x4ec450], 0
je 0x452762
mov ecx, esi
call fcn.00452770
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc24
call fcn.004a6070
pop esi
add esp, 8
ret

Function at 0x452770
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10000
call fcn.004bdab0
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4527a9
push ecx
lea esi, [esp + 8]
mov ecx, 0x4e8a00
push esi
call fcn.0046c790
pop esi
add esp, 0x10000
ret
test esi, esi
je 0x4527b9
push ecx
push esi
mov ecx, 0x4e8a00
call fcn.0046c790
pop esi
add esp, 0x10000
ret
Function at 0x452e20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x452ef6
cmp word [ebx], 0
je 0x452ef6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x452e69
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
shr eax, 4
and al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x452ede
cmp word [esi - 2], 0x3a
je 0x452ede
test edi, edi
je 0x452ea1
xor eax, eax
mov edx, ebx
mov ecx, ebx
mov word [esi], ax
call fcn.00452e20
mov ecx, 0x5c
mov word [esi], cx
jmp 0x452ed3
mov edi, esi
sub edi, ebx
sar edi, 1
lea eax, [edi*2 + 2]
call fcn.004bdae0
mov esi, esp
push edi
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov edx, esi
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.00452e20
mov esi, dword [ebp - 4]
cmp word [esi + 2], 0
je 0x452f00
test al, al
je 0x452f00
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453cd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
push edi
test esi, esi
je 0x453d1f
push 0
push 1
mov ecx, esi
call fcn.00401520
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x453cfa
mov edi, dword [esi + 0xc]
jmp 0x453cfc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x453d16
test byte [edi + 0x15], 8
je 0x453d0f
mov ecx, edi
call fcn.00401380
add edi, 0xc
mov edi, dword [edi]
jmp 0x453d55
mov edi, 0x4ed8c4
mov edi, dword [edi]
jmp 0x453d55
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004a5aa0
add esp, 4
test eax, eax
jne 0x453d4d
mov eax, dword [0x4e7024]
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
xor eax, eax
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push ebp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x453dba
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x453d93
push ecx
lea eax, [esp + 0x24]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e7024]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x453dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e7024]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x453dda
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
je 0x453dfd
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc24
call fcn.004a6070
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x453e2a
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4bfba0
push 0
push 0x4d4ebc
call fcn.0043e4d0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x453e60
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
movzx eax, word [ebx]
mov ebp, ecx
mov edi, ebx
test ax, ax
je 0x453f36
test ebx, ebx
je 0x453eb5
mov esi, eax
nop
mov ecx, 0x4dcc48
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x453f36
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x453e90
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x453e80
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e7024]
mov dword [ecx + 0x30], eax
test esi, esi
je 0x453ef6
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc24
call fcn.004a6070
pop edi
pop esi
pop ebp
pop ebx
ret 4
test byte [ecx + 0x100], 1
jne 0x453f1c
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0x4bfba0
push 0
push 0x4d4ebc
mov ecx, ebp
call fcn.0043e4d0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x453e50
push 0
push 1
push ebx
mov ecx, ebp
call fcn.00454420
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x453f50
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10014
call fcn.004bdab0
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004112f0
mov esi, dword [ebp + 0xc]
cmp eax, 1
je 0x453f84
mov ecx, esi
call fcn.00470860
test al, al
jne 0x4540d7
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4540d7
mov edx, dword [ebp + 8]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453fb0
sub ecx, esi
mov eax, 0x7fff
sar ecx, 1
cmp ecx, 0x8000
cmovae ecx, eax
lea eax, [ecx*2 + 2]
push eax
push edx
lea eax, [esp + 0x28]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr]
add esp, 4
lea eax, [esp + 0x20]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4540d0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4540d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4540d0
cmp dword [esi], 0x4034b50
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
jne 0x454084
push 0
push dword [esp + 0x18]
push 0
call eax
push eax
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.004a5230
add esp, 8
test eax, eax
je 0x45407f
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne byte [esp + 0x17]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4540a3
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x1c]
push 0
call eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne byte [esp + 0x13]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x4540d7
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4bfc24
call fcn.004a6070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4e7024]
test byte [eax + 0x100], 1
jne 0x454104
mov ecx, dword [0x4e97d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d4ebc
call fcn.004a6070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4bfba0
push 0
push 0x4d4ebc
mov ecx, ebx
call fcn.0043e4d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc