joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447579
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.00440089
test eax, eax
pop ecx
jne 0x447595
or eax, 0xffffffff
jmp 0x447772
mov dword [0x47f620], eax
mov dword [0x47f604], 0x20
lea ecx, [eax + 0x480]
jmp 0x4475ca
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x47f620]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x4475ac
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x4476d1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4476d1
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x44760b
mov edi, eax
cmp dword [0x47f604], edi
jge 0x447661
mov esi, 0x47f624
push ebx
call fcn.00440089
test eax, eax
pop ecx
je 0x44765b
add dword [0x47f604], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x44764a
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x447634
add esi, 4
cmp dword [0x47f604], edi
jl 0x447618
jmp 0x447661
mov edi, dword [0x47f604]
xor ebx, ebx
test edi, edi
jle 0x4476d1
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4476c6
mov cl, byte [ebp]
test cl, 1
je 0x4476c6
test cl, 8
jne 0x44768a
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4476c6
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x47f620]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0044787d
test eax, eax
pop ecx
pop ecx
je 0x4476f1
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x447667
xor ebx, ebx
mov ecx, dword [0x47f620]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x447753
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x4476f6
push 0xfffffffffffffff6
pop eax
jmp 0x447700
or eax, 0xffffffff
jmp 0x44776f
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x44774d
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x44774d
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x44772b
or byte [esi + 4], 0x40
jmp 0x447734
cmp eax, 3
jne 0x447734
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0044787d
test eax, eax
pop ecx
pop ecx
je 0x4476f1
inc dword [esi + 8]
jmp 0x447757
or byte [esi + 4], 0x40
jmp 0x447757
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x4476d3
push dword [0x47f604]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x447db5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x447f7b
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x47f620]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x447f7b
test cl, 0x48
je 0x447e1b
mov al, byte [eax + 5]
cmp al, 0xa
je 0x447e1b
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x447e6d
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x447e55
call fcn.00441117
mov dword [eax], 9
call fcn.00441120
mov dword [eax], esi
jmp 0x447e65
cmp eax, 0x6d
je 0x447f7b
push eax
call fcn.00441129
pop ecx
or eax, 0xffffffff
jmp 0x447f7d
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x447f76
test edx, edx
je 0x447e90
cmp byte [ebx], 0xa
jne 0x447e90
or al, 4
jmp 0x447e92
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x447f70
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x447f60
cmp al, 0xd
je 0x447ec6
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x447f52
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x447ee0
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x447edb
add dword [ebp + 0x10], 2
jmp 0x447f34
mov dword [ebp + 0x10], eax
jmp 0x447f4e
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x447f08
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x447f4e
cmp dword [ebp - 0xc], 0
je 0x447f4e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x447f29
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x447f34
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x447f51
cmp ebx, dword [ebp + 0xc]
jne 0x447f39
cmp byte [ebp - 1], 0xa
jne 0x447f39
mov byte [ebx], 0xa
jmp 0x447f51
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044832f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x447f52
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x447eaa
jmp 0x447f70
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x447f70
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x447f7d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44802d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x47b258]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x448056
xor eax, eax
jmp 0x4481c4
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 + 0x47f620]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x448089
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00449bbd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x44815b
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x448196
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4480e4
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4480d5
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4480b8
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x448124
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x44812d
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4480a9
jmp 0x44812f
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4481bf
cmp dword [ebp - 8], edi
je 0x448196
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x448188
call fcn.00441117
mov dword [eax], 9
call fcn.00441120
mov dword [eax], esi
jmp 0x448191
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x44817d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x44812f
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x44812f
push dword [ebp - 8]
call fcn.00441129
pop ecx
or eax, 0xffffffff
jmp 0x4481c2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4481ab
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4481ab
xor eax, eax
jmp 0x4481c2
call fcn.00441117
mov dword [eax], 0x1c
call fcn.00441120
mov dword [eax], edi
jmp 0x448191
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0043ec3e
leave
ret
Function at 0x449029
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x47e514], ebx
push esi
push edi
jne 0x4490a9
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4490e4
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x47e514], eax
je 0x4490e4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x47e518], eax
call esi
cmp dword [0x47e138], 2
mov dword [0x47e51c], eax
jne 0x4490a9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x47e524], eax
je 0x4490a9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x47e520], eax
mov eax, dword [0x47e520]
test eax, eax
je 0x4490ee
call eax
test eax, eax
je 0x4490d5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x47e524]
test eax, eax
je 0x4490d5
test byte [ebp - 8], 1
jne 0x4490ee
cmp dword [0x47e144], 4
jb 0x4490e8
or byte [ebp + 0x12], 0x20
jmp 0x44910d
xor eax, eax
jmp 0x44911d
or byte [ebp + 0x12], 4
jmp 0x44910d
mov eax, dword [0x47e518]
test eax, eax
je 0x44910d
call eax
mov ebx, eax
test ebx, ebx
je 0x44910d
mov eax, dword [0x47e51c]
test eax, eax
je 0x44910d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x47e514]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44ae44
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x44aeaf
push 0x3d
push dword [ebp + 8]
call fcn.0043ff33
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x44aeaf
cmp dword [ebp + 8], esi
je 0x44aeaf
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x47e158]
cmp eax, dword [0x47e15c]
jne 0x44ae95
mov edi, eax
call fcn.0044ade3
mov dword [0x47e158], eax
cmp eax, ebx
jne 0x44aeee
cmp dword [ebp + 0xc], ebx
je 0x44aeb7
cmp dword [0x47e160], ebx
je 0x44aeb7
call fcn.0044a6c1
test eax, eax
je 0x44aeee
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x44aff2
push 4
call fcn.00440089
cmp eax, ebx
pop ecx
mov dword [0x47e158], eax
je 0x44aeaf
mov dword [eax], ebx
cmp dword [0x47e160], ebx
jne 0x44aeee
push 4
call fcn.00440089
cmp eax, ebx
pop ecx
mov dword [0x47e160], eax
je 0x44aeaf
mov dword [eax], ebx
mov ebx, dword [0x47e158]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0044ad96
mov edi, eax
test edi, edi
pop ecx
jl 0x44af47
cmp dword [ebx], 0
je 0x44af47
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0044009b
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x44af2f
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x44af7d
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x44af26
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0044080b
test eax, eax
pop ecx
pop ecx
je 0x44af7d
jmp 0x44af78
cmp dword [ebp - 4], 0
jne 0x44afeb
test edi, edi
jge 0x44af57
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0044080b
test eax, eax
pop ecx
pop ecx
je 0x44aeaf
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x47e158], eax
cmp dword [ebp + 0xc], 0
je 0x44afd4
push dword [ebp + 8]
call fcn.00440760
inc eax
inc eax
push eax
call fcn.00440089
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x44afd4
push dword [ebp + 8]
push esi
call fcn.00444930
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x44afcd
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0044009b
pop ecx
cmp dword [ebp - 4], 0
je 0x44afe3
push dword [ebp + 8]
call fcn.0044009b
pop ecx
mov eax, dword [ebp - 8]
jmp 0x44aeb2
push esi
call fcn.0044009b
pop ecx
xor eax, eax
jmp 0x44aeb2
Function at 0x44c031
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45c50b
call fcn.004407ec
sub esp, 0x14c
mov eax, dword [0x47b258]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
test eax, eax
jne 0x44c07b
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
xor eax, eax
jmp 0x44c110
push ebx
call fcn.0044baca
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.0044bfef
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.shlwapi.dll_PathIsUNCA]
test eax, eax
jne 0x44c102
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
je 0x44c105
test byte [ebp + 8], 2
jne 0x44c0d0
push edi
call dword [sym.imp.user32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x44c102
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x44c102
push eax
call dword [sym.imp.kernel32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_lstrcpy]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.00401f30
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.0043ec3e
leave
ret 8
Function at 0x45092c
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.00440cf0
add esp, 0xc
call fcn.004564bc
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x4509fc
cmp dword [ebp - 8], ebx
je 0x4509f7
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4507fe
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00441d6d
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x450a06
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x4509cf
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x4509e9
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x450a01
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x450a08
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x450a06
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x450d69
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00440cf0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyn]
mov eax, dword [edi + 4]
cmp eax, dword [0x46f374]
je 0x450e70
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileTime]
test eax, eax
je 0x450dd9
push ebx
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x450de0
cmp ebx, ebx
jne 0x450de0
xor eax, eax
jmp 0x450e73
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x450ded
mov byte [esi + 0x20], bl
jmp 0x450e01
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043d5e6
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043d5e6
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043d5e6
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x450e5c
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x450e70
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x452c3e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x47b258]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x452c90
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, esi
jne 0x452c90
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.kernel32.dll_lstrcmp]
test eax, eax
je 0x452c9c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0043ec3e
leave
ret 8
Function at 0x4535d8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47b258]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x453628
push dword [ebp + 8]
call fcn.004582d2
mov esi, eax
test esi, esi
je 0x453650
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.advapi32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x453650
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x45dd8c
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0043ec3e
leave
ret 0xc

Function at 0x456f78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x47b258]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x456fd5
push 0x470b9c
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0043ec3e
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
jne 0x456fa4
jmp 0x456fc8
Function at 0x456ffb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x47b258]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x4570a0
call eax
mov esi, dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0xc], ecx
call esi
push dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
call eax
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x4571a2
call dword [sym.imp.kernel32.dll_GetVersion]
test eax, eax
jns 0x457150
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0xc], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4571a3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x457145
cmp dword [ebp - 0x14], 1
jne 0x457145
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push 0x46a58c
push eax
call fcn.0043ffae
add esp, 0xc
cmp eax, 1
jne 0x457145
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x4571a3
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4571a3
lea ecx, [ebp - 8]
push ecx
push 0x456fe9
push 1
push 0x10
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.kernel32.dll_EnumResourceLanguagesA]
cmp word [ebp - 8], bx
je 0x4571a3
movzx eax, word [ebp - 8]
mov esi, dword [sym.imp.kernel32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4571c9
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00456f78
cmp eax, ebx
pop ecx
pop ecx
jne 0x4571cb
inc edi
cmp edi, esi
jl 0x4571b2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0043ec3e
leave
ret 4