joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5713c1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push 0x5a14b0
call fcn.00401a30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x14], 1
test eax, eax
je 0x408f80
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408eb2
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401f40
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x408f60
mov ebx, 0x80
call fcn.004036b0
mov esi, eax
test esi, esi
je 0x408f60
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x5a14b0
push str.ModelNameI
push str.User_Mode_Printer_Driver_Information
call ebx
test eax, eax
ja 0x408f43
mov edx, dword [ebp + 0x10]
push edi
push 0x80
push esi
push 0x5a14b0
push str.DeviceName
push edx
call ebx
test eax, eax
ja 0x408f43
push edi
push 0x80
push esi
push 0x5a14b0
push str.ModelName
push str.CommonDrvInfo
call ebx
test eax, eax
jbe 0x408f4c
mov ecx, dword [ebp + 8]
push esi
call fcn.004019e0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x408f60
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408f80
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a100
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f610
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x5d2614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
xor edi, edi
lea eax, [ebp - 0x12c]
push edi
mov ebx, 1
push eax
mov dword [ebp - 4], ebx
call fcn.00544f30
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x38
lea edx, [ebp - 0x164]
push edi
push edx
call fcn.00544f30
add esp, 0xc
cmp dword [ebp - 0x128], 6
mov dword [ebp - 0x168], 0x3c
mov dword [ebp - 0x160], edi
jb 0x40a19d
mov dword [ebp - 0x15c], str.runas
cmp dword [ebp + 0x14], edi
jne 0x40a1a7
mov dword [ebp - 0x15c], str.open
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x164], 0x440
mov ecx, dword [edx - 8]
mov eax, ebx
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40a1d3
push 0
lea ecx, [ebp + 8]
call fcn.00401de0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x158], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx - 8]
mov eax, ebx
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40a1f5
push 0
lea ecx, [ebp + 0xc]
call fcn.00401de0
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x154], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a26c
cmp dword [ebp - 0x148], 0x20
jle 0x40a26c
cmp dword [ebp + 0x10], edi
jne 0x40a21e
mov edi, ebx
jmp 0x40a26e
cmp dword [ebp - 0x130], edi
je 0x40a26e
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esi], 0x103
mov ecx, dword [ebp - 0x130]
push 0x1f4
push ecx
call edi
mov edx, dword [ebp - 0x130]
push esi
push edx
call ebx
cmp dword [esi], 0x103
je 0x40a238
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x40a26e
xor edi, edi
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a291
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a2b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005418f3
mov esp, ebp
pop ebp
ret
Function at 0x40ec10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 4]
push ebx
push edi
xor edi, edi
cmp ecx, edi
je 0x40ec26
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi + 8]
mov dword [esi + 4], edi
cmp eax, edi
je 0x40ec44
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], edi
mov ecx, dword [ebp + 8]
push 0x5a1afc
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x40ed2d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40ed2d
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40ed2d
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x40ed2d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40ed1c
push edi
push ebx
push eax
call fcn.005477b0
mov eax, dword [esi + 8]
add esp, 0xc
lea edx, [ebp + 8]
push edx
xor edi, edi
push edi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40ed12
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404dd0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40ed12
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
jne 0x40ed00
lea eax, [edi + 1]
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x40ed0f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 4], edi
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], 0
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x4100a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx + 0x78]
sub esp, 0x3c
cmp dword [eax - 0xc], 0
push esi
lea esi, [ebx + 0x78]
jne 0x4100c1
push 0x14
push str.http:__www.epson.com
mov ecx, esi
call fcn.00401e90
push 0x3c
lea ecx, [ebp - 0x3c]
push 0
push ecx
call fcn.00544f30
mov eax, dword [esi]
sub eax, 0x10
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 1
mov edx, 1
sub edx, dword [eax + 0xc]
add esp, 0xc
or edx, dword [eax + 8]
jge 0x410108
push 0
mov ecx, esi
call fcn.00401de0
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebx + 0x7c], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5710e6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5d2614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
xor esi, esi
push 0x5a14b0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
call fcn.00401a30
mov byte [ebp - 4], 2
call fcn.00448a4d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x411de0
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x228], edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
mov esi, dword [ebp + 8]
push ecx
call fcn.00411f90
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x411eb1
test eax, eax
jne 0x411eb1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x224]
push edx
push eax
push eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call esi
test eax, eax
jne 0x411ea2
cmp dword [ebp - 0x224], eax
je 0x411ea2
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x220]
lea edx, [ebp - 0x218]
push edx
push eax
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call esi
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00403ff0
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x411ea2
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, ebx
call fcn.00401f40
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411ebf
push 0
push 0x5a14b0
mov ecx, ebx
call fcn.00401e90
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411edf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005418f3
mov esp, ebp
pop ebp
ret 8
Function at 0x412920
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570469
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 8]
push 0x5a14b0
call fcn.00401a30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x14], 1
test eax, eax
je 0x412a9f
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412992
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
cmp dword [ecx - 0xc], 0
jl 0x4129cc
push 0x5a12d4
push ecx
call fcn.00543082
mov ecx, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x4129cc
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4129e4
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x10]
push str._s_s
push edx
call fcn.00402820
add esp, 0x10
jmp 0x4129f0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f40
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x412a7f
mov ebx, 0x80
call fcn.004036b0
mov esi, eax
test esi, esi
je 0x412a7f
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x5a14b0
push str.ModelNameI
push str.User_Mode_Printer_Driver_Information
call ebx
test eax, eax
ja 0x412a62
mov ecx, dword [ebp + 0x14]
push edi
push 0x80
push esi
push 0x5a14b0
push str.DeviceName
push ecx
call ebx
test eax, eax
ja 0x412a62
push edi
push 0x80
push esi
push 0x5a14b0
push str.ModelName
push str.CommonDrvInfo
call ebx
test eax, eax
jbe 0x412a6b
mov ecx, dword [ebp + 8]
push esi
call fcn.004019e0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x412a7f
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x412a9f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ac2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ae5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412c60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov dword [ebp - 4], 0
call fcn.00411f90
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x20006
push eax
push 0
push 0
push 0
push str.SoftwareEPSONDownload_Navigator_
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412cdc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push esi
push edx
push eax
push 1
push 0
push str.Directory
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8
Function at 0x414ad0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570f51
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CLangControl.0
lea edi, [esi + 4]
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414b1b
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414b4a
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
lea ebx, [esi + 0xc]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00454dde
push 0
mov byte [ebp - 4], 2
call fcn.004150d0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push 0xffffffffffffffff
mov dword [esi + 0x20], ecx
push 0
mov ecx, ebx
call fcn.00454e85
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414f70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570f11
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x414fbd
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push esi
lea ecx, [ebp - 0x14]
push ecx
call fcn.00414e80
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00401f40
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41501f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x4150ae
and esi, 0x3ff
push esi
lea edx, [ebp - 0x14]
push edx
call fcn.00414e80
push eax
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.00401f40
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41506b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x4150ae
push 9
lea edx, [ebp - 0x14]
push edx
call fcn.00414e80
push eax
mov ecx, edi
mov dword [ebp - 4], 3
call fcn.00401f40
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4150ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4150d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570ec0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x415212
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41511a
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov eax, ebx
movzx esi, si
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebp + 8]
push ecx
call fcn.00414d90
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00401f40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415194
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x4151ff
and esi, 0x3ff
push esi
lea edx, [ebp - 0x10]
push edx
call fcn.00414d90
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00401f40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4151e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x4151ff
push str.English
mov ecx, edi
call fcn.004019e0
test ebx, ebx
je 0x4151ff
mov dword [ebx], 9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx esi, word [ebx]
jmp 0x415155
Function at 0x4160a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5700cd
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CLaunchApp.0
call fcn.00448a4d
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4160ea
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov dword [ebp - 4], ebx
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416116
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 1
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416143
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 2
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416170
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 3
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41619d
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 4
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4161ca
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x1c], eax
lea edi, [esi + 0x30]
mov dword [edi], vtable.CArray_class_CSoftwareDispInfo__class_CSoftwareDispInfo__.0
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
push ebx
mov byte [ebp - 4], 6
push 0x5a14b0
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401e90
push ebx
push 0x5a14b0
lea ecx, [esi + 0xc]
call fcn.00401e90
push ebx
push 0x5a14b0
lea ecx, [esi + 0x10]
call fcn.00401e90
push ebx
push 0x5a14b0
lea ecx, [esi + 0x14]
call fcn.00401e90
push ebx
push 0x5a14b0
lea ecx, [esi + 0x18]
call fcn.00401e90
push ebx
push 0x5a14b0
lea ecx, [esi + 0x1c]
call fcn.00401e90
push edi
mov dword [esi + 0x20], ebx
call fcn.00417730
mov dword [esi + 0x44], ebx
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416770
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [esi + 4]
mov eax, 0x103
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4167ea
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4167ee
mov eax, dword [esi + 4]
cmp dword [eax + 0x20], 0x20
jbe 0x4167ee
cmp dword [eax + 0x38], 0
je 0x4167e7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0x103
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x38]
push 0x1f4
push ecx
call edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x38]
lea edx, [ebp - 4]
push edx
push ecx
call ebx
cmp dword [ebp - 4], 0x103
je 0x4167b4
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret