joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a569b
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4a56a8
jmp dword [eax*4 + 0x4a5703]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4a73eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4a740f
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4a7440
cmp dword [esi + 8], 0
jne 0x4a7430
push 0x4b6f8c
push dword [eax + 8]
call fcn.004788fa
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4a7430
or eax, 0xffffffff
jmp 0x4a7466
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004791dc
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4a744e
cmp edi, dword [ebp + 0xc]
jbe 0x4a7464
test ebx, ebx
jne 0x4a745e
push dword [esi + 8]
call fcn.0047897f
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x4096ae
Capabilities:
Terminate process

Disassembly:
push 0x118
push 0x40c018
call fcn.00409870
mov eax, dword [0x40d230]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x40d390]
test eax, eax
je 0x4096f1
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x4097fe
mov eax, dword [ebp + 8]
dec eax
je 0x40970a
mov ebx, str.Unknown_security_failure_detected_
mov dword [ebp - 0x20], str.A_security_error_of_unknown_cause_has_been_detected_which_has_ncorrupted_the_programs_internal_state.__The_program_cannot_safely_ncontinue_execution_and_must_now_be_terminated._n
mov edi, 0xd4
jmp 0x40971b
mov ebx, str.Buffer_overrun_detected_
mov dword [ebp - 0x20], str.A_buffer_overrun_has_been_detected_which_has_corrupted_the_programs_ninternal_state.__The_program_cannot_safely_continue_execution_and_must_nnow_be_terminated._n
mov edi, 0xb9
mov esi, 0x104
push esi
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409748
push str._program_name_unknown_
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x409750
cmp eax, esi
jne 0x409750
and byte [ebp - 0x21], 0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x124]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0xb
cmp eax, 0x3c
jbe 0x40979d
lea eax, [ebp - 0x124]
push eax
call esi
lea ecx, [ebp - 0x124]
sub ecx, 0x31
add eax, ecx
mov dword [ebp - 0x128], eax
push 3
push 0x40be64
push eax
call fcn.004098c0
add esp, 0xc
push dword [ebp - 0x128]
call esi
lea eax, [eax + edi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.00409c00
mov dword [ebp - 0x18], esp
mov edi, esp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x40be60
push ebx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push str.Program:
push edi
call esi
push dword [ebp - 0x128]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 0x20]
push edi
call esi
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x4016b0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2528
call fcn.0040c830
mov eax, dword [0x42fab8]
push ebx
push ebp
push esi
test eax, eax
push edi
jne 0x4016df
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42fab8], eax
je 0x4018ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call esi
mov dword [0x42fabc], eax
mov eax, dword [0x42fab8]
push str.EnumProcessModules
push eax
call esi
mov ecx, dword [0x42fab8]
push str.GetModuleFileNameExA
push ecx
mov dword [0x42fac0], eax
call esi
mov ecx, dword [0x42fabc]
mov dword [0x42fac4], eax
test ecx, ecx
je 0x4018ed
mov edx, dword [0x42fac0]
test edx, edx
je 0x4018ed
test eax, eax
je 0x4018ed
lea edx, [esp + 0x14]
lea eax, [esp + 0x538]
push edx
push 0x1000
push eax
call ecx
test eax, eax
je 0x4018ed
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], 0
shr ebp, 2
mov dword [esp + 0x1c], ebp
je 0x4018ed
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x538]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4018d1
push str.Opened_process
call ebx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1538]
push eax
push 0x1000
push ecx
push edi
call dword [0x42fac0]
test eax, eax
je 0x4018ca
push str.Enumerated_process_modules
call ebx
mov eax, dword [esp + 0x14]
shr eax, 2
mov dword [esp + 0x24], eax
mov eax, 0
mov dword [esp + 0x10], eax
je 0x4018ca
jmp 0x4017f2
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + eax*4 + 0x1538]
test eax, eax
jne 0x40184b
push str.Process_name
call ebx
lea edx, [esp + 0x12c]
push 0x104
push edx
push 0
push edi
call dword [0x42fac4]
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x3b4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x3b4]
push 0x5c
push edx
call fcn.0040c800
mov esi, eax
add esp, 8
mov byte [esi], 0
inc esi
push esi
call ebx
lea eax, [esp + 0x28]
push 0x104
push eax
push ebp
push edi
call dword [0x42fac4]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x230]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x230]
push 0x5c
push eax
call fcn.0040c800
mov ecx, dword [esp + 0x2544]
mov byte [eax], 0
inc eax
push ecx
push eax
call fcn.00401220
add esp, 0x10
test eax, eax
je 0x4018b1
push str.Process_module_name_matched._Now_check_if_its_loaded_by_rundll32.exe
call ebx
push str.rundll32.exe
push esi
call fcn.00401220
add esp, 8
test eax, eax
jne 0x4018fa
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4017ee
mov ebp, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
add edx, 4
cmp eax, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x401785
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2528
ret
push str.Rundll32.exe_has_the_module_loaded
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2528
ret
Function at 0x401c80
Capabilities:
Check os version
Print debug messages
Query or enumerate registry value

Disassembly:
sub esp, 0x9c
mov eax, dword [0x42fac8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 4], ebx
jne 0x401e3a
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
dec eax
je 0x401d2a
dec eax
jne 0x401e17
mov eax, dword [esp + 0x18]
mov esi, 5
cmp eax, 4
ja 0x401cde
push str.OS_Version:_WINNT
call edi
mov dword [0x42fac8], esi
cmp dword [esp + 0x18], esi
jne 0x401d2a
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x401d19
dec eax
je 0x401d06
dec eax
jne 0x401d2a
push str.OS_Version:_WIN2K3
call edi
mov dword [0x42fac8], 8
jmp 0x401d2a
push str.OS_Version:_WINXP
call edi
mov dword [0x42fac8], 7
jmp 0x401d2a
push str.OS_Version:_WIN2K
call edi
mov dword [0x42fac8], 6
push str.VER_PLATFORM_WIN32_WINDOWS
call edi
cmp dword [esp + 0x18], 4
jne 0x401e17
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x401d5a
push str.OS_Version:_WIN95
call edi
mov dword [0x42fac8], 1
jmp 0x401e17
cmp eax, 0xa
jb 0x401e17
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e17
lea edx, [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.VersionNumber
push eax
call esi
test eax, eax
jne 0x401e17
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00416e09
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401e17
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push ebx
push 0
push 0
push str.VersionNumber
push eax
call esi
test eax, eax
jne 0x401e17
push str.4.10
push ebx
call fcn.0040c91e
add esp, 8
test eax, eax
je 0x401df4
push str.OS_Version:_WIN98
call edi
mov dword [0x42fac8], 2
jmp 0x401e17
push str.4.90
push ebx
call fcn.0040c91e
add esp, 8
test eax, eax
je 0x401e17
push str.OS_Version:_WINME
call edi
mov dword [0x42fac8], 4
mov eax, dword [esp + 0xc]
pop edi
test eax, eax
pop esi
je 0x401e28
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x401e35
push ebx
call fcn.00416e32
add esp, 4
mov eax, dword [0x42fac8]
pop ebx
add esp, 0x9c
ret
Function at 0x401e50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb44
push ebx
push esi
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10], esp
push 0x104
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x401ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x320]
push str.GetWindowsDirectory_failed:__d
push ecx
mov dword [ebp - 0x118], eax
call fcn.0040c1ff
add esp, 0xc
mov ecx, 0x83
lea esi, [ebp - 0x320]
lea edi, [ebp - 0x52c]
lea edx, [ebp - 0x52c]
push 0x427f88
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.0040c626
cmp eax, 0x104
jle 0x401f15
lea eax, [ebp - 0x320]
push str.GetWindowsDirectory_failed___Buffer_insufficient
push eax
call fcn.0040c1ff
mov ecx, 0x83
lea esi, [ebp - 0x320]
lea edi, [ebp - 0x738]
add esp, 8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x738]
push 0x427f88
push ecx
call fcn.0040c626
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x114]
push 0x42d56c
push edx
call esi
lea eax, [ebp - 0x114]
push str.hpbvspst.ini
push eax
call esi
push 3
push 1
lea ecx, [ebp - 0x114]
push 1
push ecx
call fcn.004030e0
add esp, 0x10
test eax, eax
jne 0x401f88
lea edx, [ebp - 0x320]
push str.Factory_Initialization_failed
push edx
call fcn.0040c1ff
add esp, 8
mov ecx, 0x83
lea esi, [ebp - 0x320]
lea edi, [ebp - 0x944]
lea eax, [ebp - 0x944]
push 0x427f88
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0040c626
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc
xor eax, eax
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push esi
mov word [esp + 0x10], ax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jg 0x4031a2
push esi
push 0x42fad0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [esp + 8]
push 0xa
push ecx
push str.Default
push str.InProc
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 4]
push str.Default
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403150
call fcn.004031c0
call fcn.004032d0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x42d9bc
push str.InProc
push str.General
call esi
test eax, eax
je 0x4031a2
push 0
push 0
push 0
push 0
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [0x42d9b0], eax
mov eax, 1
mov dword [0x42d9b4], ecx
mov dword [0x42d9b8], edx
mov dword [0x42fbd4], eax
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x4031c0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push 0x42fad0
push eax
call esi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push edx
call esi
lea eax, [esp + 0x20]
push 0x2e
push eax
call fcn.0040c800
add esp, 8
mov edi, eax
lea ecx, [esp + 0x10]
push edi
push ecx
call esi
push str..bu2
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x124]
push 0x2e
push eax
call fcn.0040c800
add esp, 8
push str..bu1
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x128]
push ecx
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push edi
call esi
lea ecx, [esp + 0x124]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
call ebp
lea eax, [esp + 0x20]
push eax
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret
Function at 0x4032d0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push 0x42fad0
push eax
call esi
lea ecx, [esp + 0x20]
push 0x2e
push ecx
call fcn.0040c800
add esp, 8
push str..his
push eax
call esi
lea edx, [esp + 0x20]
lea eax, [esp + 0x124]
push edx
push eax
call esi
lea ecx, [esp + 0x20]
push 0x2e
push ecx
call fcn.0040c800
add esp, 8
mov edi, eax
lea edx, [esp + 0x10]
push edi
push edx
call esi
push str..hi2
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x20]
push eax
call ebx
lea ecx, [esp + 0x124]
push 0x2e
push ecx
call fcn.0040c800
add esp, 8
push str..hi1
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x128]
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push edi
call esi
lea edx, [esp + 0x124]
push 0
lea eax, [esp + 0x24]
push edx
push eax
call ebp
lea ecx, [esp + 0x20]
push ecx
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret

Function at 0x411849
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42ee00
cmp edx, dword [eax]
je 0x41186b
add eax, 8
inc ecx
cmp eax, 0x42ee90
jl 0x41185c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42ee00]
jne 0x411999
mov eax, dword [0x431bf4]
cmp eax, 1
je 0x411973
test eax, eax
jne 0x41189c
cmp dword [0x42e8b4], 1
je 0x411973
cmp edx, 0xfc
je 0x411999
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4118d3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004126b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410e30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411916
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410e30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425c7c
push edi
call fcn.00414050
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004126b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004126c0
lea eax, [ebp - 0xa0]
push 0x425c5c
push eax
call fcn.004126c0
push dword [esi + 0x42ee04]
lea eax, [ebp - 0xa0]
push eax
call fcn.004126c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413fb9
add esp, 0x2c
pop edi
jmp 0x411999
lea eax, [ebp + 8]
lea esi, [esi + 0x42ee04]
push 0
push eax
push dword [esi]
call fcn.00410e30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x418612
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42267c
call fcn.0040d1c4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041f723
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x418651
call fcn.0041f723
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41865f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41866d
or eax, 0xffffffff
jmp 0x418755
mov ecx, esi
call fcn.00418588
mov dword [ebp - 0x14], eax
call fcn.0041a12e
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4186a4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4186a4
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041a0e2
push dword [ebp - 0x14]
call fcn.00419c2f
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00418315
cmp eax, edi
je 0x418717
test byte [esi + 0x24], 0x10
je 0x4186e5
push 4
mov ecx, esi
pop ebx
call fcn.0041c232
test ah, 1
je 0x4186dd
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041bc3c
cmp dword [esi + 0x1c], edi
je 0x418717
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041c318
jmp 0x418717
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41872b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x418744
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x418744
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004185c2
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41baea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41bb2c
call fcn.0041f723
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41bb2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41bb23
xor eax, eax
jmp 0x41bb34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041bb3a
pop edi
pop esi
pop ebx
ret 4
Function at 0x41f297
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41f2c5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f2e3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041f1fd
jmp 0x41f2e3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41f2e3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041f1fd
test edi, edi
mov eax, edi
jne 0x41f2cd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001cd5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x100740f0
call fcn.10073e54
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10073e09
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10074132
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
invalid
inc ebp
leave
Function at 0x1000a090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10163034]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x68], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x6c], edi
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
test ebx, ebx
je 0x1000a13a
movzx esi, byte [ecx + 1]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 3]
shl esi, 8
or esi, eax
shl edx, 8
mov eax, dword [ebp - 0x68]
xor esi, 0x8000
add esi, 0xffff8000
mov dword [ebp + eax*4 - 0x44], esi
movzx eax, byte [ecx + 2]
or edx, eax
mov word [edi], si
xor edx, 0x8000
mov eax, 0
sub edx, 0x8000
cmovs edx, eax
mov eax, 0x58
cmp edx, eax
cmovl eax, edx
mov edx, dword [ebp - 0x68]
add ecx, 4
add edi, 2
mov dword [ebp + edx*4 - 0x64], eax
inc edx
mov dword [ebp - 0x68], edx
cmp edx, ebx
jb 0x1000a0d5
mov dword [ebp - 0x6c], edi
mov eax, 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], eax
cmp dword [ebp + 0x14], eax
jbe 0x1000a242
mov esi, 0xffff8000
and al, 7
cmp al, 1
jne 0x1000a192
xor esi, esi
test ebx, ebx
je 0x1000a18d
nop
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx]
shl edx, 8
add ecx, 4
or edx, eax
mov dword [ebp + esi*4 - 0x24], edx
inc esi
cmp esi, ebx
jb 0x1000a160
mov dword [ebp - 0x70], ecx
mov esi, 0xffff8000
xor edx, edx
mov dword [ebp - 0x68], edx
test ebx, ebx
je 0x1000a22d
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp + edx*4 - 0x24]
mov ebx, eax
mov edi, dword [ebp + edx*4 - 0x64]
and ebx, 0xf
shr eax, 4
mov dword [ebp + edx*4 - 0x24], eax
mov eax, dword [edi*4 + 0x1008f418]
imul eax, dword [ebx*4 + 0x1008f580]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp - 0x68]
sar eax, 3
add eax, dword [ebp + edx*4 - 0x44]
cmp eax, 0xffff8000
cmovl eax, esi
mov esi, 0x7fff
cmp eax, esi
cmovl esi, eax
mov eax, 0
mov dword [ebp + edx*4 - 0x44], esi
mov edx, dword [ebx*4 + 0x1008f5c0]
mov ebx, dword [ebp + 0x10]
add edx, edi
mov word [ecx], si
mov esi, 0xffff8000
cmovs edx, eax
mov eax, 0x58
cmp edx, eax
cmovl eax, edx
mov edx, dword [ebp - 0x68]
add ecx, 2
mov dword [ebp + edx*4 - 0x64], eax
inc edx
mov dword [ebp - 0x68], edx
cmp edx, ebx
jb 0x1000a1a2
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
mov esi, 0xffff8000
inc eax
mov dword [ebp - 0x74], eax
cmp eax, dword [ebp + 0x14]
jb 0x1000a153
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001abe
mov esp, ebp
pop ebp
ret