joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bd10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d93d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4ce4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x41be2f
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x41be2f
cmp dword [eax + 0x14], 8
jb 0x41bd59
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
call fcn.00417810
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41bd71
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x10]
call fcn.00417810
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x2001f
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bde4
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41bdce
cmp dword [ebp - 0x1c], 4
mov ecx, 0xd
cmovne eax, ecx
mov esi, dword [ebp + 0x14]
test eax, eax
cmove esi, dword [ebp - 0x20]
test edi, edi
je 0x41bde7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41bde7
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41be04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x41be1c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d9f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41da58
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x130], 0x103
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
push 0x124
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], pe_nt_image_headers32
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x41da9a
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x12c]
xor bl, bl
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41dacd
mov edi, edi
cmp dword [ebp - 0x124], edi
je 0x41dacb
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41dab0
jmp 0x41dacd
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0049928d
mov esp, ebp
pop ebp
ret
Function at 0x42b160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b817
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x42b227
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42b235
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42b235
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0041d640
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
Function at 0x42b7c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f08d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
lea esi, [edi + 4]
push esi
call fcn.00401f70
cmp dword [ebp - 0x18], 0
je 0x42b8dd
cmp dword [edi + 0x34], 0xffffffff
je 0x42b8dd
lea ecx, [ebp - 0x28]
call fcn.00401af0
lea esi, [ebx + 8]
push esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 4], 0x15555555
mov eax, dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
je 0x42b938
mov dword [ebp - 0x34], ebx
push 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
call fcn.0049924f
mov edx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [eax + 8], edi
inc dword [ebx + 4]
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
push 0x42bfd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x42b8d4
cmp dword [ebx + 0x24], 0x15555555
lea edi, [ebx + 0x20]
mov ebx, dword [edi]
je 0x42b942
mov dword [ebp - 0x40], edi
push 0xc
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], 0
call fcn.0049924f
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [eax + 8], ecx
inc dword [edi + 4]
mov ecx, dword [ebx + 4]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [ebx + 4], eax
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42b91a
lea ecx, [ebp - 0x28]
call fcn.00401af0
test edi, edi
je 0x42b91a
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x42b8f9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
lea ecx, [esi + 0x18]
mov dword [edi + 0x4c], 0
call fcn.00401af0
mov ecx, esi
call fcn.00401af0
push 0x50
push edi
call fcn.0049927f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret 4
push str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
push str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x42e930
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi]
test ecx, ecx
jne 0x42e95a
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
jne 0x42ea8b
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push ecx
call esi
push dword [ebp - 0x10]
call fcn.004992be
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 1
push dword [edi]
call esi
test eax, eax
je 0x42ea2c
mov esi, dword [ebx]
test esi, esi
je 0x42ea2c
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ea2c
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42ea2c
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.004992c7
add esp, 4
test esi, esi
je 0x42ea35
pop esi
pop ebx
mov dword [edi + 4], 1
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004992c7
add esp, 4
push 0x220
mov ecx, edi
call fcn.0042eaa0
test eax, eax
je 0x42ea7d
mov ecx, edi
call fcn.0042e810
cmp eax, 3
je 0x42ea64
mov ecx, edi
call fcn.0042e860
cmp eax, 0x2000
mov eax, 2
jne 0x42ea69
mov eax, 3
pop esi
pop ebx
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
pop esi
mov dword [edi + 4], 4
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0049928d
mov esp, ebp
pop ebp
ret
Function at 0x42eaa0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x42ec4d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push 0x20
push 2
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42ec4d
push esi
mov ecx, edi
xor esi, esi
call fcn.0042e810
cmp eax, 3
jne 0x42ebd4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov ecx, edi
mov dword [ebp - 0x18], esi
call fcn.0042e580
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x42ec25
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42eb60
test esi, esi
je 0x42eb60
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42eb60
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x10]
jne 0x42ec25
jmp 0x42eb62
xor esi, esi
test edi, edi
je 0x42ec30
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x42ec25
mov esi, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42ebc4
test esi, esi
je 0x42ebc4
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ebc4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
push ebx
sbb esi, esi
and esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x42ec25
xor esi, esi
test ebx, ebx
je 0x42ebd1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x42ec25
mov eax, dword [edi]
test eax, eax
je 0x42ec30
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x42ec30
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42ec23
test esi, esi
je 0x42ec23
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ec23
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x10]
jmp 0x42ec29
xor esi, esi
test edi, edi
je 0x42ec30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0049928d
mov esp, ebp
pop ebp
ret 4
Function at 0x42fbc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f611
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00430770
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jne 0x42fc03
xor esi, esi
jmp 0x42fc6c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6dc4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d38a4]
cmp eax, dword [ecx + 4]
jg 0x42fcc4
push 0x4d388c
lea ecx, [ebp - 0x40]
call fcn.00401f70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42fc5f
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00413bd0
add esp, 0xc
mov esi, eax
jmp 0x42fc64
mov esi, 1
lea ecx, [ebp - 0x40]
call fcn.00401af0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42fca8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fc9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42fc9e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret
push 0x4d38a4
call fcn.00499650
add esp, 4
cmp dword [0x4d38a4], 0xffffffff
jne 0x42fc23
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 1
push eax
call fcn.00490360
push str.office6_
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.00401590
push str.wpscloudsvr.exe
push eax
push 0x4d388c
mov byte [ebp - 4], 3
call fcn.00401590
add esp, 0x20
lea ecx, [ebp - 0x58]
call fcn.00401af0
lea ecx, [ebp - 0x70]
call fcn.00401af0
push 0x4a7a50
call fcn.00499508
push 0x4d38a4
mov byte [ebp - 4], 0
call fcn.00499606
add esp, 8
jmp 0x42fc23
Function at 0x430770
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f746
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6dc4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x264], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d38a8]
cmp eax, dword [ecx + 4]
jg 0x4309e3
cmp dword [0x4ce098], 0
jne 0x4309b9
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4309b9
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
jmp 0x430830
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430830
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00404580
push 0x12
xor eax, eax
mov dword [ebp - 0x230], 0
push str.Kingsoftoffice6_
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00404580
push str.wpscloudsvr.exe
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00401590
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 2
jb 0x4308c0
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00401cd0
cmp eax, 0x4ce088
je 0x4308eb
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4308df
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x4ce088
call fcn.00404580
lea ecx, [ebp - 0x260]
call fcn.00401af0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x430936
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43092c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43098c
push edx
push ecx
call fcn.0049927f
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x43099c
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430992
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x430992
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049927f
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x4ce088
mov ecx, esi
call fcn.00401f70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret 4
push 0x4d38a8
call fcn.00499650
add esp, 4
cmp dword [0x4d38a8], 0xffffffff
jne 0x4307c5
push 0x4a7ab0
call fcn.00499508
push 0x4d38a8
call fcn.00499606
add esp, 8
jmp 0x4307c5
Function at 0x431000
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43106f
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0x431072
cmp esi, edi
ja 0x431072
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
add eax, 0xa
add esi, eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x431043
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0049928d
mov esp, ebp
pop ebp
ret 8
Function at 0x431970
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d38ac]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x4319a7
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x4d38ac]
inc eax
mov dword [0x4d38ac], eax
call fcn.004110c0
test eax, eax
je 0x431afb
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6dc4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d3934]
cmp eax, dword [ecx + 4]
jg 0x431b1e
push esi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
push 0xa
push 0x10
push 0x4d38b0
push dword [0x4d3930]
call esi
push 0xa
push 0x20
mov eax, edi
cdq
push 0x4d38f0
push edx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow_s]
add esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x4d38d0
push eax
call esi
mov ecx, 8
mov dword [0x4d3940], 1
mov esi, str.kcrashdumper.exe
mov dword [0x4d393c], 0
lea edi, [ebp - 0x28]
mov dword [0x4d3938], 0xc
rep movsd dword es:[edi], dword [esi]
add esp, 0x10
lea eax, [ebp - 0x28]
movsw word es:[edi], word [esi]
push eax
call fcn.004110c0
push eax
push str._s_s
push 0x4d3948
call fcn.00431650
call fcn.00411460
push eax
push 0x4d38f0
push 0x4d38d0
push 0x4d38b0
push str._pid_s__tid_s__exp_s__callfrom1__module_s
push 0x4d4148
call fcn.00431690
push 0x4d528c
push 0x4d5248
push 0
push 0
push 1
push 0
mov eax, 0xa
mov dword [0x4d5248], 0x44
push 0x4d4148
push 0x4d3948
mov dword [0x4d5274], 1
mov word [0x4d5278], ax
call fcn.00492cd0
add esp, 0x48
mov dword [0x4d529c], eax
test eax, eax
je 0x431afa
push 0xffffffffffffffff
push dword [0x4d528c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4d5290]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x4d528c]
call esi
pop esi
call fcn.00431b60
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0049928d
mov esp, ebp
pop ebp
ret
push 0x4d3934
call fcn.00499650
add esp, 4
cmp dword [0x4d3934], 0xffffffff
jne 0x4319da
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0x4d3934
mov dword [0x4d3930], eax
call fcn.00499606
add esp, 4
jmp 0x4319da
Function at 0x431b60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f8ed
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004110c0
test eax, eax
je 0x431cb4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401960
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x60], ecx
cmp eax, 8
jb 0x431cac
add eax, 0xfffffff9
lea edx, [ecx + eax*2]
mov eax, ecx
mov dword [ebp - 0x5c], edx
sub edx, eax
mov esi, 0
sar edx, 1
je 0x431bf5
cmp word [eax], 0x2f
je 0x431bf3
cmp edx, 1
je 0x431bf5
add eax, 2
dec edx
cmp word [eax], 0x2f
jne 0x431be4
mov esi, eax
mov eax, esi
test eax, eax
je 0x431cac
movzx edx, word [eax]
mov edi, 0x2f
mov esi, 8
mov ecx, str._nativex
cmp edx, edi
jb 0x431c34
mov ebx, eax
sub ebx, ecx
cmp dx, di
ja 0x431c34
cmp esi, 1
je 0x431c3c
movzx edx, word [ebx + ecx + 2]
add ecx, 2
dec esi
movzx edi, word [ecx]
cmp dx, di
jae 0x431c1c
mov edx, dword [ebp - 0x5c]
add eax, 2
jmp 0x431bd3
sub eax, dword [ebp - 0x60]
sar eax, 1
cmp eax, 0xffffffff
je 0x431cac
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.0048f8d0
push str._addonsjsapi_nativex.dll
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00401590
add esp, 0x14
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401af0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x431ca4
push str.ProcNativeXCrash
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x431c9d
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x40]
call fcn.00401af0
lea ecx, [ebp - 0x28]
call fcn.00401af0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049928d
mov esp, ebp
pop ebp
ret