joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d516
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4573c0]
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 0x42d59e
push esi
call fcn.00430be0
test eax, eax
pop ecx
jne 0x42d566
call fcn.00426453
mov dword [eax], 0xf
call fcn.0042644a
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00423e28
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 0x42d5b1
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x42d556
inc eax
cmp eax, esi
ja 0x42d556
test edi, edi
mov ecx, edi
jne 0x42d5e7
cmp eax, dword [ebp + 0x10]
jg 0x42d5c8
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.00423de5
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x42d5fc
call fcn.0042644a
mov dword [eax], 0xc
jmp 0x42d556
cmp eax, dword [ebp + 0x10]
jle 0x42d5fc
call fcn.0042644a
mov dword [eax], 0x22
jmp 0x42d556
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.004250e3
pop ecx
pop ecx
jmp 0x42d558

Function at 0x42e57b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x45ab74], ebx
push esi
push edi
jne 0x42e5fb
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42e636
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x45ab74], eax
je 0x42e636
push 0x44d45c
push edi
call esi
push 0x44d448
push edi
mov dword [0x45ab78], eax
call esi
cmp dword [0x45a664], 2
mov dword [0x45ab7c], eax
jne 0x42e5fb
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x45ab84], eax
je 0x42e5fb
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x45ab80], eax
mov eax, dword [0x45ab80]
test eax, eax
je 0x42e640
call eax
test eax, eax
je 0x42e627
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x45ab84]
test eax, eax
je 0x42e627
test byte [ebp - 8], 1
jne 0x42e640
cmp dword [0x45a670], 4
jb 0x42e63a
or byte [ebp + 0x12], 0x20
jmp 0x42e65f
xor eax, eax
jmp 0x42e66f
or byte [ebp + 0x12], 4
jmp 0x42e65f
mov eax, dword [0x45ab78]
test eax, eax
je 0x42e65f
call eax
mov ebx, eax
test ebx, ebx
je 0x42e65f
mov eax, dword [0x45ab7c]
test eax, eax
je 0x42e65f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x45ab74]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430be0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x430c0e
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 0x430c13
cmp eax, 1
je 0x430c13
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431eba
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00424bd0
mov eax, dword [0x4573c0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0042c030
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x431fef
push 2
push esi
push dword [ebp + 8]
call fcn.0042c030
add esp, 0xc
cmp eax, ebx
je 0x431fef
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x431f8f
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00425320
push 0x8000
push dword [ebp + 8]
call fcn.00432aef
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x431f45
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0042b9a4
add esp, 0xc
cmp eax, 0xffffffff
je 0x431f65
sub edi, eax
test edi, edi
jg 0x431f3d
jmp 0x431f7d
call fcn.00426453
cmp dword [eax], 5
jne 0x431f7a
call fcn.0042644a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00432aef
pop ecx
pop ecx
jmp 0x431fd7
jge 0x431fd7
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042c030
push dword [ebp + 8]
call fcn.0042c636
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 0x431fd7
call fcn.0042644a
mov dword [eax], 0xd
call fcn.00426453
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0042c030
add esp, 0xc
mov eax, esi
pop edi
jmp 0x431ff1
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00423e28
leave
ret
Function at 0x432655
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 0x43266e
or eax, 0xffffffff
jmp 0x4326cf
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4326cb
push 0x3d
push esi
call fcn.00432b86
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4326cb
cmp esi, eax
je 0x4326cb
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x45a684]
sete cl
cmp eax, dword [0x45a688]
mov dword [ebp - 4], ecx
jne 0x4326b1
mov edi, eax
call fcn.004325f4
mov dword [0x45a684], eax
cmp eax, ebx
jne 0x43270a
cmp dword [ebp + 0xc], ebx
je 0x4326d3
cmp dword [0x45a68c], ebx
je 0x4326d3
call fcn.0043158c
test eax, eax
je 0x43270a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4326dc
xor eax, eax
jmp 0x4326ce
push 4
call fcn.00423de5
cmp eax, ebx
pop ecx
mov dword [0x45a684], eax
je 0x4326cb
mov dword [eax], ebx
cmp dword [0x45a68c], ebx
jne 0x43270a
push 4
call fcn.00423de5
cmp eax, ebx
pop ecx
mov dword [0x45a68c], eax
je 0x4326cb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x45a684]
sub edi, esi
push esi
call fcn.004325a7
mov edi, eax
test edi, edi
pop ecx
jl 0x432771
cmp dword [ebx], 0
je 0x432771
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00423ccd
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x432751
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4327b2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x432748
mov eax, edi
shl eax, 2
push eax
push dword [0x45a684]
call fcn.00425778
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4327b2
jmp 0x4327ad
cmp dword [ebp - 4], 0
jne 0x432819
test edi, edi
jge 0x432781
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x45a684]
call fcn.00425778
test eax, eax
pop ecx
pop ecx
je 0x4326cb
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 [0x45a684], eax
cmp dword [ebp + 0xc], 0
je 0x432804
push esi
call fcn.00425930
inc eax
inc eax
push eax
call fcn.00423de5
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x432804
push esi
push edi
call fcn.00429ce0
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 0x4327fd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00423ccd
pop ecx
cmp dword [ebp - 4], 0
je 0x432811
push esi
call fcn.00423ccd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4326ce
push esi
call fcn.00423ccd
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4326d8
Function at 0x433757
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x443c62
call fcn.004252f4
sub esp, 0x124
mov eax, dword [0x4573c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x1c]
push eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x130], esi
call fcn.0043929c
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00401a40
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x4337fd
mov edi, 0x114
push edi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00425320
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x4337f6
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x4337fd
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00423de5
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x433812
call fcn.00433308
push dword [ebp + 0x20]
push ebx
push eax
call fcn.00425320
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x304], ebx
lea ecx, [esi + 0x7c]
mov word [ecx], bx
lea edi, [esi + 0xfc]
mov word [edi], bx
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x433891
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0043ebbf
cmp dword [ebp - 0x12c], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x433387
je 0x4338c3
push 0x104
push dword [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x128], ebx
je 0x433902
push dword [ebp - 0x128]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00402ea0
push ebx
mov ecx, edi
call fcn.00401a80
jmp 0x4338eb
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.00425209
cmp eax, ebx
pop ecx
pop ecx
jne 0x4338e5
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423e28
leave
ret 0x1c
Function at 0x436cef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x436d28
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00408a90
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00401760
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x437f07
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 0x437f4a
call fcn.0043ebbf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x437f4a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x437f65
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0043707b
test ebx, ebx
mov esi, eax
je 0x437f63
test edi, edi
je 0x437f63
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43891d
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x443970
call fcn.004252f4
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x438942
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x43898e
call fcn.004390f3
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.004010f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x439645
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 0x43967c
call fcn.0043ebbf
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 0x43968d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4396c6
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4396ab
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4396b3
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4396c4
test ax, ax
jne 0x4396c4
test si, si
je 0x4396c6
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4396d5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x439927
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x443b17
call fcn.004252f4
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.0043ebbf
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x439975
call fcn.0043ebbf
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 0x439986
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x439992
or eax, 0xffffffff
jmp 0x439a95
mov ecx, esi
call fcn.00439469
mov dword [ebp - 0x14], eax
call fcn.0043631a
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4399d5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4399d5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4399d5
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.0043759a
push dword [ebp - 0x14]
call fcn.00436272
push edi
push eax
push ebx
mov ecx, esi
call fcn.0043971a
xor ebx, ebx
cmp eax, ebx
je 0x439a49
test byte [esi + 0x38], 0x10
je 0x439a17
push 4
pop edi
mov ecx, esi
call fcn.00438217
test ah, 1
je 0x439a0f
push 5
pop edi
push edi
mov ecx, esi
call fcn.00435d16
cmp dword [esi + 0x1c], ebx
je 0x439a49
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0043847d
jmp 0x439a49
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x439a5d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x439a76
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x439a76
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.004394a3
cmp dword [esi + 0x54], ebx
je 0x439a92
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 0x43a8bb
Capabilities:
Get disk information

Disassembly:
mov eax, 0x443ccd
call fcn.004252f4
sub esp, 0x264
mov eax, dword [0x4573c0]
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 0x43a902
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x43a906
cmp eax, esi
jb 0x43a90d
xor eax, eax
jmp 0x43a9f5
call fcn.004390f3
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.0043a879
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x43a9e2
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 0x43a96e
xor esi, esi
jmp 0x43a9e5
test byte [ebp - 0x26c], 2
jne 0x43a97e
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x26c], 4
jne 0x43a9e2
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x43a9e2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x268], 0
je 0x43a96a
cmp dword [ebp - 0x268], edi
jbe 0x43a96a
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 0x43a96a
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.004010f0
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.00423e28
leave
ret 8
Function at 0x43b6d4
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.00425320
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 [0x44aedc]
je 0x43b822
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 0x43b744
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 0x43b74b
cmp ebx, ebx
jne 0x43b74b
xor eax, eax
jmp 0x43b825
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x43b758
mov byte [esi + 0x20], bl
jmp 0x43b76c
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.00422be3
test eax, eax
je 0x43b793
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041ad4b
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x43b798
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00422be3
test eax, eax
je 0x43b7c0
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041ad4b
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x43b7ca
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00422be3
test eax, eax
je 0x43b7f2
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041ad4b
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x43b7fc
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 0x43b80e
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 0x43b822
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 0x43c508
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4573c0]
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, 0x100
cmp ebx, eax
ja 0x43c55b
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebx
jne 0x43c55b
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x43c563
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.00423e28
leave
ret 8

Function at 0x43d5ab
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4573c0]
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 0x43d5fc
push edi
call fcn.00440060
mov esi, eax
test esi, esi
je 0x43d620
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 0x43d620
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x445c98
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.00423e28
leave
ret 0xc

Function at 0x43eda8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4573c0]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x43edd8
push 0x44a600
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x43edea
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43ee1c
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00425e62
add esp, 0x10
cmp eax, 0xffffffff
je 0x43ee1c
cmp eax, esi
jae 0x43ee1c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x43ee1e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423e28
leave
ret