joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4416a0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x20]
call fcn.0044e400
mov edi, eax
test edi, edi
je 0x4416c9
mov esi, dword [esp + 0x18]
push edi
call fcn.00484330
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x441712
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
jne 0x4416f6
mov edx, dword [0x4bbc50]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push edx
call fcn.004828b0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ebx, dword [esp + 0x14]
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043b050
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push 0
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
test ebp, ebp
je 0x44174a
cmp ebp, dword [0x4bc448]
je 0x44174a
mov esi, edi
call fcn.00484810
test al, al
jne 0x44174a
mov eax, dword [0x4bc448]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne bl
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
test eax, eax
je 0x441788
mov edx, dword [0x4bbc50]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push edx
call fcn.004828b0
mov eax, dword [0x4b7a70]
mov eax, dword [eax + 0x58]
cmp eax, 0xffffffff
jle 0x441788
push 1
push eax
call fcn.004014b0
add esp, 8
test bl, bl
je 0x44179c
mov ecx, dword [0x4bc448]
push 0
push ebp
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x4424b0
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.0041e130
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4424e5
mov ecx, dword [ebp + 8]
push esi
push eax
push str.Parameter_1_invalid.
call fcn.0043b4b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
dec eax
cmp eax, 4
ja case.default.0x4424ef
jmp dword [eax*4 + 0x4426dc]
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x442505
call fcn.0045f250
jmp 0x44250b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x18
push 0
push eax
mov eax, dword [0x4bbc50]
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.0045f250
mov ebx, eax
test ebx, ebx
je 0x44257f
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x44257f
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 [0x4bbc50]
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 [0x4bbc50]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push eax
call fcn.004828b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movsx ecx, byte [ebx]
push ecx
call fcn.00495934
add eax, 0xffffffbf
add esp, 4
cmp eax, 0x11
ja case.0x4425b9.67
movzx edx, byte [eax + 0x44270c]
jmp dword [edx*4 + 0x4426f0]
mov esi, 0x40
jmp 0x4425e8
mov esi, 0x4000
jmp 0x4425e8
mov esi, 0x20
jmp 0x4425e8
mov esi, 0x8000
jmp 0x4425e8
mov esi, 0x80
jmp 0x4425e8
mov esi, pe_nt_image_headers32
mov ebx, dword [ebp + 0xc]
cmp byte [ebx], 0
je 0x4425f7
call fcn.0045f250
jmp 0x4425fd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test ebx, ebx
je 0x44257f
push ebx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x44257f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x442553
mov ecx, dword [0x4bbc50]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push ecx
call fcn.004828b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx], 0
je 0x442676
mov esi, ebx
mov byte [esp + 0xf], 0
call fcn.0041c2a0
fmul qword [0x4b1660]
call fcn.004a21b0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
jmp 0x442680
mov byte [esp + 0xf], 1
xor edi, edi
lea ecx, [ecx]
mov ebx, dword [ebp + 0xc]
call fcn.0045f250
cmp dword [esp + 0x10], 4
mov esi, eax
jne 0x44269b
test esi, esi
jne 0x442562
jmp 0x4426a3
test esi, esi
je 0x44257f
cmp byte [esp + 0xf], 0
jne 0x4426c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x442562
push 1
push 0x64
call fcn.004014b0
add esp, 8
jmp 0x442680
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x442f60
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [0x4bb388]
push edi
push eax
mov eax, dword [esp + 0x18]
call fcn.0044e400
mov edi, eax
test edi, edi
je 0x442f86
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ebp, [eax + 1]
jmp 0x442f8b
mov ebp, 1
push 1
push 0
lea ecx, [ebp - 1]
push ecx
push 0
push esi
call fcn.004828b0
cmp eax, 1
je 0x442fa9
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov ecx, esi
test edi, edi
je 0x44302e
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 0x442fce
mov edi, dword [esi + 0xc]
jmp 0x442fd0
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x442fe8
test byte [edi + 0x15], 8
je 0x442fe3
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x442fed
mov eax, 0x4bcca0
mov dword [eax], ebp
cmp byte [esi + 0x17], 0
jne 0x442ffa
mov edi, dword [esi + 0xc]
jmp 0x442ffc
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x443014
test byte [edi + 0x15], 8
je 0x44300f
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x443019
mov eax, 0x4bcca0
cmp dword [eax], 0
jne 0x44306a
push 0
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
jmp 0x44306a
push 0
push 1
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x443045
mov edi, dword [esi + 0xc]
jmp 0x443047
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x44305f
test byte [edi + 0x15], 8
je 0x44305a
mov eax, edi
call fcn.004011b0
lea eax, [edi + 0xc]
jmp 0x443064
mov eax, 0x4bcca0
mov dword [eax], 0
cmp byte [esi + 0x17], 0
jne 0x443073
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x443095
cmp dword [0x4bcaf4], 0
je 0x443095
push 1
mov ecx, 0x4bcae8
call fcn.00405220
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 0x443e20
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.0049ffc0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [0x4bb388]
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
mov edi, eax
cmp edi, 0x7fff
jb 0x443ed4
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push esi
call fcn.004828b0
test eax, eax
jne 0x443e72
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 0x443e93
push eax
push 1
mov ecx, esi
call fcn.00401270
mov byte [eax], 0
cmp byte [esi + 0x17], 0
jne 0x443e9c
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x443ec1
cmp dword [0x4bcaf4], 0
je 0x443ec1
push 1
mov ecx, 0x4bcae8
call fcn.00405220
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 0x443ee1
mov eax, 0x4a7935
push 1
push 0
push edi
push eax
push esi
call fcn.004828b0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x4462f0
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 [0x4bca70]
push eax
mov edi, 0x4a7935
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 0x446351
lea ecx, [esp + 0x50]
push ecx
call fcn.00446890
add esp, 4
test eax, eax
je 0x446344
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x446351
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
cmp byte [esp + 0x15c], 0
je 0x44637c
test bl, bl
je 0x44637c
push esi
push str._script__s
mov esi, 0x40
lea edi, [esp + 0x18]
call fcn.0047f710
mov esi, dword [0x4bca6c]
add esp, 8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0x4bc460
mov edx, esi
call fcn.0043c410
test eax, eax
mov eax, dword [0x4b8c90]
setne bl
test eax, eax
je 0x4463ab
mov eax, dword [eax]
test eax, eax
jne 0x4463b0
mov eax, 0x4a7935
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 0x446890
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 0x4468c8
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x446943
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 0x4468c0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4468c0
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x446927
cmp eax, ebx
je 0x446943
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x446921
dec eax
jne 0x446918
mov dword [esp + 0x10], eax
jmp 0x44693f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x44693b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x446943
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x446951
cmp edi, ebx
jne 0x446951
mov edi, pe_nt_image_headers32
jmp 0x4468a4
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x44696e
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 0x446964
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x449e50
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4bb388]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.0041b2a0
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x449eec
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0045b1a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x449eb0
push 1
push eax
push 0xffffffffffffffff
push 0x4a7935
push ebp
call fcn.004828b0
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.0045b440
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00482200
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x449f10
push 2
push ebx
call fcn.00493e17
add esp, 8
test eax, eax
je 0x449f10
and bl, 0xdf
cmp bl, 0x50
je 0x449f23
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x449f28
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0045b390
add esp, 4
test al, al
mov eax, 0x4ae99c
jne 0x449f43
mov eax, 0x4ae9a0
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004828b0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4

Function at 0x449f60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4bb388]
sub esp, 0x124
push ebx
push esi
push edi
mov esi, eax
call fcn.0041c2e0
xor ebx, ebx
cmp esi, ebx
je 0x44a041
cmp byte [esi], bl
je 0x44a041
push 0x103
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00496040
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 0x449fb0
sub eax, edx
cmp byte [esp + eax + 0x27], 0x5c
je 0x449fd4
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x44a041
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 0x44a041
cmp byte [ebp + 0xc], bl
je 0x44a001
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x44a009
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [0x4bbc50]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a7950
push eax
call fcn.004828b0
mov eax, dword [0x4bb388]
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 0x44a06f
mov edx, dword [0x4bbc50]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a7dfc
push edx
call fcn.004828b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4a7935
push ebx
mov ebx, dword [ebp + 8]
push 0x4a7dfc
call fcn.0043b050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44be50
Capabilities:
Set current directory

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x44be7b
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x44be7b
cmp byte [esi + 2], 0
jne 0x44be7b
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 0x44bed2
cmp byte [0x4bca7c], al
je 0x44befb
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
jne 0x44beb7
mov ecx, dword [0x4bbc50]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push ecx
call fcn.004828b0
pop esi
pop ebx
pop ecx
ret
mov ebx, dword [0x4bc7d4]
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043b050
pop esi
pop ebx
pop ecx
ret
cmp byte [0x4bca7c], 0
je 0x44befb
push esi
call fcn.0044bf00
mov edx, dword [0x4bbc50]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push edx
call fcn.004828b0
pop esi
pop ebx
pop ecx
ret

Function at 0x44bf00
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 0x44bf2b
lea ebp, [esp + 8]
jmp 0x44bf33
cmp ebp, ebx
je 0x44c049
push esi
cmp byte [ebp], bl
je 0x44c00e
mov esi, dword [0x4b8c90]
cmp esi, ebx
je 0x44bf4c
call fcn.00403ef0
push edi
push 0x14
call fcn.00493892
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x44bff5
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 0x44bf86
lea ebx, [ebx]
inc esi
cmp byte [esi + ebp], bl
jne 0x44bf80
push esi
mov ebx, edi
call fcn.00404e20
mov ebx, dword [edi]
mov eax, ebp
test esi, esi
jns 0x44bfc8
mov cl, byte [ebp]
mov byte [ebx], cl
test cl, cl
je 0x44bfd9
sub ebx, ebp
mov cl, byte [eax + 1]
inc eax
mov byte [ebx + eax], cl
test cl, cl
jne 0x44bfa1
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 0x44bfd5
push esi
push ebp
push ebx
call fcn.0049b620
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 0x44c048
lea ecx, [eax + 0x10]
mov esi, eax
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x44c03c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x44c033
push eax
call fcn.00492c28
add esp, 4
push esi
call fcn.00492988
add esp, 4
mov dword [0x4b8c90], ebx
mov byte [0x4b8c94], bl
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x44c650
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 0x44c67a
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.004939bc
mov esi, eax
add esp, 8
cmp esi, edi
jbe 0x44c6a7
cmp byte [esi - 1], 0x3a
je 0x44c6a7
push edi
mov byte [esi], 0
call fcn.0044c650
add esp, 4
mov byte [esi], 0x5c
test al, al
jne 0x44c6a7
pop edi
pop esi
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x44c6c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x44c6c6
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x44d300
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 0x44d350
push edi
push 1
mov ecx, ebp
call fcn.00401270
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x44d32a
mov esi, dword [ebp + 0xc]
jmp 0x44d32c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x44d347
test byte [esi + 0x15], 8
je 0x44d33f
mov eax, esi
call fcn.004011b0
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x44d37e
mov esi, 0x4bcca0
mov ebx, dword [esi]
jmp 0x44d37e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00482340
add esp, 0xc
test eax, eax
jne 0x44d37a
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 0x44d3c6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x44d3bb
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 0x44d3e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x44d3f2
mov edx, dword [esp + 0x24]
push edx
call fcn.00492c28
add esp, 4
mov ebx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
call fcn.0043b150
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x44d420
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 0x44d454
mov dl, byte [esi]
test dl, dl
je 0x44d491
mov ecx, 0x4aec8c
mov al, 0x3f
lea ecx, [ecx]
cmp dl, al
je 0x44d491
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x44d440
mov dl, byte [edi + 1]
inc edi
test dl, dl
jne 0x44d436
cmp byte [esi], 0
je 0x44d491
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.0043b150
pop edi
pop esi
pop ebx
add esp, 8
ret
push 0
push 0x44d410
push 0
push 1
push ebx
call fcn.0044d9d0
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x44d520
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 0x44d560
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 0x44d565
sub eax, edx
cmp eax, 0x104
jb 0x44d57a
mov eax, 0x103
push ebx
inc eax
push eax
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0049b620
lea eax, [esp + 0x1c]
push eax
call fcn.00495a4d
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 0x44d5e6
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44d5e6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x44d5e5
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 0x44d600
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 [0x4bca64]
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 0x44d65e
mov eax, dword [eax]
test eax, eax
jne 0x44d663
mov eax, 0x4a7935
push eax
call esi
pop esi
mov al, bl
pop ebx
add esp, 0x104
ret 8
Function at 0x44d730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x84
push ebx
mov ebx, ecx
mov ecx, dword [0x4bb388]
push esi
mov esi, eax
call fcn.0041c2e0
test esi, esi
je 0x44d7ea
cmp byte [esi], 0
je 0x44d7ea
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44d7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x44d81f
mov eax, dword [0x4bbc50]
push 1
push 0
push esi
push 0x4a7dfc
push eax
call fcn.004828b0
pop esi
pop ebx
add esp, 0x84
ret
mov edx, dword [0x4bbc50]
mov ecx, dword [0x4b7a70]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push edx
mov dword [ecx + 0x30], 0
call fcn.004828b0
mov edx, esi
lea eax, [esp + 8]
call fcn.00480650
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4bb388]
push eax
call fcn.004828b0
pop esi
pop ebx
add esp, 0x84
ret
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x44d81f
mov ecx, dword [0x4bbc50]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push ecx
call fcn.004828b0
pop esi
pop ebx
add esp, 0x84
ret
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043b050
pop esi
pop ebx
add esp, 0x84
ret