joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4424f0
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.0041e0f0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x442525
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0043b500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x44252f
jmp dword [eax*4 + 0x44271c]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x442545
call fcn.0045f290
jmp 0x44254b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4bbcb4]
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
call fcn.0045f290
mov ebx, eax
test ebx, ebx
je 0x4425bf
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4425bf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
sbb esi, esi
and esi, ebx
mov eax, dword [0x4bbcb4]
push 0x18
push 0
push esi
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7940
push eax
call fcn.00482f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.00495d34
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4425f9.67
movzx edx, byte [eax + 0x44274c]
jmp dword [edx*4 + 0x442730]
mov esi, 0x40
jmp 0x442628
mov esi, 0x4000
jmp 0x442628
mov esi, 0x20
jmp 0x442628
mov esi, 0x8000
jmp 0x442628
mov esi, 0x80
jmp 0x442628
mov esi, 0x100
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x442637
call fcn.0045f290
jmp 0x44263d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x4425bf
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4425bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x442593
mov ecx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7940
push ecx
call fcn.00482f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x4426b6
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.0041c230
fmul qword [0x4b1698]
call fcn.004a2770
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x4426c0
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.0045f290
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x4426db
test esi, esi
jne 0x4425a2
jmp 0x4426e3
test esi, esi
je 0x4425bf
cmp byte [esp + 0xf], 0
jne 0x442701
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x4425a2
push 1
push 0x64
call fcn.004014b0
add esp, 8
jmp 0x4426c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x442fa0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4bb3e8]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.0044e440
mov edi, eax
test edi, edi
je 0x442fc6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x442fcb
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.00482f60
cmp eax, 1
je 0x442fe9
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x44306e
push ebp
push 0
push 1
call fcn.00401270
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [esi + 0x17], 0
mov ebp, eax
jne 0x44300e
mov edi, dword [esi + 0xc]
jmp 0x443010
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x443028
test byte [edi + 0x15], 8
je 0x443023
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x44302d
mov eax, 0x4bcd08
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x44303a
mov edi, dword [esi + 0xc]
jmp 0x44303c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x443054
test byte [edi + 0x15], 8
je 0x44304f
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x443059
mov eax, 0x4bcd08
cmp dword [eax], 0
jne 0x4430aa
push 0
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
jmp 0x4430aa
push 0
push 1
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x443085
mov edi, dword [esi + 0xc]
jmp 0x443087
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44309f
test byte [edi + 0x15], 8
je 0x44309a
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x4430a4
mov eax, 0x4bcd08
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x4430b3
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4430d5
cmp dword [0x4bcb5c], 0
je 0x4430d5
push 1
mov ecx, 0x4bcb50
call fcn.00405180
pop edi
pop esi
pop ebp
pop ecx
ret 4
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4

Function at 0x443e60
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004a04a0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4bb3e8]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x443f14
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.00482f60
test eax, eax
jne 0x443eb2
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
push edi
push 0
push 1
mov ecx, esi
call fcn.00401270
push eax
push ebx
call ebp
test eax, eax
jne 0x443ed3
push eax
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x443edc
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x443f01
cmp dword [0x4bcb5c], 0
je 0x443f01
push 1
mov ecx, 0x4bcb50
call fcn.00405180
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
and byte [esi + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x8000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x443f21
mov eax, 0x4a78b1
push 1
push 0
push edi
push eax
push esi
call fcn.00482f60
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x446330
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [0x4bcad8]
push eax
mov edi, 0x4a78b1
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call ebp
cmp eax, 0xffffffff
setne bl
test bl, bl
jne 0x446391
lea ecx, [esp + 0x50]
push ecx
call fcn.004468d0
add esp, 4
test eax, eax
je 0x446384
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x446391
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
cmp byte [esp + 0x15c], 0
je 0x4463bc
test bl, bl
je 0x4463bc
push esi
push str._script__s
mov esi, 0x40
lea edi, [esp + 0x18]
call fcn.0047fde0
mov esi, dword [0x4bcad4]
add esp, 8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0x4bc4c8
mov edx, esi
call fcn.0043c440
test eax, eax
mov eax, dword [0x4b8c90]
setne bl
test eax, eax
je 0x4463eb
mov eax, dword [eax]
test eax, eax
jne 0x4463f0
mov eax, 0x4a78b1
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x148
ret

Function at 0x4468d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push ebx
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x446908
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x446983
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.InstallDir
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x446900
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x446900
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x446967
cmp eax, ebx
je 0x446983
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x446961
dec eax
jne 0x446958
mov dword [esp + 0x10], eax
jmp 0x44697f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x44697b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x446983
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x446991
cmp edi, ebx
jne 0x446991
mov edi, 0x100
jmp 0x4468e4
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x4469ae
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x4469a4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x449e90
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4bb3e8]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.0041b230
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x449f2c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0045b1e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x449ef0
push 1
push eax
push 0xffffffffffffffff
push 0x4a78b1
push ebp
call fcn.00482f60
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.0045b480
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.004828b0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x449f50
push 2
push ebx
call fcn.0049421c
add esp, 8
test eax, eax
je 0x449f50
and bl, 0xdf
cmp bl, 0x50
je 0x449f63
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x449f68
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0045b3d0
add esp, 4
test al, al
mov eax, 0x4ae98c
jne 0x449f83
mov eax, 0x4ae990
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00482f60
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4

Function at 0x449fa0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4bb3e8]
sub esp, 0x124
push ebx
push esi
push edi
mov esi, eax
call fcn.0041c270
xor ebx, ebx
cmp esi, ebx
je 0x44a081
cmp byte [esi], bl
je 0x44a081
push 0x103
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00496440
lea eax, [esp + 0x34]
add esp, 0xc
mov byte [esp + 0x12b], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x449ff0
sub eax, edx
cmp byte [esp + eax + 0x27], 0x5c
je 0x44a014
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x44a081
mov byte [esp + eax + 0x28], 0x5c
mov byte [esp + eax + 0x29], bl
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x44a081
cmp byte [ebp + 0xc], bl
je 0x44a041
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x44a049
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [0x4bbcb4]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a7940
push eax
call fcn.00482f60
mov eax, dword [0x4bb3e8]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401130
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
jne 0x44a0af
mov edx, dword [0x4bbcb4]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a7de4
push edx
call fcn.00482f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4a78b1
push ebx
mov ebx, dword [ebp + 8]
push 0x4a7de4
call fcn.0043b0a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44be90
Capabilities:
Set current directory

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x44bebb
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x44bebb
cmp byte [esi + 2], 0
jne 0x44bebb
mov byte [esp + 8], al
mov byte [esp + 9], cl
mov word [esp + 0xa], 0x5c
lea esi, [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x44bf12
cmp byte [0x4bcae4], al
je 0x44bf3b
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
jne 0x44bef7
mov ecx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7de4
push ecx
call fcn.00482f60
pop esi
pop ebx
pop ecx
ret
mov ebx, dword [0x4bc83c]
push 0x4a78b1
push 0
push 0x4a7de4
call fcn.0043b0a0
pop esi
pop ebx
pop ecx
ret
cmp byte [0x4bcae4], 0
je 0x44bf3b
push esi
call fcn.0044bf40
mov edx, dword [0x4bbcb4]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0x4a7940
push edx
call fcn.00482f60
pop esi
pop ebx
pop ecx
ret

Function at 0x44bf40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
test eax, eax
je 0x44bf6b
lea ebp, [esp + 8]
jmp 0x44bf73
cmp ebp, ebx
je 0x44c089
push esi
cmp byte [ebp], bl
je 0x44c04e
mov esi, dword [0x4b8c90]
cmp esi, ebx
je 0x44bf8c
call fcn.00403eb0
push edi
push 0x14
call fcn.00493f42
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x44c035
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], 1
xor esi, esi
cmp byte [ebp], bl
je 0x44bfc6
lea ebx, [ebx]
inc esi
cmp byte [esi + ebp], bl
jne 0x44bfc0
push esi
mov ebx, edi
call fcn.00404d80
mov ebx, dword [edi]
mov eax, ebp
test esi, esi
jns 0x44c008
mov cl, byte [ebp]
mov byte [ebx], cl
test cl, cl
je 0x44c019
sub ebx, ebp
mov cl, byte [eax + 1]
inc eax
mov byte [ebx + eax], cl
test cl, cl
jne 0x44bfe1
mov dword [edi + 8], esi
mov dword [0x4b8c90], edi
pop edi
pop esi
xor ebx, ebx
pop ebp
mov byte [0x4b8c94], bl
pop ebx
add esp, 0x104
ret
jle 0x44c015
push esi
push ebp
push ebx
call fcn.0049b8f0
add esp, 0xc
mov byte [ebx + esi], 0
mov dword [edi + 8], esi
mov dword [0x4b8c90], edi
pop edi
pop esi
xor ebx, ebx
pop ebp
mov byte [0x4b8c94], bl
pop ebx
add esp, 0x104
ret
xor edi, edi
mov dword [0x4b8c90], edi
pop edi
pop esi
pop ebp
mov byte [0x4b8c94], bl
pop ebx
add esp, 0x104
ret
mov eax, dword [0x4b8c90]
cmp eax, ebx
je 0x44c088
lea ecx, [eax + 0x10]
mov esi, eax
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x44c07c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x44c073
push eax
call fcn.004932d8
add esp, 4
push esi
call fcn.00493038
add esp, 4
mov dword [0x4b8c90], ebx
mov byte [0x4b8c94], bl
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x44c690
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44c6ba
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
shr eax, 4
pop edi
and eax, 1
pop esi
ret
push 0x5c
push edi
call fcn.0049406c
mov esi, eax
add esp, 8
cmp esi, edi
jbe 0x44c6e7
cmp byte [esi - 1], 0x3a
je 0x44c6e7
push edi
mov byte [esi], 0
call fcn.0044c690
add esp, 4
mov byte [esi], 0x5c
test al, al
jne 0x44c6e7
pop edi
pop esi
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x44c706
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x44c706
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x44d340
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x44d390
push edi
push 1
mov ecx, ebp
call fcn.00401270
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x44d36a
mov esi, dword [ebp + 0xc]
jmp 0x44d36c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x44d387
test byte [esi + 0x15], 8
je 0x44d37f
mov eax, esi
call fcn.004011b0
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x44d3be
mov esi, 0x4bcd08
mov ebx, dword [esi]
jmp 0x44d3be
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.004829f0
add esp, 0xc
test eax, eax
jne 0x44d3ba
mov edx, dword [0x4b7a70]
mov dword [edx + 0x30], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44d406
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x44d3fb
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x44d421
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x44d432
mov edx, dword [esp + 0x24]
push edx
call fcn.004932d8
add esp, 4
mov ebx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
call fcn.0043b1a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x44d460
Capabilities:
Delete file

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
mov ebx, ecx
mov edi, esi
test esi, esi
je 0x44d494
mov dl, byte [esi]
test dl, dl
je 0x44d4d1
mov ecx, 0x4aec7c
mov al, 0x3f
lea ecx, [ecx]
cmp dl, al
je 0x44d4d1
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x44d480
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x44d476
cmp byte [esi], 0
je 0x44d4d1
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
sete al
mov byte [esp + 0x10], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x4b7a70]
push edx
mov dword [ecx + 0x30], eax
call fcn.0043b1a0
pop edi
pop esi
pop ebx
add esp, 8
ret
push 0
push 0x44d450
push 0
push 1
push ebx
call fcn.0044da10
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x44d560
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x108
push ebp
push esi
mov esi, eax
xor eax, eax
cmp byte [esp + 0x114], al
push 0
setne al
push 0
inc eax
push eax
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44d5a0
pop esi
xor al, al
pop ebp
add esp, 0x108
ret 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44d5a5
sub eax, edx
cmp eax, 0x104
jb 0x44d5ba
mov eax, 0x103
push ebx
inc eax
push eax
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0049b8f0
lea eax, [esp + 0x1c]
push eax
call fcn.00495e4d
add esp, 0x10
push 0xa
lea ecx, [esp + 0x14]
push ecx
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x44d626
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44d626
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x44d625
push 0
lea edx, [esp + 0x14]
push edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop ebp
add esp, 0x108
ret 4

Function at 0x44d640
Capabilities:
Copy file
Set current directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push 0
lea eax, [esp + 0xc]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, dword [0x4bcacc]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edx
call esi
mov edx, dword [esp + 0x110]
xor eax, eax
cmp byte [esp + 0x114], al
lea ecx, [esp + 8]
sete al
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov eax, dword [0x4b8c90]
setne bl
test eax, eax
je 0x44d69e
mov eax, dword [eax]
test eax, eax
jne 0x44d6a3
mov eax, 0x4a78b1
push eax
call esi
pop esi
mov al, bl
pop ebx
add esp, 0x104
ret 8
Function at 0x44d770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x84
push ebx
mov ebx, ecx
mov ecx, dword [0x4bb3e8]
push esi
mov esi, eax
call fcn.0041c270
test esi, esi
je 0x44d82a
cmp byte [esi], 0
je 0x44d82a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44d7e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x44d85f
mov eax, dword [0x4bbcb4]
push 1
push 0
push esi
push 0x4a7de4
push eax
call fcn.00482f60
pop esi
pop ebx
add esp, 0x84
ret
mov edx, dword [0x4bbcb4]
mov ecx, dword [0x4b7a70]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7940
push edx
mov dword [ecx + 0x30], 0
call fcn.00482f60
mov edx, esi
lea eax, [esp + 8]
call fcn.00480d20
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4bb3e8]
push eax
call fcn.00482f60
pop esi
pop ebx
add esp, 0x84
ret
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x44d85f
mov ecx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7de4
push ecx
call fcn.00482f60
pop esi
pop ebx
add esp, 0x84
ret
push 0x4a78b1
push 0
push 0x4a7de4
call fcn.0043b0a0
pop esi
pop ebx
add esp, 0x84
ret
Function at 0x44e1a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4bb3e8]
sub esp, 0x148
push ebx
push esi
call fcn.0041c270
test edi, edi
je 0x44e30e
cmp byte [edi], 0
je 0x44e30e
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44e200
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x44e26b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44e24c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x44e342
mov edx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7de4
push edx
call fcn.00482f60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x44e273
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x44e29b
push 2
push esi
call fcn.0049421c
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x44e29b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x44e2b2
sub edx, 2
jne 0x44e2c8
push edx
push 0x100000
jmp 0x44e2b9
push 0
push 0x400
push eax
push ecx
call fcn.004a2820
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4bbcb4]
mov eax, dword [0x4b7a70]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7940
push ecx
mov dword [eax + 0x30], 0
call fcn.00482f60
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4bb3e8]
call fcn.00401130
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x44e342
mov ecx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7de4
push ecx
call fcn.00482f60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
push 0x4a78b1
push 0
push 0x4a7de4
call fcn.0043b0a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44fc00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x44fc20
mov byte [esp], 0
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44fc26
sub eax, edx
je 0x44fc3e
cmp byte [esp + eax - 1], 0x5c
jne 0x44fc3e
mov byte [esp + eax - 1], 0
dec eax
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x44fc5c
lea ecx, [esp + 4]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x44fc52
pop esi
add esp, 0x104
ret