joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a128
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 0x46a2fc
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x21f1e60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x46a2fc
test cl, 0x48
je 0x46a193
cmp byte [eax + 5], 0xa
je 0x46a193
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x46a1e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x46a1cd
call fcn.00463dc9
mov dword [eax], 9
call fcn.00463dd2
mov dword [eax], esi
jmp 0x46a1dd
cmp eax, 0x6d
je 0x46a2fc
push eax
call fcn.00463ddb
pop ecx
or eax, 0xffffffff
jmp 0x46a2fe
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x46a2f7
test eax, eax
je 0x46a20c
cmp byte [ebx], 0xa
jne 0x46a20c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x46a215
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x46a2f1
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x46a2e1
cmp al, 0xd
je 0x46a247
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x46a2d3
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x46a261
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x46a25c
add dword [ebp + 0x10], 2
jmp 0x46a2b5
mov dword [ebp + 0x10], eax
jmp 0x46a2cf
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 0x46a289
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46a2cf
cmp dword [ebp - 0xc], 0
je 0x46a2cf
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x46a2aa
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x46a2b5
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x46a2d2
cmp ebx, dword [ebp + 0xc]
jne 0x46a2ba
cmp byte [ebp - 1], 0xa
jne 0x46a2ba
mov byte [ebx], 0xa
jmp 0x46a2d2
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00469a66
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x46a2d3
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x46a22b
jmp 0x46a2f1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x46a2f1
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x46a2fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46a7dc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4a872c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4a8fe0]
je 0x46a811
inc eax
cmp eax, 0x13
jb 0x46a802
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4a8fe0]
jne 0x46a937
mov eax, dword [0x21f164c]
cmp eax, 1
je 0x46a90f
cmp eax, edx
jne 0x46a841
cmp dword [0x4a875c], 1
je 0x46a90f
cmp ecx, 0xfc
je 0x46a937
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46a877
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00465950
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00463490
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46a8ab
mov eax, edi
push eax
call fcn.00463490
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x48b220
push edi
call fcn.00461030
add esp, 0x10
push edi
call fcn.00463490
push dword [esi + 0x4a8fe4]
mov ebx, eax
call fcn.00463490
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004619c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00465950
push edi
push ebx
call fcn.00465960
push 0x48d168
push ebx
call fcn.00465960
push dword [esi + 0x4a8fe4]
push ebx
call fcn.00465960
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0046c2ae
add esp, 0x2c
jmp 0x46a937
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4a8fe4]
push dword [esi]
call fcn.00463490
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]
mov ecx, dword [ebp + 0x88]
call fcn.00460704
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x46c2ae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x21f1ac4], ebx
push esi
push edi
jne 0x46c32e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46c369
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x494aec
push edi
call esi
test eax, eax
mov dword [0x21f1ac4], eax
je 0x46c369
push str.GetActiveWindow
push edi
call esi
push 0x494ac8
push edi
mov dword [0x21f1ac8], eax
call esi
cmp dword [0x21f1684], 2
mov dword [0x21f1acc], eax
jne 0x46c32e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x21f1ad4], eax
je 0x46c32e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x21f1ad0], eax
mov eax, dword [0x21f1ad0]
test eax, eax
je 0x46c373
call eax
test eax, eax
je 0x46c35a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x21f1ad4]
test eax, eax
je 0x46c35a
test byte [ebp - 8], 1
jne 0x46c373
cmp dword [0x21f1690], 4
jb 0x46c36d
or byte [ebp + 0x12], 0x20
jmp 0x46c392
xor eax, eax
jmp 0x46c3a2
or byte [ebp + 0x12], 4
jmp 0x46c392
mov eax, dword [0x21f1ac8]
test eax, eax
je 0x46c392
call eax
mov ebx, eax
test ebx, ebx
je 0x46c392
mov eax, dword [0x21f1acc]
test eax, eax
je 0x46c392
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x21f1ac4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46fca4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004619c0
mov eax, dword [0x4a872c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00469a66
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x46fdd7
push 2
push esi
push dword [ebp + 8]
call fcn.00469a66
add esp, 0xc
cmp eax, ebx
je 0x46fdd7
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x46fd77
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004637f0
push 0x8000
push dword [ebp + 8]
call fcn.00470b01
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x46fd2d
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0046880d
add esp, 0xc
cmp eax, 0xffffffff
je 0x46fd4d
sub edi, eax
test edi, edi
jg 0x46fd25
jmp 0x46fd65
call fcn.00463dd2
cmp dword [eax], 5
jne 0x46fd62
call fcn.00463dc9
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00470b01
pop ecx
pop ecx
jmp 0x46fdbf
jge 0x46fdbf
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00469a66
push dword [ebp + 8]
call fcn.00463a83
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 0x46fdbf
call fcn.00463dc9
mov dword [eax], 0xd
call fcn.00463dd2
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.00469a66
add esp, 0xc
mov eax, esi
pop edi
jmp 0x46fdd9
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00460704
leave
ret
Function at 0x470828
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x495ba8
call fcn.00463798
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x21f1b54], edi
jne 0x47086c
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x470857
mov dword [0x21f1b54], ebx
jmp 0x47086c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x47086c
mov dword [0x21f1b54], 2
mov eax, dword [0x21f1b54]
cmp eax, ebx
jne 0x47088c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x47094f
cmp eax, 2
je 0x470895
cmp eax, edi
jne 0x4708bd
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4708a8
mov eax, dword [0x21f1ab8]
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 0x4708c4
xor eax, eax
jmp 0x47094f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004619c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4708f7
cmp esi, edi
jne 0x47090d
push dword [ebp - 0x20]
call fcn.00461aa4
pop ecx
mov esi, eax
cmp esi, edi
je 0x4708bd
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 0x470940
cmp dword [ebp + 0x14], edi
jne 0x47092a
push edi
push edi
jmp 0x470930
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 0x47094c
push esi
call fcn.00461336
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004637d3
ret
Function at 0x470958
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x495bb8
call fcn.00463798
xor esi, esi
cmp dword [0x21f1b58], esi
jne 0x47099c
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x470987
mov dword [0x21f1b58], edi
jmp 0x47099c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x47099c
mov dword [0x21f1b58], 2
mov eax, dword [0x21f1b58]
cmp eax, 2
je 0x470a7d
cmp eax, esi
je 0x470a7d
cmp eax, 1
jne 0x4709e1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4709ca
mov eax, dword [0x21f1ab8]
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 0x4709e8
xor eax, eax
jmp 0x470a8f
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004619c0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x470a1e
cmp edi, esi
jne 0x470a39
lea eax, [ebx + ebx]
push eax
call fcn.00461aa4
pop ecx
mov edi, eax
cmp edi, esi
je 0x4709e1
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 0x470a6c
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x470a56
push esi
push esi
jmp 0x470a5c
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 0x470a78
push edi
call fcn.00461336
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x470a8f
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.004637d3
ret
Function at 0x4710a1
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 0x4710ba
or eax, 0xffffffff
jmp 0x47111b
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x471117
push 0x3d
push esi
call fcn.00463850
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x471117
cmp esi, eax
je 0x471117
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x21f16a4]
sete cl
cmp eax, dword [0x21f16a8]
mov dword [ebp - 8], ecx
jne 0x4710fd
mov edi, eax
call fcn.00471040
mov dword [0x21f16a4], eax
cmp eax, ebx
jne 0x471156
cmp dword [ebp + 0xc], ebx
je 0x47111f
cmp dword [0x21f16ac], ebx
je 0x47111f
call fcn.00470798
test eax, eax
je 0x471156
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x471128
xor eax, eax
jmp 0x47111a
push 4
call fcn.00461aa4
cmp eax, ebx
pop ecx
mov dword [0x21f16a4], eax
je 0x471117
mov dword [eax], ebx
cmp dword [0x21f16ac], ebx
jne 0x471156
push 4
call fcn.00461aa4
cmp eax, ebx
pop ecx
mov dword [0x21f16ac], eax
je 0x471117
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x21f16a4]
call fcn.00470ff3
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4711b7
cmp dword [esi], ebx
je 0x4711b7
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00461336
cmp dword [ebp - 8], ebx
pop ecx
jne 0x47119a
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4711f8
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x471191
mov eax, edi
shl eax, 2
push eax
push dword [0x21f16a4]
call fcn.00462f66
cmp eax, ebx
pop ecx
pop ecx
je 0x4711f8
jmp 0x4711f3
cmp dword [ebp - 8], ebx
jne 0x471263
cmp edi, ebx
jge 0x4711c6
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x21f16a4]
call fcn.00462f66
cmp eax, ebx
pop ecx
pop ecx
je 0x471117
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x21f16a4], eax
cmp dword [ebp + 0xc], ebx
je 0x47124d
push dword [ebp - 4]
call fcn.00463490
inc eax
inc eax
push eax
call fcn.00461aa4
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x47124d
push dword [ebp - 4]
push esi
call fcn.00465950
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
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 0x471246
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00461336
pop ecx
cmp dword [ebp - 8], ebx
je 0x47125b
push dword [ebp - 4]
call fcn.00461336
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x47111a
push dword [ebp - 4]
call fcn.00461336
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x471124
Function at 0x47f0f7
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4876d5
call fcn.0046351c
sub esp, 0x150
mov eax, dword [0x4a872c]
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 0x47f13f
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x47f143
cmp eax, esi
jb 0x47f14a
xor eax, eax
jmp 0x47f21f
call fcn.0047e632
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.0047f0b5
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x47f20f
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 0x47f19e
xor esi, esi
jmp 0x47f212
test byte [ebp - 0x158], 2
jne 0x47f1ae
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x47f20f
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x47f20f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x47f19a
cmp dword [ebp - 0x154], edi
jbe 0x47f19a
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 0x47f19a
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.0041b840
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.00460704
leave
ret 8
Function at 0x47f3cb
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.004637f0
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 [0x492ad0]
je 0x47f4d2
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 0x47f43b
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 0x47f442
cmp ebx, ebx
jne 0x47f442
xor eax, eax
jmp 0x47f4d5
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x47f44f
mov byte [esi + 0x20], bl
jmp 0x47f463
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.0045eaf0
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.0045eaf0
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.0045eaf0
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 0x47f4be
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 0x47f4d2
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 0x48364f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4a872c]
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 0x48369e
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x48369e
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4836aa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00460704
leave
ret 8
Function at 0x4841b7
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov edx, dword [ebp + 0xc]
mov eax, dword [0x4a872c]
push ebx
xor ecx, ecx
cmp edx, ecx
push esi
mov dword [ebp - 4], eax
push edi
je 0x4842d8
cmp dword [ebp + 8], ecx
je 0x4842d8
mov eax, dword [ebp + 0x18]
mov esi, eax
mov edi, eax
and esi, 0x2e000000
and edi, 0x40000000
test eax, 0x90000000
mov dword [ebp - 0x830], 0x824
mov dword [ebp - 0x82c], ecx
mov dword [ebp + 0x18], ecx
je 0x484229
cmp dword [edx + 0x30], ecx
je 0x484229
test eax, 0x2000000
je 0x484223
mov dword [ebp + 0x18], 1
jmp 0x484229
or edi, 0x80000000
mov ebx, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push esi
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x484290
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4842d8
push dword [ebp - 0x830]
call fcn.0047e515
test eax, eax
pop ecx
mov dword [ebp - 0x834], eax
je 0x4842d8
push esi
lea ecx, [ebp - 0x830]
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x82c], 1
call ebx
test eax, eax
jne 0x484298
push dword [ebp - 0x834]
jmp 0x4842d2
lea ebx, [ebp - 0x828]
jmp 0x48429e
mov ebx, dword [ebp - 0x834]
mov esi, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp + 0x18], edi
mov dword [ebp + 8], eax
je 0x4842f5
push 0x2100000
push edi
push edi
push dword [esi + 0x2c]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeA]
test eax, eax
jge 0x4842e9
cmp dword [ebp - 0x82c], edi
je 0x4842d8
push ebx
call fcn.0047e545
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00460704
leave
ret 0x14
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esi + 0x30], eax
cmp dword [ebp - 0x82c], edi
je 0x484304
push ebx
call fcn.0047e545
pop ecx
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x484316
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x1000
jmp 0x4842da
mov cx, word [esi + 0x18]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov esi, dword [esi + 0xc]
dec esi
mov ecx, dword [ebp + 0x10]
je 0x484374
dec esi
je 0x484369
dec esi
je 0x48435e
dec esi
je 0x484353
dec esi
je 0x48434b
dec esi
je 0x484343
dec esi
jne 0x48430e
mov dword [ecx], 0x1002
jmp 0x4842da
mov dword [ecx], 0x1006
jmp 0x4842da
mov dword [ecx], 0x1001
jmp 0x4842da
mov dword [ecx], 0x100b
jmp 0x4842da
mov dword [ecx], 3
jmp 0x4842da
mov dword [ecx], 2
jmp 0x4842da
mov dword [ecx], 1
jmp 0x4842da