joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026d0
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push 1
push 0x208
call fcn.00419f42
push 1
push 0x208
mov edi, eax
call fcn.00419f42
add esp, 0x10
mov ebp, eax
test edi, edi
je 0x40280b
test ebp, ebp
je 0x40280b
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov edx, ebp
xor esi, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40270f
push 7
push str.http:__
push ebp
call fcn.0041a4e0
add esp, 0xc
test eax, eax
je 0x402755
push 8
push str.https:__
push ebp
call fcn.0041a4e0
add esp, 0xc
test eax, eax
je 0x402755
push 0x5c
push ebp
call fcn.00419d40
add esp, 8
test eax, eax
je 0x402755
mov byte [eax], 0
mov esi, ebp
push 5
push esi
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4027fa
mov eax, dword [esp + 0x18]
push edi
push eax
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
push edi
call ebx
push edi
push edi
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
push str.__1_
push edi
call fcn.0041a240
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push 0x425644
push edi
call fcn.0041a240
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + edi - 1]
jmp 0x4027e1
mov byte [esi], 0
push 0x425640
push esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebp
call fcn.00419ff3
push edi
call fcn.00419ff3
add esp, 8
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x402810
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402859
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x402860
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x214]
push 0x208
push eax
push edi
call fcn.00402950
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x40293a
mov al, byte [esp + 8]
push esi
test al, al
je 0x402912
push 0x5c
push edi
call fcn.00419d40
mov esi, eax
add esp, 8
test esi, esi
je 0x4028ad
inc esi
jmp 0x4028af
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42acbc]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x4028d3
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402912
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
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]
push 0x42a884
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
mov dword [0x42a884], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
pop esi
pop edi
add esp, 0x20c
ret

Function at 0x402b70
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x208
push eax
push esi
call fcn.00402950
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov edi, eax
mov al, byte [esp + 0xc]
test al, al
je 0x402c02
push 0x5c
push esi
call fcn.00419d40
add esp, 8
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42acbc]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402bd2
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402c02
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
je 0x402c25
push 0x42a884
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esp, 0x20c
ret
Function at 0x402cd0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 0x208
call fcn.00419e90
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402cf6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push eax
push str.__s_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x78]
add esp, 0xc
cmp edx, ebx
je 0x402d4f
cmp byte [edx], bl
je 0x402d4f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x425640]
mov word [edi - 1], cx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x208
call fcn.00419e90
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402d75
push ebp
call fcn.00419ff3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x68]
lea edi, [esi + 0x104]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402d91
push 0x5c
push edi
call fcn.00419d40
add esp, 8
cmp eax, ebx
je 0x402db3
push edi
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [eax], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00419ff3
push ebp
call fcn.00419ff3
add esp, 8
cmp edi, ebx
jne 0x402e1a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret

Function at 0x403ab0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 0x10]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b19
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403b0e
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x408080
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42a924]
push esi
push edi
cmp byte [eax], 0
jne 0x408212
mov ecx, dword [0x42ad3c]
mov edx, dword [0x42a8b4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40809c
mov ecx, dword [0x42a8b4]
push 0x5c
push ecx
call fcn.00419d40
add esp, 8
test eax, eax
je 0x4080be
inc eax
jmp 0x4080c3
mov eax, dword [0x42a8b4]
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 [0x42a8b4]
push edx
call fcn.00401140
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x408181
push ebx
call fcn.004012c0
mov esi, eax
add esp, 4
test esi, esi
jbe 0x408178
cmp esi, 0x186a0
jae 0x408178
lea eax, [esi + 1]
push eax
call fcn.00419e90
mov edi, eax
add esp, 4
test edi, edi
je 0x408178
push esi
push edi
push ebx
call fcn.004011c0
mov byte [edi + esi], 0
mov ecx, dword [0x42ac10]
add esp, 0xc
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40815c
push esi
push edi
call fcn.00407e70
add esp, 8
jmp 0x40816f
xor edx, edx
cmp eax, 4
sete dl
push edx
push esi
push edi
call fcn.00408d50
add esp, 0xc
push edi
call fcn.00419ff3
add esp, 4
push ebx
call fcn.004013c0
add esp, 4
mov eax, dword [0x42a924]
pop ebx
cmp byte [eax], 0
jne 0x408212
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408212
mov ecx, dword [0x42ad04]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408212
push ebp
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
je 0x408209
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x408202
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x42ac10]
not ecx
mov eax, dword [eax + 8]
dec ecx
test eax, eax
mov esi, ecx
jne 0x4081ef
push esi
push edx
call fcn.00407e70
add esp, 8
jmp 0x408202
xor ecx, ecx
cmp eax, 4
sete cl
push ecx
push esi
push edx
call fcn.00408d50
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 0x4084b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42a924]
cmp byte [eax], 0
jne 0x40856b
mov ecx, dword [0x42ad3c]
mov edx, dword [0x42a8b4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4084ca
mov ecx, dword [0x42a8b4]
push 0x5c
push ecx
call fcn.00419d40
add esp, 8
test eax, eax
je 0x4084ec
inc eax
jmp 0x4084f1
mov eax, dword [0x42a8b4]
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 0x4084fa
mov edx, dword [0x42a8b4]
push edx
call fcn.00408400
mov eax, dword [0x42a924]
add esp, 4
cmp byte [eax], 0
jne 0x40856b
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40856b
mov ecx, dword [0x42ad04]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40856b
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x408564
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40855d
push eax
call fcn.00408370
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x40c5e0
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 0x40c664
mov eax, dword [0x42ac10]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40c629
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 [0x42a920]
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 0x40c660
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 0x40c650
mov byte [ebp], 0
pop esi
pop ebp
ret

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

Disassembly:
mov ecx, dword [0x42ad1c]
sub esp, 0x24
push ebx
push esi
mov esi, dword [ecx*4 + 0x42ab10]
test esi, esi
je 0x40c995
mov edx, dword [ecx*4 + 0x42aa50]
xor eax, eax
test edx, edx
jbe 0x40c884
mov bl, byte [eax + esi]
mov cl, al
add cl, 0x40
xor bl, cl
mov byte [eax + esi], bl
mov edx, dword [0x42ad1c]
inc eax
cmp eax, dword [edx*4 + 0x42aa50]
jb 0x40c867
xor eax, eax
mov ax, word [esi]
add esi, 2
test eax, eax
jbe 0x40c995
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 [0x42a8b4]
push ecx
push edx
call fcn.0040c7b0
mov al, byte [esp + 0x1b]
add esp, 8
test al, 1
je 0x40c926
mov eax, dword [0x42a8b4]
lea ecx, [esp + 0x20]
push eax
push 0x14
push ecx
push 0x42ad68
push ebx
push ebp
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40c984
mov edx, dword [esp + 0x14]
push 0xffdc
push edx
push 0
call fcn.0040c670
mov dword [esp + 0x28], eax
lea eax, [eax + eax + 1]
push eax
call fcn.00419e90
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc ecx
mov edi, eax
push ecx
push edx
push edi
call fcn.0040c670
mov eax, dword [0x42a8b4]
add esp, 0x1c
push eax
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebp
call ebx
mov ecx, dword [0x42a8b4]
push ecx
push 0
push 0
push 0
call ebx
push edi
call fcn.00419ff3
add esp, 4
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40c89a
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40c9a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x408
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
je 0x40ca78
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40ca78
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 0x40ca7d
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 0x40ca50
test esi, esi
jne 0x40ca61
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0040c9a0
mov esi, eax
add esp, 8
test esi, esi
je 0x40c9f0
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 0x40e4c0
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.004021c0
add esp, 8
test eax, eax
jne 0x40e4f0
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x42a8b4]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40e641
push eax
call fcn.00419e90
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40e641
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x42a8b4]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40e636
mov al, byte [edi + 8]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x40e5c8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x425cc8
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e5c8
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x2e]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x40e586
jne 0x40e5c8
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x32]
cmp edx, eax
jbe 0x40e5c8
push 0x1d
push 7
call fcn.00403a00
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x40e62e
mov ecx, dword [0x42ad30]
test ecx, ecx
jne 0x40e62e
mov ecx, dword [0x42a8b4]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
jne 0x40e62e
mov eax, dword [0x42ad30]
test eax, eax
jne 0x40e636
test byte [edi + 8], 4
je 0x40e636
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 0x40e636
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x3e]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x40e636
push 0x1e
push 7
call fcn.00403a00
add esp, 8
test eax, eax
je 0x40e636
mov ecx, dword [0x42a8b4]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.004039c0
add esp, 0x14
cmp eax, 6
je 0x40e636
mov dword [esp + 0x10], 0
push ebp
call fcn.00419ff3
add esp, 4
pop esi
pop ebx
lea edx, [esp + 0x10]
push edx
call fcn.00402200
mov eax, dword [esp + 0xc]
add esp, 4
pop ebp
pop edi
add esp, 0x10
ret
Function at 0x40f1e0
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 0x40f289
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x42a8b4]
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 0x40f24c
inc dword [esp]
jmp 0x40f25c
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 [0x42a8b4]
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 0x40f7a0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x42ac48]
sub esp, 0x208
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
jne 0x40f883
push 0x42ac48
push 0x104
call fcn.004021c0
add esp, 8
test eax, eax
jne 0x40f7eb
pop edi
pop esi
pop ebp
mov dword [0x42ad34], 0xc
or eax, 0xffffffff
pop ebx
add esp, 0x208
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 1
mov eax, dword [0x42ac48]
push eax
push 0x104
call ebp
mov ecx, dword [0x42ac48]
push ecx
call fcn.00402110
mov edx, dword [0x42ac48]
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.icptmp_d
push ecx
call esi
mov edx, dword [0x42ac48]
push edx
call fcn.0041a088
add esp, 0x14
test eax, eax
jne 0x40f84a
inc ebx
cmp ebx, 0x3e7
jl 0x40f7f6
jmp 0x40f85c
mov eax, dword [0x42ac48]
push eax
call fcn.0041a05c
add esp, 4
test eax, eax
je 0x40f883
mov ecx, dword [0x42ac48]
mov dword [0x42ad34], 0x11
push ecx
call fcn.00409b90
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov edx, dword [0x42ac48]
push edx
call fcn.00402110
mov ebx, dword [esp + 0x220]
mov ecx, dword [0x42ac48]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 0x1c]
push eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [0x42ac48]
push eax
call fcn.00402150
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.00401140
mov ebp, dword [esp + 0x244]
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
jne 0x40f97e
mov eax, dword [0x42ac34]
mov edx, dword [ebx + 0x1c]
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 + 0x20]
push ebp
push eax
lea edx, [esp + 0x12c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0040f520
add esp, 0x24
test eax, eax
je 0x40f957
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00401140
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x40f97e
lea edx, [esp + 0x10]
mov dword [0x42ad34], 0x10
push edx
call fcn.00409b90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0x114]
mov dword [0x42ad34], 0x10
push eax
call fcn.00409b90
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebp
call fcn.00401f00
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40f9a0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x42ac48]
test eax, eax
je 0x40fa3e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
call ebx
test eax, eax
je 0x40fa30
push esi
push 1
push 0x118
call fcn.00419f42
mov esi, eax
add esp, 8
test esi, esi
je 0x40fa19
push edi
push esi
push str..bin
call fcn.0041ab41
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40fa0f
test byte [esi], 0x10
jne 0x40f9f8
lea eax, [esi + 0x14]
push eax
call fcn.0041a2c0
add esp, 4
push esi
push edi
call fcn.0041ac0b
add esp, 8
test eax, eax
je 0x40f9e7
push edi
call fcn.0041acd0
add esp, 4
push esi
call fcn.00419ff3
add esp, 4
pop edi
push 0x425d24
call ebx
mov ecx, dword [0x42ac48]
push ecx
call fcn.0041ab17
add esp, 4
pop esi
push 0x42ac48
call fcn.00402200
add esp, 4
pop ebx
ret

Function at 0x40fac0
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
xor ebp, ebp
call fcn.004021c0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, ebx
add esp, 8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40fae5
push 0x5c
push ebx
call fcn.00419d40
add esp, 8
test eax, eax
je 0x40fb01
inc eax
jmp 0x40fb03
mov eax, ebx
mov edi, dword [esp + 0x20]
mov edx, eax
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40fb0d
mov esi, dword [esp + 0x18]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40fb52
mov dword [0x42ad34], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x42ad24]
mov dword [0x42ad38], eax
mov ecx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40fb46
jmp 0x40fb7d
push 2
push esi
mov ebp, 1
call fcn.00419ced
add esp, 8
test eax, eax
je 0x40fb7d
cmp dword [0x42ad6c], 0xd
jne 0x40fb7d
push 0x180
push esi
call fcn.00419bac
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call fcn.00402200
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret