joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5c30
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d8e1
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58a088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.DL::RCSimpleDownloadHandler.0
mov dword [edi + 4], vtable.DL::RCSimpleDownloadHandler.1.0
mov dword [ebp - 4], 7
mov dword [edi + 0x98], 0
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov esi, dword [edi + 0xf8]
test esi, esi
je 0x4b5cae
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4b5cae
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4b5cae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x4b5cc9
lock xadd dword [ecx + 8], ebx
dec ebx
jne 0x4b5cc9
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test eax, eax
je 0x4b5cfa
push eax
call ebx
push 0x18
push dword [edi + 0xe4]
call fcn.004e2035
add esp, 8
mov dword [edi + 0xe4], 0
mov byte [ebp - 4], 3
lea esi, [edi + 0xc0]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x4b5d1e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 8]
call fcn.00402a30
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xac]
test eax, eax
je 0x4b5d55
push eax
call ebx
push 0x18
push dword [edi + 0xac]
call fcn.004e2035
add esp, 8
mov dword [edi + 0xac], 0
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x4b5dd0
mov edx, dword [edi + 0xa4]
push ecx
call fcn.004b8ef0
mov eax, dword [edi + 0xa8]
add esp, 4
mov ecx, dword [edi + 0xa0]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
cmp edx, 0x1000
jb 0x4b5da8
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4b5e4f
mov ecx, esi
push edx
push ecx
call fcn.004e2035
add esp, 8
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov byte [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x70]
call fcn.00402a30
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x48]
call fcn.00402a30
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x30]
call fcn.00402a30
mov byte [ebp - 4], 9
lea ecx, [esi + 0x18]
call fcn.00402a30
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00402a30
mov dword [ebp - 4], 0xe
mov dword [edi + 4], vtable.RC::RCRefCounted.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.DL::ISimpleDownloadHandler.0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.RC::IRefCount.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004ed129
int3
Function at 0x4b8240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53de38
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58a088]
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, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.004a6430
test al, al
jne 0x4b82a0
mov eax, 1
jmp 0x4b841d
push 0x10000
call fcn.004e2852
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.004e48c0
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4b83f6
test ebx, ebx
je 0x4b83f6
cmp dword [eax], 0xffffffff
je 0x4b83f6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b83f6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x4b83ec
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.004d9650
test al, al
je 0x4b83df
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4b8392
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x4b8381
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x4b83ec
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x4b839c
add ebx, eax
cmp ebx, 0x8000
je 0x4b83ac
cmp dword [ebp - 0x28], 0xf
ja 0x4b83d5
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x4b8330
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4b83ce
add ecx, 4
add esi, 4
sub edx, 4
jae 0x4b83b6
mov esi, 4
jmp 0x4b8407
mov esi, 5
jmp 0x4b8407
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x4b8407
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x4b8401
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x4b8407
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4b841b
push ebx
call fcn.004e22dd
add esp, 4
mov eax, esi
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.004e1ff4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b8440
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53de78
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x58a088]
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 edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], 0
call fcn.00404520
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
push 0x556b60
lea ecx, [ebp - 0x58]
mov dword [edi + 0xb4], 0
call fcn.0040a2c0
mov byte [ebp - 4], 2
lea eax, [edi + 0x40]
push ecx
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push eax
push dword [ebx + 4]
call fcn.004d8410
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040a230
test bl, bl
jne 0x4b8503
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x4b85be
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push ecx
push eax
push 0x13
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.0043ba40
test al, al
jne 0x4b8530
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x4b85be
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xb4], eax
cmp eax, 0xc8
je 0x4b85ab
cmp eax, 0xce
je 0x4b85ab
cmp eax, 0x12e
jne 0x4b85df
mov ecx, 0x400
mov dword [ebp - 0x34], ecx
test esi, esi
jne 0x4b8573
push 0x800
call fcn.004e2852
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x34]
add ecx, ecx
push ecx
push 0
push esi
call fcn.004e48c0
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
push esi
push 0x21
call fcn.0043bab0
test al, al
je 0x4b85df
push esi
call fcn.00402d30
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00402b20
mov ebx, dword [ebp - 0x38]
jmp 0x4b85cf
cmp dword [ebp + 0x14], 0
ja 0x4b85b7
cmp dword [ebp + 0x10], 0
jbe 0x4b85e3
cmp eax, 0xce
je 0x4b85e3
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 4], 0
je 0x4b85df
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, 3
jb 0x4b84a3
xor bl, bl
jmp 0x4b85ef
mov dword [edi + 0xb0], 0
mov bl, 1
mov byte [ebp - 4], 0
test esi, esi
je 0x4b8600
push esi
call fcn.004e22dd
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402a30
mov al, bl
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.004e1ff4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4bd7f0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c0df
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58a088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.004028a0
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x10], edi
push esi
call fcn.00404520
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.00404520
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00404520
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00404520
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00404520
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4bf570
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x58a088]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4bf5d5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bf5b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bf5d5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004e1ff4
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004e1ff4
add esp, 8
ret 4
Function at 0x4bf770
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ee38
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x58a088]
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 edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4bf7b9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4bf90b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4bf8d6
test eax, eax
je 0x4bf8d6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4bf8d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4bf85b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bf84f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bf85b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4bf869
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00404520
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4bf8d6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4bf814
jmp 0x4bf8d9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4bf902
test edx, edx
je 0x4bf8fe
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4bf7d0
mov al, 1
jmp 0x4bf90d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4bf90b
mov dword [ecx], eax
xor al, al
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.004e1ff4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c0e60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x58a088]
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 + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.00404470
test al, al
jne 0x4c0eba
cmp byte [ebp + 8], al
jne 0x4c0ec1
mov eax, dword [ebx]
test eax, eax
je 0x4c1021
cmp byte [eax + 0xa5], 0
je 0x4c1021
xor al, al
jmp 0x4c1037
mov ecx, esi
call fcn.00404470
test al, al
jne 0x4c1021
push esi
call fcn.0048de30
add esp, 4
test al, al
je 0x4c0ee9
push esi
push edi
call fcn.004c0a90
jmp 0x4c101d
push 0xb
mov ecx, esi
call fcn.00403390
push eax
mov ecx, edi
call fcn.00403390
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
je 0x4c0f0e
mov al, 1
jmp 0x4c101d
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x59], 0
call fcn.00402a90
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.004b0950
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x40]
call fcn.00402a90
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.004b0950
test al, al
jne 0x4c0f5b
cmp byte [ebp - 0x60], al
je 0x4c0f97
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00403390
push eax
lea ecx, [ebp - 0x58]
call fcn.00403390
push eax
call ebx
test eax, eax
je 0x4c0f97
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402a30
mov al, 1
jmp 0x4c101d
mov ecx, esi
call fcn.004b0350
cmp eax, 0xffffffff
je 0x4c1000
push esi
lea ecx, [ebp - 0x28]
call fcn.00404520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004b0710
test al, al
je 0x4c0ff4
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004b03f0
test al, al
je 0x4c0ff4
mov edx, esi
mov ecx, edi
call fcn.004b03f0
lea ecx, [ebp - 0x28]
test al, al
je 0x4c0fed
call fcn.004b0500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402a30
jmp 0x4c0f75
mov edx, esi
call fcn.004b03f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402a30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402a30
xor al, al
test al, al
jne 0x4c1035
push edi
call fcn.0048de30
add esp, 4
test al, al
je 0x4c1035
mov ecx, edi
call fcn.004b0500
mov al, 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.004e1ff4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c3f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f880
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58a088]
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 esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4c4036
cmp byte [eax + 0x54], 0
je 0x4c4036
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.0049d480
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004973c0
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4c3fa2
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 0x4c3fec
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4c401c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c4012
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c4054
push edx
push ecx
call fcn.004e2035
add esp, 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0049d4d0
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.004e1ff4
mov esp, ebp
pop ebp
ret 4
call fcn.004ed129
int3
Function at 0x4d5d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c268
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x58a088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x4d5d98
xor al, al
jmp 0x4d5e74
lea eax, [ecx + 0x38]
mov dword [ecx + 0x84], 0
push eax
push 0
push 4
lea eax, [ecx + 0x88]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
setne bh
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
test esi, esi
jne 0x4d5dd4
cmp eax, 0x3e5
sete bh
test bh, bh
jne 0x4d5e72
cmp dword [0x58e9e0], 0
je 0x4d5e72
push ecx
mov ecx, 0x58e9e0
call fcn.004c3010
mov eax, dword [0x58e9e0]
cmp byte [eax + 0x54], bh
je 0x4d5e72
cmp dword [eax + 0x58], 2
jb 0x4d5e72
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.00402a90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402ab0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push str.request_read_size_failed___d
push eax
call fcn.004c40d0
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x58e9e0
push 0x149
push str.RC::RCNamePipeClient::RequestReadSize
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 2
call fcn.004c3bd0
test bl, bl
je 0x4d5e63
lea eax, [ebp - 0x28]
mov ecx, 0x58e9e0
push eax
call fcn.004c3f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402a30
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1ff4
mov esp, ebp
pop ebp
ret
Function at 0x500993
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00500812

Function at 0x505e94
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00505b54

Function at 0x50f4a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4050c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, eax
mov ebx, ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x405101
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x405101
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x405108
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x405128
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push edi
push ebx
push eax
call fcn.00439070
add esp, 0xc
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
xor edi, edi
test eax, eax
je 0x405154
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0xc]
push eax
push 0
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x405179
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00405370
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405190
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x40a0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a0c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40a100
lea ebx, [ebx]
cmp esi, eax
jae 0x40a104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40a0f0
cmp esi, eax
jb 0x40a10a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x410700
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x47f6d0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00416aa0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00416b40
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0043718c
add esp, 0x68
ret
Function at 0x410770
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x47f6d0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00416aa0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.00416b40
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0043718c
add esp, 0x68
ret