joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40473c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, 0x4066b0
mov byte [ebp - 1], 0
xor ecx, ecx
push ebp
push 0x4047ba
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, 0x4047d8
mov ecx, 0xa
mov eax, dword [0x406650]
call fcn.004046f8
test al, al
jne 0x40477c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4047cf
mov eax, dword [ebx]
call fcn.00402440
mov dword [0x4066b8], eax
mov edx, dword [ebx]
dec edx
test edx, edx
jb 0x4047b0
inc edx
xor eax, eax
mov ecx, dword [ebx]
dec ecx
sub ecx, eax
add ecx, dword [0x4066b4]
mov cl, byte [ecx]
xor cl, 0xfe
mov esi, dword [0x4066b8]
add esi, eax
mov byte [esi], cl
inc eax
dec edx
jne 0x404792
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4047cb
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x401877
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x44c, 0
push 0x10
push 0
push 0
push 0
push 0
push 0
lea esi, [ebp - 0x14]
call dword [sym.imp.USER32.DLL_LoadImageA]
push esi
mov ebx, eax
lea esi, [ebp - 0x3c]
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push esi
push 0x18
push ebx
lea esi, [ebp - 0x244]
call dword [sym.imp.GDI32.DLL_GetObjectA]
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
xor eax, eax
push 0
mov word [ebp - 0x24], ax
call dword [sym.imp.OLE32.DLL_CoInitialize]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea esi, [ebp - 0x244]
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
lea edi, [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.DLL_GetBitmapBits]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteObject]
push 0x104
lea ebx, [ebp - 0x44c]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
push 0
lea ebx, [ebp - 4]
call dword [sym.imp.USER32.DLL_GetParent]
push ebx
push 0
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
push 0
lea ebx, [esi - 3]
call dword [sym.imp.SHLWAPI.DLL_PathFindExtensionW]
mov eax, ebx
jmp 0x401c68
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401bfa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edi, [eax + 1]
mov eax, dword [0x403050]
cdq
idiv edi
mov ebx, esi
mov edx, eax
mov eax, 0x403054
call fcn.00401b3d
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x402992
push eax
sub edi, fcn.0040215d
push edi
push fcn.0040215d
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401c68
mov eax, fcn.0040215d
mov ebx, esi
mov edx, edi
call fcn.00401b3d
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.00401c6f
Function at 0x4027f4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402831
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402851
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040406c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402a18
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403dfc
test esi, esi
jne 0x402a4e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403eec
jmp 0x402a6c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028cc
mov edi, eax
test esi, esi
je 0x402a6c
cmp dword [ebx], 0
je 0x402a6c
dec esi
jmp 0x402a55
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403024
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x420020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40309c
xor eax, eax
push ebp
push 0x403095
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40309c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x420020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x420020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403c60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x421044], 0
je 0x403cc1
cmp word [0x421218], 0xd7b2
jne 0x403c89
cmp dword [0x421220], 0
jbe 0x403c89
mov eax, 0x421214
call dword [0x421230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x420068
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ce8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42002c], 0
jne 0x403cdd
push 0
push 0x420060
push 0x420068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4051c8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4053f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40524b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4053f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40524b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405414
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4052d4
xor eax, eax
push ebp
push 0x4052cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405010
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405434
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052b2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4052d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4053ee
cmp byte [ebp - 0xd], 0
jne 0x40531b
cmp byte [ebp - 0x12], 0
je 0x4053ee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405334
dec ebx
cmp byte [ebx], 0x2e
je 0x405343
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405333
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4053ee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405380
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4053ee
cmp byte [ebp - 0xd], 0
je 0x4053ee
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4053ee
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405aea
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040406c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402be8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ad4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405af1
lea eax, [ebp - 0x10]
call fcn.00403dfc
ret

Function at 0x4076fc
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404298
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x407710
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404298
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x407732
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x409f14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409f4d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403eec
jmp 0x409f56
mov eax, ebx
mov edx, esi
call fcn.00403e50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409f60
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409f81
mov al, byte [esp]
jmp 0x409f83
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a608
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a480
mov eax, dword [0x4205f0]
cmp byte [eax], 0
je 0x40a684
mov eax, dword [0x4204f0]
call fcn.00402af4
call fcn.00402780
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407870
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a6cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a6ba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4204c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x421660]
call fcn.00404fd4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b400
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b464
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040406c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040735c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b46b
lea eax, [ebp - 0xc]
call fcn.00403dfc
ret

Function at 0x4170d8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x417241
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403e94
mov eax, dword [ebp - 0x10]
call fcn.00416c4c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x41712a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404338
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00417660
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4171ff
xor eax, eax
push ebp
push 0x4171f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00416df8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00417270
test al, al
je 0x4171d6
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403eec
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4171d6
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404298
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4171d0
mov eax, dword [ebp - 0x14]
call fcn.00404298
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403ff4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004170d8
dec ebx
cmp ebx, 0xffffffff
jne 0x417189
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4171ff
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00416df8
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404298
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00416de4
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417248
lea eax, [ebp - 0x3c]
call fcn.00403dfc
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403e20
ret
Function at 0x417270
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402bc8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x420674]
cmp byte [edx + 0xc], 0
je 0x4172d4
mov edx, dword [0x42066c]
cmp dword [edx], 2
jne 0x4172d4
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x4172d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x417390
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00417270
test al, al
je 0x417372
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403eec
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x417372
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404298
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404298
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00403ff4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x41732b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417397
lea eax, [ebp - 0x2c]
call fcn.00403dfc
lea eax, [ebp - 0xc]
call fcn.00403dfc
ret

Function at 0x417574
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00416c60
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404298
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4175d2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x420574]
mov dl, 1
mov eax, dword [0x416b58]
call fcn.0040a7ec
call fcn.0040383c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4175dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404298
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x417634
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x420680]
mov dl, 1
mov eax, dword [0x416b58]
call fcn.0040a7ec
call fcn.0040383c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00416c90
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x417958
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc9c
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404288
xor eax, eax
push ebp
push 0x417a5e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.004078cc
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004027f4
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.004078cc
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00402bc8
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x417a0a
mov dword [ebp - 8], 0xffffffff
jmp 0x417a40
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a65
lea eax, [ebp - 0xc]
call fcn.00403dfc
lea eax, [ebp - 4]
call fcn.00403dfc
ret
Function at 0x41864c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404288
xor eax, eax
push ebp
push 0x41874f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404298
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, ebx
call fcn.00402638
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x418732
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x41871c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x418760
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x41871c
push edi
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x10]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
and ebx, 0xffff
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x14]
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
and esi, 0xffff
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x34]
mov ecx, 3
mov eax, 0x41876c
call fcn.00407e1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418739
mov eax, dword [ebp - 8]
call fcn.00402658
ret
Function at 0x40b4e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48695b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047b411
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b562
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00479328
mov eax, dword [eax]
push 0x4a01c4
push eax
call fcn.00468774
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047b69c
test bl, bl
je 0x40b562
push 0x4a01c4
lea ecx, [esp + 0xc]
call fcn.0047ba2c
push 0x4a3d3c
lea ecx, [esp + 0xc]
call fcn.0047ba2c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b59e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047b69c
jmp 0x40b669
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b622
lea edx, [esp + 0x7c]
push 0x4a3d38
push edx
call fcn.00468774
add esp, 8
test eax, eax
je 0x40b622
lea eax, [esp + 0x7c]
push 0x4a3d34
push eax
call fcn.00468774
add esp, 8
test eax, eax
je 0x40b622
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b5b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047b69c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40be60
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
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 0x40bec2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc