joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4498b8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449a5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40ded4]
call fcn.00402d9c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403a30
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x449a33
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004396f8
test al, al
je 0x449a26
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x449a6c
lea eax, [ebp - 0x254]
call fcn.00408d88
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x449a26
xor eax, eax
push ebp
push 0x449a1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x449aa4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449a08
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c5c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x449a08
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449a26
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x449929
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00411790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449a64
lea eax, [ebp - 0x260]
call fcn.00403a30
ret

Function at 0x44a200
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4677b0]
cmp byte [eax + 0x8d], 0
jne 0x44a271
cmp dword [0x4677ec], 0
jne 0x44a232
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a1bc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4677ec], eax
cmp dword [0x4677e8], 0
jne 0x44a24d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4677e8], eax
cmp dword [0x4677f0], 0
jne 0x44a271
push esp
push 0
push 0
push 0x44a160
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4677f0], eax
pop edx
ret
Function at 0x44a368
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44a37f
add esp, 0xfffffff0
call fcn.004030f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00416004
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40da58]
call fcn.00402d9c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40da58]
call fcn.00402d9c
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x417d90]
call fcn.0041ee04
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x44a4f0
mov eax, dword [0x465f08]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041f1a8
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x44be1c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x465f08]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b298
test eax, eax
je 0x44a46f
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086fc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b2c0
test eax, eax
je 0x44a483
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c5c
mov eax, dword [0x465df8]
cmp byte [eax], 0
jne 0x44a4b4
mov eax, ebx
call fcn.0044a5dc
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44a4e6
call fcn.00403150
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a838
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4677b0]
cmp dword [eax + 0x24], 0
je 0x44a8c8
cmp dword [ebx + 0x7c], 0
jne 0x44a8c5
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a7cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x44a8c5
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a894
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a8c5
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040f438
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a8a0
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x44b218
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x44b24d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403b14
jmp 0x44b257
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403ac8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c14c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x44c184
mov eax, esi
call fcn.00435438
test al, al
je 0x44c184
mov eax, dword [ebx + 0x6c]
call fcn.00435010
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c184
push 0
mov eax, dword [ebx + 0x6c]
call fcn.00435010
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x455350
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455428
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x467858], 0
jne 0x45540c
lea eax, [ebp - 4]
mov edx, 0x455440
call fcn.00403ac8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403e70
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45540c
mov eax, ebx
call fcn.004026e4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x455405
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4553ef
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x455450
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4553ef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x467858], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45540c
mov eax, dword [ebp - 0xc]
call fcn.004026fc
ret
mov ebx, dword [0x467858]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45542f
lea eax, [ebp - 4]
call fcn.00403a30
ret

Function at 0x45d6ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45d77d
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
call fcn.0045d240
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.00403e70
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45d767
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x465fe8]
call fcn.0040576c
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x45d08c]
call fcn.0040a6b4
call fcn.004034a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d784
lea eax, [ebp - 0x10]
call fcn.00403a30
ret
Function at 0x45d790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45d82b
push dword fs:[eax]
mov dword fs:[eax], esp
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.00403e70
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45d805
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x4661b4]
call fcn.0040576c
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x45d08c]
call fcn.0040a6b4
call fcn.004034a4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045d270
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d832
lea eax, [ebp - 0x10]
call fcn.00403a30
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x401443
pop dword [ebp - 0x18]
mov eax, 0x385aa7f2
sub eax, 0x381a93af
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x138b10b5
sub dword [ebp - 0x28], 0xc538cb6a
mov dword [ebp - 0x24], 0xcfe9b34d
sub dword [ebp - 0x24], 0x9db66708
mov dword [ebp - 0x20], 0x7e0767dc
add dword [ebp - 0x20], 0xce44dc52
mov dword [ebp - 0x1c], 0xe5a8f720
add dword [ebp - 0x1c], 0x1a5708e0
lea eax, [ebp - 0x28]
push eax
mov eax, 0x326804e7
sub eax, 0x322783e3
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x972e9e30
sub dword [ebp - 0x28], 0x22bc34da
mov dword [ebp - 0x24], 0x22ff3059
sub dword [ebp - 0x24], 0xe192cee4
mov dword [ebp - 0x20], 0xd15a14db
sub dword [ebp - 0x20], 0x6deaa86f
mov dword [ebp - 0x1c], 0x8c8b6beb
add dword [ebp - 0x1c], 0x73749415
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x53f9530a
sub eax, 0x53b8d20a
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3a7da
push 0
call eax
mov ecx, 0x50cd
mov edi, eax
mov ebx, 0xc87c2eee
add ebx, 0x37cab512
add ebx, dword [ebp - 0x18]
mov edx, 0x7ea866d3
sub edx, 0xe190e3b3
add dword [ebp - 8], eax
mov esi, dword [ebx]
sub dword [ebp - 0x14], edx
xor esi, edx
sub dword [ebp - 0x10], esi
mov dword [edi], esi
xor dword [ebp - 0x10], edi
add edi, 0xcbc779c8
add edi, 0x3438863c
add ebx, 4
loop 0x40155f
add eax, 0xe7309af4
add eax, 0x18d09b13
xor ebx, ebx
add ebx, eax
add eax, 0x5ebcaecc
sub eax, 0x5ebcaec7
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x40d2ce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x813d98], esi
jne 0x40d3c1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d34e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4a1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4a1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4a1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813d98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813d9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813da0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813da8], eax
test eax, eax
je 0x40d3be
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813da4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3e6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3d9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push 4
pop eax
jmp 0x40d4a3
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push dword [0x813d98]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3e0
mov eax, dword [0x813da4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d459
cmp dword [0x813da8], edi
je 0x40d459
push eax
call ebx
push dword [0x813da8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d459
test eax, eax
je 0x40d459
call ecx
test eax, eax
je 0x40d44e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d44e
test byte [ebp - 8], 1
jne 0x40d459
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d489
mov eax, dword [0x813d9c]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
call eax
mov esi, eax
test esi, esi
je 0x40d486
mov eax, dword [0x813da0]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813d98]
call ebx
test eax, eax
je 0x40d4a1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x4010e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4192e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
push eax
xor edi, edi
push 0x20019
push edi
push str.SOFTWAREBaanWorktop
mov ebp, ecx
push 0x80000002
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012f2
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
lea esi, [ebp + 8]
push ecx
push esi
push edi
push edi
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4012eb
cmp dword [esp + 0x10], edi
jbe 0x4012eb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push str._d._d
push esi
mov byte [ebp + 0x220], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.0040391a
mov eax, dword [esp + 0x24]
mov ebx, 2
add esp, 0x10
cmp eax, ebx
jl 0x40119f
cmp dword [esp + 0x18], 5
jl 0x40119f
mov dword [ebp + 0x214], 1
jmp 0x4011a5
mov dword [ebp + 0x214], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
lea esi, [ebp + 0x10c]
push edx
push esi
push edi
push edi
push str.Location
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4012eb
cmp dword [esp + 0x10], edi
jbe 0x4012eb
mov ecx, dword [0x420548]
push esi
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.004118c5
push str.lang_resWT.dll
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], edi
call fcn.004119fd
lea ecx, [esp + 0x24]
call fcn.00402942
mov edx, dword [esp + 0x14]
push edi
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 1
call fcn.00402a05
cmp eax, edi
je 0x40128e
lea esi, [ebp + 0x210]
lea ecx, [esp + 0x24]
call fcn.00402c25
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.00402e1d
push ebx
lea ecx, [esp + 0x1c]
push 5
push ecx
mov ecx, eax
mov byte [esp + 0x54], bl
call fcn.00410e78
push eax
mov ecx, esi
mov byte [esp + 0x4c], 3
call fcn.00411a39
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
call fcn.00411788
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
call fcn.00411788
push 0x4200c4
mov ecx, esi
call fcn.004119fd
test edi, edi
jne 0x40122a
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.00401890
push eax
lea ecx, [ebp + 0x218]
mov byte [esp + 0x4c], 4
call fcn.00411875
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
call fcn.00411788
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.0040297f
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0xffffffff
call fcn.00411788
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov byte [ebp + 0x220], 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x401370
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41930b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push 0x104
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
lea esi, [edi + 0x21c]
push ecx
mov ecx, esi
call fcn.004118c5
push str.msiexec.exe__i__
mov ecx, esi
call fcn.004119fd
push str.Infor_Worktop.msi
mov ecx, esi
call fcn.004119fd
push 0x4201dc
mov ecx, esi
call fcn.004119fd
push str.PREVIOUS_LANGUAGES_
mov ecx, esi
call fcn.004119fd
lea edx, [edi + 0x210]
mov ecx, esi
push edx
call fcn.00411a39
push 0x4201dc
mov ecx, esi
call fcn.004119fd
mov eax, dword [0x420548]
lea ebp, [edi + 0x10c]
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004118c5
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x14]
test edx, edx
setne bl
call fcn.00411788
test bl, bl
je 0x401486
push str.INSTALLDIR_
mov ecx, esi
call fcn.004119fd
mov edx, dword [0x420548]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.004118c5
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x128], 0
call fcn.00411a39
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.00411788
push 0x4201dc
mov ecx, esi
call fcn.004119fd
mov eax, dword [edi + 4]
test eax, eax
je 0x401499
push 0x4201b0
mov ecx, esi
call fcn.004119fd
mov al, byte [edi + 0x220]
test al, al
jne 0x4014b6
mov eax, dword [edi + 4]
test eax, eax
jne 0x4014b6
push str._qb
mov ecx, esi
call fcn.004119fd
push str.An_exception_has_occured_during_installation_of_iBaan_Windows.__Please_contact_your_System_Administrator
push str.Installation_of_iBaan_Windows_failed._n_s
mov ecx, edi
call fcn.00401660
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x4014e0
Capabilities:
Get common file path

Disassembly:
mov al, byte [ecx + 0x220]
test al, al
jne 0x4014fe
mov eax, dword [ecx + 0x214]
test eax, eax
je 0x4014f9
jmp 0x4015e0
jmp 0x401510
xor eax, eax
ret
push 0xffffffffffffffff
push 0x41932b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
lea esi, [edi + 0x21c]
push ecx
mov ecx, esi
call fcn.004118c5
push str.IsUninst.exe__a__y__x__f_
mov ecx, esi
call fcn.004119fd
mov edx, dword [0x420548]
lea eax, [edi + 0x10c]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edx
call fcn.004118c5
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0
push ecx
mov ecx, esi
call fcn.00411a39
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.00411788
push str.Uninst.isu
mov ecx, esi
call fcn.004119fd
push str.An_exception_has_occured_during_un_installation_of_Infor_Worktop.__Please_contact_your_System_Administrator
push str.UnInstallation_of_Infor_Worktop_failed._n_s
mov ecx, edi
call fcn.00401660
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret
sub esp, 0x104
lea eax, [esp]
push esi
push edi
push 0x104
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 8]
lea esi, [edi + 0x21c]
push ecx
mov ecx, esi
call fcn.004118c5
push str.msiexec.exe__x
mov ecx, esi
call fcn.004119fd
push str.F4F0C556_4287_4826_9AB4_7FFF1F070D8A
mov ecx, esi
call fcn.004119fd
mov eax, dword [edi + 4]
test eax, eax
je 0x401632
push str.__q
jmp 0x401637
push str.__qb
mov ecx, esi
call fcn.004119fd
push str.An_exception_has_occured_during_un_installation_of_infor_Worktop.__Please_contact_your_System_Administrator
push str.Un_installation_of_Infor_Worktop_failed._n_s
mov ecx, edi
call fcn.00401660
pop edi
pop esi
add esp, 0x104
ret