joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f12c6
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4f1310
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f1310
call fcn.004f0b7f
test eax, eax
je 0x4f1310
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00407f10
xor eax, eax
inc eax
jmp 0x4f1528
cmp dword [ebx + 4], 0x100
push edi
jne 0x4f151f
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4f140d
push 0x11
call edi
test ax, ax
jl 0x4f140d
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f140d
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4f1380
cmp eax, 0x20
jbe 0x4f140d
cmp eax, 0x24
jbe 0x4f1373
cmp eax, 0x26
je 0x4f1373
cmp eax, 0x28
jne 0x4f140d
call fcn.004f0b7f
test eax, eax
je 0x4f140d
mov ecx, esi
call fcn.00415d62
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004f0b7f
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4f13b5
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00407f10
jmp 0x4f151a
call fcn.00413ce8
test eax, eax
je 0x4f151a
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.00413d20
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4f13e3
xor edi, edi
jmp 0x4f13e6
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.00413ce8
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4f151a
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4f14e9
sub eax, 0x12
je 0x4f14c1
sub eax, 0xb
je 0x4f142f
dec eax
dec eax
jne 0x4f151f
push 0x12
call edi
test ax, ax
jl 0x4f151f
push 0x11
call edi
test ax, ax
jl 0x4f151f
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f151f
call fcn.004f0b7f
test eax, eax
jne 0x4f151a
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004f0af9
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041265b
test eax, eax
je 0x4f151a
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0041265b
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4f151a
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4f14d5
push 0
call fcn.004f0af9
mov ecx, esi
call fcn.004137b6
test eax, eax
je 0x4f151f
mov ecx, esi
call fcn.004137b6
jmp 0x4f1513
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041265b
test eax, eax
je 0x4f151f
push dword [esi + 0x20]
call edi
push eax
call fcn.0041265b
push 0
push esi
mov ecx, eax
call fcn.0040e9ec
mov ecx, eax
call fcn.00415d62
xor eax, eax
inc eax
jmp 0x4f1527
push ebx
mov ecx, esi
call fcn.004103c0
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4fe89e
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x5384e5
call fcn.0050e70c
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4fe977
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4fe977
cmp ebx, 0x43
je 0x4fe8e0
cmp ebx, 0x2d
jne 0x4fe977
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4fe977
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402780
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.0041421f
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00402890
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.0047d3bc
call fcn.0050e7e4
ret 4

Function at 0x506a33
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x506a78
test edi, edi
jl 0x506a78
cmp ax, 0x20
je 0x506a6d
cmp word [ebp + 8], 0x71
jne 0x506a78
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x50bda6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58b998]
jne 0x50bdb0
repz ret
jmp fcn.00514586
Function at 0x522758
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.00513eea
and dword [ebp - 4], 0
cmp dword [0x59315c], 0
mov ebx, eax
jne 0x522809
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5228ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5228ba
push eax
call fcn.00513e78
mov dword [esp], 0x566530
push edi
mov dword [0x59315c], eax
call esi
push eax
call fcn.00513e78
mov dword [esp], 0x56651c
push edi
mov dword [0x593160], eax
call esi
push eax
call fcn.00513e78
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x593164], eax
call esi
push eax
call fcn.00513e78
pop ecx
mov dword [0x59316c], eax
test eax, eax
je 0x522809
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00513e78
pop ecx
mov dword [0x593168], eax
mov eax, dword [0x593168]
cmp eax, ebx
je 0x522861
cmp dword [0x59316c], ebx
je 0x522861
push eax
call fcn.00513ef3
push dword [0x59316c]
mov esi, eax
call fcn.00513ef3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x522861
test edi, edi
je 0x522861
call esi
test eax, eax
je 0x522858
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x522858
test byte [ebp - 0xc], 1
jne 0x522861
or dword [ebp + 0x10], 0x200000
jmp 0x52289a
mov eax, dword [0x593160]
cmp eax, ebx
je 0x52289a
push eax
call fcn.00513ef3
pop ecx
test eax, eax
je 0x52289a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x52289a
mov eax, dword [0x593164]
cmp eax, ebx
je 0x52289a
push eax
call fcn.00513ef3
pop ecx
test eax, eax
je 0x52289a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x59315c]
call fcn.00513ef3
pop ecx
test eax, eax
je 0x5228ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5228bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52be56
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x53ac08
call fcn.0050e775
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x52bf68
cmp byte [esi + 0x42], bl
je 0x52bf68
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x52be92
xor al, al
jmp 0x52bf6a
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040c6f0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x52bf02
dec eax
je 0x52bf06
dec eax
dec eax
je 0x52bf64
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403bb0
mov al, bl
jmp 0x52bf6a
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x52bf46
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0050e1cf
add esp, 0x10
cmp edi, eax
jne 0x52bef0
cmp byte [esi + 0x42], 0
je 0x52bf64
test edi, edi
jne 0x52bea0
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040c470
jmp 0x52bea0
mov bl, 1
jmp 0x52bef2
mov al, 1
call fcn.0050e7f8
ret
Function at 0x52c0b2
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x53ac76
call fcn.0050e775
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x52c0dc
lea eax, [ebp + 8]
push eax
call fcn.0052b765
pop ecx
jmp 0x52c257
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x52c10a
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x52c10a
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x52c257
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x52c252
cmp dword [esi + 0x3c], ebx
jne 0x52c133
push eax
push edi
call fcn.0052b7d2
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x52c257
jmp 0x52c252
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.0040c6f0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x52c224
cmp eax, 1
jg 0x52c25f
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x52c1c9
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0050e1cf
add esp, 0x10
cmp edi, eax
jne 0x52c246
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x52c28f
test edi, edi
ja 0x52c1ef
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x52c24b
push 8
call fcn.0040c470
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040be90
mov ecx, eax
call fcn.0040bad0
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x52c180
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.00403bb0
mov eax, 0xffff
call fcn.0050e7f8
ret 4
cmp eax, 3
jne 0x52c246
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.0052b7d2
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x52c27e
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403bb0
mov ax, si
jmp 0x52c257
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403bb0
mov ax, word [ebp + 8]
jmp 0x52c257

Function at 0x5bf406
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xda5
mov ebx, edx
xor word [eax], dx
lea eax, [eax + 2]
xchg dh, dl
lea edx, [ebx + edx]
loop 0x5bf40e
pop ebx
ret
Function at 0x2a853e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x2a853e9b
pop dword [ebp - 0x24]
mov eax, 0x2a853e9b
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc9a8040b
sub dword [ebp - 0x34], 0x7b55bec0
mov dword [ebp - 0x30], 0x72dbd82c
sub dword [ebp - 0x30], 0x40a88be7
mov dword [ebp - 0x2c], 0x94e1c1d1
add dword [ebp - 0x2c], 0xb76a825d
mov dword [ebp - 0x28], 0x18c4dcb7
add dword [ebp - 0x28], 0xe73b2349
lea eax, [ebp - 0x34]
push eax
mov eax, 0xba09cc06
sub eax, 0x8f714aa2
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xd872c126
sub dword [ebp - 0x34], 0x640057d0
mov dword [ebp - 0x30], 0x4e0082e
sub dword [ebp - 0x30], 0xc373a6b9
mov dword [ebp - 0x2c], 0xed7d9af0
add dword [ebp - 0x2c], 0x75f1d17c
mov dword [ebp - 0x28], 0x835bc404
sub dword [ebp - 0x28], 0x835bc404
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x4b9a0
push 0
call eax
mov ecx, 0x4be6
xor edx, edx
add edx, eax
mov esi, 0x54dce713
add esi, 0xd5c582ed
add esi, dword [ebp - 0x24]
mov ebx, 0x60c3d207
add dword [ebp - 0xc], esi
mov edi, dword [esi]
xor dword [ebp - 0x14], ebx
xor edi, ebx
sub dword [ebp - 0x1c], esi
mov dword [edx], edi
sub dword [ebp - 8], 0xc4d851a9
add edx, 4
add esi, 0x9d0f8ea4
add esi, 0x62f07160
loop 0x2a853fa9
add eax, 0x76def851
sub eax, 0x76ddd5e6
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2a800000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x2a855722
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
call dword [sym.imp.kernel32.dll_GetTickCount]
mov esi, eax
shr esi, 4
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
sub eax, esi
cmp eax, 0xc
jbe 0x2a85572e
pop esi
ret
Function at 0x2a8563c2
Capabilities:
Check if file exists

Disassembly:
push 0x64
mov eax, 0x2a982cdf
call fcn.2a84a73f
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
jne 0x2a856503
push 0xffffffffffffffff
lea edi, [ebx + 0xc]
push 0x2a98b17c
mov ecx, edi
call fcn.2a853e8c
mov eax, dword [ebx]
push 0
push 0xffffffffffffffff
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x2a9884bc]
mov ecx, ebx
call esi
push eax
lea ecx, [ebp - 0x54]
call fcn.2a84a6ed
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.2a8c938e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.2a84cb09
lea ecx, [ebp - 0x4c]
call fcn.2a84cb2b
push edi
lea ecx, [ebp - 0x3c]
call fcn.2a851f08
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.2a8c9bbe
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
call fcn.2a8ca4aa
mov esi, eax
mov dword [ebp - 0x18], vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
pop ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 8]
xor edi, edi
mov byte [ebp - 4], 3
cmp dword [ecx], edi
jne 0x2a8564c8
lea ecx, [ebp - 0x3c]
call fcn.2a8c9bbe
push edi
push 0x40110000
push 3
lea ecx, [ebp - 0x24]
push ecx
push edi
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x2a8564c8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x2a85651f
cmp eax, 0xe7
jne 0x2a856509
lea ecx, [ebp - 0x3c]
call fcn.2a8c9bbe
push 0x4e20
push eax
call dword [sym.imp.kernel32.dll_WaitNamedPipeA]
test eax, eax
je 0x2a85652e
mov eax, dword [ebx + 8]
cmp dword [eax], edi
je 0x2a85646e
cmp dword [ebx + 4], 0xffffffff
je 0x2a8564e4
push edi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_SetNamedPipeHandleState]
mov byte [ebp - 4], 6
test esi, esi
je 0x2a8564f3
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
lea ecx, [ebp - 0x2c]
call fcn.2a84cb09
lea ecx, [ebp - 0x34]
call fcn.2a84cb2b
call fcn.2a84aa52
ret
push edi
push 0xffffffffffffffff
push str.Problem_Opening_channel
lea ecx, [ebp - 0x54]
call fcn.2a84a6ed
mov byte [ebp - 4], 4
jmp 0x2a856542
lea ecx, [ebp - 0x70]
call fcn.2a85615f
push 0x2a9f0450
jmp 0x2a856553
push edi
push 0xffffffffffffffff
push str.Problem_Opening_channel__all_pipe_instances_are_busy
lea ecx, [ebp - 0x54]
call fcn.2a84a6ed
mov byte [ebp - 4], 5
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.2a853e8c
push 0x2a9f04a8
lea eax, [ebp - 0x70]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a8567ed
Capabilities:
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x2a982d4d
call fcn.2a84a73f
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp esi, 0xffffffff
je 0x2a856959
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x2a856943
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x2a8568c5
cmp eax, 0x6d
je 0x2a8568f3
push ebx
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 4
jmp 0x2a85696d
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x2a8568d7
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x2a8568c5
cmp eax, 0xffffffff
je 0x2a856902
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x2a856888
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a85690b
sub eax, 1
jne 0x2a85683a
lea ecx, [ebp - 0x68]
call fcn.2a85607f
push 0x2a9f04c4
jmp 0x2a85697e
mov dword [ebp - 4], 2
jmp 0x2a85694a
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x2a856943
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x2a8568f3
push ebx
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 3
jmp 0x2a85696d
mov dword [ebp - 4], 5
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84aa52
ret 8
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x68]
call fcn.2a853e8c
push 0x2a9f04a8
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a856988
Capabilities:
Read file on windows

Disassembly:
push 0x58
mov eax, 0x2a982d88
call fcn.2a84a73f
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp esi, 0xffffffff
je 0x2a856a94
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x2a856a7e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x2a856a63
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a856a2b
sub eax, 1
jne 0x2a8569d5
lea ecx, [ebp - 0x64]
call fcn.2a85607f
push 0x2a9f04c4
jmp 0x2a856ab9
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x2a856a7e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x2a856a19
push ebx
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 2
jmp 0x2a856aa8
cmp eax, 0x6d
je 0x2a856a19
push ebx
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 3
jmp 0x2a856aa8
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84aa52
ret 8
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.2a853e8c
push 0x2a9f04a8
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a856af3
Capabilities:
Write file on windows

Disassembly:
push 0x74
mov eax, 0x2a982dbb
call fcn.2a84a73f
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x2a856c2d
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp esi, 0xffffffff
jne 0x2a856b6f
push ebx
push esi
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.2a853e8c
push 0x2a9f04a8
jmp 0x2a856c3a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x2a856bc4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x2a856bda
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a856bb1
sub eax, 1
jne 0x2a856b6f
jmp 0x2a856c2d
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84aa52
ret 8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe8
je 0x2a856c1e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe9
je 0x2a856c1e
push ebx
push 0xffffffffffffffff
push str.Connection_Closed
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x80]
call fcn.2a853e8c
push 0x2a9f04a8
lea eax, [ebp - 0x80]
jmp 0x2a856c3d
lea ecx, [ebp - 0x80]
call fcn.2a85607f
push 0x2a9f04c4
jmp 0x2a856c19
lea ecx, [ebp - 0x64]
call fcn.2a85607f
push 0x2a9f04c4
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3