joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c1d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079db
mov dword [ebp - 0x14], eax
cmp dword [0x811fa0], esi
jne 0x40c2cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c258
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c3ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c3ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x811fa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x811fa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x811fa8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811fb0], eax
test eax, eax
je 0x40c2c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811fac], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c305
push 4
pop eax
jmp 0x40c3ad
cmp dword [ebp - 0x14], esi
je 0x40c305
push dword [0x811fa0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ea
mov eax, dword [0x811fac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c363
cmp dword [0x811fb0], edi
je 0x40c363
push eax
call ebx
push dword [0x811fb0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c363
test eax, eax
je 0x40c363
call ecx
test eax, eax
je 0x40c358
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c358
test byte [ebp - 8], 1
jne 0x40c363
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c393
mov eax, dword [0x811fa4]
cmp eax, edi
je 0x40c390
push eax
call ebx
test eax, eax
je 0x40c390
call eax
mov esi, eax
test esi, esi
je 0x40c390
mov eax, dword [0x811fa8]
cmp eax, edi
je 0x40c390
push eax
call ebx
test eax, eax
je 0x40c390
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x811fa0]
call ebx
test eax, eax
je 0x40c3ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c3ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b45
mov esp, ebp
pop ebp
ret
Function at 0x5268f0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00466ac8
mov eax, dword [0x56c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x56e970]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x526ac8
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x526a17
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x526a17
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x5269f5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x526979
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x526a81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x526ae8
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x526ac3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x526ae8
jmp 0x526952
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467932
mov esp, ebp
pop ebp
ret
Function at 0x526b80
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00466ac8
mov eax, dword [0x56c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x56e970]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x526d6b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x526cb6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x526cb6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x526c92
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x526c09
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x526d24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x526d8b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x526d66
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x526d8b
jmp 0x526be2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467932
mov esp, ebp
pop ebp
ret
Function at 0x100242d0
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
inc eax
xor eax, dword [esp + 0x14]
add al, al
mov eax, dword [esi + 0x3c]
push ebx
push edi
mov edi, dword [eax + esi + 0x78]
mov eax, dword [edi + esi + 0x24]
mov ecx, dword [edi + esi + 0x1c]
add edi, esi
add eax, esi
mov dword [ebp - 8], eax
jmp 0x100241be
xor ax, 0x793f
mov eax, dword [edi + 0x20]
add eax, esi
add ecx, esi
xor ebx, ebx
cmp dword [edi + 0x18], ebx
jmp 0x100246fc
je 0x10024a55
jmp 0x1002492e
push ebp
or ebp, 0x73091594
sub ebp, ebx
mov ebp, 0x17a74a90
dec ebp
add ebp, edi
mov ebp, esp
sub esp, 0xc
test esi, esi
jne 0x100240e0
push 0x58
jmp 0x100242f2
add dword [esp], 0xffffffa9
nop
nop
nop
nop
nop
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jle 0x10024a6a
jmp 0x10024740
sub eax, edi
add ax, cx
or ax, 0x1f79
dec eax
dec ax
mov eax, dword [ebp - 4]
jmp 0x10024740
mov edx, dword [eax + ebx*4]
add edx, esi
jne 0x1002474f
add esp, 0x28
ret
mov al, byte [edx]
xor ecx, ecx
test al, al
jmp 0x100242bf
movsx eax, al
rol ecx, 3
jmp 0x100249ba
add edx, 1
xor ecx, eax
jmp 0x10024a4b
mov al, byte [edx]
test al, al
jne 0x1002492e
cmp ecx, dword [ebp + 8]
je 0x10024c38
add ebx, 1
cmp ebx, dword [edi + 0x18]
jl 0x1002470d
pop edi
jmp 0x10024b46
xor eax, eax
pop ebx
sub esp, 0x75e93a30
mov esp, ecx
mov esp, ebp
pop ebp
jmp 0x10024c37
ret
add ecx, dword [esp]
shl ecx, cl
mov ecx, ebp
mov ecx, ecx
mov ecx, ebx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + ebx*2]
mov al, 0xa2
xor eax, ebx
mov eax, eax
mov ax, dx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
add eax, esi
pop ebx
jmp 0x10024c97
add esp, ebp
shr esp, cl
mov esp, ebp
pop ebp
ret
Function at 0x411ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x411ad2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411ad9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411ac8
mov eax, 1
add ebx, ebx
jne 0x411aeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411ae0
jne 0x411afc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411ae0
xor ecx, ecx
sub eax, 3
jb 0x411b10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411b82
mov ebp, eax
add ebx, ebx
jne 0x411b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411b28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411b4c
inc ecx
add ebx, ebx
jne 0x411b38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411b2d
jne 0x411b49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411b2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411b6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411b5d
jmp 0x411ace
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411b6c
add edi, ecx
jmp 0x411ace
pop esi
mov edi, esi
mov ecx, 0x203
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x411b8a
cmp byte [edi], 0xa
jne 0x411b8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x411b8f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x411bfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x113a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11408]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411bbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1140c]
or eax, eax
je 0x411bf8
mov dword [ebx], eax
add ebx, 4
jmp 0x411bd9
call dword [esi + 0x11410]
popal
jmp 0x403ae7

Function at 0x847540
Capabilities:
Encode data using xor

Disassembly:
push 0x8472a2
pop edi
mov ebx, 0x457d5924
call fcn.0084757e
add ebx, 0xb4d97b2e
xor dword [edx], edi
sub esi, 0x955528f4
inc edx
and esi, ebx
and ebx, esi
add ebx, 0xf81a5af6
cmp edx, ecx
jne fcn.00847540
add ebx, 1
add ebx, esi
and esi, ebx
ret
Function at 0x403217
Capabilities:
Accept command line arguments
Get file system object information

Disassembly:
sub esp, 0x184
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x20], ebx
mov byte [esp + 0x14], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push 9
mov dword [0x4237b8], eax
call 0x541ced
mov dword [0x423704], eax
push ebx
lea eax, [esp + 0x38]
push 0x160
push eax
push ebx
push 0x41ecb8
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push str.NSIS_Error
push 0x422f00
call 0x5419ed
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebp, 0x429000
push eax
push ebp
call 0x5419ff
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x429000], 0x22
mov dword [0x423700], eax
mov eax, ebp
jne 0x4032ba
mov byte [esp + 0x14], 0x22
mov eax, 0x429001
push dword [esp + 0x14]
push eax
call 0x5414e5
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esp + 0x1c], eax
jmp 0x53f098
Function at 0x40ab3d
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41a558]
test eax, eax
push esi
jne 0x40abae
and dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x40ab63
xor eax, eax
jmp 0x40abae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40ab5f
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
je 0x40ab5f
lea eax, [ebp - 4]
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x40aba7
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40ab5f
mov eax, esi
mov dword [0x41a558], eax
pop esi
leave
ret

Function at 0x40b0cc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 4], bl
jne 0x40b0e6
cmp dword [esi + 0x3c], ebx
je 0x40b1e9
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.MSVCR80.dll__time64]
mov dword [esp], 0x401a50
push 0x401a08
push esi
call fcn.0040abcc
push 0x401988
push esi
call fcn.0040abcc
mov edi, 0x401920
push edi
push esi
call fcn.0040abcc
push 0x401900
push esi
call fcn.0040abcc
add esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4018d4
push esi
call fcn.0040abcc
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x4018a8
push esi
call fcn.0040abcc
push 0x4012cc
lea eax, [ebp - 4]
push ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR80.dll__wdupenv_s]
add esp, 0x18
cmp dword [ebp - 4], ebx
je 0x40b184
push dword [ebp - 4]
push 0x40187c
push esi
call fcn.0040abcc
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR80.dll__wctime64]
push eax
push 0x401854
push esi
call fcn.0040abcc
push dword [esi + 0xc]
push 0x401820
push esi
call fcn.0040abcc
push dword [esi + 0x10]
push 0x4017ec
push esi
call fcn.0040abcc
push dword [esi + 0x14]
push 0x4017c0
push esi
call fcn.0040abcc
mov eax, dword [0x41a548]
add esp, 0x34
cmp eax, ebx
je 0x40b1df
push eax
push 0x401790
push esi
call fcn.0040abcc
add esp, 0xc
push edi
push esi
call fcn.0040abcc
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b333
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401b34
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b39d
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x401b18
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x40b39d
cmp dword [ebp - 0xc], 4
jne 0x40b39d
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
leave
ret
xor al, al
leave
ret
Function at 0x40b3a1
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
test ebx, ebx
push edi
je 0x40b41e
mov edi, 0x104
cmp esi, edi
jb 0x40b41e
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x401b68
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b41e
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push 0x401b60
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
mov byte [ebx + esi - 1], 0
jne 0x40b41e
cmp dword [ebp - 8], 2
jne 0x40b423
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, edi
ja 0x40b41e
test eax, eax
jne 0x40b429
xor al, al
pop edi
leave
ret
cmp dword [ebp - 8], 1
jne 0x40b41e
mov al, 1
jmp 0x40b420

Function at 0x40b480
Capabilities:
Read file via mapping

Disassembly:
and dword [0x41a53c], 0
mov dword [0x41a538], 0xc
mov dword [0x41a540], 1
jmp fcn.0040b42d

Function at 0x40bb23
Capabilities:
Listen for remote procedure calls

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x41a470]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x401e04
lea eax, [ebp - 0x60]
push 0x2d
push eax
call fcn.0040b4a0
add esp, 0xc
test eax, eax
jge 0x40bb5c
push eax
push 0x402098
call fcn.0040a658
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x40bbcd
push esi
push 0
lea eax, [ebp - 0x60]
push eax
push 0x14
push 0x402084
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
mov esi, eax
test esi, esi
je 0x40bb7e
push esi
push 0x401f88
jmp 0x40bbbf
push 0x40b232
push 0xffffffffffffffff
push 0
push 8
push 0
push 0
push dword [0x41a464]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf2]
mov esi, eax
test esi, esi
je 0x40bba7
push esi
push 0x401ee0
jmp 0x40bbbf
push 1
push 0x14
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
test esi, esi
je 0x40bbca
push esi
push 0x401e40
call fcn.0040a658
pop ecx
pop ecx
mov eax, esi
jmp 0x40bbcc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d58
leave
ret
Function at 0x40bcd9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x41a470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push edi
push dword [eax*4 + 0x401314]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
xor ebx, ebx
cmp byte [esi + 1], bl
mov dword [ebp - 0x70], ebx
jne 0x40bda3
push 0x401e28
lea eax, [ebp - 0x6c]
push 0x33
push eax
call fcn.0040b4a0
add esp, 0xc
cmp eax, ebx
jge 0x40bd53
push eax
push 0x402098
call fcn.0040a658
or esi, 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
call fcn.0040aaed
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d58
leave
ret
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
lea ecx, [ebp - 0x70]
mov edi, eax
call fcn.0040aaed
cmp edi, ebx
mov dword [ebp - 0x70], edi
jne 0x40bd85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x402458
call fcn.0040a658
jmp 0x40bd38
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x40bda3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4023a8
jmp 0x40bd7e
mov ecx, esi
call fcn.0040bbd9
mov edi, eax
cmp edi, ebx
jne 0x40bdb9
mov ecx, esi
call fcn.0040bb23
mov edi, eax
cmp byte [esi + 1], bl
jne 0x40bdc7
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, ebx
je 0x40bdd2
mov esi, edi
jmp 0x40bd3a
mov ecx, esi
call fcn.0040b2d8
cmp eax, ebx
je 0x40bde4
mov esi, eax
jmp 0x40bd3a
cmp byte [esi + 4], bl
je 0x40be2f
cmp byte [esi], bl
je 0x40bdf2
call fcn.0040c812
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.RPCRT4.dll_RpcMgmtInqStats]
test eax, eax
jne 0x40be24
mov eax, dword [ebp - 0x74]
cmp dword [eax], 4
jne 0x40be24
push dword [eax + 4]
push 0x40236c
call fcn.0040a68c
pop ecx
pop ecx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.RPCRT4.dll_RpcMgmtStatsVectorFree]
jmp 0x40be2f
push 0x402328
call fcn.0040a68c
pop ecx
mov ecx, esi
call fcn.0040b2b9
cmp eax, ebx
jne 0x40bddd
xor esi, esi
jmp 0x40bd3a

Function at 0x417d58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a470]
jne 0x417d62
repz ret
jmp fcn.00418112