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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40611c
pop dword [ebp - 0x50]
mov eax, 0x40611c
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x1de54943
add dword [ebp - 0x60], 0x306cfc08
mov dword [ebp - 0x5c], 0x4ae53feb
add dword [ebp - 0x5c], 0xe74e0c5a
mov dword [ebp - 0x58], 0x28d9e27e
add dword [ebp - 0x58], 0x237261b0
mov dword [ebp - 0x54], 0xfd833dc4
sub dword [ebp - 0x54], 0xfd833dc4
lea eax, [ebp - 0x60]
push eax
mov eax, 0x36b5a045
add eax, 0xc98ad01b
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xc1d82c25
add dword [ebp - 0x60], 0xb29a3d31
mov dword [ebp - 0x5c], 0x9996db86
sub dword [ebp - 0x5c], 0x582a7a11
mov dword [ebp - 0x58], 0xc4ea93fc
sub dword [ebp - 0x58], 0x617b2790
mov dword [ebp - 0x54], 0x38fc7a0d
sub dword [ebp - 0x54], 0x38fc7a0d
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x700746d1
add eax, 0x90392a2f
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3c1fb
push 0
call eax
mov ecx, 0x5e10
xor edi, edi
add edi, eax
mov ebx, 0x282355f3
sub ebx, 0x27e255f3
add ebx, dword [ebp - 0x50]
mov esi, 0x2ec0c5f8
sub esi, 0xd8e98bc4
add dword [ebp - 0x44], eax
mov edx, dword [ebx]
mov dword [ebp - 0x14], 0xcc000396
xor edx, esi
sub dword [ebp - 0x4c], 0x577e249c
mov dword [edi], edx
sub dword [ebp - 0x48], esi
add edi, 4
add ebx, 0xa40ff6ab
add ebx, 0x5bf00959
loop 0x406235
add eax, 0x2b335a88
sub eax, 0x2b31ef75
mov ebx, eax
add eax, 5
mov ecx, 0x1855772
sub ecx, 0x1455772
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x4035c0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446307
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x102
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0042b2b0
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x80
push eax
push str.SONARWORKS_ENABLE_LOG
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40363d
lea eax, [ebp - 0x118]
push eax
call fcn.00430906
add esp, 4
jmp 0x403748
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push str.SOFTWARESonarworks
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
js 0x403746
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x12c], fcn.00403770
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push 0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push eax
push 0
push str.ENABLE_LOG
push dword [ebp - 0x11c]
mov dword [ebp - 0x120], 0
call edi
test eax, eax
js 0x40372f
push dword [ebp - 0x120]
call fcn.00412874
add esp, 4
mov esi, eax
lea eax, [ebp - 0x120]
push eax
push esi
lea eax, [ebp - 0x124]
push eax
push 0
push str.ENABLE_LOG
push dword [ebp - 0x11c]
call edi
test eax, eax
js 0x403722
push esi
call fcn.00430906
add esp, 4
mov edi, eax
test esi, esi
je 0x403707
push esi
call fcn.00412385
add esp, 4
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 2
test eax, eax
je 0x40371e
push eax
call fcn.00403770
add esp, 4
mov eax, edi
jmp 0x403748
test esi, esi
je 0x40372f
push esi
call fcn.00412385
add esp, 4
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 3
test eax, eax
je 0x403746
push eax
call fcn.00403770
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412374
mov esp, ebp
pop ebp
ret
Function at 0x4037f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44634e
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x24]
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x20]
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x403922
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], eax
mov byte [ebp - 0x228], al
push 4
push str.fail
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00407ef0
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x244], 0x200
jb 0x40388a
mov esi, dword [esi]
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push esi
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x4038e0
cmp byte [ebp - 0x210], al
jne 0x4038bb
xor ecx, ecx
jmp 0x4038cd
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4038c4
sub ecx, edx
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00407ef0
lea eax, [ebp - 0x228]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x240]
call fcn.0040b250
add esp, 4
lea ecx, [ebx + 0x10]
mov byte [ebp - 4], 2
neg ebx
mov edx, eax
sbb ebx, ebx
and ecx, ebx
call fcn.0040b5b0
lea ecx, [ebp - 0x240]
call fcn.00404ad0
lea ecx, [ebp - 0x228]
call fcn.00404ad0
lea ecx, [ebp + 8]
call fcn.00404ad0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412374
mov esp, ebp
pop ebp
ret

Function at 0x409bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4460e6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004125c6
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004107fb
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409c80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4460e6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x45f070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004125c6
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004107fb
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ce90
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446e51
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push 0
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0
push dword [ebx + 4]
mov dword [ebp - 0x50], edi
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
je 0x40cf3c
push eax
lea eax, [ebp - 0x68]
push str.BCryptCreateHash___failed_with_0x_X
push eax
call fcn.0040c880
add esp, 0xc
mov dword [ebp - 0x4c], vtable.Sonarworks::CException.0
lea eax, [ebp - 0x68]
xorps xmm0, xmm0
lea ecx, [ebp - 0x40]
movq qword [ebp - 0x48], xmm0
push eax
call fcn.00404bf0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x28], 3
call fcn.00404ad0
push 0x45d9a4
lea eax, [ebp - 0x4c]
push eax
call fcn.0042a8e7
mov esi, dword [ebp - 0x1c]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
push dword [ebp - 0x20]
push esi
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
je 0x40cfae
push eax
lea eax, [ebp - 0x68]
push str.BCryptHashData___failed_with_0x_X
push eax
call fcn.0040c880
add esp, 0xc
mov dword [ebp - 0x4c], vtable.Sonarworks::CException.0
lea eax, [ebp - 0x68]
xorps xmm0, xmm0
lea ecx, [ebp - 0x40]
movq qword [ebp - 0x48], xmm0
push eax
call fcn.00404bf0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x28], 3
call fcn.00404ad0
push 0x45d9a4
lea eax, [ebp - 0x4c]
push eax
call fcn.0042a8e7
mov dword [edi], 0
push dword [ebx]
call fcn.00412874
add esp, 4
mov dword [edi], eax
push 0
push dword [ebx]
mov dword [ebp - 0x24], 1
push eax
push esi
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov ecx, eax
test ecx, ecx
je 0x40d005
push 3
sub esp, 0x18
mov eax, esp
push ecx
push str.BCryptFinishHash___failed_with_0x_X
push eax
call fcn.0040c880
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.0040cb10
push 0x45d9a4
lea eax, [ebp - 0x4c]
push eax
call fcn.0042a8e7
test esi, esi
je 0x40d010
push esi
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412374
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40d41e
mov ecx, dword [ebp - 4]
mov ax, word [ebp - 0x210]
xor ecx, ebp
call fcn.00412374
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push str.GetWindowsDirectory___failed_with__d
push eax
call fcn.0040c880
add esp, 0xc
mov dword [ebp - method.Sonarworks::CException.virtual_0], vtable.Sonarworks::CException.0
lea eax, [ebp - 0x228]
xorps xmm0, xmm0
lea ecx, [ebp - 0x244]
movq qword [ebp - 0x24c], xmm0
push eax
call fcn.00404bf0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], 3
call fcn.00404ad0
push 0x45d9a4
lea eax, [ebp - 0x250]
push eax
call fcn.0042a8e7
int3

Function at 0x40d490
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446ed6
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xec], ecx
lea eax, [ebp - 0xe8]
xor esi, esi
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0xe8]
test eax, eax
je 0x40d4ec
cmp eax, 6
jne 0x40d4f3
lea esi, [ebx + 1]
jmp 0x40d4f3
movzx esi, word [ebp - 0xc8]
movsx eax, si
add eax, 0xfffffffd
cmp eax, 0xc
ja case.0x40d505.7
movzx eax, byte [eax + 0x40d614]
jmp dword [eax*4 + 0x40d608]
mov ecx, dword [ebp - 0xc6]
mov ax, cx
shr ax, 8
cmp al, 0xff
jne 0x40d531
mov al, cl
shr al, 4
movzx eax, al
sub ax, 0xa
and cl, 0xf
movzx ebx, ax
jmp 0x40d54b
movzx eax, al
add ax, 0x41
movzx edi, ax
jmp case.0x40d505.7
mov ecx, dword [ebp - 0xc6]
mov eax, ecx
shr eax, 8
movzx ebx, al
movzx edi, cl
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.0042b2b0
add esp, 4
lea ecx, [ebp - 0xc0]
call fcn.00405c70
push dword [ebp - 0xc6]
push ecx
push dword [ebp - 0xe8]
push ecx
push edi
push ecx
push ebx
push ecx
push esi
lea ecx, [ebp - 0xb0]
call fcn.0040e260
add esp, 4
mov ecx, eax
call fcn.0040e260
add esp, 4
mov ecx, eax
call fcn.0040e260
add esp, 4
mov ecx, eax
call fcn.0040e0c0
add esp, 4
mov ecx, eax
call fcn.0040e0c0
mov esi, dword [ebp - 0xec]
lea ecx, [ebp - 0xc0]
push esi
call fcn.00405b60
lea ecx, [ebp - 0x58]
call fcn.00405b80
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00410cb4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412374
mov esp, ebp
pop ebp
ret
Function at 0x40d630
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446f10
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
push 0
push 0
push 0
push 0x52534d42
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
push eax
mov dword [ebp - 0x30], eax
call fcn.00412874
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
push esi
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x40d6fb
push dword [ebp - 0x30]
mov edx, esi
mov ecx, ebx
call fcn.0040d050
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00404ad0
test esi, esi
je 0x40d6de
push esi
call fcn.00412385
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412374
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x50]
push str.GetSystemFirmwareTable___failed_with__d
push eax
call fcn.0040c880
add esp, 0xc
mov dword [ebp - 0x78], vtable.Sonarworks::CException.0
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
lea ecx, [ebp - 0x6c]
movq qword [ebp - 0x74], xmm0
push eax
call fcn.00404bf0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], 3
call fcn.00404ad0
push 0x45d9a4
lea eax, [ebp - 0x78]
push eax
call fcn.0042a8e7
int3

Function at 0x40d750
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x45f070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
call fcn.0040d3e0
mov word [ebp - 0xc], ax
xor eax, eax
push eax
push eax
push eax
push eax
mov word [ebp - 6], ax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xa], 0x5c003a
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40d7bb
mov edx, dword [ebp - 0x10]
mov ecx, esi
call fcn.0040c860
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412374
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x30]
push str.GetVolumeInformation___failed_with__d
push eax
call fcn.0040c880
add esp, 0xc
mov dword [ebp - 0x58], vtable.Sonarworks::CException.0
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
lea ecx, [ebp - 0x4c]
movq qword [ebp - 0x54], xmm0
push eax
call fcn.00404bf0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], 3
call fcn.00404ad0
push 0x45d9a4
lea eax, [ebp - 0x58]
push eax
call fcn.0042a8e7
int3
Function at 0x413f85
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x43cb22
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043c7e2
Function at 0x4010d2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
xor esi, esi
mov edi, 1
mov edx, edi
mov ecx, edi
call fcn.00401316
cmp byte [0x405c56], 0
jne 0x401132
mov ebx, 0x405c56
mov ecx, str.VisualFoxProRuntime.5
mov edx, ebx
call fcn.004011d5
test eax, eax
je 0x401132
mov esi, edi
push 0
push ebx
call fcn.004017f0
add esp, 8
test eax, eax
je 0x401132
mov esi, 2
mov edx, edi
mov byte [0x405c56], 0
mov ecx, edi
call fcn.00401316
cmp esi, 2
je 0x4011ce
cmp byte [0x405c56], 0
jne 0x4011ce
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4011b9
add eax, 0xc
cmp eax, 0x105
jg 0x4011b9
push 0x405040
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 1
call fcn.004012ee
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.004017f0
add esp, 8
test eax, eax
jne 0x4011b9
lea eax, [ebp - 0x118]
push eax
push 0x405c56
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [0x405c56], 0
jne 0x4011ce
mov ecx, 1
mov edx, ecx
call fcn.00401316
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4011d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
lea eax, [ebp - 4]
push esi
push edi
mov esi, edx
mov edi, ecx
push eax
push 0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401201
xor eax, eax
jmp 0x4012e7
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.ShellOpenCommand
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
lea ecx, [ebp - 0x108]
push eax
lea edx, [ebp - 0x208]
mov dword [ebp - 8], 0x105
push ecx
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x401257
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4012e7
cmp byte [ebp - 0x108], 0
lea edi, [ebp - 0x108]
je 0x40129b
cmp dword [0x4052a4], 1
jle 0x40127f
movsx eax, byte [edi]
push 8
push eax
call fcn.00401840
add esp, 8
jmp 0x401291
movsx ecx, byte [edi]
xor eax, eax
mov edx, dword [str.________________________________H]
mov ax, word [edx + ecx*2]
and eax, 8
test eax, eax
je 0x40129b
inc edi
cmp byte [edi], 0
jne 0x401266
mov ebx, edi
cmp byte [edi], 0
je 0x4012d7
cmp dword [0x4052a4], 1
jle 0x4012bb
movsx eax, byte [edi]
push 8
push eax
call fcn.00401840
add esp, 8
jmp 0x4012cd
movsx ecx, byte [edi]
xor eax, eax
mov edx, dword [str.________________________________H]
mov ax, word [edx + ecx*2]
and eax, 8
test eax, eax
jne 0x4012d7
inc edi
cmp byte [edi], 0
jne 0x4012a2
push ebx
mov byte [edi], 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401316
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
imul ecx, ecx, 0x106
push ebx
push esi
push edi
lea esi, [ecx + 0x405b50]
mov edi, edx
cmp byte [esi], 0
jne 0x4013cc
push 0x5c
push 0x405a40
call fcn.00401960
add esp, 8
test eax, eax
jne 0x401360
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x401382
mov ecx, 0x405a40
sub eax, ecx
push eax
mov ebx, eax
push ecx
lea eax, [ebp - 0x118]
push eax
call fcn.004018e0
mov byte [ebp + ebx - 0x118], 0
add esp, 0xc
push 0x405040
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, edi
call fcn.004012ee
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea ecx, [ebp - 0x118]
push ecx
call fcn.004017f0
add esp, 8
test eax, eax
jne 0x4013cc
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4017f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401815
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401f70
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x40183a
test byte [esp + 8], 2
je 0x40183a
mov dword [0x4052c4], 0xd
mov dword [0x4052c8], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x401c70
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x403050
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4052d0], eax
xor eax, eax
mov al, byte [0x4052d1]
mov dword [0x4052dc], eax
mov eax, dword [0x4052d0]
shr dword [0x4052d0], 0x10
and eax, 0xff
mov dword [0x4052d8], eax
shl eax, 8
add eax, dword [0x4052dc]
mov dword [0x4052d4], eax
call fcn.00403030
mov dword [ebp - 4], 0
call fcn.00402e50
call fcn.004023d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x405f80], eax
call fcn.00402cb0
mov dword [0x4052b0], eax
test eax, eax
je 0x401d09
cmp dword [0x405f80], 0
jne 0x401d13
push 0xffffffffffffffff
call fcn.00401e60
add esp, 4
call fcn.00402a30
call fcn.00402950
call fcn.00401e30
mov esi, dword [0x405f80]
mov al, byte [esi]
cmp al, 0x22
je 0x401d3a
cmp al, 0x20
jbe 0x401d67
inc esi
cmp byte [esi], 0x20
ja 0x401d32
jmp 0x401d67
inc esi
cmp byte [esi], 0x22
je 0x401d66
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x401d61
xor eax, eax
mov al, bl
push eax
call fcn.004028f0
add esp, 4
test eax, eax
je 0x401d5b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x401d43
cmp byte [esi], 0x22
jne 0x401d67
inc esi
cmp byte [esi], 0
je 0x401d77
cmp byte [esi], 0x20
ja 0x401d77
inc esi
cmp byte [esi], 0
jne 0x401d6c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x401d9b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00401e60
jmp 0x401ddc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401ea0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40530c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x401ebe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x405308], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x405304], bl
jne 0x401f18
cmp dword [0x405f78], 0
je 0x401f06
mov edi, dword [0x405f74]
sub edi, 4
cmp dword [0x405f78], edi
ja 0x401f06
mov eax, dword [edi]
test eax, eax
je 0x401efb
call eax
sub edi, 4
cmp dword [0x405f78], edi
jbe 0x401ef3
push 0x405014
push 0x405010
call fcn.00401f50
add esp, 8
push 0x40501c
push 0x405018
call fcn.00401f50
add esp, 8
test ebx, ebx
jne 0x401f3f
mov dword [0x40530c], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret