joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aa44
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42aa71
test byte [esp + 8], 0x80
je 0x42aa5f
and eax, 0xfffffffe
jmp 0x42aa62
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42aa82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e14b
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x42aa8d
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x42aaae
lea eax, [ebp - 4]
push eax
call fcn.0042b6c8
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
lea eax, [edi + 4]
push eax
call fcn.00425081
test eax, eax
pop ecx
jne 0x42aacf
call fcn.0041e139
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x42abd0
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x42abc1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x42abc1
push edi
call fcn.00425081
test eax, eax
pop ecx
je 0x42abc1
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x42abc1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x42abc1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call fcn.0041fa55
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x42abc1
xor eax, eax
jmp 0x42abcf
call fcn.0041e139
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret
Function at 0x42b55e
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x446b80
call fcn.00420828
mov eax, dword [0x494b80]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x42b602
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0041ccf0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x42b5ef
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42b602
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x42b61d
cmp byte [edi + 1], 0x3a
jne 0x42b61d
movzx eax, byte [edi]
push eax
call fcn.0042b90b
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x42b62d
push edi
call fcn.0041c994
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.0041cd5e
call fcn.00420863
ret

Function at 0x42b701
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041ccf0
mov eax, dword [0x494b80]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00426f94
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x42b834
push 2
push esi
push dword [ebp + 8]
call fcn.00426f94
add esp, 0xc
cmp eax, ebx
je 0x42b834
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42b7d4
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0041f040
push 0x8000
push dword [ebp + 8]
call fcn.0042aec6
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x42b78a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00424cfd
add esp, 0xc
cmp eax, 0xffffffff
je 0x42b7aa
sub edi, eax
test edi, edi
jg 0x42b782
jmp 0x42b7c2
call fcn.0041e142
cmp dword [eax], 5
jne 0x42b7bf
call fcn.0041e139
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0042aec6
pop ecx
pop ecx
jmp 0x42b81c
jge 0x42b81c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426f94
push dword [ebp + 8]
call fcn.0041fa55
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 0x42b81c
call fcn.0041e139
mov dword [eax], 0xd
call fcn.0041e142
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.00426f94
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42b836
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0041cd5e
leave
ret
Function at 0x42bc91
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x43ca70
call fcn.0041f0a0
sub esp, 0x9c
mov eax, dword [0x494b80]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.0042d853
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.004015b0
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x42bd22
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.0041f040
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x42bd1b
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x42bd22
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0041c982
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x42bd37
call fcn.0042ba11
push dword [ebp + 0x20]
push ebx
push eax
call fcn.0041f040
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 + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
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 0x42bdb4
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.00438efc
cmp dword [ebp + 0x10], 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], 0x42bf79
je 0x42bde0
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x42be16
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004018f0
push ebx
mov ecx, edi
call fcn.004015d0
jmp 0x42bdff
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.0041d6d8
cmp eax, ebx
pop ecx
pop ecx
jne 0x42bdfc
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041cd5e
leave
ret 0x1c
Function at 0x42dbfd
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 0x42dc34
call fcn.00438efc
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42dc45
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x42dc7e
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x42dc63
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x42dc6b
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x42dc7c
test ax, ax
jne 0x42dc7c
test si, si
je 0x42dc7e
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x42dc8d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x42dedf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43c73e
call fcn.0041f0a0
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.00438efc
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x42df2d
call fcn.00438efc
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42df3e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x42df4a
or eax, 0xffffffff
jmp 0x42e04d
mov ecx, esi
call fcn.0042da1f
mov dword [ebp - 0x14], eax
call fcn.0042fa0f
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x42df8d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42df8d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42df8d
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.00430c9f
push dword [ebp - 0x14]
call fcn.0042f967
push edi
push eax
push ebx
mov ecx, esi
call fcn.0042dcd2
xor ebx, ebx
cmp eax, ebx
je 0x42e001
test byte [esi + 0x38], 0x10
je 0x42dfcf
push 4
pop edi
mov ecx, esi
call fcn.0043191b
test ah, 1
je 0x42dfc7
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042f40b
cmp dword [esi + 0x1c], ebx
je 0x42e001
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00431b69
jmp 0x42e001
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x42e015
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x42e02e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42e02e
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.0042da59
cmp dword [esi + 0x54], ebx
je 0x42e04a
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 0x4303e4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x43041d
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.004133b6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040a170
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x43160b
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 0x43164e
call fcn.00438efc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43164e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x431669
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00430770
test ebx, ebx
mov esi, eax
je 0x431667
test edi, edi
je 0x431667
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x431fd5
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x43c879
call fcn.0041f0a0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x431fef
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43203b
call fcn.0042e214
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_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x432f59
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.0041f040
add esp, 0xc
call fcn.00438eec
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 0x433029
cmp dword [ebp - 8], ebx
je 0x433024
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x432e2b
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0041dcef
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x433033
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 0x432ffc
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x433016
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 0x43302e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x433035
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x433033
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43303c
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
call fcn.00433e42
mov esi, eax
test esi, esi
jne 0x433053
call fcn.0042ba11
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
and dword [esi + 0x30], 0
or eax, 4
push eax
mov ecx, esi
call fcn.00432f59
test eax, eax
jne 0x43307a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x433097
push dword [ebp + 0xc]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x14], 4
jne 0x433095
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x43350a
Capabilities:
Get disk information

Disassembly:
mov eax, 0x43c945
call fcn.0041f0a0
sub esp, 0x150
mov eax, dword [0x494b80]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x433552
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x433556
cmp eax, esi
jb 0x43355d
xor eax, eax
jmp 0x433632
call fcn.0042e214
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
push edi
mov dword [ebp - 4], ebx
call fcn.004334c8
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x433622
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4335b1
xor esi, esi
jmp 0x433625
test byte [ebp - 0x158], 2
jne 0x4335c1
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x433622
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x433622
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x4335ad
cmp dword [ebp - 0x154], edi
jbe 0x4335ad
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x4335ad
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004012b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041cd5e
leave
ret 8
Function at 0x4349cc
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.0041f040
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x4427cc]
je 0x434ad3
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 0x434a3c
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 0x434a43
cmp ebx, ebx
jne 0x434a43
xor eax, eax
jmp 0x434ad6
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x434a50
mov byte [esi + 0x20], bl
jmp 0x434a64
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.00414c5b
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.00414c5b
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.00414c5b
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 0x434abf
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 0x434ad3
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 0x435fa2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x494b80]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x435ff1
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x435ff1
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x435ffd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041cd5e
leave
ret 8
Function at 0x436c4d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x494b80]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x436c9a
push dword [ebp + 8]
call fcn.00438b80
mov esi, eax
test esi, esi
je 0x436cc2
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 0x436cc2
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x4400b8
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]
pop esi
call fcn.0041cd5e
leave
ret 0xc

Function at 0x43801f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x494b80]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x43807d
push 0x44246c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0041dbd2
add esp, 0x10
cmp eax, 0xffffffff
je 0x438091
cmp eax, esi
jae 0x438091
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x438093
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x438048
jmp 0x438094
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0041cd5e
leave
ret