joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429228
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x49ebd9
call fcn.0048a2c9
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.0047727e
push eax
lea ecx, [ebp - 0x10]
call fcn.0042049e
mov dword [ebp - 4], ebx
push dword [0x4c8960]
mov edi, str.SoftwareVOS_s
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00452370
mov esi, str.IntegratedLnk
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00423a96
add esp, 0x18
lea ecx, [ebp - 0x1c]
push ecx
push 9
mov byte [ebp - 4], 2
mov eax, dword [eax]
push ebx
push eax
call fcn.00469660
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.0042001a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042001a
cmp dword [ebp - 0x14], ebx
je 0x4292c4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov eax, ebx
call fcn.0048a3a1
ret
mov dword [ebp - 0x18], ebx
mov eax, 0x514
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], eax
call fcn.004204c6
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00423b0a
cmp dword [ebp - 0x14], ebx
jne 0x429319
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00421355
call fcn.004555b0
inc dword [ebp - 0x18]
pop ecx
jmp 0x4292c7
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x4c8960]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00452370
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.00423a96
add esp, 0x18
mov byte [ebp - 4], 4
push dword [eax]
call fcn.00469660
push eax
call fcn.00453630
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0042001a
xor ebx, ebx
inc ebx
jmp 0x4292b1
Function at 0x429375
Capabilities:
Delete directory
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x49eb96
call fcn.0048a2c9
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.0047727e
push eax
lea ecx, [ebp - 0x10]
call fcn.0042049e
mov dword [ebp - 4], ebx
push dword [0x4c8960]
mov edi, str.SoftwareVOS_s
lea eax, [ebp - 0x24]
push edi
push eax
mov dword [ebp - 0x20], 1
call fcn.00452370
mov esi, str.IntegratedNewDirs
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00423a96
add esp, 0x18
lea ecx, [ebp - 0x1c]
push ecx
push 9
mov byte [ebp - 4], 2
mov eax, dword [eax]
push ebx
push eax
call fcn.00469660
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.0042001a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042001a
cmp dword [ebp - 0x14], ebx
je 0x429418
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov eax, ebx
call fcn.0048a3a1
ret
mov dword [ebp - 0x18], ebx
mov eax, 0x514
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], eax
call fcn.004204c6
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00423b0a
cmp dword [ebp - 0x14], ebx
je 0x429456
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x14], ebx
je 0x42941b
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x4c8960]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00452370
push esi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00423a96
add esp, 0x18
mov byte [ebp - 4], 4
push dword [eax]
call fcn.00469660
push eax
call fcn.00453630
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0042001a
mov ebx, dword [ebp - 0x20]
jmp 0x429405

Function at 0x4296cc
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x49daed
call fcn.0048a2c9
and dword [ebp - 4], 0
push 0x4abc60
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00423a96
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
push dword [ebp + 8]
push 0x4abc64
call fcn.00450750
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042001a
call fcn.0048a3a1
ret
Function at 0x4297a4
Capabilities:
Set file attributes

Disassembly:
push 8
mov eax, 0x49daca
call fcn.0048a2c9
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push 0x4a94b0
call fcn.004211c4
push 3
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x42984f
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, eax
cmp ebx, esi
je 0x429837
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push ebx
mov edi, 0x457270
push edi
push 3
push dword [ebp - 0x10]
call esi
push ebx
push edi
push 0xe
push dword [ebp - 0x10]
call esi
push ebx
push edi
push 0x10
push dword [ebp - 0x10]
call esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x429844
push str.Cannot_commit_to_target_file__write_permission_required_
jmp 0x42983c
push str.Cannot_begin_to_update_target_file
mov ecx, dword [ebp + 8]
call fcn.0042149d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x42985c
mov ecx, dword [ebp + 8]
push str.Cannot_open_source_file
call fcn.0042149d
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov eax, dword [ebp + 8]
call fcn.0048a3a1
ret
Function at 0x42b6de
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fdc0
mov eax, dword fs:[0]
push eax
mov eax, 0x2a68
call fcn.0048ab40
mov eax, dword [0x4c3c64]
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
xor ebx, ebx
lea eax, [ebp - 0x2a74]
mov dword [ebp - 4], ebx
call fcn.004645a0
mov byte [ebp - 4], 1
mov dword [ebp - 0x2a5c], ebx
mov dword [ebp - 0x2a58], ebx
jmp 0x42b881
push ecx
mov eax, esp
mov dword [ebp - 0x2a50], esp
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push ecx
push str.ActiveApp.AppID_x__AppID_x
push eax
call fcn.00452370
add esp, 0x10
call fcn.004296cc
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.00485d30
add esp, 0xc
test eax, eax
jne 0x42b881
mov dword [ebp - 0x2a50], ebx
cmp dword [ebp - 0x2218], ebx
jbe 0x42b881
mov edi, dword [ebp - 0x2a50]
lea edi, [ebp + edi*4 - 0x2214]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x42b869
push esi
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x42b7c1
mov dword [ebp - 0x2a58], 1
push 0x4a94b0
lea ecx, [ebp - 0x2a54]
call fcn.004211c4
mov byte [ebp - 4], 2
push dword [edi]
lea esi, [ebp - 0x2a54]
call fcn.00450f30
pop ecx
push 0x5c
push ecx
mov eax, esi
mov dword [ebp - 0x2a64], esp
mov ecx, esp
push eax
call fcn.00421355
lea eax, [ebp - 0x2a60]
push eax
call fcn.00452880
add esp, 8
mov ecx, esp
mov dword [ebp - 0x2a64], esp
mov byte [ebp - 4], 3
push dword [eax]
push dword [edi]
push str.__Terminating_PID__d:__s
push ecx
call fcn.00452370
add esp, 0x10
call fcn.004296cc
pop ecx
mov ecx, dword [ebp - 0x2a60]
add ecx, 0xfffffff0
call fcn.0042001a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x42b84e
mov dword [ebp - 0x2a58], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2a54]
add ecx, 0xfffffff0
call fcn.0042001a
xor ebx, ebx
inc dword [ebp - 0x2a50]
mov eax, dword [ebp - 0x2a50]
cmp eax, dword [ebp - 0x2218]
jb 0x42b787
lea eax, [ebp - 0x2a4c]
push eax
lea eax, [ebp - 0x2a74]
push eax
lea esi, [ebp - 0x2a5c]
call fcn.00464430
test eax, eax
jne 0x42b735
lea esi, [ebp - 0x2a74]
call fcn.004645c0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042001a
mov eax, dword [ebp - 0x2a58]
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.00484f14
leave
ret
Function at 0x42c67e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4c86f4], eax
cmp dword [0x4c89c8], esi
jne 0x42c6b9
push esi
push esi
push dword [ebp + 8]
call fcn.00485eaa
pop ecx
push eax
push 0x42c390
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c89c8], eax
push 0xc8
push dword [0x4c86f4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
pop esi
pop ebp
jmp fcn.0042001a

Function at 0x42ccd9
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x8c], edi
je 0x42cd1b
mov ecx, esi
call fcn.0042d720
test eax, eax
je 0x42cd20
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x42d03d
push edi
push edi
call fcn.00488128
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x42cd1b
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0xb0]
cmp eax, edi
je 0x42cd1b
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb0]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
push edi
push dword [esi + 0x90]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x42cd1b
push edi
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x42cd1d

Function at 0x42cd80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.004795f3
mov eax, dword [eax + 0xc]
push 0x4ac590
push 0x3ed
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x42ce2d
call fcn.004795f3
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42ce2d
call fcn.004795f3
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42ce2d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42ce26
test ebx, ebx
je 0x42ce26
push edi
push eax
push ebx
call fcn.004862a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push edi
push esi
call fcn.0042c827
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x42ce2f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42dd23
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x49da86
call fcn.0048a2c9
and dword [ebp - 4], 0
push 0x4abc60
lea ecx, [ebp + 8]
call fcn.00423aeb
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004320c0
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.00488394
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x4ac940
push eax
call fcn.00422578
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0042274e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042001a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042001a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042001a
call fcn.0048a3a1
ret
Function at 0x432fb8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c3c64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x3b8
xor ebx, ebx
lea eax, [esi + 0x54]
push ebx
push eax
call fcn.00485e30
push 0x110
xor edi, edi
inc edi
lea eax, [ebp - 0x114]
push ebx
push eax
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], edi
mov dword [esi + 0x414], edi
mov dword [esi + 0x454], ebx
mov dword [esi + 0x458], edi
mov dword [esi + 0x418], ebx
mov dword [esi + 0x438], ebx
mov dword [esi + 0x450], ebx
mov dword [esi + 0x420], ebx
mov dword [esi + 0x45c], ebx
mov dword [ebp - 0x118], 0x114
call fcn.00485e30
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x43305b
cmp dword [ebp - 0x114], 5
jae 0x43305d
xor edi, edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x41c], edi
pop edi
xor ecx, ebp
pop ebx
call fcn.00484f14
leave
ret

Function at 0x4339d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [eax], edi
call fcn.00485eaa
add esp, 4
mov ebx, eax
lea edx, [eax + 2]
jmp 0x433a00
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x433a00
sub eax, edx
sar eax, 1
cmp eax, 5
jb 0x433a54
lea esi, [ebx + eax*2 - 0xa]
mov ecx, 0x4ae6c0
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433a46
cmp dx, di
je 0x433a42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433a46
add eax, 4
add ecx, 4
cmp dx, di
jne 0x433a20
xor eax, eax
jmp 0x433a4b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x433a54
xor edx, edx
mov word [esi], dx
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push ebx
push edx
call esi
cmp eax, 0xea
je 0x433a76
cmp eax, edi
jne 0x433ab6
mov eax, dword [ebp - 8]
push eax
call fcn.00485790
add esp, 4
lea ecx, [ebp - 8]
push ecx
mov edi, eax
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0xc]
push edx
push 0
push ebx
push eax
call esi
test eax, eax
jne 0x433aad
mov esi, dword [ebp - 8]
call fcn.004752a0
mov ecx, dword [ebp + 0xc]
not eax
mov dword [ecx], eax
mov byte [ebp - 1], 1
push edi
call fcn.004856b3
add esp, 4
push ebx
call fcn.004856b3
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450bc0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x28
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x450bee
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x450be6
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x20]
push edx
push 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0
push ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x450be6
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x14], 2
push 0
push 0
push ecx
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push 0
push eax
mov dword [ebp - 0x20], 1
call esi
call edi
test eax, eax
jne 0x450be6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x451030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00485e30
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x451125
cmp dword [ebp + 0x10], 0
je 0x4510a6
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x4510b5
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4510de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4510fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45111c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451144
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451163
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451182
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x452e10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [edi], 0
mov dword [ebx], 0
cmp esi, 0xffffffff
je 0x452ed7
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
jne 0x452e8b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452e83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x452e94
add eax, 2
push eax
call fcn.00485790
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [edi], eax
mov edx, dword [ebx]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x452ed0
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
je 0x452ed0
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov byte [edx + eax + 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452ef6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x452f00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d490
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4c3c64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push edi
push 3
push edi
push edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0x4a94b0
mov dword [ebp - 0x10], esi
call fcn.0048550b
add esp, 4
push eax
push 0x4a94b0
mov ecx, ebx
call fcn.004214bc
cmp esi, 0xffffffff
jne 0x452f99
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452f86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jne 0x452fc9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x45309e
push esi
call fcn.00485790
mov edx, dword [ebp - 0x10]
add esp, 4
push 0
lea ecx, [ebp - 0x14]
push ecx
push esi
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45307a
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov edx, edi
call fcn.00452b70
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov esi, dword [ebx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x453057
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45304b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45304b
push eax
call fcn.0042152d
mov dword [ebp - 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x453041
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x453057
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.004214bc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45307a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4530aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret