joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cd49
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.00414cb7
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x41ce8e
push 2
push esi
push dword [ebp + 8]
call fcn.00414cb7
add esp, 0xc
cmp eax, ebx
je 0x41ce8e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41ce31
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x41cdc2
call fcn.00418298
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x41ce79
push 0x8000
push dword [ebp + 8]
call fcn.00421f0e
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x41cddc
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00421cd4
add esp, 0xc
cmp eax, 0xffffffff
je 0x41cdf8
sub edi, eax
test edi, edi
jg 0x41cdd4
jmp 0x41ce10
call fcn.004182a1
cmp dword [eax], 5
jne 0x41ce0d
call fcn.00418298
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00421f0e
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41ce79
jge 0x41ce79
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414cb7
push dword [ebp + 8]
call fcn.0041c95f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41ce79
call fcn.00418298
mov dword [eax], 0xd
call fcn.004182a1
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00414cb7
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41ce90
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x41f5aa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00413eb0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41f63f
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x480e54]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41f63f
cmp eax, 1
je 0x41f657
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41f63f
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41f614
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41f63b
xor eax, eax
inc eax
jmp 0x41f673
cmp esi, ebx
jae 0x41f643
xor eax, eax
jmp 0x41f673
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x480e54]
jmp 0x41f659
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4203cf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x481234], ebx
push esi
push edi
jne 0x42044f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42048a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x481234], eax
je 0x42048a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x481238], eax
call esi
cmp dword [0x480e54], 2
mov dword [0x48123c], eax
jne 0x42044f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x481244], eax
je 0x42044f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x481240], eax
mov eax, dword [0x481240]
test eax, eax
je 0x420494
call eax
test eax, eax
je 0x42047b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x481244]
test eax, eax
je 0x42047b
test byte [ebp - 8], 1
jne 0x420494
cmp dword [0x480e60], 4
jb 0x42048e
or byte [ebp + 0x12], 0x20
jmp 0x4204b3
xor eax, eax
jmp 0x4204c3
or byte [ebp + 0x12], 4
jmp 0x4204b3
mov eax, dword [0x481238]
test eax, eax
je 0x4204b3
call eax
mov ebx, eax
test ebx, ebx
je 0x4204b3
mov eax, dword [0x48123c]
test eax, eax
je 0x4204b3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x481234]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421cd4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x421cf2
xor eax, eax
jmp 0x421e60
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x481380]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x421d25
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004239f1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x421df7
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x421e32
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x421d80
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x421d71
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x421d54
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421dc0
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x421dc9
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x421d45
jmp 0x421dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x421e5b
cmp dword [ebp - 4], edi
je 0x421e32
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x421e24
call fcn.00418298
mov dword [eax], 9
call fcn.004182a1
mov dword [eax], esi
jmp 0x421e2d
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421e19
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x421dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x421dcb
push dword [ebp - 4]
call fcn.004182aa
pop ecx
or eax, 0xffffffff
jmp 0x421e5e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x421e47
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x421e47
xor eax, eax
jmp 0x421e5e
call fcn.00418298
mov dword [eax], 0x1c
call fcn.004182a1
mov dword [eax], edi
jmp 0x421e2d
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4247aa
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x46f700
call fcn.00418700
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4812b8], edi
jne 0x4247ee
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4247d9
mov dword [0x4812b8], ebx
jmp 0x4247ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4247ee
mov dword [0x4812b8], 2
mov eax, dword [0x4812b8]
cmp eax, ebx
jne 0x42480e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4248d1
cmp eax, 2
je 0x424817
cmp eax, edi
jne 0x42483f
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x42482a
mov eax, dword [0x481170]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x424846
xor eax, eax
jmp 0x4248d1
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00413eb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x424879
cmp esi, edi
jne 0x42488f
push dword [ebp - 0x24]
call fcn.00413922
pop ecx
mov esi, eax
cmp esi, edi
je 0x42483f
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4248c2
cmp dword [ebp + 0x14], edi
jne 0x4248ac
push edi
push edi
jmp 0x4248b2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x4248ce
push esi
call fcn.004137d8
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00418739
ret
Function at 0x4248da
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x46f710
call fcn.00418700
xor esi, esi
cmp dword [0x4812bc], esi
jne 0x42491e
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x424909
mov dword [0x4812bc], edi
jmp 0x42491e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42491e
mov dword [0x4812bc], 2
mov eax, dword [0x4812bc]
cmp eax, 2
je 0x4249ff
cmp eax, esi
je 0x4249ff
cmp eax, 1
jne 0x424963
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x42494c
mov eax, dword [0x481170]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x42496a
xor eax, eax
jmp 0x424a11
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00413eb0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4249a0
cmp edi, esi
jne 0x4249bb
lea eax, [ebx + ebx]
push eax
call fcn.00413922
pop ecx
mov edi, eax
cmp edi, esi
je 0x424963
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4249ee
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4249d8
push esi
push esi
jmp 0x4249de
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4249fa
push edi
call fcn.004137d8
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x424a11
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00418739
ret
Function at 0x425151
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x4251b9
push 0x3d
push esi
call fcn.00415645
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x4251b9
cmp esi, eax
je 0x4251b9
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x480e74]
sete cl
cmp eax, dword [0x480e78]
mov dword [ebp - 4], ecx
jne 0x42519f
mov edi, eax
call fcn.004250f0
mov dword [0x480e74], eax
cmp eax, ebx
jne 0x4251f8
cmp dword [ebp + 0xc], ebx
je 0x4251c1
cmp dword [0x480e7c], ebx
je 0x4251c1
call fcn.00424406
test eax, eax
je 0x4251f8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x425302
push 4
call fcn.00413922
cmp eax, ebx
pop ecx
mov dword [0x480e74], eax
je 0x4251b9
mov dword [eax], ebx
cmp dword [0x480e7c], ebx
jne 0x4251f8
push 4
call fcn.00413922
cmp eax, ebx
pop ecx
mov dword [0x480e7c], eax
je 0x4251b9
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x480e74]
sub edi, esi
push esi
call fcn.004250a3
mov edi, eax
test edi, edi
pop ecx
jl 0x425254
cmp dword [ebx], 0
je 0x425254
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004137d8
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x425239
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x42528a
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x425230
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00416e5a
test eax, eax
mov esi, dword [ebp + 8]
pop ecx
pop ecx
je 0x42528a
jmp 0x425285
cmp dword [ebp - 4], 0
jne 0x4252fb
test edi, edi
jge 0x425264
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00416e5a
test eax, eax
pop ecx
pop ecx
je 0x4251b9
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x480e74], eax
cmp dword [ebp + 0xc], 0
je 0x4252e6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425295
sub eax, edx
add eax, 2
push eax
call fcn.00413922
mov edi, eax
test edi, edi
pop ecx
je 0x4252e6
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x4252b2
mov ecx, dword [ebp - 8]
add eax, ecx
and byte [eax], dl
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4252df
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004137d8
pop ecx
cmp dword [ebp - 4], 0
je 0x4252f3
push esi
call fcn.004137d8
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4251bc
push esi
call fcn.004137d8
pop ecx
xor eax, eax
jmp 0x4251bc
Function at 0x429140
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00413eb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42920b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42920b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4291be
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4291c9
or bh, 8
and edi, 0x8000000
je 0x4291e4
mov eax, dword [0x482d9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42920b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4295e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42960b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42962f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42964a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x43d150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x43d172
cmp dword [edi + 0x3c], 0
jne 0x43d172
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00454a7d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0043d1b1
pop edi
pop esi
pop ebx
ret 8

Function at 0x43e908
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43e940
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043b5fd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043b5d5
jmp 0x43e94c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x44070a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x44074c
call fcn.00454a7d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44074c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x440743
xor eax, eax
jmp 0x440754
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044075a
pop edi
pop esi
pop ebx
ret 4
Function at 0x401070
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x198
lea eax, [esp + 4]
push esi
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401096
pop esi
add esp, 0x198
ret
mov eax, dword [esp + 0x1a0]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4010ae
xor eax, eax
pop esi
add esp, 0x198
ret
mov edx, dword [eax + 0x18]
test edx, edx
je 0x4010c7
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4010c7
lea ecx, [esp + 0x9c]
push eax
push ecx
jmp 0x4010d0
lea edx, [esp + 0x9c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x9c]
push str.__TrueType_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [esp + 0x18], 2
je 0x401103
lea ecx, [esp + 4]
push ecx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionFonts
jmp 0x401114
lea edx, [esp + 4]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401169
mov ecx, dword [esp + 4]
lea eax, [esp + 0x9c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, dword [esp + 0x1a4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea edx, [esp + 0x9c]
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x198
ret
Function at 0x401660
Capabilities:
Get common file path
Move file
Read .ini file

Disassembly:
mov eax, 0x3fa0
call fcn.004034a0
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401690
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3fa0
ret
cmp dword [esp + 0x20], 2
je 0x4017f1
mov eax, dword [esp + 0x3fb8]
test eax, eax
jne 0x4016b5
lea ecx, [esp + 0x1a8]
push 0x409188
push ecx
jmp 0x4016be
lea edx, [esp + 0x1a8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x1a8]
push 0x409184
push eax
call esi
mov ecx, dword [esp + 0x3fb4]
lea edx, [esp + 0x1a8]
push ecx
push edx
call esi
lea eax, [esp + 0xa4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40170d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3fa0
ret
lea ecx, [esp + 0xa4]
push str.WININIT.INI
push ecx
call esi
lea edx, [esp + 0xa4]
lea eax, [esp + 0x3b0]
push edx
push 0x3c00
push eax
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebp, eax
cmp ebp, 0x3bfe
jne 0x401753
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3fa0
ret
mov al, byte [esp + 0x3b0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, al
lea esi, [esp + 0x3b0]
je 0x401793
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov al, byte [esi + 1]
test al, al
je 0x401793
lea ecx, [esp + 0x1a8]
push ecx
push esi
call ebx
test eax, eax
je 0x4017e1
push esi
call edi
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x401771
lea edx, [esp + 0x1a8]
push edx
call edi
lea eax, [eax + ebp + 2]
cmp eax, 0x3c00
jae 0x4017e1
lea ecx, [esp + 0x1a8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x1a8]
push edx
call edi
mov byte [eax + esi + 1], 0
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x3b0]
push eax
push ecx
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3fa0
ret
mov edx, dword [esp + 0x3fb8]
mov eax, dword [esp + 0x3fb4]
push 5
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3fa0
ret