joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4200a2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x457be1
call fcn.0043321c
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x42014a
push dword [ebp + 8]
call fcn.004203bf
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4201d1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x420133
push ecx
call fcn.00421291
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420133
xor edi, edi
inc edi
jmp 0x42013d
push dword [ebx]
call fcn.0042129a
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.0041ffc7
jmp 0x4201cf
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x459568]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4201c7
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.00421291
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x4201c1
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041ffa4
push esi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.0041ffa4
mov ecx, dword [ebp + 0x10]
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x42018e
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.0040c0c0
mov eax, edi
call fcn.004331ea
ret 0x10

Function at 0x4201d9
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x42022c
push esi
push dword [ebp + 8]
call fcn.004203bf
mov edi, eax
test edi, edi
je 0x420227
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x420227
mov eax, dword [ebp - 8]
jmp 0x42023e
mov eax, dword [ebp + 0x10]
jmp 0x42023e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x420244
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457c0e
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.004333a0
mov eax, dword [0x1434080]
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]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x420372
push ebx
push edx
call fcn.004203bf
mov ebx, eax
test ebx, ebx
jne 0x4202ac
push esi
jmp 0x42039a
lea ecx, [ebp - 0x1014]
call fcn.0041a410
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x420331
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.0040bf50
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.004204fb
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x42035f
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.0041ae60
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0040c0c0
jmp 0x4203a1
push esi
mov ecx, edi
call fcn.00403260
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x420358
test esi, esi
jne 0x42037b
mov esi, 0x459baa
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.00403260
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.004330c7
leave
ret 0x10
Function at 0x420590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [edi + 0x58], ebx
je 0x4205d8
push ebx
push dword [ebp + 8]
call fcn.004203bf
mov edi, eax
test edi, edi
je 0x420639
push dword [ebp + 0x14]
push esi
push 3
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x420639
mov eax, dword [ebp + 0x14]
lea eax, [eax*2 + 1]
push eax
call fcn.00421291
mov edx, dword [ebp + 0x14]
mov ebx, eax
pop ecx
xor ecx, ecx
test edx, edx
je 0x42060f
mov al, byte [esi + ecx]
and al, 0xf
add al, 0x41
mov byte [ebx + ecx*2], al
mov al, byte [esi + ecx]
shr al, 4
add al, 0x41
mov byte [ebx + ecx*2 + 1], al
inc ecx
cmp ecx, edx
jb 0x4205f4
mov byte [ebx + ecx*2], 0
mov eax, dword [edi]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x459568]
mov ecx, edi
call esi
push ebx
mov esi, eax
call fcn.0042129a
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x424486
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x4244c5
call fcn.00421aa3
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4244c5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4244cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0041c316
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x424b1d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x424ba9
cmp dword [esi + 0x20], 0
je 0x424ba9
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x424ba9
cmp dword [ebp + 8], 0
je 0x424ba9
xor edi, edi
mov ebx, edi
call fcn.00421aa3
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x424b8d
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x424ba9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004305b8
mov edi, eax
add esp, 0xc
test edi, edi
je 0x424ba5
mov ecx, esi
call fcn.004248f7
mov eax, edi
jmp 0x424bab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4298a8
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x429924
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4298e9
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x4298e9
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x429917
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x42991a
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x429911
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x459568]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x4298cd
test eax, eax
je 0x42996b
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.00429b9c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x459568]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x429bee
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x45827c
call fcn.00433285
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x429ce5
cmp edi, dword [ebx + 0xc]
jge 0x429ce5
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x429c45
cmp edi, dword [esi + 8]
jl 0x429cd3
cmp dword [ebp + 0xc], 0
je 0x429cd3
xor edi, edi
jmp 0x429c77
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.0042969b
mov esi, eax
test esi, esi
je 0x429c5f
mov dword [esi], vtable.CThreadData.0
jmp 0x429c61
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00421486
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x429c93
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x429c9f
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x429d0c
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.00435830
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x429ce5
cmp edi, dword [esi + 8]
jge 0x429ce5
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004331ea
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041c988
int3
Function at 0x42b52a
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1434080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x1437a10]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x42b583
push 0x45fac4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b5a8
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x1437a10], eax
jmp 0x42b58c
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x42b5a8
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x459568]
call esi
jmp 0x42b6ea
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.0042b83c
lea eax, [ebp - 0x14]
push eax
call fcn.0043aa52
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0043b008
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0042b83c
lea eax, [ebp - 0x14]
push eax
call fcn.0043aa52
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.0043b008
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.0042b83c
lea eax, [ebp - 0x14]
push eax
call fcn.0043aa52
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0043b008
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0042b83c
lea eax, [ebp - 0x14]
push eax
call fcn.0043aa52
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0043b008
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.0042b83c
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0043aa52
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0043b008
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004330c7
leave
ret
Function at 0x42d34a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x234
mov eax, 0x4585c8
call fcn.0043324f
mov ebx, ecx
mov dword [ebp - 0x224], ebx
and dword [ebp - 0x228], 0
call fcn.00421aa3
push 0
mov ecx, dword [eax + 4]
call fcn.0041ffe1
mov edi, eax
xor eax, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx]
mov byte [ebp - 4], 1
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call dword [0x459568]
mov ecx, ebx
call esi
push 0x2001f
lea ecx, [ebp - 0x234]
push dword [eax]
push edi
call fcn.0042d0fd
mov ecx, dword [ebp - 0x21c]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.0040c0c0
test esi, esi
jne 0x42d53c
xor ebx, ebx
lea eax, [ebp - 0x113]
push 0x103
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00435830
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
jmp 0x42d4d8
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0x21c], 0x104
push 0
push eax
inc ebx
mov byte [ebp - 0x218], 0
call fcn.00435830
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0042d2eb
test eax, eax
jne 0x42d4c3
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ecx + 4]
call fcn.0042c003
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043af60
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040c4f0
mov dword [ebp - 0x228], 1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x42d430
test edi, edi
je 0x42d4fa
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x234], edi
mov ebx, dword [ebp - 0x224]
and dword [ebp - 0x230], 0
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call dword [0x459568]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x240]
push dword [eax]
call fcn.0042c7b6
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.0040c0c0
jmp 0x42d542
mov edi, dword [ebp - 0x234]
test edi, edi
je 0x42d54d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x240]
call fcn.0041ffc7
mov eax, dword [ebp - 0x228]
call fcn.004331fe
ret

Function at 0x433b54
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x433b93
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x433b93
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x433b93
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x433b93
cmp dword [ecx + 0x74], 0xe
jbe 0x433b93
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x447f37
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004333a0
mov eax, dword [0x1434080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004469e8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x447f79
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4480f0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00432980
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x14384b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00448f7d
mov ecx, dword [esi*4 + 0x14384b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4480e9
cmp eax, dword [edi + ecx + 0x24]
jne 0x4480e9
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4480e9
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448f7d
add esp, 0x14
cmp edx, esi
jl 0x4480e9
jg 0x448044
cmp eax, esi
jb 0x4480e9
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4480e9
jl 0x448066
cmp dword [ebp - 0x1008], eax
ja 0x4480e9
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x44808b
cmp ebx, esi
je 0x4480d0
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4480d0
mov al, byte [ecx]
cmp al, 0xd
jne 0x4480b1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4480bd
cmp byte [ecx + 1], 0xa
jne 0x4480bd
inc ecx
jmp 0x4480bd
movzx eax, al
movsx eax, byte [eax + 0x14343a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x448097
cmp edx, ebx
jne 0x448097
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4480ee
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004330c7
leave
ret
Function at 0x44836f
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x448389
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4483a0
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x4483f8
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0044da20
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x4483f8
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4483f8
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4483f8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x4483f2
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x4483f4
xor bl, bl
mov al, bl
jmp 0x4483fa
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x448409
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x14384b8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44844b
cmp byte [ebx], 0xa
jne 0x44844b
or byte [edi + eax + 0x28], 4
jmp 0x448450
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x448553
mov cl, byte [eax]
cmp cl, 0x1a
je 0x44852e
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x44847f
mov eax, dword [ebp - 8]
jmp 0x44849f
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4484bb
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x448499
add eax, 2
mov cl, 0xa
jmp 0x44849c
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x448461
jmp 0x448553
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x448529
cmp dword [ebp - 0x10], 0
je 0x448529
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x14384b8]
test byte [eax + edi + 0x28], 0x48
je 0x448508
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4484f8
mov byte [esi], 0xa
jmp 0x448552
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x14384b8]
mov byte [eax + edi + 0x2a], cl
jmp 0x448552
cmp byte [ebp - 1], 0xa
jne 0x448512
cmp esi, ebx
je 0x4484f3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00448f9b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x448553
mov byte [esi], 0xd
jmp 0x448552
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x14384b8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x448550
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x448553
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret