joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050c1d
Capabilities:
Enumerate gui resources

Disassembly:
push 0x30
mov eax, 0x100ade5c
call fcn.100a5688
mov dword [ebp - 0x10], edx
mov esi, ecx
push 0x1001000c
lea ecx, [ebp - 0x14]
call fcn.1006f4e2
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x10010020
push 0x10010068
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push edi
mov dword [ebp - 4], ebx
call fcn.1002e26b
mov ecx, dword [ebp - 0x10]
call fcn.1006b69e
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
push 0x10050e60
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x3c]
call fcn.10050dff
push ecx
push dword [ebp - 0x10]
mov edx, esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.10050d48
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
jne 0x10050cc1
push 0x10010078
push 2
call dword [0x100d0614]
mov ecx, edi
call esi
jmp 0x10050d1b
push 0x100100a4
push 2
call dword [0x100d0614]
mov ecx, edi
call esi
call fcn.10050bb1
mov ecx, dword [edi]
push dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
push 2
call dword [0x100d0614]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], ebx
jle 0x10050d1b
push ebx
mov ecx, eax
call fcn.1006b680
mov ecx, dword [edi]
push dword [eax + 0x10]
mov esi, dword [ecx + 4]
mov ecx, esi
push 2
call dword [0x100d0614]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, dword [eax + 4]
jl 0x10050cf4
lea ecx, [ebp - 0x20]
call fcn.1006b69e
lea ecx, [ebp - 0x3c]
call fcn.1006b69e
lea ecx, [ebp - 0x2c]
call fcn.1002e2b5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
xor eax, eax
call fcn.100a5651
ret 4
Function at 0x10050e72
Capabilities:
Get graphical window text

Disassembly:
push 0x2c
mov eax, 0x100adeb2
call fcn.100a5688
mov eax, edx
mov dword [ebp - 0x1c], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x14]
je 0x10050fd8
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x10]
call fcn.1008e796
mov dword [ebp - 4], ebx
xor ecx, ecx
mov esi, dword [ebp - 0x10]
inc ecx
mov edx, 0x200
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10050ee0
push edx
lea ecx, [ebp - 0x10]
call fcn.1008e652
mov esi, dword [ebp - 0x10]
mov edx, 0x200
push edx
lea ecx, [ebp - 0x10]
call fcn.1008e713
cmp dword [esi - 4], 1
mov eax, dword [esi - 8]
mov dword [ebp - 0x24], eax
jle 0x10050f06
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.1008e57b
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.1008e388
push dword [edi + 0xc]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.10050912
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x10]
setne byte [ebp - 0x24]
push dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call fcn.10050b19
mov byte [ebp - 4], 2
cmp dword [edi + 4], ebx
jle 0x10050fb2
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x38]
push ebx
call fcn.1006b680
cmp edi, dword [eax]
mov edi, dword [ebp - 0x18]
je 0x10050f76
inc ebx
cmp ebx, dword [edi + 4]
jl 0x10050f5b
jmp 0x10050fb2
push ebx
mov ecx, edi
call fcn.1006b680
mov edx, eax
mov ecx, dword [edx]
sub ecx, dword [ebp - 0x38]
jne 0x10050fa6
cmp byte [edx + 0xc], cl
setne cl
xor eax, eax
cmp byte [ebp - 0x2c], al
setne al
sub ecx, eax
jne 0x10050fa6
push dword [ebp - 0x30]
lea ecx, [edx + 8]
call fcn.1006f221
mov ecx, eax
test ecx, ecx
jns 0x10050fbd
push ebx
mov ecx, edi
call fcn.1006b6d8
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.1006b72e
lea ecx, [ebp - 0x38]
call fcn.10050fe6
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.1008ebf5
lea ecx, [esi - 0x10]
call fcn.1008ebf5
xor eax, eax
inc eax
call fcn.100a5651
ret

Function at 0x10052d40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 8], eax
xor eax, eax
push eax
push eax
push esi
push 0x10052d00
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x10053fd2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push ebx
push esi
mov dword [ebp - 0xc], eax
mov esi, 0x80091007
add eax, 4
push eax
call fcn.1002d240
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100540be
push edi
push 0x100000
call fcn.1009170d
mov edi, eax
pop ecx
test edi, edi
je 0x100540b6
push 0
lea eax, [ebp - 4]
push eax
push 0x100000
jmp 0x10054060
cmp dword [ebp - 4], 0x100000
ja 0x100540af
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push edi
add eax, 4
push eax
call fcn.1002ddb0
mov ecx, 0x100000
cmp dword [ebp - 4], ecx
jne 0x10054072
push 0
lea eax, [ebp - 4]
push eax
push ecx
and dword [ebp - 4], 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10054036
jmp 0x100540af
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
push eax
call fcn.10054110
test al, al
je 0x100540af
cmp dword [ebp - 0x10], 0x20
jne 0x100540af
mov edx, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + ecx*4]
mov edx, dword [ebp - 8]
jne 0x100540af
inc ecx
cmp ecx, 8
jne 0x10054099
xor esi, esi
push edi
call fcn.10091716
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10055063
Capabilities:
Check if file exists

Disassembly:
push 0x28
mov eax, 0x100ae45f
call fcn.100a5688
mov edi, ecx
cmp dword [edi + 4], 0
je 0x10055280
push 0
push 0x100c9500
mov esi, 0x100c9520
push esi
push 0
push dword [edi + 4]
call fcn.100a698d
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x100550a2
mov al, 1
jmp 0x10055282
push 0
push 0x100c9424
push esi
push 0
push dword [edi + 4]
call fcn.100a698d
add esp, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100550d6
mov ecx, dword [eax]
push 0
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, dword [ebp - 0x10]
call esi
test al, al
je 0x1005509b
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.10042880
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1008ebf5
test esi, esi
je 0x1005524b
push 0
push 0x100c9400
push 0x100c9520
push 0
push dword [edi + 4]
call fcn.100a698d
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1005509b
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.10042880
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x100551ec
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.1003ebd3
mov esi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.1004289c
push dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x10]
push esi
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.10054caa
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
lea ecx, [ebp - 0x34]
call fcn.10054cf4
test eax, eax
jns 0x100551c4
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x10010db0
push 7
push dword [ebp + 0x14]
push eax
call fcn.1002e335
mov ecx, dword [ebp - 0x20]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
jmp 0x1005521d
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x10010e98
push 4
push dword [ebp + 0x14]
push eax
call fcn.1002e335
mov byte [ebp - 4], 0
add esp, 0x14
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
cmp byte [ebp + 0xc], 0
je 0x1005523b
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.10042880
mov edx, dword [ebp + 0x14]
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.1005528a
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.1008ebf5
cmp ebx, 0xffffffff
jne 0x10055222
mov eax, dword [ebp - 0x10]
jmp 0x10055278
mov esi, dword [edi + 4]
cmp dword [esi + 0xc], 0
je 0x10055234
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov byte [edi + 8], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1008ebf5
jmp 0x1005509b
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.10042880
mov dword [ebp - 4], 7
push dword [eax]
lea eax, [ebp - 0x18]
push 0x10010ee0
push 4
push dword [ebp + 0x14]
push eax
call fcn.1002e335
mov eax, dword [ebp - 0x1c]
add esp, 0x14
lea ecx, [eax - 0x10]
call fcn.1008ebf5
xor al, al
call fcn.100a5651
ret 0x10
Function at 0x1005587b
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x100aa229
call fcn.100a5688
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 0x18], 0
cmp byte [ebp + 0xc], 0
jne 0x100558a9
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.1008eb5d
add eax, 0x10
mov dword [edi], eax
jmp 0x10055915
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x10]
call fcn.1008e796
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push eax
call fcn.10042880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.1006e93f
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100558fe
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
jmp 0x10055900
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.1008eb5d
add eax, 0x10
lea ecx, [esi - 0x10]
mov dword [edi], eax
call fcn.1008ebf5
mov eax, edi
call fcn.100a5651
ret 0xc

Function at 0x1005597a
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x100ae531
call fcn.100a5688
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.1006f4e2
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x100559d8
lea ecx, [ebp - 0x14]
call fcn.10030831
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.1006f350
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.1006e97f
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100559ff
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x10010f90
push ebx
push dword [esi + 4]
push eax
call fcn.1002e335
add esp, 0x14
jmp 0x10055a4e
push dword [ebp - 0x10]
mov ecx, esi
call fcn.10055a6c
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
jmp 0x10055a3d
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x10055a29
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
call fcn.100a5651
ret 4
Function at 0x1005a3b6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
call fcn.10069080
mov ecx, esi
call fcn.1005a081
test eax, eax
jne 0x1005a471
call fcn.10059cb6
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], eax
push 0x10012ca8
call fcn.1006f4e2
mov ecx, esi
call fcn.1005a8be
push dword [ebp + 0xc]
mov ecx, esi
mov ebx, eax
push edi
call fcn.1005a82a
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1005a435
cmp dword [ebp + 0x10], eax
je 0x1005a435
mov eax, dword [ebp + 0xc]
test byte [eax], 2
je 0x1005a439
push edi
mov ecx, esi
call fcn.1005a513
test al, al
je 0x1005a439
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.1005a82a
mov edi, eax
jmp 0x1005a43d
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x1005a455
push 0
push ebx
mov ecx, esi
call fcn.1005a93c
push 0x10
push ebx
call fcn.10090ef9
pop ecx
pop ecx
call fcn.10059c32
mov esi, dword [eax + 4]
test esi, esi
je 0x1005a46f
push dword [esp + 0x14]
mov ecx, esi
call dword [0x100d0614]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1005adb2
Capabilities:
Query service status

Disassembly:
push 0x34
mov eax, 0x100aee4a
call fcn.100a56bc
mov edi, ecx
mov dword [ebp - 0x40], edi
xor ebx, ebx
call fcn.1008e9f3
push eax
lea ecx, [ebp - 0x38]
call fcn.1008e796
push 5
pop esi
push esi
push 0x1000af44
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x1005ae59
push 4
push 0x10013340
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edx, eax
test edx, edx
je 0x1005ae4b
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1005ae31
cmp dword [ebp - 0x30], 1
je 0x1005ae86
test byte [ebp - 0x2c], 1
jne 0x1005ae86
mov bl, 1
jmp 0x1005ae86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push 0x10013358
push eax
call fcn.1008e3f3
mov edi, dword [ebp - 0x40]
jmp 0x1005ae6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100133a0
jmp 0x1005ae65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100133d8
lea eax, [ebp - 0x38]
push eax
call fcn.1008e3f3
mov eax, dword [edi]
add esp, 0xc
push dword [ebp - 0x38]
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.1008ebf5
mov al, bl
call fcn.100a5666
ret
Function at 0x1005ae99
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x100aee7f
call fcn.100a5688
mov dword [ebp - 0x18], edx
mov edi, ecx
cmp byte [0x100cfd78], 0
jne 0x1005b07a
call fcn.1005adb2
test al, al
je 0x1005b07a
push ecx
mov ecx, esp
push 0x100216b4
call fcn.1006f4e2
mov ebx, dword [ebp + 8]
push 0xd
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100d0614]
mov ecx, ebx
call esi
push 0x3c
pop esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002e7ee
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.1002ebc5
test al, al
jne 0x1005af14
mov esi, 0x258
mov dword [ebp - 0x10], esi
xor ebx, ebx
inc ebx
push esi
push 0x10013418
push 2
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.1002e335
add esp, 0x14
and dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x100d0614]
mov ecx, dword [ebp + 8]
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx + 4]
test al, al
jne 0x1005b050
mov ecx, edi
call fcn.1005adb2
test al, al
je 0x1005b036
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x10]
jl 0x1005af30
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100d0614]
mov ecx, dword [ebp + 0xc]
call esi
push 2
pop esi
cmp eax, esi
je 0x1005afdc
cmp eax, 5
mov eax, dword [edi]
je 0x1005afbc
push 0x100136f8
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov esi, ebx
mov dword [ebp - 0x10], esi
jmp 0x1005af17
push 0x10013620
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov byte [0x100cfd78], bl
jmp 0x1005b06e
push 0x10013554
lea ecx, [ebp - 0x14]
call fcn.1006f4e2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], bl
call fcn.1006cf67
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008ebf5
mov eax, dword [edi]
push 0x10013568
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100d0614]
mov ecx, ebx
call esi
xor eax, eax
jmp 0x1005b06c
mov eax, dword [edi]
push 0x10013524
push 2
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
jmp 0x1005b06a
mov eax, dword [edi]
push 0x100134c0
push 2
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100d0614]
mov ecx, edi
call esi
xor bl, bl
mov al, bl
mov bl, al
lea ecx, [ebp - 0x30]
call fcn.1002eb70
mov al, bl
jmp 0x1005b07c
mov al, 1
call fcn.100a5651
ret 0xc
Function at 0x1005b2fd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1005b3a1
xor eax, eax
cmp dword [esi + 0x18], eax
jne 0x1005b3a1
push edi
push eax
push eax
push 1
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x1005b337
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1005b39c
push ebx
push 0x10
call fcn.1009170d
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1005b34b
push 0xe
pop edi
jmp 0x1005b39b
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], esi
mov dword [ebx + 0xc], eax
cmp dword [esi + 0x14], edi
je 0x1005b36d
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push ebx
push 0x1005b3b0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x1005b39b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x18], 0
pop ebx
mov eax, edi
pop edi
jmp 0x1005b3a6
mov eax, 0x10dd
pop esi
pop ebp
ret 0xc

Function at 0x1005b639
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebx, [edi + 0x1c]
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005b6dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x1005b6c2
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
test esi, esi
jne 0x1005b6ae
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1005b6dc
jmp 0x1005b6b3
cmp esi, 0xffffffff
jne 0x1005b6bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1005b6c2
mov esi, 0x3e3
test esi, esi
je 0x1005b6dc
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov byte [edi + 0x39], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005b79c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0xc], edi
je 0x1005b7bd
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordIsNull]
lea edi, [eax + 1]
push 0xc
xor ecx, ecx
xor ebx, ebx
mov word [ebp - 4], cx
pop eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x1005b805
push eax
pop esi
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x1005b7f7
mov eax, dword [ebp - 0xc]
lea esi, [esi + eax*2]
add esi, 2
inc ebx
cmp ebx, edi
jb 0x1005b7d1
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
call fcn.1005ba2e
test eax, eax
jne 0x1005b819
push 0xe
pop eax
jmp 0x1005b90e
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0xc]
and dword [ebp - 8], 0
mov dword [eax], edx
mov ecx, dword [esi + 0x30]
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x30]
mov dword [eax + 8], edi
mov eax, dword [esi + 0x30]
lea ebx, [eax + 0xc]
add eax, edx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x1005b8a6
mov esi, dword [ebp - 8]
cmp ebx, eax
jae 0x1005b8a3
xor eax, eax
mov word [ebx], ax
and dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x1005b889
mov eax, dword [ebp - 0x10]
sub eax, ebx
sar eax, 1
cmp dword [ebp - 8], eax
jge 0x1005b889
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 8]
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x10]
add ebx, 2
inc esi
cmp esi, edi
jb 0x1005b846
mov esi, dword [ebp - 0x14]
push dword [esi + 0x2c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebx, [esi + 0x1c]
push ebx
push edi
push dword [ebp - 0xc]
push dword [esi + 0x30]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1005b90c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x1005b8f7
push 1
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1005b90c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x1005b90c
push dword [esi + 0x10]
mov byte [esi + 0x39], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8