joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043e3
Capabilities:
Encode data using xor
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push edi
push edi
push edi
push eax
push edi
push edi
push 0x406ec4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 4]
lea eax, [ebp - 0x74]
push 0x406ec0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x4bc]
push eax
call fcn.0040434a
add esp, 0x14
call fcn.004042f6
xor esi, esi
call fcn.004042d8
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0x20
mov byte [ebp + esi - 0x31], dl
jl 0x404431
cmp dword [ebp - 8], edi
je 0x404466
xor ecx, ecx
mov eax, ecx
cdq
idiv dword [ebp - 8]
mov al, byte [ebp + edx - 0x4bc]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0x20
jl 0x40444f
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ecx, ecx
push 0x24
mov eax, ecx
xor edx, edx
pop esi
div esi
mov al, byte [ebp + edx - 0x54]
xor byte [ebp + ecx - 0x30], al
inc ecx
cmp ecx, 0x20
jl 0x404472
xor eax, eax
mov ecx, eax
and ecx, 3
mov cl, byte [ebp + ecx - 4]
xor byte [ebp + eax - 0x30], cl
inc eax
cmp eax, 0x20
jl 0x40448b
xor esi, esi
lea edi, [ebp - 0xbc]
movzx eax, byte [ebp + esi - 0x30]
push eax
push str._02x
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc esi
inc edi
inc edi
cmp esi, 0x20
jl 0x4044a6
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xbc]
push 0x40
push eax
push esi
call sub.MSVCRT.dll_memcpy
and byte [esi + 0x40], 0
add esp, 0xc
and byte [esi + 0x32], 0
pop edi
pop esi
leave
ret

Function at 0x4044e4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
push 6
rep stosd dword es:[edi], eax
pop esi
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 4
mov eax, dword [ebp - 0x8c]
jne 0x40452b
test eax, eax
jne 0x404563
xor esi, esi
cmp dword [ebp - 0x90], 5
jne 0x40454b
test eax, eax
jne 0x40453b
push 1
pop esi
cmp eax, 1
jne 0x404543
push 2
pop esi
cmp eax, 2
jne 0x404563
push 3
pop esi
cmp dword [ebp - 0x90], 6
jne 0x404563
test eax, eax
jne 0x40455b
push 5
pop esi
cmp eax, 1
jne 0x404563
push 6
pop esi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40dd50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, 0xcccccccc
mov dword [esp], eax
call fcn.0040de10
push dword [ebp + 8]
call fcn.0058d4e0
pop ecx
mov dword [ebp - 4], eax
call fcn.0040de30
cmp dword [ebp - 4], 0
jne 0x40ddbf
cmp dword [ebp + 0xc], 1
jne 0x40dd87
mov eax, 0
leave
ret
call fcn.0040c200
push str.9This_application_has_run_out_of_memory_and_must_quit_now.0
call fcn.0040d180
pop ecx
push 0
push 0x59decd
push 0x47e
push str.utility.cpp
push 4
push 0x83
call fcn.004a4f70
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x40de40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
cmp dword [ebp + 8], 0
jg 0x40de5f
mov eax, 0
leave
ret
mov eax, dword [ebp + 8]
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x40
jb 0x40de88
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040dd50
pop ecx
pop ecx
mov eax, eax
leave
ret
call fcn.0040de10
mov eax, dword [ebp + 8]
add dword [0x59ded0], eax
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x59d9f4], 0
je 0x40dec4
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x59d9f4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x59d9f4], edx
jmp 0x40df49
mov edx, dword [ebp - 4]
lea edx, [edx*4]
mov dword [ebp + 8], edx
mov eax, dword [0x59daf8]
cmp dword [ebp + 8], eax
jle 0x40df2f
inc byte [0x5dbbb0]
push 0x2000
call fcn.0058d4e0
pop ecx
mov dword [0x59daf4], eax
dec byte [0x5dbbb0]
cmp dword [0x59daf4], 0
jne 0x40df25
cmp dword [ebp + 0xc], 1
jne 0x40df0d
mov eax, 0
leave
ret
call fcn.0040c200
push str.9This_application_has_run_out_of_memory_and_must_quit_now.0
call fcn.0040d180
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [0x59daf8], 0x2000
mov eax, dword [0x59daf4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add dword [0x59daf4], eax
mov eax, dword [ebp + 8]
sub dword [0x59daf8], eax
call fcn.0040de30
mov eax, dword [ebp - 8]
leave
ret

Function at 0x410550
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
jne 0x41056f
leave
ret
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 0
push 0
mov eax, dword [ebp - 4]
push dword [eax + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x411380
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x87], 0
jne 0x4113ab
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
jne 0x4113ab
leave
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0x87], 0
je 0x4113d1
push 9
mov eax, dword [ebp - 4]
push dword [eax + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov byte [eax + 0x87], 0
jmp 0x4113f5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4113f5
push 9
mov eax, dword [ebp - 4]
push dword [eax + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 0
leave
ret

Function at 0x411660
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea edx, [ebp - 0xc]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov byte [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
push 0x4115f0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp - 4], 0
je 0x4116b6
mov al, 0
leave
ret
cmp dword [0x5c102c], 0
je 0x4116d4
lea eax, [ebp - 0xc]
push eax
push 0x4115f0
push dword [0x5c102c]
call dword [sym.imp.USER32.dll_EnumChildWindows]
cmp byte [ebp - 4], 0
je 0x4116de
mov al, 0
leave
ret
mov al, 1
leave
ret
Function at 0x417c30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [ebp - 1], 0
push 3
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sar eax, 0xf
cmp eax, 0
setne dl
mov byte [ebp - 1], dl
mov al, byte [ebp - 1]
leave
ret
Function at 0x45ae30
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
push dword [ebp + 8]
call fcn.0045ade0
pop ecx
cmp al, 0
jne 0x45ae62
mov eax, 0
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 1
jne 0x45af66
call fcn.0056d3b0
cmp al, 0
je 0x45aef5
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45afc2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.0058d600
pop ecx
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 8]
call fcn.0058a000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.0058a3a0
lea ecx, [ebp - 0xc]
call fcn.0058a350
mov ebx, eax
cmp dword [ebp - 0xc], 0
je 0x45aedf
mov ecx, dword [ebp - 0xc]
call fcn.00589d70
cmp dword [ebp - 8], 0
je 0x45aeed
mov ecx, dword [ebp - 8]
call fcn.00589d70
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45afc2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 8]
call fcn.00589f70
call fcn.00546dd0
cmp dword [ebp - 8], 0
je 0x45af3d
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 8]
call fcn.0058a350
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x45af5e
mov ecx, dword [ebp - 8]
call fcn.00589d70
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45afc2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 8]
call fcn.00589f70
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 8]
call fcn.0058a350
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x45afba
mov ecx, dword [ebp - 8]
call fcn.00589d70
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
mov ebx, 0
cmp dword [ebp - 8], 0
je 0x45afd5
mov ecx, dword [ebp - 8]
call fcn.00589d70
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
Function at 0x45b440
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x20
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 8
rep stosd dword es:[edi], eax
pop edi
pop ecx
push dword [ebp + 8]
call fcn.0045ade0
pop ecx
cmp al, 0
jne 0x45b473
mov eax, 0
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 8
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45b53f
call fcn.0043c850
push eax
call sym.X86RunHoudini.exe_CreateInstance
pop ecx
mov dword [ebp - 0x1c], eax
push 0x40
call fcn.00494950
pop ecx
cmp eax, 0
je 0x45b4b0
push dword [ebp - 0x18]
mov ecx, eax
call fcn.00404a30
mov eax, eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0xc]
mov dword [edx], 0
mov dword [edx + 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 0x20]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x2c]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.0055bf30
add esp, 0x14
push 0xac
call fcn.00494950
pop ecx
cmp eax, 0
je 0x45b510
push 1
push 0x20
push dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, eax
call fcn.004055a0
mov eax, eax
mov dword [ebp - 0x24], eax
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xc8]
mov ecx, dword [ebp - 0x20]
call fcn.004040c0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, 0
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x45b550
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x18
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
call fcn.0045ade0
pop ecx
cmp al, 0
je 0x45b62e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x20], 0
je 0x45b5ad
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x20]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x20]
push eax
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x45b62e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], 0
je 0x45b62e
call sym.X86RunHoudini.exe_getTemporaryFolderItem
mov dword [ebp - 0x14], eax
push 0x12d
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sym.X86RunHoudini.exe_FolderItemSaveAsPicture
add esp, 0xc
push 0
push dword [ebp - 0x14]
call sym.X86RunHoudini.exe_fileAbsolutePathGetter
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45b5f1
mov edx, dword [ebp - 8]
inc dword [edx]
lea ecx, [ebp - 8]
call fcn.0058a690
push eax
call dword [sym.imp.GDI32.dll_GetEnhMetaFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 8], 0
je 0x45b611
mov ecx, dword [ebp - 8]
call fcn.00589d70
push dword [ebp - 0x18]
call sym.X86RunHoudini.exe_RuntimeUnlockString
pop ecx
push dword [ebp - 0x1c]
push 0xe
call dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 0x14]
call sym.X86RunHoudini.exe_RuntimeUnlockObject
pop ecx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x45c010
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
push dword [eax + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x45c0e8
call fcn.0056d3b0
cmp al, 0
je 0x45c09a
mov edx, dword [ebp - 8]
add edx, 1
lea edx, [edx + edx]
push edx
call fcn.0058bbb0
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 1
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
push dword [eax + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.0058a000
push dword [ebp - 0xc]
call fcn.0058bbc0
pop ecx
jmp 0x45c0e8
mov eax, dword [ebp - 8]
add eax, 1
push eax
call fcn.0058bbb0
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 1
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push dword [eax + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp - 8]
push dword [ebp - 0x14]
lea ecx, [ebp - 4]
call fcn.00589f70
call fcn.00546dd0
cmp dword [ebp - 4], 0
je 0x45c0df
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
push dword [ebp - 0x14]
call fcn.0058bbc0
pop ecx
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0058a3a0
cmp dword [ebp - 4], 0
je 0x45c101
mov ecx, dword [ebp - 4]
call fcn.00589d70
mov eax, dword [ebp + 8]
leave
ret 4

Function at 0x45ebb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 8
rep stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x20], ecx
cmp dword [0x5bbb50], 0
je 0x45ec39
push 0x5bbf04
push dword [0x5bbb50]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45ec1e
push 0x14
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040e050
add esp, 0xc
mov dword [ebp - 0x14], 0x14
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x45ec1c
mov eax, dword [ebp - 0x10]
leave
ret
jmp 0x45ec39
call fcn.0056d3b0
cmp al, 0
je 0x45ec39
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jb 0x45ec39
mov eax, 3
leave
ret
mov eax, 0
leave
ret
Function at 0x473b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x29], 0
jne 0x473b8b
mov eax, 0
leave
ret 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x34], 0
je 0x473c10
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x48]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, 0
je 0x473bd5
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x34], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x48]
push dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x473beb
mov eax, 0
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00472d10
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x30], eax
push dword [ebp - 0xc]
call sym.X86RunHoudini.exe_FireSerialError
pop ecx
mov eax, 0
leave
ret 8
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
push dword [eax + 0x48]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0
jne 0x473c4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x473c6a
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x34], 1
jmp 0x473c6a
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x34], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x48]
push dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 8]
leave
ret 8
Function at 0x473ca0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x1c
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 1
jmp 0x473da2
mov dword [ebp - 0xc], 0
push str..COM
call fcn.0040d340
pop ecx
push eax
push str..COM
lea ecx, [ebp - 0xc]
call fcn.00589f70
cmp dword [ebp - 0xc], 0
je 0x473d07
mov ebx, dword [ebp - 0xc]
mov edx, dword [0x63df30]
mov dword [ebx + 0x10], edx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.0040d660
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0058b180
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
call fcn.0058a7b0
cmp dword [ebp - 0x14], 0
je 0x473d43
mov ecx, dword [ebp - 0x14]
call fcn.00589d70
cmp dword [ebp - 0x10], 0
je 0x473d51
mov ecx, dword [ebp - 0x10]
call fcn.00589d70
cmp dword [ebp - 0xc], 0
je 0x473d5f
mov ecx, dword [ebp - 0xc]
call fcn.00589d70
push 0
push 0
push 3
push 0
push 0
push 0
lea ecx, [ebp - 8]
call fcn.0058a690
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x473d91
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x18]
jmp 0x473d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x473d9f
inc dword [ebp - 0x18]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x100
jle 0x473cd5
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 8], 0
je 0x473dc0
mov ecx, dword [ebp - 8]
call fcn.00589d70
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
Function at 0x486770
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
push 7
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.004c9c80
add esp, 0x14
push 4
lea eax, [ebp - 0xc]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x4867c4
mov edx, dword [ebp - 0x10]
inc dword [edx]
mov dword [ebp - 0x14], 0
push 0x5c285e
call fcn.0040d340
pop ecx
push eax
push 0x5c285e
lea ecx, [ebp - 0x14]
call fcn.00589f70
cmp dword [ebp - 0x14], 0
je 0x4867f6
mov ebx, dword [ebp - 0x14]
mov edx, dword [0x63df30]
mov dword [ebx + 0x10], edx
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.0040d340
pop ecx
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00589f70
cmp dword [ebp - 0x18], 0
je 0x486829
mov ebx, dword [ebp - 0x18]
mov edx, dword [0x63df30]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call sym.X86RunHoudini.exe_replace
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
call fcn.0058a7b0
cmp dword [ebp - 0x1c], 0
je 0x48685b
mov ecx, dword [ebp - 0x1c]
call fcn.00589d70
cmp dword [ebp - 0x18], 0
je 0x486869
mov ecx, dword [ebp - 0x18]
call fcn.00589d70
cmp dword [ebp - 0x14], 0
je 0x486877
mov ecx, dword [ebp - 0x14]
call fcn.00589d70
cmp dword [ebp - 0x10], 0
je 0x486885
mov ecx, dword [ebp - 0x10]
call fcn.00589d70
lea ecx, [ebp - 8]
call fcn.0058a350
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x48689d
mov ecx, dword [ebp - 8]
call fcn.00589d70
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret

Function at 0x4941e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0056d3b0
cmp al, 0
je 0x494237
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0058a430
push 1
push 0
push 0
lea ecx, [ebp - 4]
call fcn.0058a750
push eax
push 0x5db100
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 4], 0
je 0x494291
mov ecx, dword [ebp - 4]
call fcn.00589d70
jmp 0x494291
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x49424a
mov edx, dword [ebp - 8]
inc dword [edx]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00546e70
pop ecx
pop ecx
push 1
push 0
push 0
lea ecx, [ebp - 0xc]
call fcn.0058a690
push eax
push 0x5db0fb
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp - 0xc], 0
je 0x494283
mov ecx, dword [ebp - 0xc]
call fcn.00589d70
cmp dword [ebp - 8], 0
je 0x494291
mov ecx, dword [ebp - 8]
call fcn.00589d70
leave
ret
Function at 0x4a4f70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x100
rep stosd dword es:[edi], eax
pop edi
pop ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
movsx eax, word [ebp + 0xc]
push eax
call fcn.004a4f10
pop ecx
push eax
movsx eax, word [ebp + 0xc]
push eax
push str.Runtime_Error__d:__s_nPress_OK_to_Continue_nPress_Cancel_to_Quit._n_nPlease_report_what_caused_this_error_nalong_with_the_information_below._n_n_s:__d_nFailure_Condition:__s_n_s
lea eax, [ebp - 0x400]
push eax
call fcn.005909a0
add esp, 0x20
push 0x111
push str.Runtime_Error
lea eax, [ebp - 0x400]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x4a4ff1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret