joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dc37
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x471d48], ebx
push esi
push edi
jne 0x42dcb7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42dcf2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x471d48], eax
je 0x42dcf2
push 0x45392c
push edi
call esi
push 0x453918
push edi
mov dword [0x471d4c], eax
call esi
cmp dword [0x471830], 2
mov dword [0x471d50], eax
jne 0x42dcb7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x471d58], eax
je 0x42dcb7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x471d54], eax
mov eax, dword [0x471d54]
test eax, eax
je 0x42dcfc
call eax
test eax, eax
je 0x42dce3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x471d58]
test eax, eax
je 0x42dce3
test byte [ebp - 8], 1
jne 0x42dcfc
cmp dword [0x47183c], 4
jb 0x42dcf6
or byte [ebp + 0x12], 0x20
jmp 0x42dd1b
xor eax, eax
jmp 0x42dd2b
or byte [ebp + 0x12], 4
jmp 0x42dd1b
mov eax, dword [0x471d4c]
test eax, eax
je 0x42dd1b
call eax
mov ebx, eax
test ebx, ebx
je 0x42dd1b
mov eax, dword [0x471d50]
test eax, eax
je 0x42dd1b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x471d48]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430051
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4668f4]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x4300d9
push esi
call fcn.00432040
test eax, eax
pop ecx
jne 0x4300a1
call fcn.004246d7
mov dword [eax], 0xf
call fcn.004246ce
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004205fd
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x4300ec
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x430091
inc eax
cmp eax, esi
ja 0x430091
test edi, edi
mov ecx, edi
jne 0x430122
cmp eax, dword [ebp + 0x10]
jg 0x430103
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.00423f2f
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x430137
call fcn.004246ce
mov dword [eax], 0xc
jmp 0x430091
cmp eax, dword [ebp + 0x10]
jle 0x430137
call fcn.004246ce
mov dword [eax], 0x22
jmp 0x430091
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.004215b7
pop ecx
pop ecx
jmp 0x430093

Function at 0x432040
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x43206e
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x432073
cmp eax, 1
je 0x432073
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432adf
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4548b0
call fcn.004241b8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x471e04], edi
jne 0x432b23
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x432b0e
mov dword [0x471e04], ebx
jmp 0x432b23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x432b23
mov dword [0x471e04], 2
mov eax, dword [0x471e04]
cmp eax, ebx
jne 0x432b43
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x432c06
cmp eax, 2
je 0x432b4c
cmp eax, edi
jne 0x432b74
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x432b5f
mov eax, dword [0x471dac]
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 - 0x20], eax
cmp eax, edi
jne 0x432b7b
xor eax, eax
jmp 0x432c06
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004213b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x432bae
cmp esi, edi
jne 0x432bc4
push dword [ebp - 0x20]
call fcn.00423f2f
pop ecx
mov esi, eax
cmp esi, edi
je 0x432b74
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x432bf7
cmp dword [ebp + 0x14], edi
jne 0x432be1
push edi
push edi
jmp 0x432be7
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 - 0x24], edi
je 0x432c03
push esi
call fcn.00421ffc
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004241f3
ret
Function at 0x432c0f
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4548c0
call fcn.004241b8
xor esi, esi
cmp dword [0x471e08], esi
jne 0x432c53
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x432c3e
mov dword [0x471e08], edi
jmp 0x432c53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x432c53
mov dword [0x471e08], 2
mov eax, dword [0x471e08]
cmp eax, 2
je 0x432d34
cmp eax, esi
je 0x432d34
cmp eax, 1
jne 0x432c98
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x432c81
mov eax, dword [0x471dac]
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 0x432c9f
xor eax, eax
jmp 0x432d46
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004213b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x432cd5
cmp edi, esi
jne 0x432cf0
lea eax, [ebx + ebx]
push eax
call fcn.00423f2f
pop ecx
mov edi, eax
cmp edi, esi
je 0x432c98
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 0x432d23
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x432d0d
push esi
push esi
jmp 0x432d13
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 0x432d2f
push edi
call fcn.00421ffc
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x432d46
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.004241f3
ret
Function at 0x433205
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x43321e
or eax, 0xffffffff
jmp 0x43327f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x43327b
push 0x3d
push esi
call fcn.004336ca
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43327b
cmp esi, eax
je 0x43327b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x471850]
sete cl
cmp eax, dword [0x471854]
mov dword [ebp - 4], ecx
jne 0x433261
mov edi, eax
call fcn.004331a4
mov dword [0x471850], eax
cmp eax, ebx
jne 0x4332ba
cmp dword [ebp + 0xc], ebx
je 0x433283
cmp dword [0x471858], ebx
je 0x433283
call fcn.004320c5
test eax, eax
je 0x4332ba
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x43328c
xor eax, eax
jmp 0x43327e
push 4
call fcn.00423f2f
cmp eax, ebx
pop ecx
mov dword [0x471850], eax
je 0x43327b
mov dword [eax], ebx
cmp dword [0x471858], ebx
jne 0x4332ba
push 4
call fcn.00423f2f
cmp eax, ebx
pop ecx
mov dword [0x471858], eax
je 0x43327b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x471850]
sub edi, esi
push esi
call fcn.00433157
mov edi, eax
test edi, edi
pop ecx
jl 0x433321
cmp dword [ebx], 0
je 0x433321
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00421ffc
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x433301
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x433362
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4332f8
mov eax, edi
shl eax, 2
push eax
push dword [0x471850]
call fcn.00424204
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x433362
jmp 0x43335d
cmp dword [ebp - 4], 0
jne 0x4333c9
test edi, edi
jge 0x433331
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x471850]
call fcn.00424204
test eax, eax
pop ecx
pop ecx
je 0x43327b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x471850], eax
cmp dword [ebp + 0xc], 0
je 0x4333b4
push esi
call fcn.00420610
inc eax
inc eax
push eax
call fcn.00423f2f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4333b4
push esi
push edi
call fcn.004212b0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
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 0x4333ad
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00421ffc
pop ecx
cmp dword [ebp - 4], 0
je 0x4333c1
push esi
call fcn.00421ffc
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x43327e
push esi
call fcn.00421ffc
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x433288
Function at 0x43fabc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x43faff
call fcn.00445441
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43faff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43fb1a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043ec30
test ebx, ebx
mov esi, eax
je 0x43fb18
test edi, edi
je 0x43fb18
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4401a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x4401de
call fcn.00445441
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4401ef
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x440228
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x44020d
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x440215
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x440226
test ax, ax
jne 0x440226
test si, si
je 0x440228
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x440237
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x440497
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4499e5
call fcn.004211e8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00445441
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4404d7
call fcn.00445441
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4404e8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4404f4
or eax, 0xffffffff
jmp 0x4405f7
mov ecx, esi
call fcn.0043ffcb
mov dword [ebp - 0x14], eax
call fcn.0043df14
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x440537
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x440537
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x440537
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.0043f14f
push dword [ebp - 0x14]
call fcn.0043de6c
push edi
push eax
push ebx
mov ecx, esi
call fcn.0044027c
xor ebx, ebx
cmp eax, ebx
je 0x4405ab
test byte [esi + 0x38], 0x10
je 0x440579
push 4
pop edi
mov ecx, esi
call fcn.0044078e
test ah, 1
je 0x440571
push 5
pop edi
push edi
mov ecx, esi
call fcn.0043d910
cmp dword [esi + 0x1c], ebx
je 0x4405ab
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004409f4
jmp 0x4405ab
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4405bf
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4405d8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4405d8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00440005
cmp dword [esi + 0x54], ebx
je 0x4405f4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x440e9f
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x449a2f
call fcn.004211e8
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x440eb9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x440f05
call fcn.004411a1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004166b3
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4417ac
Capabilities:
Get disk information

Disassembly:
mov eax, 0x449ab4
call fcn.004211e8
sub esp, 0x264
mov eax, dword [0x4668f4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x268]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x4417f3
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x4417f7
cmp eax, esi
jb 0x4417fe
xor eax, eax
jmp 0x4418e6
call fcn.004411a1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.0044176a
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4418d3
push eax
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x44185f
xor esi, esi
jmp 0x4418d6
test byte [ebp - 0x26c], 2
jne 0x44186f
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x26c], 4
jne 0x4418d3
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4418d3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x268], 0
je 0x44185b
cmp dword [ebp - 0x268], edi
jbe 0x44185b
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x268]
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, esi
jge 0x44185b
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.004166b3
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004205fd
leave
ret 8
Function at 0x442595
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 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00423f50
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x4511a0]
je 0x4426e3
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 0x442605
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 0x44260c
cmp ebx, ebx
jne 0x44260c
xor eax, eax
jmp 0x4426e6
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x442619
mov byte [esi + 0x20], bl
jmp 0x44262d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.004201a9
test eax, eax
je 0x442654
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00420290
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x442659
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004201a9
test eax, eax
je 0x442681
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00420290
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x44268b
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.004201a9
test eax, eax
je 0x4426b3
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00420290
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x4426bd
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4426cf
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4426e3
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 0x4433b6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4668f4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, pe_nt_image_headers32
cmp ebx, eax
ja 0x443409
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebx
jne 0x443409
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x443411
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004205fd
leave
ret 8

Function at 0x44402f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4668f4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x444080
push edi
call fcn.00446100
mov esi, eax
test esi, esi
je 0x4440a4
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x4440a4
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x44bbec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004205fd
leave
ret 0xc

Function at 0x444a30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4668f4]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x444a60
push 0x44f588
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x444a72
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x444aa4
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004235ad
add esp, 0x10
cmp eax, 0xffffffff
je 0x444aa4
cmp eax, esi
jae 0x444aa4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x444aa6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004205fd
leave
ret