joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2330
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
lea esi, [ebx + 0x18]
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
jne 0x4b23ed
xor edi, edi
nop dword [eax]
push 0
push 0x588000
push 0x588000
push 0
push 0x588000
inc edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4b23de
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 4]
push ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebx + 0x10]
push eax
call fcn.004742d0
mov edx, dword [ebx + 0x14]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x4b242d
lea ecx, [edx + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
cmp edi, 3
jl 0x4b2380
cmp dword [ebx + 0x14], 0
jne 0x4b23ed
xor edi, edi
jmp 0x4b2412
mov eax, dword [ebx + 0x10]
push 0xc
mov edx, dword [eax]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 0x14]
call fcn.004097e6
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.005258e7
int3

Function at 0x4b6ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f448
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0xc]
mov dword [edi], vtable.acrobat_broker::WininetCallbackReceiver.0
mov word [edi + 4], 0
mov ecx, esi
mov byte [edi + 6], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00406970
mov dword [esi], eax
lea eax, [edi + 0x14]
push eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4cb8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561078
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.00406909
mov edi, eax
add esp, 4
test edi, edi
je 0x4cb944
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004656ca
add esp, 4
mov dword [edi + 4], eax
jmp 0x4cb946
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5677a4]
mov ecx, edi
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
push eax
call fcn.00477b00
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x5677a4]
mov ecx, edi
call esi
mov byte [ebp - 0xd], al
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], 3
test edi, edi
je 0x4cb9d9
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x5677a4]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x4cb9d6
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x5677a4]
mov ecx, edi
call esi
mov al, byte [ebp - 0xd]
cmp dword [ebx + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [ebx + 0x40], al
jne 0x4cba40
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
je 0x4cba40
push 1
test cl, 4
jne 0x4cba63
test cl, 2
je 0x4cba1c
lea eax, [ebp - 0x18]
push eax
call fcn.004766c0
add esp, 8
push eax
push str.ios_base::failbit_set
jmp 0x4cba75
lea eax, [ebp - 0x20]
push eax
call fcn.004766c0
add esp, 8
lea ecx, [ebp - 0x48]
push eax
push str.ios_base::eofbit_set
call fcn.00474990
push 0x5b50f0
lea eax, [ebp - 0x48]
jmp 0x4cba85
cmp byte [ebp + 0xc], 0
je 0x4cba4f
push ebx
call fcn.00525c5c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x18]
push eax
call fcn.004766c0
add esp, 8
push eax
push str.ios_base::badbit_set
lea ecx, [ebp - 0x34]
call fcn.00474990
push 0x5b50f0
lea eax, [ebp - 0x34]
push eax
call fcn.005281d5
int3
Function at 0x4d30d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi + 0x10], 0
je 0x4d3120
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d30ea
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d3120
cmp dword [esi + 0x14], 8
jb 0x4d30fd
mov esi, dword [esi]
mov edi, dword [edi]
push esi
push 5
push 2
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x5677a4]
mov ecx, edi
call esi
test eax, eax
pop edi
sete al
pop esi
pop ebp
ret 4
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x4d7dc0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x254]
push 0x2b
xor eax, eax
mov dword [ebp - 0x258], 0
push str.SoftwareAdobeRepairAcrobat_ReaderDCIOD
xor bh, bh
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
mov word [ebp - 0x254], ax
call fcn.00408740
push 0x2e
xor eax, eax
mov dword [ebp - 4], 0
push str.SoftwareAdobeAcrobat_ReaderDCInstallerIOD
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
call fcn.00408740
cmp dword [ebp - 0x240], 8
lea ecx, [ebp - 0x258]
push ecx
push 0x20019
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x254]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4d7ed6
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x258]
push ecx
push 0x20019
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d7ffa
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005290f0
add esp, 0xc
mov dword [ebp - 0x220], 0x20a
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push str.Library
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d7fee
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], 7
lea edx, [ecx + 2]
mov word [ebp - 0x274], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d7f50
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x274]
call fcn.00408740
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 2
push 0
push eax
mov dword [ebp - 0x25c], 1
call fcn.00424aa0
add esp, 8
test al, al
jne 0x4d7faa
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d7faa
mov bl, 1
jmp 0x4d7fac
xor bl, bl
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], 1
call fcn.00408e50
test bl, bl
je 0x4d7fee
call fcn.0044fb30
test al, al
je 0x4d7fee
lea eax, [ebp - 0x21c]
push eax
call fcn.00413ea0
test eax, eax
je 0x4d7fee
push str.MaintenanceRepair
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi], eax
setne bh
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x23c]
call fcn.00408e50
lea ecx, [ebp - 0x254]
call fcn.00408e50
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.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x4dd5a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562072
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov esi, 0x5cd5b0
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x4dd6f7
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x20019
push str.SOFTWAREMicrosoftOffice11.0CommonInstallRoot
push 0x80000002
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040b870
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
push ecx
push str.Path
mov ecx, eax
mov dword [ebp - 0x44], 1
call fcn.0041e700
test eax, eax
jne 0x4dd65e
cmp dword [ebp - 0x30], eax
je 0x4dd65e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dd65e
mov bl, 1
jmp 0x4dd660
xor bl, bl
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 1
call fcn.0040b8f0
test bl, bl
je 0x4dd67a
mov ecx, 1
jmp 0x4dd6e1
push 0x20019
push str.SOFTWAREMicrosoftOffice11.0OutlookInstallRoot
push 0x80000002
lea ecx, [ebp - 0x4c]
call fcn.0040b870
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
push str.Path
mov ecx, eax
mov dword [ebp - 0x44], 2
call fcn.0041e700
test eax, eax
jne 0x4dd6cf
cmp dword [ebp - 0x18], eax
je 0x4dd6cf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dd6cf
mov bl, 1
jmp 0x4dd6d1
xor bl, bl
lea ecx, [ebp - 0x4c]
call fcn.0040b8f0
xor ecx, ecx
test bl, bl
sete cl
inc ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
lea ecx, [ebp - 0x28]
call fcn.00408e50
lea ecx, [ebp - 0x40]
call fcn.00408e50
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
cmp eax, 1
sete al
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.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x4eb2f0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x78], 0
je 0x4eb31b
cmp dword [esi + 0x7c], 0
je 0x4eb31b
cmp dword [esi + 0x80], 0
je 0x4eb31b
cmp dword [esi + 0x84], 0
je 0x4eb31b
cmp dword [esi + 0x88], 0
jne 0x4eb396
push str.prntvpt.dll
call fcn.004368c0
mov edi, eax
add esp, 4
test edi, edi
je 0x4eb39b
push str.PTOpenProvider
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x78], eax
test eax, eax
je 0x4eb39b
push str.PTConvertDevModeToPrintTicket
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x7c], eax
test eax, eax
je 0x4eb39b
push str.PTCloseProvider
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x80], eax
test eax, eax
je 0x4eb39b
push str.PTConvertPrintTicketToDevMode
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x84], eax
test eax, eax
je 0x4eb39b
push str.PTReleaseMemory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x88], eax
test eax, eax
je 0x4eb39b
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret
Function at 0x4ec950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563358
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5c7cec]
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 dword [ebp - 0x30], ebx
cmp dword [ebx + 0x38], 0
je 0x4ecaa8
cmp byte [ebx + 0x3d], 0
je 0x4ecaa8
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5677a4]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
jne 0x4ec9b3
xor al, al
jmp 0x4ecaaa
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0047dd70
lea eax, [ebx + 0x40]
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
cmp edi, 0x10
lea ecx, [ebp - 0x28]
mov edi, dword [eax + 0x38]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
cmovae ecx, ebx
push eax
mov eax, dword [ebp - 0x18]
cmovae edx, ebx
mov esi, dword [edi]
add eax, ecx
push eax
push edx
push dword [ebp - 0x34]
mov esi, dword [esi + 0x20]
mov ecx, esi
call dword [0x5677a4]
mov ecx, edi
call esi
sub eax, 0
je 0x4eca27
sub eax, 1
jne 0x4eca87
mov ecx, dword [ebp - 0x30]
jmp 0x4eca2e
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x3d], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ebx
sub esi, eax
je 0x4eca66
push dword [ecx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ebx
push 1
push eax
call fcn.00538906
add esp, 0x10
cmp esi, eax
jne 0x4eca8c
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x3d], 0
je 0x4eca9a
test esi, esi
jne 0x4ec9e7
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004ece00
jmp 0x4ec9de
sub eax, 2
je 0x4eca9a
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.0040ad30
mov al, bl
jmp 0x4ecaaa
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.0040ad30
mov al, bl
jmp 0x4ecaaa
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.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x4ed200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5633a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5c7cec]
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 ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
jne 0x4ed23c
xor eax, eax
jmp 0x4ed3c2
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4ed267
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4ed267
lea eax, [edi - 1]
mov dword [edx], eax
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov byte [edx], bl
jmp 0x4ed3c0
cmp dword [esi + 0x4c], 0
jne 0x4ed275
or eax, 0xffffffff
jmp 0x4ed3c2
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4ed293
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
cmp dword [esi + 0x38], 0
jne 0x4ed2b7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005382c3
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, ebx
mov eax, ecx
jmp 0x4ed3c2
push 0
push 8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0047dd70
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x10
lea eax, [ebp - 0x30]
mov ebx, dword [esi + 0x38]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebx]
add eax, edx
push eax
push ecx
lea eax, [ebp - 0x34]
mov edi, dword [edi + 0x1c]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [esi + 0x40]
push eax
call dword [0x5677a4]
mov ecx, ebx
call edi
test eax, eax
js 0x4ed3b5
cmp eax, 1
jg 0x4ed393
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
cmp ebx, 0x10
mov edi, dword [ebp - 0x30]
cmovae eax, ecx
sub edi, eax
je 0x4ed364
push dword [esi + 0x4c]
cmp ebx, 0x10
lea eax, [ebp - 0x2c]
push edi
cmovae eax, ecx
push 1
push eax
call fcn.00538906
add esp, 0x10
cmp edi, eax
jne 0x4ed3b5
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x11]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
jne 0x4ed38e
test edi, edi
jne 0x4ed2e2
cmp dword [ebp - 0x1c], 0x20
jae 0x4ed3b5
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004ece00
jmp 0x4ed2df
mov ebx, dword [ebp + 8]
jmp 0x4ed3b8
cmp eax, 3
jne 0x4ed3b5
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x11]
push eax
call fcn.005382c3
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x4ed3b8
or ebx, 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040ad30
mov eax, ebx
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.0040154f
mov esp, ebp
pop ebp
ret 4
Function at 0x4f7d20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
push ebx
mov bh, byte [ebp + 0x24]
xor bl, bl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
push edi
mov edi, dword [ebp + 0x18]
test eax, eax
je 0x4f7d60
mov dword [eax], 0
test edi, edi
je 0x4f7d6a
mov dword [edi], 0
cmp dword [esi + 0x10], 0
je 0x4f7e52
push 0
push esi
call fcn.00424aa0
add esp, 8
test al, al
jne 0x4f7e52
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4f7d91
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f7e52
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4f7daa
mov eax, dword [esi]
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x4f7e52
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], 0
cmp dword [ecx + 0x10], 0
jne 0x4f7dcd
xor ecx, ecx
jmp 0x4f7dd5
cmp dword [ecx + 0x14], 8
jb 0x4f7dd5
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 8
jb 0x4f7ddd
mov esi, dword [esi]
push 0
xor edx, edx
lea eax, [ebp - 8]
test edi, edi
cmove eax, edx
test bh, bh
push eax
push dword [ebp - 0x10]
mov eax, 0x597064
push str.exefile
push dword [ebp + 0x1c]
push 1
push ecx
mov ecx, str.open
push esi
cmove eax, ecx
push eax
push dword [ebp - 0x14]
call fcn.0049a7e0
add esp, 0x28
test al, al
je 0x4f7e52
test edi, edi
je 0x4f7e50
cmp dword [ebp - 8], 0
je 0x4f7e50
push 1
push 0
push 0
call fcn.0046a830
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
push edi
mov eax, dword [eax + 4]
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4f7e50
mov dword [edi], eax
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040154f
mov esp, ebp
pop ebp
ret 0x20
Function at 0x501120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
test edi, edi
je 0x50126e
test esi, esi
je 0x50126e
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x5c70b4
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5c70cc]
mov dword [edi + 8], eax
push 0x5c70b4
mov dword [0x5c70cc], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov edi, dword [0x5cdd90]
mov dword [ebp - 8], edi
call fcn.0050ab50
push 5
push 0x71
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x501245
push 0xf0
push 0x71
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], ebx
test eax, eax
je 0x5011c5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x501232
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x501232
push dword [ebp - 4]
push eax
call fcn.00508f20
add esp, 8
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push 0x5091a0
push dword [ebp + 8]
push eax
push dword [ebp - 8]
call fcn.0050ad30
mov ebx, eax
test ebx, ebx
jne 0x501216
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x50123a
test eax, eax
je 0x50123a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x50123a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x501245
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x24], 0
jge 0x501263
test ebx, ebx
je 0x501263
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0xc0000005
call fcn.0047d110
int3