joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042b8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4044e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40433b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4044e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40433b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404504
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043c4
xor eax, eax
push ebp
push 0x4043bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404100
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4043a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404524
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4043a2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4043c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4044de
cmp byte [ebp - 0xd], 0
jne 0x40440b
cmp byte [ebp - 0x12], 0
je 0x4044de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404424
dec ebx
cmp byte [ebx], 0x2e
je 0x404433
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404423
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4044de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404470
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4044de
cmp byte [ebp - 0xd], 0
je 0x4044de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4044de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4066a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4066d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040398c
jmp 0x4066e2
mov eax, ebx
mov edx, esi
call fcn.004038f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4066ec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40670d
mov al, byte [esp]
jmp 0x40670f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406d94
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406c0c
mov eax, dword [0x40d49c]
cmp byte [eax], 0
je 0x406dfc
mov eax, dword [0x40d3f0]
call fcn.00402710
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405ae4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406e44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406e32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40d3d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40e710]
call fcn.004040c4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x407830
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407894
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403aec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004059b8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40789b
lea eax, [ebp - 0xc]
call fcn.0040389c
ret

Function at 0x408924
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40896a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00408888
mov eax, dword [ebp - 4]
call fcn.00403c6c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408971
lea eax, [ebp - 4]
call fcn.0040389c
ret
Function at 0x408b64
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408bf1
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x408bae
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.0040398c
jmp 0x408bdb
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x408bc2
lea eax, [ebp - 4]
call fcn.0040389c
jmp 0x408bd1
lea edx, [ebp - 4]
call fcn.00408a34
test ebx, ebx
je 0x408bd1
dec ebx
jmp 0x408bb3
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004038f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bf8
lea eax, [ebp - 4]
call fcn.0040389c
ret

Function at 0x408c00
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405ba4
add esp, 0x104
pop ebx
ret

Function at 0x408d44
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 dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x408e65
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x408e4f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x408d9d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x408e4f
cmp dword [ebp - 0xc], 0
jne 0x408db2
mov eax, dword [ebp - 4]
call fcn.0040389c
mov bl, 1
jmp 0x408e4f
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.0040398c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403cbc
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x408d69
test eax, eax
jne 0x408e4f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x408df9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x408e4f
jmp 0x408df9
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x408e0c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x408df6
cmp dword [ebp - 8], 7
jne 0x408e1b
cmp dword [ebp - 0xc], 0
je 0x408e1b
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403d60
cmp dword [ebp - 8], 7
jne 0x408e42
cmp dword [ebp - 0xc], 0
je 0x408e42
lea eax, [ebp - 0x10]
call fcn.00403cbc
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004038f0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e6c
lea eax, [ebp - 0x10]
call fcn.0040389c
ret
Function at 0x409804
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40e884
mov eax, esi
mov edx, 8
test al, 1
je 0x409820
shr eax, 1
xor eax, 0xedb88320
jmp 0x409822
shr eax, 1
dec edx
jne 0x409813
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40980c
pop esi
ret

Function at 0x409838
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40e880], 0
jne 0x40985b
call fcn.00409804
push 1
push 0x40e880
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x409887
mov edx, ebx
and edx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40e884]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x409861
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b1b8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040b16c
test al, al
jne 0x40b1d9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40b225
xor eax, eax
push ebp
push 0x40b215
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403c6c
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b21c
lea eax, [ebp - 0xc]
call fcn.0040b1a8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b564
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40b56c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40b659
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00408c2c
mov edx, dword [ebp - 8]
mov ecx, 0x40b670
xor eax, eax
call fcn.0040b454
push 0
mov eax, dword [ebp - 4]
call fcn.00403c6c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40b627
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40b586
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040af64
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00405984
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00409100
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040af34
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x404ea4]
call fcn.00406eb4
call fcn.004032fc
jmp 0x40b586
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004038f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b660
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004038c0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004038c0
ret
Function at 0x40b680
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x40d4ec]
cmp dword [eax], 2
jne 0x40b6e8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40b6a3
xor eax, eax
jmp 0x40b6f7
lea eax, [esp + 8]
push eax
push 0x40b6fc
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40b6e8
xor eax, eax
jmp 0x40b6f7
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret

Function at 0x40b710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40b76a
inc esi
xor edi, edi
cmp edi, 1
jne 0x40b736
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40b744
cmp edi, 1
jle 0x40b744
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040b1b8
test eax, eax
jne 0x40b76a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40b76a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40b76a
inc edi
dec esi
jne 0x40b726
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40bbd8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bcad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40bcc4
push ebx
push 0x40bcd0
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403bd8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004027e4
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403c6c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40bc58
mov al, 0x62
call fcn.0040b7ac
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.0040bbac
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40bc61
call fcn.0040bbac
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcb4
lea eax, [ebp - 4]
call fcn.0040389c
ret
Function at 0x40bd70
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40be24
jmp 0x40be19
cmp dword [esi + 0x10], 0x1000
jne 0x40be05
test byte [esi + 0x15], 1
jne 0x40be05
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40bdc4
cmp eax, 2
je 0x40bdc4
cmp eax, 0x10
je 0x40bdc4
cmp eax, 0x20
jne 0x40bdd9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40bdd9
mov bl, 1
xor ebp, ebp
jmp 0x40bdea
mov eax, dword [esi]
add eax, ebp
call fcn.0040bd68
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40bddd
test bl, bl
je 0x40be05
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40be24
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40bd9c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x40103c
Capabilities:
Terminate process

Disassembly:
mov dword [0x402475], eax
mov edx, eax
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edi, edi
call dword [sym.imp.kernel32.dll_GetVersion]
xor esi, esi
push dword [0x403587]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401075
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret

Function at 0x4033a3
Capabilities:
Get graphical window text

Disassembly:
add esi, dword [0x56db2108]
mov ecx, dword [eax + ecx*2]
jnp 0x4033d1
call 0xf35c641c
mov esi, dword [eax]
sbb al, 0xf3
inc ebp
clc
mov esi, esp
cwde
inc ebp
clc
jmp 0x40338d
jnp 0x4033c0
jns 0x403381
jnp 0x403405
cld
mov eax, ecx
mov ecx, dword [ebx + 0x1c]
or dword [ebx + 0x84b8b0b], 0x24491d79
xor byte [eax], al
pop eax
add al, 0x23
inc eax
invalid
push 0xfffffffffffffff0
push 0xfffffffffffffff0
push 0x303303
out dx, eax
adc eax, 0x30358c
inc eax
push 0x30327f
xor byte [eax], al
inc eax
inc dword [0xf0403100]
mov dword [0x303594], eax
dec eax
push 0x3032d8
inc eax
inc dword [0xf0403100]
mov dword [0x303598], eax
mov bl, 0xf
je 0x4033e4
pcmpeqb mm3, mm4
invalid

Function at 0x403462
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x4025b0
mov ecx, dword [0x403222]
shr ecx, 1
dec ecx
mov bl, byte [0x403226]
rdtsc
push eax
mov bh, byte [esi]
inc esi
mov byte [edi], bh
inc edi
mov al, byte [esi]
stosb byte es:[edi], al
add byte [edi - 1], bl
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
loop 0x403482
rdtsc
pop edx
sub eax, edx
sub esp, 0x18
push 0
push dword [0x40245d]
call dword [sym.imp.Msacm32.dll_acmStreamOpen]
pop edx
sub edx, eax
push edx
push 0
push 0
push 0x4032fa
call dword [fcn.0040359c]
push 0x4032b5
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [fcn.00403590], eax
push 0
push 2
push 0x4032f8
push 0x4032c4
call dword [fcn.00403590]
pop edx
sub edx, eax
ret
Function at 0x408d00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x431420], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x43141c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x431420], eax
cmp ecx, 0x26f
jl 0x408d10
mov dword [0x416910], 0x270
ret

Function at 0x408d50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x430010]
cmp eax, dword [0x416430]
je 0x408d68
mov dword [0x416910], 0x271
cmp dword [0x416910], 0x270
jl 0x408e87
cmp dword [0x416910], 0x271
jne 0x408d9f
mov eax, dword [0x430010]
call fcn.00408d00
mov eax, dword [0x430010]
not eax
mov dword [0x430010], eax
mov dword [0x416430], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x431424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x431420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x431a54]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x416920]
xor edx, eax
mov dword [ebx*4 + 0x431420], edx
cmp ebx, 0xe2
jl 0x408da8
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x431424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x431420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x431094]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x416920]
xor edx, eax
mov dword [ebx*4 + 0x431420], edx
cmp ebx, 0x26e
jl 0x408dfc
mov eax, dword [0x431ddc]
and eax, 0x80000000
mov edx, dword [0x431420]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x431a50]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x416920]
xor eax, edx
mov dword [0x431ddc], eax
mov dword [0x416910], 0
mov eax, dword [0x416910]
mov eax, dword [eax*4 + 0x431420]
add dword [0x416910], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x40a910
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x416190]
cmp ax, 0xcb
je 0x40aa0c
cmp ax, 0xcc
je 0x40aa0c
mov edx, dword [0x432030]
test edx, edx
je 0x40a942
mov eax, dword [0x431ed0]
call edx
mov ebx, eax
jmp 0x40a947
mov ebx, 0x431ed4
cmp word [0x431ec0], 0
jle 0x40a96a
mov eax, 0x431ea0
call fcn.0040ab80
mov eax, ebx
call fcn.0040a4f0
mov eax, ebx
call fcn.0040a560
mov edi, dword [ebx]
jmp 0x40a98a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40a985
mov edx, edi
mov eax, ebx
call fcn.004099c0
jmp 0x40a988
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40a970
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x431ec0], 0
jle 0x40aa0c
mov edx, 0x431de0
mov eax, ebx
call fcn.00409af0
mov edi, eax
test edi, edi
je 0x40a9df
mov eax, dword [0x431e74]
mov dword [edi + 0xc], eax
cmp dword [0x431e74], 0
je 0x40a9d4
mov eax, dword [0x431e74]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x431e74], eax
sub word [0x431ec0], 1
cmp word [0x431ec0], 0
sete bl
mov eax, 0x431ea0
call fcn.0040ab90
test bl, bl
je 0x40aa0c
mov eax, 0x431ea0
call fcn.0040ab70
pop edi
pop esi
pop ebx
ret
Function at 0x40df30
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x7c]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x40
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov edx, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
lea eax, [edx + eax]
movzx edx, word [eax + 6]
add eax, 0xf8
mov dword [ebp - 0x74], eax
lea eax, [edx - 1]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jb 0x40e0b5
sub dword [ebp - 0x6c], 1
lea esi, [esi]
add dword [ebp - 0x6c], 1
imul eax, dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x74]
lea esi, [eax + edx]
lea edi, [ebp - 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
or edx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
test dword [ebp - 0x50], 0xffffffff
je 0x40e0a9
mov ebx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0x2000000
je 0x40e00c
push 0x4000
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 8]
jmp 0x40e0a9
mov eax, ebx
and eax, 0x20000000
je 0x40e01e
mov dword [ebp - 0x68], 1
jmp 0x40e025
mov dword [ebp - 0x68], 0
mov eax, ebx
and eax, 0x40000000
je 0x40e037
mov dword [ebp - 0x64], 1
jmp 0x40e03e
mov dword [ebp - 0x64], 0
mov eax, ebx
and eax, 0x80000000
je 0x40e050
mov dword [ebp - 0x60], 1
jmp 0x40e057
mov dword [ebp - 0x60], 0
mov eax, ebx
and eax, 0x4000000
je 0x40e069
mov dword [ebp - 0x5c], 1
jmp 0x40e070
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x68]
shl eax, 4
lea eax, [ebp + eax - 0x24]
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx*8]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 1
jne 0x40e096
or dword [ebp - 0x54], 0x200
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 4]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
ja 0x40dfb4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
mov edx, dword [edx + 0x14]
mov eax, dword [eax]
lea eax, [edx + eax]
mov edx, eax
mov edi, ebx
nop
lea eax, [edx + edi]
mov ebx, dword [eax]
mov esi, ecx
xor esi, ebx
mov dword [eax], esi
lea eax, [edi + 4]
mov edi, eax
cmp edi, dword [ebp - 4]
jb 0x414b50
pop edi
pop esi
pop ebx
leave
ret 8