joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4448ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444924]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444905
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444914
or bl, 4
test esi, 0x20000000
je 0x44491f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44afcc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44afde
add esp, 0xfffffff0
call fcn.00403610
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aca8
mov eax, dword [0x46952c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b370
mov eax, dword [0x46953c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b37c
mov eax, ebx
call fcn.0044b388
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b40]
call fcn.004032d4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b40]
call fcn.004032d4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b40]
call fcn.004032d4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b40]
call fcn.004032d4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b40]
call fcn.004032d4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4477a4
push eax
push 0
push 0
mov eax, dword [0x469764]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c6cc]
call fcn.0041db10
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c6cc]
call fcn.0041db10
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c6cc]
call fcn.0041db10
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044b7a8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b684
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b684
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b684
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b11b
call fcn.00403668
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44b468
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 0x44b613
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44b5f4
mov dl, 1
mov eax, dword [0x4121a4]
call fcn.004032d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040c0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44b5e3
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.0043949c
test al, al
je 0x44b5d6
lea eax, [ebp - 0xc]
push eax
push 0x20019
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, 0x44b624
lea eax, [ebp - 0x254]
call fcn.00408dfc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44b5d6
xor eax, eax
push ebp
push 0x44b5cf
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 0x44b65c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44b5b8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404330
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44b5b8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404330
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b5d6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b4d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004167b0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b61a
lea eax, [ebp - 0x260]
call fcn.004040c0
ret

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

Disassembly:
push ecx
mov eax, dword [0x46abb4]
cmp byte [eax + 0xa5], 0
jne 0x44bfb9
cmp dword [0x46abcc], 0
jne 0x44bf7a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44bf04
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46abcc], eax
cmp dword [0x46abc8], 0
jne 0x44bf95
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46abc8], eax
cmp dword [0x46abd0], 0
jne 0x44bfb9
push esp
push 0
push 0
push 0x44bea8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x46abd0], eax
pop edx
ret
Function at 0x44c0b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44c0c7
add esp, 0xfffffff0
call fcn.00403610
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aca8
mov eax, dword [0x469740]
cmp word [eax + 2], 0
jne 0x44c0ef
mov eax, dword [0x469740]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d788
mov eax, dword [0x46986c]
cmp word [eax + 2], 0
jne 0x44c109
mov eax, dword [0x46986c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d980
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411b40]
call fcn.004032d4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411b40]
call fcn.004032d4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41ce7c]
call fcn.00422ac4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44c290
mov eax, dword [0x4695c4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422e94
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44df30
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4695c4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040c580
test eax, eax
je 0x44c1fe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004087f0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c5a8
test eax, eax
je 0x44c212
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404330
mov eax, dword [0x4693f4]
cmp byte [eax], 0
jne 0x44c246
mov eax, ebx
call fcn.0044c3b8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044e10c
mov eax, ebx
call fcn.0044ead0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c286
call fcn.00403668
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c638
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46abb4]
cmp dword [eax + 0x30], 0
je 0x44c6e2
cmp dword [ebx + 0x94], 0
jne 0x44c6dc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c5c8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44c6dc
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 0x44c6a2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c6dc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041421c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c6b1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44d244
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44d279
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041b0
jmp 0x44d286
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404114
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e2e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44e329
mov eax, esi
call fcn.00434ca4
test al, al
je 0x44e329
mov eax, dword [ebx + 0x84]
call fcn.00434a44
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e329
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434a44
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46364c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x463654
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x463846
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x46385c
mov eax, esi
call fcn.0045ff0c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404114
lea ecx, [ebp - 0x10]
mov edx, 0x463870
mov eax, esi
call fcn.0045ff0c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404114
lea ecx, [ebp - 0x14]
mov edx, 0x463888
mov eax, esi
call fcn.0045ff0c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404114
lea ecx, [ebp - 0x18]
mov edx, 0x4638a4
mov eax, esi
call fcn.0045ff0c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404114
lea ecx, [ebp - 0x1c]
mov edx, 0x4638c0
mov eax, esi
call fcn.0045ff0c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404114
lea ecx, [ebp - 0x24]
mov edx, 0x4638d8
mov eax, esi
call fcn.0045ff0c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407f70
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408250
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4638f0
mov eax, esi
call fcn.0045ff0c
mov eax, dword [ebp - 0x28]
call fcn.0045431c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x463900
mov eax, esi
call fcn.0045ff0c
mov eax, dword [ebp - 0x2c]
call fcn.0045431c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x463918
mov eax, esi
call fcn.0045ff0c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408250
inc eax
je 0x4637e9
lea ecx, [ebp - 0x34]
mov edx, 0x463918
mov eax, esi
call fcn.0045ff0c
mov eax, dword [ebp - 0x34]
call fcn.00408214
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040974c
fstp qword [ebp - 0x3c]
wait
call fcn.00409ab0
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x463804
lea ecx, [ebp - 0x40]
mov edx, 0x463918
mov eax, esi
call fcn.0045ff0c
mov eax, dword [ebp - 0x40]
call fcn.0045431c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x463928
mov eax, esi
call fcn.0045ff0c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46384d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004040e4
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004040e4
ret
Function at 0x401e58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4093ec], 0
push esi
jne 0x401e8f
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 0x401e69
mov dword [ecx*4 + 0x4093e8], eax
inc ecx
cmp ecx, 0x100
jl 0x401e64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x401ec0
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 + 0x4093e8]
xor eax, esi
inc ecx
dec edx
jne 0x401ea2
pop edi
not eax
pop esi
ret 0xc
Function at 0x403637
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4036a9
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x403682
cmp dword [ebp + 0x10], ebx
jne 0x4036b0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403637
test eax, eax
jne 0x403694
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x403669
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x4036a9
Function at 0x403ac1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403aee
mov ecx, dword [0x424398]
push edi
add eax, ecx
push edi
push eax
mov dword [0x417504], eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403bec
cmp eax, edi
jl 0x403be5
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409020]
call ebx
test eax, eax
je 0x403be2
cmp dword [ebp - 4], esi
jne 0x403be2
push dword [ebp + 8]
add dword [0x417504], esi
call fcn.00403bec
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403be5
cmp dword [ebp + 0x10], edi
jne 0x403bb1
cmp dword [ebp + 8], edi
jle 0x403bdd
mov esi, 0x4134c0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403b61
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409020]
call ebx
test eax, eax
je 0x403be2
cmp edi, dword [ebp - 4]
jne 0x403be2
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403bad
cmp dword [ebp + 0x14], edi
jne 0x403bad
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x417504], eax
cmp dword [ebp + 8], 0
jg 0x403b54
jmp 0x403bdd
push 0xfffffffffffffffe
jmp 0x403be4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403bbc
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409020]
call ebx
test eax, eax
je 0x403be2
mov eax, dword [ebp - 4]
add dword [0x417504], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403be5
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403bec
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x417504]
mov ebx, eax
sub esi, dword [0x40b434]
add ebx, 0x1f4
add esi, dword [esp + 0x38]
cmp esi, edi
jle 0x403de4
push dword [0x41f514]
call fcn.00403e22
push edi
push edi
push dword [0x40b434]
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f510], esi
mov dword [0x417500], edi
mov eax, dword [0x417508]
mov ebp, 0x4000
sub eax, dword [0x41f514]
cmp eax, ebp
jg 0x403c60
mov ebp, eax
mov esi, 0x4134c0
push ebp
push esi
call fcn.00403df0
test eax, eax
je 0x403daf
add dword [0x41f514], ebp
mov dword [0x40b450], esi
mov dword [0x40b454], ebp
cmp dword [0x424348], edi
je 0x403d12
cmp dword [0x4243e0], edi
jne 0x403d12
cmp dword [esp + 0x10], edi
je 0x403cdf
mov eax, dword [0x41f510]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [0x417504]
sub eax, dword [esp + 0x38]
add eax, dword [0x40b434]
mov dword [0x417500], eax
jmp 0x403ccd
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
call esi
test eax, eax
jne 0x403cc2
jmp 0x403d12
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x403d12
mov eax, dword [0x424344]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x403708
push edi
push 0x6f
push dword [0x424340]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b438
mov dword [0x40b458], 0x40b4c0
mov dword [0x40b45c], 0x8000
call fcn.00401020
test eax, eax
jl 0x403db8
mov esi, dword [0x40b458]
mov eax, 0x40b4c0
sub esi, eax
je 0x403d79
lea ecx, [esp + 0x14]
push edi
push ecx
push esi
push eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403db4
cmp esi, dword [esp + 0x14]
jne 0x403db4
add dword [0x40b434], esi
cmp dword [0x40b454], edi
jne 0x403c86
jmp 0x403d85
cmp dword [0x40b454], edi
jne 0x403db8
cmp ebp, edi
je 0x403db8
mov eax, dword [0x417504]
mov ecx, eax
sub ecx, dword [0x40b434]
add ecx, dword [esp + 0x38]
test ecx, ecx
jg 0x403c4a
push edi
push edi
push eax
push dword [0x409020]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403dbd
or eax, 0xffffffff
jmp 0x403de6
push 0xfffffffffffffffe
jmp 0x403dba
push 0xfffffffffffffffd
pop eax
jmp 0x403de6
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x403de4
mov eax, dword [0x41f510]
push edi
push edi
push 0x113
push esi
mov dword [0x417500], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4044a9
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42b000], 0
push ebx
push ebp
push esi
push edi
mov edi, 0xffff
mov ebx, 0x42b000
je 0x4044c8
push ebx
call fcn.004065ce
jmp 0x4044ce
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x424384]
test esi, esi
je 0x404521
mov ecx, dword [0x424348]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x424380]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x404506
test esi, esi
jne 0x4044f0
jmp 0x404521
mov edx, dword [ecx + 2]
mov dword [0x423b20], edx
mov edx, dword [ecx + 6]
mov dword [0x4243e8], edx
lea edx, [ecx + 0xa]
mov dword [0x423b1c], edx
cmp dword [0x423b1c], 0
jne 0x40453c
cmp di, 0xffff
jne 0x404538
mov edi, 0x3ff
jmp 0x4044d0
xor edi, edi
jmp 0x4044d0
movzx eax, word [ecx]
push eax
push ebx
call fcn.004065b5
push 0xfffffffffffffffe
push 0x423b40
call fcn.00406663
push eax
push dword [0x420928]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x42436c]
mov esi, dword [0x424368]
test eax, eax
je 0x404589
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x404580
push eax
lea eax, [esi + 0x18]
push eax
call fcn.00406663
add esi, 0x418
dec edi
jne 0x404570
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405efa
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422550], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405f1e
test al, 0x10
jne 0x405f21
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422550
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405f4c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Read .ini file

Disassembly:
sub esp, 0x204
lea eax, [esp]
push ebx
push esi
push edi
push eax
push str.SOFTWAREMathWorksMATLAB5.3
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4010ef
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.matlab.ini
lea eax, [esp + 0x114]
push 0xff
lea ecx, [esp + 0x18]
push eax
push ecx
push str.Help_Dir
push str.Matlab_Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x110]
push edx
call fcn.004037c0
add esp, 4
lea eax, [esp + 0x10]
push eax
call fcn.004037c0
mov edi, str.help_
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
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 + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x110]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4010e6
test cl, cl
je 0x4010e2
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4010e6
add eax, 2
add esi, 2
test cl, cl
jne 0x4010be
xor eax, eax
jmp 0x4010eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4010fc
push 5
push str.setup.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x204
ret 0x10

Function at 0x4012e0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4074f8], 1
jne 0x4012ee
call fcn.00402440
mov eax, dword [esp + 4]
push eax
call fcn.00402480
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401380
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x407544]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40139f
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 [0x407540], 1
mov byte [0x40753c], bl
jne 0x4013f9
mov ecx, dword [0x4079ec]
test ecx, ecx
je 0x4013e7
mov esi, dword [0x4079e8]
sub esi, 4
cmp esi, ecx
jb 0x4013e7
mov eax, dword [esi]
test eax, eax
je 0x4013e0
call eax
mov ecx, dword [0x4079ec]
sub esi, 4
cmp esi, ecx
jae 0x4013d2
push 0x405014
push 0x405010
call fcn.00401430
add esp, 8
push 0x40501c
push 0x405018
call fcn.00401430
add esp, 8
test ebx, ebx
jne 0x401420
push ebp
mov dword [0x407544], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret