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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40100f
pop dword [ebp - 0x40]
mov eax, 0x40100f
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3931b
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x532e
mov edi, eax
mov ebx, 0x466ee800
add ebx, 0xb9d1ac00
add ebx, dword [ebp - 0x40]
mov edx, 0xc1ed7bcb
add edx, 0x386d86de
xor dword [ebp - 0x14], 0x490475f2
mov esi, dword [ebx]
add dword [ebp - 8], eax
sub esi, edx
sub dword [ebp - 0x28], edi
mov dword [edi], esi
xor dword [ebp - 0x14], 0xfcd29144
add edi, 0xe7ecde3a
sub edi, 0xe7ecde36
add ebx, 0xeb020400
sub ebx, 0xeb0203fc
loop 0x40105e
add eax, 0xef95d08
sub eax, 0xef81d7d
xor ebx, ebx
add ebx, eax
add eax, 0x63e91a22
add eax, 0x9c16e5e3
mov ecx, 0xa07c86ee
add ecx, 0x5fc37912
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4011d6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov eax, ecx
push esi
dec eax
push edi
je 0x4012f8
sub eax, 0x10
je 0x4012f3
sub eax, 5
je 0x4012b2
sub eax, 0xfd
je 0x401289
cmp ecx, dword [0x407708]
jne 0x40122a
mov eax, dword [ebp + 0x10]
mov dword [0x405020], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
add eax, 0x15f90
mov dword [0x407700], eax
jmp 0x401319
cmp ecx, dword [0x40770c]
jne 0x401274
cmp dword [ebp + 0x14], 0xa4d23f78
jne 0x401274
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x401319
xor esi, esi
cmp dword [0x4076fc], esi
jne 0x401319
push 0x832fbc3
push esi
push dword [0x40770c]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x401319
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x40131b
xor esi, esi
cmp dword [0x407704], esi
jne 0x401319
push dword [ebp + 8]
mov dword [0x407704], 1
call fcn.00401322
pop ecx
mov dword [0x407704], esi
jmp 0x401319
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x401319
push 1
mov edi, 0x407c40
pop ebx
push edi
call fcn.0040169e
test eax, eax
je 0x4012da
push esi
call main
and ebx, eax
inc esi
cmp esi, 0x14
pop ecx
jl 0x4012cb
mov esi, dword [sym.imp.kernel32.dll_DeleteFileA]
push 0x407b20
call esi
push edi
call esi
push 0x407d60
call esi
jmp 0x401319
push 1
pop eax
jmp 0x40131b
xor esi, esi
push esi
push 0xbb8
push 0x578
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x401319
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x401322
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.kernel32.dll_SetErrorMode]
push edi
push 0x8001
call esi
push str.c:_stopthis.now
call fcn.0040169e
test eax, eax
je 0x401351
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
pop eax
jmp 0x4013e4
xor ebx, ebx
push ebx
call esi
cmp dword [0x405020], ebx
push 1
pop esi
jne 0x401375
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, dword [0x407700]
jbe 0x401349
mov dword [0x405020], esi
push 0x407c40
call fcn.0040169e
test eax, eax
push ebx
jne 0x401392
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [0x4076fc], esi
jmp 0x4013e2
push 0x80
push 2
push ebx
push esi
mov edi, 0x407b20
push 0xc0000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileA]
push eax
mov dword [0x4076f0], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ebp, esi
push ebx
call main
and ebp, eax
inc ebx
cmp ebx, 0x14
pop ecx
jl 0x4013ba
test ebp, ebp
je 0x4013db
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [0x4076fc], esi
push edi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4014a7
Capabilities:
Delete file
Read .ini file

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
push 0x8000
mov dword [esp + 0x18], 1
call dword [sym.imp.kernel32.dll_SetErrorMode]
push dword [esp + 0x230]
call fcn.0040169e
test eax, eax
mov edi, 0x407c40
je 0x40150b
push dword [esp + 0x230]
call dword [sym.imp.kernel32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
je 0x40161a
push edi
push 0
push str.main
push dword [esp + 0x238]
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
and dword [esp + 0x10], 0
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
mov ebp, dword [sym.imp.kernel32.dll_lstrcmpiA]
mov esi, str.NOT_POSSIBLE_VALUE
push dword [esp + 0x10]
lea eax, [esp + 0x124]
push str.alt_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x18]
push edi
push 0x105
push eax
lea eax, [esp + 0x12c]
push esi
push eax
push dword [esp + 0x240]
call ebx
lea eax, [esp + 0x18]
push esi
push eax
call ebp
test eax, eax
je 0x4015a8
lea eax, [esp + 0x18]
push eax
call fcn.0040169e
test eax, eax
je 0x4015a8
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
dec eax
cmp eax, 0xffffffff
je 0x4015a3
push edi
lea eax, [esp + 0x124]
push 0
push eax
push dword [esp + 0x238]
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
jmp 0x4015a8
and dword [esp + 0x14], 0
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 5
jl 0x401521
push 0
call dword [sym.imp.kernel32.dll_SetErrorMode]
cmp dword [esp + 0x14], 0
je 0x40160b
push edi
lea eax, [esp + 0x1c]
push 0x105
push eax
push esi
push 0x405100
push dword [esp + 0x240]
call ebx
lea eax, [esp + 0x18]
push esi
push eax
call ebp
test eax, eax
je 0x40160b
lea eax, [esp + 0x18]
push eax
call fcn.00401790
test eax, eax
pop ecx
jne 0x40160b
push edi
push eax
push eax
push dword [esp + 0x238]
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
xor eax, eax
jmp 0x40160f

Function at 0x40161e
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0040169e
test eax, eax
je 0x40169a
cmp dword [esp + 0x14], 6
jne 0x401643
push esi
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x401675
jmp 0x40169a
mov edi, dword [sym.imp.kernel32.dll_SetErrorMode]
push 0x8001
call edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x4076f0], eax
jne 0x40167c
push ebx
call edi
push 1
pop eax
pop edi
pop esi
pop ebx
ret
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov esi, eax
push ebx
neg esi
sbb esi, esi
neg esi
dec esi
call edi
cmp esi, ebx
jl 0x401675
xor eax, eax
jmp 0x401678
Function at 0x401790
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4017a7
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x4017a9
xor eax, eax
test eax, eax
je 0x4017ba
push eax
call fcn.00401b00
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4017c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404118
push 0x402a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.kernel32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40774c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x407748], ecx
shl ecx, 8
add ecx, edx
mov dword [0x407744], ecx
shr eax, 0x10
mov dword [0x407740], eax
call fcn.00402950
test eax, eax
jne 0x40182a
push 0x1c
call fcn.00401990
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402750
call fcn.00402740
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4080b4], eax
call fcn.00402100
mov dword [0x407728], eax
test eax, eax
je 0x40185d
mov eax, dword [0x4080b4]
test eax, eax
jne 0x401867
push 0xffffffffffffffff
call fcn.004019f0
add esp, 4
call fcn.00401e50
call fcn.00401d60
call fcn.004019c0
mov esi, dword [0x4080b4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401946
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4018ae
test al, al
je 0x4018ae
and eax, 0xff
push eax
call fcn.00401d00
add esp, 4
test eax, eax
je 0x401888
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401888
cmp byte [esi], 0x22
jne 0x4018b7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4018c7
cmp al, 0x20
ja 0x4018c7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4018b7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4018e8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4018ed
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004019f0
jmp 0x40192b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4018b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401946

Function at 0x401990
Capabilities:
Terminate process

Disassembly:
cmp dword [0x407730], 1
jne 0x40199e
call fcn.00402b60
mov eax, dword [esp + 4]
push eax
call fcn.00402ba0
add esp, 4
push 0xff
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x401a30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40777c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401a4f
push ebp
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x407778], 1
mov byte [0x407774], bl
jne 0x401aa9
mov ecx, dword [0x4080ac]
test ecx, ecx
je 0x401a97
mov esi, dword [0x4080a8]
sub esi, 4
cmp esi, ecx
jb 0x401a97
mov eax, dword [esi]
test eax, eax
je 0x401a90
call eax
mov ecx, dword [0x4080ac]
sub esi, 4
cmp esi, ecx
jae 0x401a82
push 0x405014
push 0x405010
call fcn.00401ae0
add esp, 8
push 0x40501c
push 0x405018
call fcn.00401ae0
add esp, 8
test ebx, ebx
jne 0x401ad0
push ebp
mov dword [0x40777c], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x402100
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x407890]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402142
call edi
mov esi, eax
test esi, esi
je 0x40212c
mov eax, 1
jmp 0x40213d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40224f
mov eax, 2
mov dword [0x407890], eax
cmp eax, 1
jne 0x4021e2
test esi, esi
jne 0x40215b
call edi
mov esi, eax
test esi, esi
je 0x40224f
cmp word [esi], 0
mov eax, esi
je 0x402175
add eax, 2
cmp word [eax], 0
jne 0x402163
add eax, 2
cmp word [eax], 0
jne 0x402163
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4021d4
push edi
call fcn.00403030
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4021d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4021c6
push ebx
call fcn.00402fe0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40224f
test ebx, ebx
jne 0x4021f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40224f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40220b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4021fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4021fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403030
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40222d
push ebx
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402ba0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x405420
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402bc4
add eax, 8
inc ebp
cmp eax, 0x4054b0
jb 0x402bb5
cmp ecx, dword [ebp*8 + 0x405420]
jne 0x402d6b
mov eax, dword [0x407730]
cmp eax, 1
je 0x402d2d
test eax, eax
jne 0x402bf0
cmp dword [0x405110], 1
je 0x402d2d
cmp ecx, 0xfc
je 0x402d6b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402c2b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402c74
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4043f8
add ebx, ecx
push ebx
call fcn.004039d0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4043d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x405424]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x407fa0]
test eax, eax
je 0x402d3e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402d48
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x405424]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40101f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2b0b110]
jne 0x401029
repz ret
jmp fcn.004012ab

Function at 0x404e11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x2b0b110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004013b1
and dword [ebp - 0x14], 0
cmp dword [0x2b0e224], 0
mov dword [ebp - 0x18], eax
jne 0x404ec4
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404f6c
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404f6c
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x2b0e224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x2b0e228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x2b0e22c], eax
call edi
push eax
call esi
mov dword [0x2b0e234], eax
test eax, eax
je 0x404ec4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x2b0e230], eax
mov eax, dword [0x2b0e230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x404f1d
cmp dword [0x2b0e234], ecx
je 0x404f1d
push eax
call esi
push dword [0x2b0e234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404f1d
test ebx, ebx
je 0x404f1d
call edi
test eax, eax
je 0x404f14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404f14
test byte [ebp - 8], 1
jne 0x404f1d
or dword [ebp + 0x10], 0x200000
jmp 0x404f50
mov eax, dword [0x2b0e228]
cmp eax, dword [ebp - 0x18]
je 0x404f50
push eax
call esi
test eax, eax
je 0x404f50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404f50
mov eax, dword [0x2b0e22c]
cmp eax, dword [ebp - 0x18]
je 0x404f50
push eax
call esi
test eax, eax
je 0x404f50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x2b0e224]
call esi
test eax, eax
je 0x404f6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404f6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040101f
leave
ret
Function at 0x403da0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0xb8], eax
push esi
push edi
mov edi, dword [esp + 0xc8]
lea eax, [esp + 0x2c]
push eax
mov esi, 1
mov dword [esp + 0x30], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x3c], 2
je 0x403de3
mov esi, 2
jmp 0x403dfb
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [esp + 8], 2
jne 0x403dfb
mov esi, 5
push edi
call sym.convertifd.exe_FK_GetPlatform
mov ecx, eax
add esp, 4
sub ecx, 0x14
je 0x403e55
sub ecx, 1
je 0x403e2d
cmp eax, esi
je 0x403e55
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00511a80
add esp, 0xbc
ret
cmp esi, 2
je 0x403e55
cmp esi, 1
je 0x403e55
cmp esi, 5
je 0x403e55
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00511a80
add esp, 0xbc
ret
mov ecx, dword [esp + 0xcc]
test ecx, ecx
je 0x403e70
push 0
push ecx
push eax
call sym.convertifd.exe_FK_IsAllowed
add esp, 0xc
test eax, eax
je 0x403e3c
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00511a80
add esp, 0xbc
ret

Function at 0x404eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xff
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push str.SOFTWAREODBCODBC.INI_s
lea edx, [ebp - 0x110]
push edx
call fcn.005135ca
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [0x5a7644]
push edx
call sym.convertifd.exe_JfGetRegistryRootKey
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404f66
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
push str.Database
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x404f66
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00513670
add esp, 8
mov eax, 1
jmp 0x404f68
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret
Function at 0x404f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5bd254]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xff
mov eax, dword [ebp + 8]
push eax
call fcn.00405090
add esp, 4
mov dword [ebp + 8], eax
mov ecx, dword [0x5a7644]
push ecx
call sym.convertifd.exe_JfGetRegistryBaseKey
add esp, 4
push eax
lea edx, [ebp - 0x110]
push edx
call fcn.00513670
add esp, 8
cmp dword [ebp + 8], 0
je 0x404fff
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x404fff
push 0x5a7688
lea edx, [ebp - 0x110]
push edx
call fcn.00513680
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00513680
add esp, 8
lea edx, [ebp - 4]
push edx
push 1
push 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [0x5a7644]
push ecx
call sym.convertifd.exe_JfGetRegistryRootKey
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405073
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x405073
lea edx, [ebp - 0x110]
push edx
call fcn.00511d40
add esp, 4
jmp 0x405076
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00511a80
mov esp, ebp
pop ebp
ret