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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, 1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.00402070
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
add ecx, esi
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.004010a0
add esp, 0x18
cmp eax, 0xffffffff
je 0x405498
push eax
call fcn.00401320
add esp, 4
or eax, 0xffffffff
jmp 0x4054a6
push esi
call fcn.004010f0
add esp, 4
cmp eax, 0xffffffff
jne 0x4054af
inc ebx
cmp ebx, 0x3e7
jl 0x405451
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4055d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor bl, bl
test edi, edi
jbe 0x4055fa
mov eax, dword [esi]
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov al, byte [ecx]
xor al, dl
xor al, 0x6a
inc word [ecx]
add bl, al
dec edi
jne 0x4055e5
mov edi, dword [esi]
mov dl, byte [edi]
inc edi
mov dword [esi], edi
mov al, byte [ecx]
xor al, dl
pop edi
xor al, 0x6a
inc word [ecx]
xor ecx, ecx
cmp bl, al
sete cl
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x405620
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
and edx, 0xffff
xor esi, esi
mov byte [esp + 0x13], 0
lea eax, [eax + eax*4]
mov ebp, 8
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1e]
and ecx, 0xffff
xor edi, edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea esi, [esi + esi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea esi, [ebx + esi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x40567b
mov ebp, 8
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea edi, [edi + edi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea edi, [ebx + edi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x4056ac
mov al, byte [ecx]
mov cl, bl
xor al, dl
xor al, 0x6a
cmp cl, al
jne 0x4056fd
mov eax, dword [esp + 0x14]
cmp eax, esi
jb 0x4056fd
cmp eax, edi
jae 0x4056fd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x408b30
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42a4bc]
push esi
push edi
cmp byte [eax], 0
jne 0x408cc2
mov ecx, dword [0x42a914]
mov edx, dword [0x42a450]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x408b4c
mov ecx, dword [0x42a450]
push 0x5c
push ecx
call fcn.00419c00
add esp, 8
test eax, eax
je 0x408b6e
inc eax
jmp 0x408b73
mov eax, dword [0x42a450]
mov byte [eax], 0x72
inc eax
push ebx
push 0
mov byte [eax], 0x65
inc eax
mov byte [eax], 0x67
inc eax
mov byte [eax], 0x69
inc eax
mov byte [eax], 0x6e
inc eax
mov byte [eax], 0x66
inc eax
mov byte [eax], 0x6f
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x74
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x74
mov byte [eax + 1], 0
mov edx, dword [0x42a450]
push edx
call fcn.004010a0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x408c31
push ebx
call fcn.00401220
mov esi, eax
add esp, 4
test esi, esi
jbe 0x408c28
cmp esi, 0x186a0
jae 0x408c28
lea eax, [esi + 1]
push eax
call fcn.00419d50
mov edi, eax
add esp, 4
test edi, edi
je 0x408c28
push esi
push edi
push ebx
call fcn.00401120
mov byte [edi + esi], 0
mov ecx, dword [0x42a7e8]
add esp, 0xc
mov eax, dword [ecx + 8]
test eax, eax
jne 0x408c0c
push esi
push edi
call fcn.00408910
add esp, 8
jmp 0x408c1f
xor edx, edx
cmp eax, 4
sete dl
push edx
push esi
push edi
call fcn.004096f0
add esp, 0xc
push edi
call fcn.00419eb3
add esp, 4
push ebx
call fcn.00401320
add esp, 4
mov eax, dword [0x42a4bc]
pop ebx
cmp byte [eax], 0
jne 0x408cc2
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408cc2
mov ecx, dword [0x42a8dc]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408cc2
push ebp
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
je 0x408cb9
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x408cb2
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x42a7e8]
not ecx
mov eax, dword [eax + 8]
dec ecx
test eax, eax
mov esi, ecx
jne 0x408c9f
push esi
push edx
call fcn.00408910
add esp, 8
jmp 0x408cb2
xor ecx, ecx
cmp eax, 4
sete cl
push ecx
push esi
push edx
call fcn.004096f0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebp
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret
Function at 0x408f60
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42a4bc]
cmp byte [eax], 0
jne 0x40901b
mov ecx, dword [0x42a914]
mov edx, dword [0x42a450]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x408f7a
mov ecx, dword [0x42a450]
push 0x5c
push ecx
call fcn.00419c00
add esp, 8
test eax, eax
je 0x408f9c
inc eax
jmp 0x408fa1
mov eax, dword [0x42a450]
mov ecx, str.reginfo.txt
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x408faa
mov edx, dword [0x42a450]
push edx
call fcn.00408eb0
mov eax, dword [0x42a4bc]
add esp, 4
cmp byte [eax], 0
jne 0x40901b
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40901b
mov ecx, dword [0x42a8dc]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40901b
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x409014
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40900d
push eax
call fcn.00408e20
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x40ae20
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
mov eax, dword [0x42a8f0]
sub esp, 0x190
push ebx
xor ebx, ebx
test eax, eax
jle 0x40afd5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
cmp ebx, dword [0x42a8f4]
je 0x40afc4
mov eax, dword [ebx*4 + 0x42a7a8]
test eax, eax
je 0x40afc4
cmp dword [eax], 0
je 0x40afc4
test byte [eax + 6], 2
je 0x40afc4
mov eax, dword [ebx*4 + 0x42a768]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x40afc4
cmp byte [edi], 0
je 0x40afc4
xor eax, eax
mov cl, byte [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov byte [esp + eax + 0x38], cl
inc eax
test cl, cl
jne 0x40ae8a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x3c]
push ecx
push 0x80000002
call esi
test eax, eax
je 0x40aefa
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push edx
push eax
push 0x80000001
call esi
test eax, eax
jne 0x40afc4
mov ecx, 0x5a
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x168
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40af49
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40afc4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.004010a0
add esp, 8
cmp eax, 0xffffffff
je 0x40afc4
push eax
call fcn.00401320
push 1
lea edx, [esp + 0x40]
push 0x425474
push edx
call fcn.00402b70
add esp, 0x10
test eax, eax
je 0x40afc4
call ebp
mov esi, eax
call ebp
sub eax, esi
cmp eax, 0xbb8
jae 0x40afc4
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
lea ecx, [esp + 0x38]
push ecx
call fcn.0041a180
add esp, 4
test eax, eax
je 0x40afc4
call ebp
sub eax, esi
cmp eax, 0xbb8
jb 0x40af95
mov eax, dword [0x42a8f0]
inc ebx
cmp ebx, eax
jl 0x40ae3f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
Function at 0x40cbc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov byte [ebp], 0
je 0x40cc44
mov eax, dword [0x42a7e8]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40cc09
mov cl, byte [esi]
push edi
mov byte [esp + 0x10], cl
mov edi, ebp
mov eax, dword [esp + 0x10]
and eax, 0xff
inc esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov byte [eax + ebp], 0
pop esi
pop ebp
ret
mov edx, dword [0x42a4b8]
mov eax, esi
sub eax, edx
mov dl, byte [esi]
mov cl, al
inc esi
xor cl, dl
xor cl, 0x6a
inc eax
test cl, cl
mov byte [esp + 0xc], cl
jbe 0x40cc40
mov ecx, dword [esp + 0xc]
and ecx, 0xff
mov dl, byte [esi]
xor dl, al
xor dl, 0x6a
mov byte [ebp], dl
inc ebp
inc esi
inc eax
dec ecx
jne 0x40cc30
mov byte [ebp], 0
pop esi
pop ebp
ret

Function at 0x40ce20
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
mov ecx, dword [0x42a8f4]
sub esp, 0x24
push ebx
push esi
mov esi, dword [ecx*4 + 0x42a6e8]
test esi, esi
je 0x40cf75
mov edx, dword [ecx*4 + 0x42a628]
xor eax, eax
test edx, edx
jbe 0x40ce64
mov bl, byte [eax + esi]
mov cl, al
add cl, 0x40
xor bl, cl
mov byte [eax + esi], bl
mov edx, dword [0x42a8f4]
inc eax
cmp eax, dword [edx*4 + 0x42a628]
jb 0x40ce47
xor eax, eax
mov ax, word [esi]
add esi, 2
test eax, eax
jbe 0x40cf75
push ebp
mov dword [esp + 0x14], eax
push edi
mov al, byte [esi]
inc esi
mov byte [esp + 0x13], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], esi
lea edx, [esi + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebp, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x14], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [edx + ecx + 1]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x42a450]
push ecx
push edx
call fcn.0040cd90
mov al, byte [esp + 0x1b]
add esp, 8
test al, 1
je 0x40cf06
mov eax, dword [0x42a450]
lea ecx, [esp + 0x20]
push eax
push 0x14
push ecx
push 0x42a940
push ebx
push ebp
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40cf64
mov edx, dword [esp + 0x14]
push 0xffdc
push edx
push 0
call fcn.0040cc50
mov dword [esp + 0x28], eax
lea eax, [eax + eax + 1]
push eax
call fcn.00419d50
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc ecx
mov edi, eax
push ecx
push edx
push edi
call fcn.0040cc50
mov eax, dword [0x42a450]
add esp, 0x1c
push eax
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebp
call ebx
mov ecx, dword [0x42a450]
push ecx
push 0
push 0
push 0
call ebx
push edi
call fcn.00419eb3
add esp, 4
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40ce7a
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40cf80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x408
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
je 0x40d058
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d058
mov ecx, dword [esp + 0x410]
lea eax, [esp + 4]
push eax
push 0x10008
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d05d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x400
call edi
mov esi, eax
cmp esi, 0x103
je 0x40d030
test esi, esi
jne 0x40d041
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0040cf80
mov esi, eax
add esp, 8
test esi, esi
je 0x40cfd0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x408
ret
mov ecx, dword [esp + 0x418]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x408
ret
mov eax, 0x3f2
pop ebp
add esp, 0x408
ret
Function at 0x40e800
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
push eax
push 0x800
mov dword [esp + 0xc], 1
call fcn.00402120
add esp, 8
test eax, eax
jne 0x40e830
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x42a450]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40e981
push eax
call fcn.00419d50
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40e981
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x42a450]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40e976
mov al, byte [edi + 0x1a]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x40e908
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x4257e8
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e908
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x2c]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x40e8c6
jne 0x40e908
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x30]
cmp edx, eax
jbe 0x40e908
push 0x1d
push 7
call fcn.00403930
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x40e96e
mov ecx, dword [0x42a908]
test ecx, ecx
jne 0x40e96e
mov ecx, dword [0x42a450]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004038f0
add esp, 0x14
cmp eax, 6
jne 0x40e96e
mov eax, dword [0x42a908]
test eax, eax
jne 0x40e976
test byte [edi + 0x1a], 4
je 0x40e976
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e976
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x3c]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x40e976
push 0x1e
push 7
call fcn.00403930
add esp, 8
test eax, eax
je 0x40e976
mov ecx, dword [0x42a450]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004038f0
add esp, 0x14
cmp eax, 6
je 0x40e976
mov dword [esp + 0x10], 0
push ebp
call fcn.00419eb3
add esp, 4
pop esi
pop ebx
lea edx, [esp + 0x10]
push edx
call fcn.00402160
mov eax, dword [esp + 0xc]
add esp, 4
pop ebp
pop edi
add esp, 0x10
ret
Function at 0x40f520
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f5c9
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x42a450]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f58c
inc dword [esp]
jmp 0x40f59c
mov dword [esp], 1
mov dword [esp + 4], 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [0x42a450]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret

Function at 0x40f5d0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x42a418]
test eax, eax
jne 0x40f686
push esi
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push eax
mov dword [0x42a418], eax
call esi
mov dword [0x42a414], eax
mov eax, dword [0x42a418]
push str.InternetCloseHandle
push eax
call esi
mov ecx, dword [0x42a418]
push str.InternetOpenUrlA
push ecx
mov dword [0x42a410], eax
call esi
mov edx, dword [0x42a418]
push str.InternetQueryDataAvailable
push edx
mov dword [0x42a40c], eax
call esi
mov dword [0x42a408], eax
mov eax, dword [0x42a418]
push str.InternetReadFile
push eax
call esi
mov ecx, dword [0x42a414]
mov dword [0x42a404], eax
test ecx, ecx
pop esi
je 0x40f678
mov ecx, dword [0x42a410]
test ecx, ecx
je 0x40f678
mov ecx, dword [0x42a40c]
test ecx, ecx
je 0x40f678
mov ecx, dword [0x42a408]
test ecx, ecx
je 0x40f678
test eax, eax
jne 0x40f67d
call fcn.0040f6c0
mov eax, dword [0x42a418]
test eax, eax
je 0x40f6ab
mov eax, dword [0x42a400]
test eax, eax
jne 0x40f6b0
push eax
push eax
push eax
push eax
push eax
push 7
call fcn.00403930
add esp, 8
push eax
call dword [0x42a414]
mov dword [0x42a400], eax
ret
mov eax, dword [0x42a400]
ret
Function at 0x40f700
Capabilities:
Copy file
Write file on windows

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
push 7
xor ebp, ebp
push str.file:__
push esi
mov dword [esp + 0x30], ebp
call fcn.0041a3a0
add esp, 0xc
test eax, eax
jne 0x40f798
lea eax, [esi + 7]
lea edx, [esp + 0x30]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40f734
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40f761
cmp byte [esp + eax + 0x30], 0x2f
jne 0x40f75c
mov byte [esp + eax + 0x30], 0x5c
inc eax
cmp eax, ecx
jl 0x40f750
lea eax, [esp + 0x30]
push 0x42589c
push eax
call fcn.0041a100
add esp, 8
test eax, eax
je 0x40f92e
mov ecx, dword [esp + 0x138]
push 0
dec eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
call fcn.0040f5d0
mov edi, eax
test edi, edi
je 0x40f92e
push 0x1000
call fcn.00419d50
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x40f92e
push 0
push 0
push 0
push 0
push esi
push edi
call dword [0x42a40c]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40f925
mov edx, dword [esp + 0x138]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40f91e
mov esi, dword [esp + 0x144]
mov ebx, dword [esp + 0x148]
xor edi, edi
mov ebp, esi
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x2c]
push 0
push eax
push ecx
call dword [0x42a408]
test eax, eax
je 0x40f8ee
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x40f8ee
cmp eax, 0x1000
jbe 0x40f857
mov eax, 0x1000
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [0x42a404]
cmp eax, 1
jne 0x40f8c5
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push 0
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f8c5
mov ecx, dword [esp + 0x20]
add edi, ecx
cmp ebx, esi
je 0x40f8cd
mov ecx, dword [esp + 0x140]
test ecx, ecx
jle 0x40f8cd
mov eax, ebx
xor edx, edx
sub eax, esi
imul eax, edi
div ecx
add eax, esi
cmp eax, ebp
je 0x40f8cd
push eax
mov ebp, eax
call fcn.00401e60
add esp, 4
jmp 0x40f8cd
mov dword [esp + 0x10], 1
push 0
call fcn.00404ee0
mov eax, dword [0x42a888]
add esp, 4
test eax, eax
jne 0x40f907
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f823
jmp 0x40f907
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40f907
push ebx
mov dword [esp + 0x28], 1
call fcn.00401e60
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push esi
call dword [0x42a410]
push ebx
call fcn.00419eb3
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
Function at 0x40f940
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x42a820]
sub esp, 0x208
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
jne 0x40fa23
push 0x42a820
push 0x104
call fcn.00402120
add esp, 8
test eax, eax
jne 0x40f98b
pop edi
pop esi
pop ebp
mov dword [0x42a90c], 0xc
or eax, 0xffffffff
pop ebx
add esp, 0x208
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 1
mov eax, dword [0x42a820]
push eax
push 0x104
call ebp
mov ecx, dword [0x42a820]
push ecx
call fcn.00402070
mov edx, dword [0x42a820]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
add ecx, edx
push str.ictmp_d
push ecx
call esi
mov edx, dword [0x42a820]
push edx
call fcn.00419f48
add esp, 0x14
test eax, eax
jne 0x40f9ea
inc ebx
cmp ebx, 0x3e7
jl 0x40f996
jmp 0x40f9fc
mov eax, dword [0x42a820]
push eax
call fcn.00419f1c
add esp, 4
test eax, eax
je 0x40fa23
mov ecx, dword [0x42a820]
mov dword [0x42a90c], 0x11
push ecx
call fcn.0040a680
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov edx, dword [0x42a820]
push edx
call fcn.00402070
mov ebx, dword [esp + 0x220]
mov ecx, dword [0x42a820]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 6]
push eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [0x42a820]
push eax
call fcn.004020b0
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.004010a0
mov ebp, dword [esp + 0x244]
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
jne 0x40fb1e
mov eax, dword [0x42a80c]
mov edx, dword [ebx + 6]
push edx
lea edx, [esp + 0x118]
mov ecx, dword [eax + 0x70]
add ecx, eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [esp + 0x230]
mov ecx, dword [ebx + 0xa]
push ebp
push eax
lea edx, [esp + 0x12c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0040f700
add esp, 0x24
test eax, eax
je 0x40faf7
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.004010a0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x40fb1e
lea edx, [esp + 0x10]
mov dword [0x42a90c], 0x10
push edx
call fcn.0040a680
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0x114]
mov dword [0x42a90c], 0x10
push eax
call fcn.0040a680
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebp
call fcn.00401e60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret