joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d1f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1005040]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1001358
push 0x1001350
lea eax, [ebp - 0x404]
xor ebx, ebx
push 0x400
push eax
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x414], 4
mov dword [ebp - 0x410], ebx
call fcn.01002cf1
add esp, 0x14
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002de8
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push ebx
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002dce
cmp dword [ebp - 0x410], 4
jne 0x1002dce
mov dword [ebp - 0x408], 1
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x408], ebx
mov eax, dword [ebp - 0x418]
jne 0x1002deb
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01002ab2
leave
ret 0x10

Function at 0x1002dfe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x1005040]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push 0x1001358
mov dword [ebp - 0xa18], eax
mov eax, 0x400
push 0x1001350
push eax
mov dword [ebp - 0xa08], eax
lea eax, [ebp - 0xa04]
xor ebx, ebx
push eax
mov dword [ebp - 0xa0c], ebx
mov dword [ebp - 0xa10], ebx
call fcn.01002cf1
add esp, 0x14
lea eax, [ebp - 0xa14]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0xa04]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002f1c
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push edi
xor edi, edi
inc edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0xa10]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0xa14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002f08
cmp dword [ebp - 0xa10], edi
jne 0x1002f08
lea eax, [ebp - 0xa1c]
push eax
mov eax, dword [ebp - 0xa08]
push ebx
push dword [ebp + 0x18]
shr eax, 1
push esi
push eax
lea eax, [ebp - 0x604]
push eax
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
mov dword [ebp - 0xa08], eax
je 0x1002f08
mov dword [ebp - 0xa0c], edi
push dword [ebp - 0xa14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa0c], ebx
jne 0x1002f2f
push dword [ebp + 0x18]
push dword [ebp - 0xa18]
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jbe 0x1002f3a
mov byte [esi + eax - 1], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002ab2
leave
ret 0x18
Function at 0x1002fb5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100138c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100300d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10013c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003000
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100300f
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x40102e
cmp bl, 0xd7
je 0x40102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x40104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x401023
jmp 0x40104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.004020e0
cmp bl, 0xd8
jne 0x40104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x40104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x401045
pop esi
pop ebx
pop ebp
ret

Function at 0x4010c1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x14]
push esi
push 0x8000040
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4010fc
push esi
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x40112a
push 0x40
push 0x101000
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40112a
push esi
mov eax, 0x401130
push esi
push eax
push eax
push 0x80030008
call fcn.00401057
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4045e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40c6e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x1c]
xor edi, edi
push edi
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x404661
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404661
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Left
mov ecx, esi
call fcn.004045e0
cmp eax, edi
je 0x404666
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004045e0
cmp eax, edi
je 0x404666
mov edi, 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040b9d8
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4

Function at 0x404ea0
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
push edi
push esi
push ebx
call ebp
test eax, eax
jne 0x404eef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x404ee8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call sub.MFC42.DLL_CString::CString
call fcn.00404df0
add esp, 4
push edi
push esi
push ebx
call ebp
test eax, eax
jne 0x404eef
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4052a0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push eax
lea eax, [esp + 0x38]
mov dl, byte [ecx]
mov ecx, edi
push edx
push eax
mov dword [esp + 0x34], esi
call fcn.00404510
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.0040b9de
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.0040b9d8
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4053a2
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
push esi
push str.DriverVersion
push edx
mov dword [esp + 0x48], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4053a2
push ebx
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.0040bab0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [edx]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call fcn.0040b9d8
test bl, bl
pop ebx
je 0x4053a2
cmp dword [esp + 0x3c], esi
jne 0x4053a7
push 0x40
push str.Notice
push str.These_drivers_are_already_current_and_up_to_date__to_remove_these_go_to_Add_Remove_Programs_in_the_Control_Panel
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x4053a7
mov esi, 1
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040b9d8
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x4058b0
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x78]
lea eax, [esp + 8]
push eax
xor ebx, ebx
push ecx
push 0x80000002
mov dword [esp + 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4059b2
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push ebx
push str.QuietUninstallMode
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4059b2
push edi
mov ecx, 0x11
lea edi, [esp + 0x28]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x18], ecx
push edx
mov dword [esp + 0x20], ecx
push eax
push ebx
mov dword [esp + 0x2c], ecx
push ebx
push ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x94]
push ebx
push ebx
push ebx
push ecx
push ebx
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x4059b2
mov edx, dword [esp + 0x14]
push 0x493e0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4059b2
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push ebx
push ebx
push str.QuietUninstallMode
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop esi
je 0x4059b2
mov ebx, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4059df
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4059df
push 0x40
push str.Notice
push str.There_were_problems_updating_the_older_version_of_this_driver._n_nIf_this_problem_conitues__go_to_Add_Remove_Programs_in_the_Control_Panel_to_remove_the_old_driver_set_before_installing_this_one.
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], 0xffffffff
call fcn.0040b9d8
mov ecx, dword [esp + 0x68]
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 0xc
Function at 0x4097a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x110]
push ebp
test eax, eax
push edi
mov ebp, 2
mov dword [esp + 8], 0
je 0x4097ce
pop edi
mov eax, 3
pop ebp
add esp, 0x108
ret
cmp dword [esp + 0x120], ebp
jge 0x4097e5
pop edi
mov eax, 3
pop ebp
add esp, 0x108
ret
mov ecx, dword [esp + 0x124]
mov eax, dword [ecx]
cmp byte [eax], 0
jne 0x409801
pop edi
mov eax, 3
pop ebp
add esp, 0x108
ret
mov edi, dword [ecx + 4]
cmp byte [edi], 0
jne 0x409817
pop edi
mov eax, 3
pop ebp
add esp, 0x108
ret
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, 0x104
jae 0x4098ea
test eax, eax
je 0x4098ea
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4098ea
push ebx
push str.newdev.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4098de
push esi
push str.UpdateDriverForPlugAndPlayDevicesA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4098d6
mov edx, dword [sym.imp.MSVCRT.dll__iob]
lea ecx, [esp + 0x14]
neg ecx
lea eax, [esp + 0x14]
sbb ecx, ecx
push eax
add ecx, 0xeeaf
push edi
add edx, 0x20
push ecx
push edx
call fcn.0040ac70
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 1
push ecx
push edi
push 0
call esi
test eax, eax
je 0x4098d6
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push 0xeeb2
add edx, 0x20
push edx
call fcn.0040ac70
mov ecx, dword [esp + 0x18]
add esp, 8
xor eax, eax
test ecx, ecx
setne al
mov ebp, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x108
ret
mov eax, ebp
pop edi
pop ebp
add esp, 0x108
ret

Function at 0x40b200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x2002
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x40b2ba
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
push 0
push ebx
push ebp
mov dword [esp + 0x28], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b290
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40b2ad
cmp dword [esp + 0x14], 7
jne 0x40b2ad
mov edi, dword [esp + 0x10]
push esi
call sub.MFC42.DLL_operatordelete
add edi, 2
push edi
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 8
test esi, esi
je 0x40b2ba
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push esi
push eax
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b247
mov ecx, dword [esp + 0x10]
mov byte [ecx + esi], 0
push esi
mov byte [ecx + esi + 1], 0
lea eax, [ecx + esi]
call fcn.0040af40
add esp, 4
test eax, eax
jne 0x40b2bc
test esi, esi
je 0x40b2ba
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x41ba18
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x407a5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
mov dword [esp + 0x18], 0
lea esi, [edi + 0x7c]
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xf
call fcn.00421848
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 0xe
call fcn.00421848
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 0xd
call fcn.00421848
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 0xc
call fcn.00421848
lea ecx, [esi + 0x18]
mov byte [esp + 0x18], 0xb
call fcn.00421848
lea ecx, [esi + 0x14]
mov byte [esp + 0x18], 0xa
call fcn.00421848
lea ecx, [esi + 0x10]
mov byte [esp + 0x18], 9
call fcn.00421848
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 8
call fcn.00421848
lea ecx, [esi + 8]
mov byte [esp + 0x18], 7
call fcn.00421848
lea ecx, [esi + 4]
mov byte [esp + 0x18], 6
call fcn.00421848
mov ecx, esi
mov byte [esp + 0x18], 5
call fcn.00421848
lea ecx, [edi + 0x70]
mov byte [esp + 0x18], 4
call fcn.00421848
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.00421848
lea ecx, [edi + 0x68]
mov byte [esp + 0x18], 2
call fcn.00421848
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 1
call fcn.00421848
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0
call fcn.00421848
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call fcn.0042195c
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41bb38
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Check os version
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x407b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
push 0x66
mov dword [esp + 0x1c], edi
call fcn.00421a4c
lea ecx, [edi + 0x60]
mov dword [esp + 0xb4], 0
call fcn.00421a46
lea ebp, [edi + 0x64]
mov byte [esp + 0xb4], 1
mov ecx, ebp
call fcn.00421a46
lea ebx, [edi + 0x68]
mov byte [esp + 0xb4], 2
mov ecx, ebx
call fcn.00421a46
lea ecx, [edi + 0x6c]
mov byte [esp + 0xb4], 3
call fcn.00421a46
lea ecx, [edi + 0x70]
mov byte [esp + 0xb4], 4
call fcn.00421a46
lea esi, [edi + 0x7c]
mov byte [esp + 0xb4], 5
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.00421a46
lea ecx, [esi + 4]
mov byte [esp + 0xb4], 6
call fcn.00421a46
lea ecx, [esi + 8]
mov byte [esp + 0xb4], 7
call fcn.00421a46
lea ecx, [esi + 0xc]
mov byte [esp + 0xb4], 8
call fcn.00421a46
lea ecx, [esi + 0x10]
mov byte [esp + 0xb4], 9
call fcn.00421a46
lea ecx, [esi + 0x14]
mov byte [esp + 0xb4], 0xa
call fcn.00421a46
lea ecx, [esi + 0x18]
mov byte [esp + 0xb4], 0xb
call fcn.00421a46
lea ecx, [esi + 0x1c]
mov byte [esp + 0xb4], 0xc
call fcn.00421a46
lea ecx, [esi + 0x20]
mov byte [esp + 0xb4], 0xd
call fcn.00421a46
lea ecx, [esi + 0x2c]
mov byte [esp + 0xb4], 0xe
call fcn.00421a46
lea ecx, [esi + 0x30]
mov byte [esp + 0xb4], 0xf
call fcn.00421a46
mov byte [esp + 0xb4], 0x10
mov dword [edi], 0x408518
push 0x40aaac
mov ecx, ebp
call fcn.00421a40
push 0x40aaac
mov ecx, ebx
call fcn.00421a40
push 0x40aaac
lea ecx, [edi + 0x6c]
call fcn.00421a40
push 0x40aaac
lea ecx, [edi + 0x70]
call fcn.00421a40
call fcn.00421a3a
push 0x80
push 0xe
push 0x80
call fcn.00421a34
push eax
call dword [0x4083d0]
lea ecx, [esp + 0x18]
mov dword [edi + 0x74], eax
push ecx
mov byte [edi + 0x78], 0
mov dword [esp + 0x1c], 0x94
call dword [0x408054]
test eax, eax
je 0x41bd24
mov eax, dword [esp + 0x1c]
cmp eax, 5
jne 0x41bd1b
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x41bd0b
mov byte [edi + 0x78], 1
jmp 0x41bd24
cmp eax, 1
je 0x41bd15
cmp eax, 2
jne 0x41bd24
mov byte [edi + 0x78], 2
jmp 0x41bd24
cmp eax, 6
jne 0x41bd24
mov byte [edi + 0x78], 3
mov ecx, dword [esp + 0xac]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4
Function at 0x467d90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x43b015
lea edi, [esi - 0x3a015]
push edi
or ebp, 0xffffffff
jmp 0x467db2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x467db9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467da8
mov eax, 1
add ebx, ebx
jne 0x467dcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x467ddc
jne 0x467dfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467dfb
dec eax
add ebx, ebx
jne 0x467de8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x467dc0
add ebx, ebx
jne 0x467df7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x467e4d
xor ecx, ecx
sub eax, 3
jb 0x467e13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x467e82
sar eax, 1
mov ebp, eax
jmp 0x467e1e
add ebx, ebx
jne 0x467e1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467dec
inc ecx
add ebx, ebx
jne 0x467e2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467dec
add ebx, ebx
jne 0x467e39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x467e2e
jne 0x467e4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x467e2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x467e6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x467e5e
jmp 0x467dae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x467e6c
add edi, ecx
jmp 0x467dae
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x467e8a
cmp byte [edi], 7
jne 0x467e8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x467e8f
lea edi, [esi + 0x65000]
mov eax, dword [edi]
or eax, eax
je 0x467f07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x77f9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7803c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x467ebc
mov ecx, edi
jns 0x467eeb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x78040]
or eax, eax
je 0x467f01
mov dword [ebx], eax
add ebx, 4
jmp 0x467ed9
call dword [esi + 0x78050]
mov ebp, dword [esi + 0x78044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x467f3b
sub esp, 0xffffff80
jmp 0x412a92
Function at 0x40be60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x10]
mov ecx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40be91
push eax
mov eax, dword [esi]
push 0x452
push eax
call fcn.00431420
add esp, 0xc
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [ecx + 4]
sub eax, edi
mov edi, 0x1000
cmp eax, 0x1000
jg 0x40beab
mov edi, eax
add ecx, 0x18
push edi
push ecx
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, edi
pop edi
je 0x40bedd
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__tell]
push eax
mov eax, dword [esi]
push 0x453
push eax
call fcn.00431420
add esp, 0x10
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x14]
and al, 0xf7
mov dword [esi + 0x14], eax
pop esi
ret 4

Function at 0x40c440
Capabilities:
Get file size

Disassembly:
mov al, byte [esp + 0xc]
push ebx
push ebp
push esi
test al, al
je 0x40c5ac
mov eax, dword [esp + 0x14]
test al, 3
mov ebx, eax
setne cl
shr ebx, 8
and al, 0x40
and bl, 1
neg al
sbb eax, eax
mov byte [esp + 0x18], cl
and eax, 0x4000080
add eax, 0x80
test cl, cl
je 0x40c4b8
xor edx, edx
mov ecx, 0x469558
cmp dword [ecx], 0
mov esi, dword [esp + 0x10]
je 0x40c496
add ecx, 4
inc edx
cmp ecx, 0x469598
jl 0x40c47f
jmp 0x40c49d
mov dword [edx*4 + 0x469558], esi
push 0
push eax
mov al, bl
mov ecx, dword [esi]
neg al
sbb eax, eax
add eax, 3
push eax
push 0
push 0
push 0xc0000000
push ecx
jmp 0x40c4ce
mov esi, dword [esp + 0x10]
push 0
push 0
push 3
mov edx, dword [esi]
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
mov ebp, dword [esp + 0x1c]
jne 0x40c535
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
mov al, byte [esp + 0x18]
test al, al
mov dword [esi + 0x10], 0
jne 0x40c593
mov eax, dword [ebp]
cmp eax, 3
je 0x40c50d
cmp eax, 2
jne 0x40c593
push 0
push 0
push 0x469534
push 0
push 0x469530
push esi
call fcn.0040c3a0
mov eax, dword [esi]
push eax
push 0x49d
push 0
call fcn.00431420
add esp, 0xc
test bl, bl
push edi
je 0x40c53e
xor edi, edi
jmp 0x40c563
mov ecx, dword [esi + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c563
mov edx, dword [esi]
push edx
push 0x450
push 0
call fcn.00431420
add esp, 0xc
mov al, byte [esp + 0x1c]
mov dword [esi + 0xc], edi
test al, al
je 0x40c582
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40c585
cmp edi, 0x80000
jge 0x40c582
mov edi, 0x80000
mov dword [esi + 0x18], edi
push ebp
push 0
push esi
call fcn.0040c8c0
test al, al
pop edi
jne 0x40c59c
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 0x10
mov eax, dword [esi + 4]
or al, 8
mov dword [esi + 4], eax
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push 0
push 0
push ecx
call fcn.0040c5d0
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10