joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54e7b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54ea14
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x54e817
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0054e27c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dc28
cmp al, 1
jne 0x54e817
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0054e594
test al, al
je 0x54e9a3
cmp dword [ebp - 8], 0
jge 0x54e835
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0054e27c
mov eax, dword [ebp - 0x210]
call fcn.00404ab0
cmp ebx, eax
jge 0x54e87f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0054e27c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x572b08]
and eax, 0xff
bt dword [edx], eax
jae 0x54e87f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x54e893
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0054e790
cmp ebx, dword [ebp - 8]
je 0x54e995
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x54e8bf
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bd8
and eax, 0x7f
movzx eax, word [eax*2 + 0x5723c4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x54e982
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bd8
and eax, 0x7f
movzx eax, word [eax*2 + 0x5723c4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044b208
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bd8
and eax, 0x7f
movzx eax, word [eax*2 + 0x5723c4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044b208
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54e989
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x54e9f6
cmp dword [ebp - 8], 0
jge 0x54e9ae
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0054e27c
mov eax, dword [ebp - 0x218]
call fcn.00404ab0
cmp eax, dword [ebp - 8]
jg 0x54e9e8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0054e27c
mov eax, dword [ebp - 0x21c]
call fcn.00404ab0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0054e790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ea1b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040480c
ret
Function at 0x55f02c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
xor ecx, ecx
push ebp
push 0x55f140
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x55f12f
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
dec ecx
je 0x55f0d5
dec ecx
jne 0x55f126
cmp eax, 4
jg 0x55f098
mov dword [ebp - 4], 4
jmp 0x55f136
cmp eax, 5
jne 0x55f0ad
test edx, edx
jne 0x55f0ad
mov dword [ebp - 4], 5
jmp 0x55f136
cmp eax, 5
jne 0x55f0be
dec edx
jne 0x55f0be
mov dword [ebp - 4], 6
jmp 0x55f136
cmp eax, 6
jne 0x55f0cc
mov dword [ebp - 4], 7
jmp 0x55f136
mov dword [ebp - 4], 0xffffffff
jmp 0x55f136
cmp eax, 4
jne 0x55f0e5
test edx, edx
jne 0x55f0e5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x55f136
cmp eax, 4
jne 0x55f10a
cmp edx, 0xa
jne 0x55f10a
cmp byte [ebp - 0x83], 0x41
jne 0x55f101
mov dword [ebp - 4], 2
jmp 0x55f136
mov dword [ebp - 4], 1
jmp 0x55f136
cmp eax, 4
jne 0x55f11d
cmp edx, 0x5a
jne 0x55f11d
mov dword [ebp - 4], 3
jmp 0x55f136
mov dword [ebp - 4], 0xffffffff
jmp 0x55f136
mov dword [ebp - 4], 0xffffffff
jmp 0x55f136
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x55f14a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x56111c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
call fcn.00404c98
xor eax, eax
push ebp
push 0x561277
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x56123d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x572af0]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00462bd8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x25], 1
mov byte [ebp - 0x26], 0
push ebp
mov edx, 0x56128c
mov eax, 0x5612a0
call fcn.00560d14
pop ecx
cmp byte [ebp - 0x26], 0
jne 0x5611b6
push ebp
mov edx, 0x5612b0
mov eax, 0x5612c4
call fcn.00560d14
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x561247
mov eax, dword [0x572af0]
mov eax, dword [eax]
xor edx, edx
call fcn.00462bd8
cmp dword [ebp - 0x2c], 0
jne 0x5611df
cmp dword [ebp - 0x30], 0
jbe 0x56123c
jmp 0x5611e1
jle 0x56123c
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x40]
call fcn.00409448
push dword [ebp - 0x40]
push 0x5612d4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404b70
mov eax, dword [ebp - 0x3c]
mov cx, word [0x5612f4]
mov dl, 2
call fcn.0043dc9c
push 1
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404ca8
push eax
push 0x5612f8
mov eax, dword [ebp - 0xc]
call fcn.0044b208
push eax
call sub.shell32.dll_ShellExecuteA
ret
Function at 0x403a74
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x44608c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.004046c1
cmp dword [esi + 0x14], 8
jb 0x403aaa
mov eax, dword [esi]
jmp 0x403aac
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x403adf
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.004046c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065bb
mov esp, ebp
pop ebp
ret 4
push 0x4243c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004018f5
push 0x442bc0
lea eax, [ebp - 0x38c]
push eax
call fcn.004073d4
int3

Function at 0x11286
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x13090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x45
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
pop eax
push 0x78
mov word [ebp - 0x28], ax
pop eax
push 0x45
mov word [ebp - 0x26], ax
pop eax
push 0x6e
mov word [ebp - 0x24], ax
pop eax
push 0x75
mov word [ebp - 0x22], ax
pop eax
push 0x6d
mov word [ebp - 0x20], ax
pop eax
push 0x48
mov word [ebp - 0x1e], ax
pop eax
push 0x61
mov word [ebp - 0x1c], ax
pop eax
push 0x6e
mov word [ebp - 0x1a], ax
pop eax
push 0x64
mov word [ebp - 0x18], ax
pop eax
push 0x6c
mov word [ebp - 0x16], ax
pop eax
push 0x65
mov word [ebp - 0x14], ax
pop eax
push 0x54
mov word [ebp - 0x12], ax
pop eax
push 0x61
mov word [ebp - 0x10], ax
pop eax
push 0x62
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov word [ebp - 0xe], ax
pop eax
push 0x6c
mov word [ebp - 0xc], ax
pop eax
push 0x65
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
push eax
push eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x30], 0xc0000225
mov dword [ebp - 0x2c], edi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
test eax, eax
jne 0x11360
mov eax, 0xc0000225
jmp 0x113b4
cmp dword [ebp - 0x38], 6
ja 0x11380
jne 0x1136e
cmp dword [ebp - 0x3c], 2
jae 0x11380
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0x111aa
push dword [ebp - 0x34]
call eax
jmp 0x11393
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x111aa
push dword [ebp - 0x34]
call fcn.0001123c
test al, al
je 0x113b1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
test ecx, ecx
je 0x113b1
mov dword [esi + 0xc], ecx
xor ecx, ecx
mov dword [esi + 8], edi
mov dword [esi + 0x10], eax
xchg dword [eax], ecx
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00011b3c
leave
ret 0xc
Function at 0x407b60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8681
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x5036c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00469cf0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4b5858
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push 0
push str.cpop
push 0x4b5880
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
call fcn.00438c20
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx ecx, al
sub ecx, 1
jne 0x407d47
push 0x5b
mov dword [ebp - 0x238], ecx
mov byte [ebp - 0x248], cl
lea ecx, [ebp - 0x248]
push str.d:jenkins.jenkinsworkspace_supportcomputer_centercomputercenter_src_baseconfig_mgr.cc
mov dword [ebp - 0x234], 0xf
call fcn.0040a7b0
push 3
push 0x4b58ec
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040a7b0
push 0x74
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00406590
mov esi, eax
push str.ini_val:
push esi
mov byte [ebp - 4], 2
call fcn.00407430
add esp, 8
mov ecx, esi
push edi
call fcn.004072c0
call fcn.00438c20
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2e0]
call fcn.00407560
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x407cf6
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407cec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d7d
push edx
push ecx
call fcn.0043b7c2
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x407d47
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407d3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d82
push edx
push ecx
call fcn.0043b7c2
add esp, 8
xor eax, eax
test edi, edi
jne 0x407d52
lea eax, [edi + 1]
jmp 0x407d60
cmp dword [ebp + 8], 2
jne 0x407d60
xor eax, eax
cmp edi, 2
setne al
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.0043ba78
mov esp, ebp
pop ebp
ret 4
call fcn.0046d258
call fcn.0046d258
int3
Function at 0x4081c0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5036c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.00469cf0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4b5594
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x20019
xor ebx, ebx
lea ecx, [ebp - 0x224]
push 0x4b56c0
push SysReAllocString
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call fcn.00408a20
mov esi, dword [ebp - 0x224]
test eax, eax
jne 0x4082a1
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], ebx
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x4b56e8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4082a1
cmp dword [ebp - 0x218], 4
jne 0x4082a1
cmp dword [ebp - 0x210], ebx
setne bl
test esi, esi
je 0x4082ac
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
mov dword [edi], ebx
push eax
push 0
push 0x4b5684
push 0x4b56b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, edi
mov dword [edi + 4], eax
call fcn.004082f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ba78
mov esp, ebp
pop ebp
ret
Function at 0x4084e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a872b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5036c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00469cf0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4b5974
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00469cf0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x4b5990
push str.source
push str.installbridge
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.004080e0
mov ecx, eax
test ecx, ecx
je 0x408645
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x424]
call fcn.00407d90
test al, al
jne 0x4085f9
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4085d7
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.00409010
mov esi, dword [ebp - 0x424]
push str.zhushou
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb edi, edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408627
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [edi + 1]
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.0043ba78
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407b40
int3
Function at 0x408c40
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5036c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.00469cf0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4b5594
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x20019
xor ebx, ebx
lea ecx, [ebp - 0x224]
push 0x4b56c0
push SysReAllocString
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call fcn.00408a20
mov esi, dword [ebp - 0x224]
test eax, eax
jne 0x408d21
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], ebx
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x4b56e8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408d21
cmp dword [ebp - 0x218], 4
jne 0x408d21
cmp dword [ebp - 0x210], ebx
setne bl
test esi, esi
je 0x408d2c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
mov dword [edi], ebx
push eax
push 0
push 0x4b5684
push 0x4b56b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043ba78
mov esp, ebp
pop ebp
ret

Function at 0x4091c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409219
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409219
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40920a
cmp esi, edx
jae 0x409219
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4091f8
cmp esi, edx
jae 0x409219
cmp word [esi], 0
je 0x409219
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40ded0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
cmp dword [eax + 0x14], 8
jb 0x40dee2
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x40df52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40df15
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
push ebx
lea ebx, [esi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x40df3e
mov dword [eax], edi
add dword [esi + 4], 4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
lea ecx, [ebp + 8]
push ecx
push eax
mov ecx, esi
call fcn.0040db70
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x40df60
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8c18
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5036c4]
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 esi, ecx
mov edx, dword [ebp + 8]
test edx, edx
je 0x40e0ea
mov ecx, edx
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dfb1
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0040a8a0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], edi
test edi, edi
je 0x40e041
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e014
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 1
jmp 0x40e041
lea ebx, [esi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x40e02e
mov dword [eax], edi
add dword [esi + 4], 4
jmp 0x40e03a
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, esi
call fcn.0040db70
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00406ea0
cmp dword [ebp - 0x44], 0
je 0x40e0ea
push 0
push dword [0x503134]
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x40e0e6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e093
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040a8a0
mov eax, dword [0x503138]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x18]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x28]
call fcn.00406ea0
xor eax, eax
jmp 0x40e0ef
mov eax, 1
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.0043ba78
mov esp, ebp
pop ebp
ret 4
Function at 0x40ee50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1858
call fcn.0043bad0
mov eax, dword [0x5036c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x800
push 0
push eax
call fcn.00469cf0
add esp, 0xc
cmp dword [ebp + 0x24], 0
je 0x40eeba
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
push ebx
call fcn.0040ec30
add esp, 0x10
test eax, eax
jne 0x40eed2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ba78
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x804]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x40eec2
cmp dword [ebp + 0x20], 0
je 0x40eefc
lea eax, [ebp - 0x804]
push eax
call fcn.0043fa30
add esp, 4
test eax, eax
jne 0x40eefc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ba78
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x1858], 0x44
lea eax, [ebp - 0x1858]
movlpd qword [ebp - 0x1854], xmm0
push eax
movlpd qword [ebp - 0x184c], xmm0
movlpd qword [ebp - 0x1844], xmm0
movlpd qword [ebp - 0x183c], xmm0
movlpd qword [ebp - 0x1834], xmm0
movlpd qword [ebp - 0x182c], xmm0
movlpd qword [ebp - 0x1824], xmm0
movlpd qword [ebp - 0x181c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x14]
xorps xmm0, xmm0
push 0x1000
mov word [ebp - 0x1828], ax
lea eax, [ebp - 0x1804]
push 0
push eax
mov dword [ebp - 0x182c], 1
movups xmmword [ebp - 0x1814], xmm0
call fcn.00469cf0
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x40efad
push edi
push eax
lea eax, [ebp - 0x1804]
push 0x4bf054
push eax
call fcn.0040ec00
add esp, 0x10
jmp 0x40efc2
push eax
lea eax, [ebp - 0x1804]
push str.__s_
push eax
call fcn.0040ec00
add esp, 0xc
lea eax, [ebp - 0x1814]
push eax
lea eax, [ebp - 0x1858]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x40f030
cmp dword [ebp + 0x18], 0
je 0x40f006
push dword [ebp + 0x1c]
push dword [ebp - 0x1814]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x40f01a
push eax
push dword [ebp - 0x1814]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1814]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ba78
mov esp, ebp
pop ebp
ret