joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f15f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f649
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.0045ad50
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10a9]
push eax
lea ecx, [ebp - 0x1050]
mov dword [ebp - 0x10b8], ebx
mov dword [ebp - 0x1050], 0x4c13a0
mov dword [ebp - 0x1028], 0x4c18a4
call fcn.00403f50
or dword [ebp - 0x10b0], 0xffffffff
mov dword [ebp - 4], ebx
add esi, 4
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x40f1df
mov esi, dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f2d7
lea ecx, [ebp - 0x10b0]
call fcn.00412933
lea eax, [ebp - 0x10a8]
push eax
mov dword [ebp - 0x10b0], esi
call fcn.0044db75
pop ecx
push ebx
lea eax, [ebp - 0x10b4]
push eax
push 0x1000
lea eax, [ebp - 0x1020]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f263
push dword [ebp - 0x10b4]
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x10a8]
push eax
call fcn.0044e25a
add esp, 0xc
cmp dword [ebp - 0x10b4], 0
ja 0x40f21f
lea eax, [ebp - 0x10a8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0044daf8
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
lea eax, [ebp - 0x1050]
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call fcn.00403b50
add esp, 0x50
push ebx
lea eax, [ebp - 0x1050]
push eax
mov ecx, edi
mov dword [edi], 0x4c13a0
mov dword [edi + 0x28], 0x4c18a4
call fcn.004053a0
lea ecx, [ebp - 0x10b0]
call fcn.00412933
lea ecx, [ebp - 0x1050]
call fcn.00401ac0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004591d7
leave
ret 8
Function at 0x41243c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
movzx ecx, word [eax + 0x44]
cmp ecx, dword [ebp + 8]
jne 0x412464
movzx eax, word [eax + 0x4a]
cmp ax, 0xffff
jne 0x4124a5
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x41249f
lea eax, [ebp - 0x2c]
push eax
call fcn.0045b8a1
pop ecx
push 2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x4124b4
mov ecx, dword [esi]
mov ax, word [ebp - 0x4c]
mov word [ecx + 0x4a], ax
mov eax, dword [esi]
mov ax, word [eax + 0x4a]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004591d7
leave
ret 4
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41249f
xor eax, eax
jmp 0x4124a5

Function at 0x415426
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x4a00ba
call fcn.0045a829
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, 0xffffffff
cmove eax, edi
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x4154ab
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0044fac5
test al, al
jne 0x4154fd
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4ac964
mov dword [ebp - 0x48], 0x4ac96c
call fcn.00408e82
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00416a4d
push 0x4c7fcc
lea eax, [ebp - 0x114]
push eax
call fcn.004591e6
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4154fd
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0xc0]
jmp 0x4154a5
mov eax, dword [ebp - 0x118]
call fcn.0045a7d8
ret 8
Function at 0x41550b
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x4a00f2
call fcn.0045a829
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 6
pop ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x415590
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0044fac5
test al, al
jne 0x4155e5
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4ac964
mov dword [ebp - 0x48], 0x4ac96c
call fcn.00408e82
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00416a4d
push 0x4c7fcc
lea eax, [ebp - 0x114]
push eax
call fcn.004591e6
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4155e5
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0xc0]
jmp 0x41558a
mov eax, dword [ebp - 0x118]
call fcn.0045a7d8
ret 8

Function at 0x4155f3
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x4a012a
call fcn.0045a829
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0x26
pop ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x415678
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0044fac5
test al, al
jne 0x4156cd
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4ac964
mov dword [ebp - 0x48], 0x4ac96c
call fcn.00408e82
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00416a4d
push 0x4c7fcc
lea eax, [ebp - 0x114]
push eax
call fcn.004591e6
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4156cd
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0xc0]
jmp 0x415672
mov eax, dword [ebp - 0x118]
call fcn.0045a7d8
ret 8
Function at 0x418b3b
Capabilities:
Get disk information

Disassembly:
push 0x64
mov eax, 0x4a0a88
call fcn.0045a829
mov edi, ecx
lea ecx, [edi + 4]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040cffe
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0040a3f4
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x418b78
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00401b80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401b80
cmp esi, 2
je 0x418bc4
cmp esi, 5
je 0x418bc4
cmp esi, 3
je 0x418bc0
cmp esi, 4
je 0x418bc0
cmp esi, 6
je 0x418bc0
mov ecx, edi
call fcn.0041a080
xor ecx, ecx
cmp ax, 1
setne al
jmp 0x418bc6
xor al, al
jmp 0x418bc6
mov al, 1
call fcn.0045a7d8
ret
Function at 0x419740
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x46]
push edi
mov word [esi + 0xc], 0
call fcn.0041c593
test al, al
je 0x419767
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x44], ax
jmp 0x4197df
mov ax, word [ebp + 8]
test ax, ax
jne 0x419782
cmp dword [esi + 0x40], 4
jne 0x419782
mov ecx, esi
lea edi, [esi + 0x44]
call fcn.0041a480
jmp 0x419785
lea edi, [esi + 0x44]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c593
test al, al
je 0x41979a
mov byte [esi + 0xd], 1
jmp 0x4197df
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c593
test al, al
jne 0x4197df
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c593
test al, al
jne 0x4197df
call fcn.004439c4
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041c593
test al, al
jne 0x4197df
mov ax, word [esi + 0x48]
mov word [edi], ax
pop edi
pop esi
pop ebp
ret 4
Function at 0x419f36
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebx + 0xa8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp + 0x10], edi
test edi, edi
je 0x41a071
push 0x1c
pop eax
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
mov ecx, esi
cmovne ecx, dword [ebp - 0x1c]
push ebx
push str..debug
mov dword [ebp - 0xc], ecx
call fcn.0041a9de
pop ecx
pop ecx
test eax, eax
je 0x419fa3
cmp dword [eax + 0xc], edi
jne 0x419fa3
mov ecx, dword [eax + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx + 0xac]
mov dword [ebp + 0x10], ecx
add edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
jmp 0x41a005
push ebx
push str..rdata
call fcn.0041a9de
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x419fcd
push ebx
push str..text
call fcn.0041a9de
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41a071
mov eax, dword [ebx + 0xac]
push 0x1c
xor edx, edx
pop ecx
mov dword [ebp - 8], eax
div ecx
mov ebx, eax
test ebx, ebx
je 0x41a071
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x41a071
sub edx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 0x10], eax
lea edi, [eax + ecx]
mov eax, edi
sub eax, ecx
cmp eax, dword [ebp - 0xc]
jbe 0x41a056
cmp dword [ebp + 8], esi
je 0x41a056
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
imul eax, dword [ebp - 0x30]
add ecx, edx
push ecx
push eax
push esi
push 4
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x41a071
lea ecx, [ebp - 4]
call fcn.00423154
mov dword [ebp - 4], edi
sub edi, dword [ebp - 0xc]
add edi, dword [ebp + 0x10]
test ebx, ebx
je 0x41a071
add edi, 0x10
mov eax, dword [edi + 8]
add eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jbe 0x41a069
add esi, dword [edi]
push 0x1c
pop eax
add edi, eax
dec ebx
jne 0x41a05d
lea ecx, [ebp - 4]
call fcn.00423154
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41c508
Capabilities:
Read .ini file

Disassembly:
push 0x38
mov eax, 0x4a1386
call fcn.0045a829
mov edi, ecx
lea esi, [edi + 4]
lea eax, [ebp - 0x40]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040d0d5
add eax, 4
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x44], 1
jb 0x41c545
mov eax, dword [eax]
push eax
push ebx
push str.AllUsers
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x41c564
cmp byte [edi + 0x258], 0
je 0x41c571
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp byte [eax + 0x1b], 0
je 0x41c573
mov bl, 1
lea ecx, [ebp - 0x40]
call fcn.00401b80
xor eax, eax
mov ecx, 0x80042002
test bl, bl
cmovne eax, ecx
call fcn.0045a7d8
ret
Function at 0x41c943
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x41c98e
lea ecx, [ebp - 0xc]
call fcn.00405170
mov edi, esi
mov dword [ebp - 0xc], edi
cmp esi, 0xffffffff
je 0x41cab5
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41cab5
lea ecx, [ebp - 8]
call fcn.00405170
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
push eax
push ebx
push ebx
push 4
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x41cab5
lea ecx, [ebp - 4]
call fcn.004231a2
mov eax, 0x5a4d
mov dword [ebp - 4], esi
cmp word [esi], ax
jne 0x41ca80
mov eax, dword [esi + 0x3c]
add eax, esi
push 0xf8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41ca79
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
jne 0x41ca79
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x18], ecx
jae 0x41ca83
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
push ebx
push ebx
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
cmp esi, eax
je 0x41ca4c
lea ecx, [ebp - 4]
call fcn.004231a2
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x41ca79
mov eax, dword [esi + 0x3c]
add eax, esi
push 0xf8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41ca79
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0x41ca83
mov ebx, 0xc1
jmp 0x41cabd
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41ca8f
mov dword [ecx], esi
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ca9b
mov dword [ecx], edi
mov dword [ebp - 0xc], ebx
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x41caaa
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
mov dword [ebp - 8], ebx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x41cabd
mov dword [ecx], eax
jmp 0x41cabd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.004231a2
lea ecx, [ebp - 8]
call fcn.00405170
lea ecx, [ebp - 0xc]
call fcn.00405170
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41fbeb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4a1ac5
call fcn.0045a895
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41fc68
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41fc68
call fcn.004185e3
mov esi, eax
jmp 0x41fd3f
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41fc8b
call fcn.004185e3
jmp 0x41fd32
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x41fc81
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x41fcbb
mov esi, 0x8007000e
jmp 0x41fd34
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004181e9
jmp 0x41fce1
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x41fcb4
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x41fc81
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0041fab2
mov esi, eax
test edi, edi
je 0x41fd3f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41fd58
lea ecx, [ebp - 0x418]
call fcn.00419c30
mov eax, esi
call fcn.0045a7e7
ret 0x10
Function at 0x424b5b
Capabilities:
Get file size

Disassembly:
push 0x108
mov eax, 0x4a24e1
call fcn.0045a829
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 4], ebx
je 0x424bcf
test eax, eax
je 0x424b7c
mov dword [eax], ebx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
cmp esi, 0xffffffff
jne 0x424c2c
push ebx
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4ac964
mov dword [ebp - 0x48], 0x4ac96c
call fcn.00408e82
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00416a4d
push 0x4c7fcc
lea eax, [ebp - 0x114]
push eax
call fcn.004591e6
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x424c2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x424c2c
push 0
lea ecx, [edi + 0xc]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.004166c3
push 0x4c7f58
lea eax, [ebp - 0xc0]
jmp 0x424bc9
mov eax, esi
call fcn.0045a7d8
ret 4
Function at 0x42a1f4
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x4a2d68
call fcn.0045a829
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, 0xffffffff
cmove eax, edi
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x42a279
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0044fac5
test al, al
jne 0x42a2cb
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4ac964
mov dword [ebp - 0x48], 0x4ac96c
call fcn.00408e82
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00416a4d
push 0x4c7fcc
lea eax, [ebp - 0x114]
push eax
call fcn.004591e6
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42a2cb
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0xc0]
jmp 0x42a273
mov eax, dword [ebp - 0x118]
call fcn.0045a7d8
ret 8

Function at 0x42a2df
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24c
mov eax, 0x4a2da6
call fcn.0045a829
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x258], ebx
call fcn.00459250
add esp, 0xc
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 4], ebx
mov eax, 0x20019
test esi, esi
jns 0x42a337
mov eax, 0x20119
and esi, 0x7fffffff
lea ecx, [ebp - 0x24c]
push ecx
push eax
push ebx
push 0x4af918
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a38b
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
mov ecx, str.ProgramFilesDir
cmp esi, 1
push ebx
mov eax, str.CommonFilesDir
cmovne eax, ecx
push eax
push dword [ebp - 0x24c]
mov dword [ebp - 0x254], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x24d]
push eax
lea eax, [ebp - 0x218]
mov ebx, 0x4adfa8
mov esi, 0x4adfb0
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x220], esi
call fcn.00408f6d
push 0x4ac888
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.0042b99e
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x28], esi
call fcn.00408e82
lea ecx, [ebp - 0x248]
call fcn.00401b80
lea ecx, [ebp - 0x24c]
call fcn.00432809
mov eax, edi
call fcn.0045a7d8
ret
Function at 0x42a8a2
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0x14
mov eax, 0x4a2e2c
call fcn.0045a7f6
mov esi, ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0xd]
push eax
mov dword [esi], 0x4c13f0
mov dword [esi + 0x28], 0x4c1390
call fcn.00404200
push 0x105
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040a14b
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.0040a0f0
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00409574
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp + 8]
call fcn.00401b80
mov eax, esi
call fcn.0045a7c4
ret 0x30

Function at 0x42b187
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x42b1a2
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x42b19b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, esi
pop esi
jmp fcn.00401b80

Function at 0x42c040
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0
je 0x42c0e1
or dword [ebp - 0x258], 0xffffffff
push esi
lea esi, [ecx + 4]
push edi
cmp dword [esi + 0x14], 8
jb 0x42c073
mov eax, dword [esi]
jmp 0x42c075
mov eax, esi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42c0d4
lea ecx, [ebp - 0x258]
call fcn.00423188
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x258], edi
jb 0x42c0a5
mov eax, dword [esi]
jmp 0x42c0a7
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x42c0b1
mov edi, dword [esi]
jmp 0x42c0b3
mov edi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x42c0cd
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x258]
call fcn.00423188
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591d7
leave
ret