joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a92
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43b3f0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43bd40]
je 0x417ac9
inc eax
cmp eax, 0x13
jb 0x417aba
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43bd40]
jne 0x417bec
mov eax, dword [0x441070]
cmp eax, 1
je 0x417bc7
cmp eax, edx
jne 0x417af9
cmp dword [0x43b434], 1
je 0x417bc7
cmp ecx, 0xfc
je 0x417bec
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x417b2f
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00419380
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00411890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417b63
mov eax, edi
push eax
call fcn.00411890
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x431fcc
push edi
call fcn.0040fd80
add esp, 0x10
push edi
call fcn.00411890
push dword [esi + 0x43bd44]
mov ebx, eax
call fcn.00411890
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00410f30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00419380
push edi
push ebx
call fcn.00419390
push 0x431fc8
push ebx
call fcn.00419390
push dword [esi + 0x43bd44]
push ebx
call fcn.00419390
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041a682
add esp, 0x2c
jmp 0x417bec
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x43bd44]
push dword [esi]
call fcn.00411890
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040fed5
add ebp, 0x90
leave
ret
Function at 0x419e00
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x43b3f0]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x419e3c
xor eax, eax
jmp 0x419fa6
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4415a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x419e7a
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041ab94
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x419f14
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x419f77
jmp 0x419e9e
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x419ed9
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x419eca
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x419eaa
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x419f38
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x419f41
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x419e9c
jmp 0x419f41
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x419f38
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x419f41
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x419fa1
cmp dword [ebp - 0x68], eax
je 0x419f74
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x419f69
call fcn.00413046
mov dword [eax], 9
call fcn.0041304f
mov dword [eax], esi
jmp 0x419f9c
push dword [ebp - 0x68]
call fcn.00413058
pop ecx
jmp 0x419f9c
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x419f89
cmp byte [edi], 0x1a
jne 0x419f89
xor eax, eax
jmp 0x419fa4
call fcn.00413046
mov dword [eax], 0x1c
call fcn.0041304f
and dword [eax], 0
or eax, 0xffffffff
jmp 0x419fa4
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0040fed5
add ebp, 0x3a4
leave
ret
Function at 0x41a682
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4414f8], ebx
push esi
push edi
jne 0x41a702
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41a73d
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4414f8], eax
je 0x41a73d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4414fc], eax
call esi
cmp dword [0x441024], 2
mov dword [0x441500], eax
jne 0x41a702
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x441508], eax
je 0x41a702
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x441504], eax
mov eax, dword [0x441504]
test eax, eax
je 0x41a747
call eax
test eax, eax
je 0x41a72e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x441508]
test eax, eax
je 0x41a72e
test byte [ebp - 8], 1
jne 0x41a747
cmp dword [0x441030], 4
jb 0x41a741
or byte [ebp + 0x12], 0x20
jmp 0x41a766
xor eax, eax
jmp 0x41a776
or byte [ebp + 0x12], 4
jmp 0x41a766
mov eax, dword [0x4414fc]
test eax, eax
je 0x41a766
call eax
mov ebx, eax
test ebx, ebx
je 0x41a766
mov eax, dword [0x441500]
test eax, eax
je 0x41a766
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4414f8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bb73
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00410f30
mov eax, dword [0x43b3f0]
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.0041a119
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41bca8
push 2
push esi
push dword [ebp + 8]
call fcn.0041a119
add esp, 0xc
cmp eax, ebx
je 0x41bca8
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41bc48
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00411bc0
push 0x8000
push dword [ebp + 8]
call fcn.0041cbeb
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41bbfe
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00419e00
add esp, 0xc
cmp eax, 0xffffffff
je 0x41bc1e
sub edi, eax
test edi, edi
jg 0x41bbf6
jmp 0x41bc36
call fcn.0041304f
cmp dword [eax], 5
jne 0x41bc33
call fcn.00413046
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041cbeb
pop ecx
pop ecx
jmp 0x41bc90
jge 0x41bc90
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a119
push dword [ebp + 8]
call fcn.00412d00
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 0x41bc90
call fcn.00413046
mov dword [eax], 0xd
call fcn.0041304f
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.0041a119
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41bcaa
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fed5
leave
ret
Function at 0x41ca15
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 0x41ca2e
or eax, 0xffffffff
jmp 0x41ca8f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x41ca8b
push 0x3d
push esi
call fcn.00411975
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41ca8b
cmp esi, eax
je 0x41ca8b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x441044]
sete cl
cmp eax, dword [0x441048]
mov dword [ebp - 4], ecx
jne 0x41ca71
mov edi, eax
call fcn.0041c9b4
mov dword [0x441044], eax
cmp eax, ebx
jne 0x41caca
cmp dword [ebp + 0xc], ebx
je 0x41ca93
cmp dword [0x44104c], ebx
je 0x41ca93
call fcn.0041b93c
test eax, eax
je 0x41caca
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x41ca9c
xor eax, eax
jmp 0x41ca8e
push 4
call fcn.00410e30
cmp eax, ebx
pop ecx
mov dword [0x441044], eax
je 0x41ca8b
mov dword [eax], ebx
cmp dword [0x44104c], ebx
jne 0x41caca
push 4
call fcn.00410e30
cmp eax, ebx
pop ecx
mov dword [0x44104c], eax
je 0x41ca8b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x441044]
sub edi, esi
push esi
call fcn.0041c967
mov edi, eax
test edi, edi
pop ecx
jl 0x41cb31
cmp dword [ebx], 0
je 0x41cb31
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00410a01
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41cb11
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x41cb72
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x41cb08
mov eax, edi
shl eax, 2
push eax
push dword [0x441044]
call fcn.004119f0
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x41cb72
jmp 0x41cb6d
cmp dword [ebp - 4], 0
jne 0x41cbd9
test edi, edi
jge 0x41cb41
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x441044]
call fcn.004119f0
test eax, eax
pop ecx
pop ecx
je 0x41ca8b
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 [0x441044], eax
cmp dword [ebp + 0xc], 0
je 0x41cbc4
push esi
call fcn.00411890
inc eax
inc eax
push eax
call fcn.00410e30
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41cbc4
push esi
push edi
call fcn.00419380
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 0x41cbbd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00410a01
pop ecx
cmp dword [ebp - 4], 0
je 0x41cbd1
push esi
call fcn.00410a01
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41ca8e
push esi
call fcn.00410a01
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x41ca98
Function at 0x41e630
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x42c93b
call fcn.0041191c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x41e64a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41e696
call fcn.0041dd58
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.004012c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x41f95f
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 0x41f996
call fcn.00428809
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 0x41f9a7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41f9e0
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x41f9c5
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41f9cd
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41f9de
test ax, ax
jne 0x41f9de
test si, si
je 0x41f9e0
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41f9ef
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41fc41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42ca37
call fcn.0041191c
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.00428809
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41fc8f
call fcn.00428809
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 0x41fca0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41fcac
or eax, 0xffffffff
jmp 0x41fdaf
mov ecx, esi
call fcn.0041f783
mov dword [ebp - 0x14], eax
call fcn.00421441
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41fcef
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41fcef
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41fcef
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.00422695
push dword [ebp - 0x14]
call fcn.00421399
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041fa34
xor ebx, ebx
cmp eax, ebx
je 0x41fd63
test byte [esi + 0x38], 0x10
je 0x41fd31
push 4
pop edi
mov ecx, esi
call fcn.0041df1a
test ah, 1
je 0x41fd29
push 5
pop edi
push edi
mov ecx, esi
call fcn.00420e3d
cmp dword [esi + 0x1c], ebx
je 0x41fd63
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041e185
jmp 0x41fd63
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41fd77
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41fd90
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41fd90
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.0041f7bd
cmp dword [esi + 0x54], ebx
je 0x41fdac
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 0x423002
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 0x423045
call fcn.00428809
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x423045
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x423060
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042215d
test ebx, ebx
mov esi, eax
je 0x42305e
test edi, edi
je 0x42305e
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x423a70
Capabilities:
Get disk information

Disassembly:
mov eax, 0x42cddf
call fcn.0041191c
sub esp, 0x154
mov eax, dword [0x43b3f0]
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 - 0x158]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
test eax, eax
jne 0x423ab7
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
jmp 0x423abb
cmp eax, esi
jb 0x423ac2
xor eax, eax
jmp 0x423ba6
call fcn.0041dd58
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x154]
push eax
push edi
call fcn.00423a2e
push dword [ebp - 0x154]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x423b93
push eax
push eax
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x160]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
jne 0x423b23
xor esi, esi
jmp 0x423b96
test byte [ebp - 0x15c], 2
jne 0x423b33
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x15c], 4
jne 0x423b93
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x423b93
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 0x158], 0
je 0x423b1f
cmp dword [ebp - 0x158], edi
jbe 0x423b1f
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x158]
cmp eax, esi
jge 0x423b1f
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x154]
add ecx, 0xfffffff0
call fcn.004012c0
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.0040fed5
leave
ret 8
Function at 0x4247d7
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.00411bc0
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 [0x430950]
je 0x424925
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 0x424847
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 0x42484e
cmp ebx, ebx
jne 0x42484e
xor eax, eax
jmp 0x424928
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x42485b
mov byte [esi + 0x20], bl
jmp 0x42486f
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.0040fbff
test eax, eax
je 0x424896
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00407eb7
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x42489b
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040fbff
test eax, eax
je 0x4248c3
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00407eb7
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x4248cd
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0040fbff
test eax, eax
je 0x4248f5
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00407eb7
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x4248ff
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 0x424911
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 0x424925
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 0x425f30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43b3f0]
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_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x425f83
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x425f83
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x425f8b
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fed5
leave
ret 8

Function at 0x4264f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43b3f0]
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 0x426547
push edi
call fcn.00429560
mov esi, eax
test esi, esi
je 0x42656b
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
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
jmp 0x42656b
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x42e958
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fed5
leave
ret 0xc