joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426dc5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43ae68
cmp edx, dword [eax]
je 0x426de7
add eax, 8
inc ecx
cmp eax, 0x43aef8
jl 0x426dd8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43ae68]
jne 0x426f15
mov eax, dword [0x43c128]
cmp eax, 1
je 0x426eef
test eax, eax
jne 0x426e18
cmp dword [0x438804], 1
je 0x426eef
cmp edx, 0xfc
je 0x426f15
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x426e4f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00427ff0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004258f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x426e92
lea eax, [ebp - 0x1a4]
push eax
call fcn.004258f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42cf34
push edi
call fcn.00421ba0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00427ff0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00428000
lea eax, [ebp - 0xa0]
push 0x42cf14
push eax
call fcn.00428000
push dword [esi + 0x43ae6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00428000
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00428769
add esp, 0x2c
pop edi
jmp 0x426f15
lea eax, [ebp + 8]
lea esi, [esi + 0x43ae6c]
push 0
push eax
push dword [esi]
call fcn.004258f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0xdbbe8c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdbbe96
pushal
call 0xdbbe9c
pop ebp
sub ebp, 0x10
sub ebp, 0x9bbe8c
jmp 0xdbbeb2
mov eax, 0x9bbe8c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0x7eeaf0de
lds eax, [0xdeba0000]
invalid
xor byte [eax], dl
inc eax
dec ecx
jne 0xdbbec9
jmp 0xdbbedc
push ebp
adc edx, dword [ebp + 0x57]
loop 0xdbbec0
invalid
Function at 0x417b10
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x6fd030
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x417b9c
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x417b9c
cmp ebx, 0x15f90
jl 0x417b93
cmp ebx, 0x1d4c0
jge 0x417b70
mov eax, 0x32
jmp 0x417b95
cmp ebx, 0x2bf20
jge 0x417b7f
mov eax, 0x64
jmp 0x417b95
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x417b95
mov eax, 0xfa
jmp 0x417b95
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x417bb0
inc ebx
cmp ebx, 0x57e40
jl 0x417b28
mov eax, dword [ebp - 4]
test eax, eax
je 0x417bca
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0042d880
add esp, 4
mov eax, dword [0x6fd034]
test eax, eax
jne 0x417c00
cmp dword [0x4fe340], 1
je 0x417c84
xor ebx, ebx
xor esi, esi
cmp dword [0x6fd02c], 0
je 0x417c44
mov dword [0x6fd034], 1
cmp dword [0x4fe340], 1
je 0x417c2f
mov dword [0x6fd030], 0
push dword [0x6fd028]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417ca2
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.0046ecb0
push ebx
push 0x16
call fcn.0046ecb0
add esp, 0x10
jmp 0x417c00
mov dword [0x6fd02c], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6fd028], eax
cmp eax, 0xffffffff
jne 0x417c68
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x417bed
push 0x417aa0
call fcn.0046f6d0
push 0x417a60
call fcn.0046f6d0
add esp, 8
jmp 0x417bed
push 1
push 2
call fcn.0046ecb0
mov esi, eax
push 1
push 0x16
call fcn.0046ecb0
add esp, 0x10
mov ebx, eax
jmp 0x417be4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.004267d0
add esp, 0xc
test eax, eax
je 0x417ccc
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4fe29c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4fe298]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4fe294]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4fe290]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x417cd4
push dword [ebp - 0x10]
push dword [0x6fd028]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x417c1e
Function at 0x417d20
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x6fd030
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x417dac
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x417dac
cmp ebx, 0x15f90
jl 0x417da3
cmp ebx, 0x1d4c0
jge 0x417d80
mov eax, 0x32
jmp 0x417da5
cmp ebx, 0x2bf20
jge 0x417d8f
mov eax, 0x64
jmp 0x417da5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x417da5
mov eax, 0xfa
jmp 0x417da5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x417dc0
inc ebx
cmp ebx, 0x57e40
jl 0x417d38
mov eax, dword [ebp - 4]
test eax, eax
je 0x417dda
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0042d880
add esp, 4
mov eax, dword [0x6fd034]
test eax, eax
jne 0x417e10
cmp dword [0x4fe340], 1
je 0x417ea9
xor ebx, ebx
xor esi, esi
cmp dword [0x6fd02c], 0
je 0x417e66
mov dword [0x6fd034], 1
cmp dword [0x4fe340], 1
je 0x417e51
mov dword [0x6fd030], 0
push dword [0x6fd028]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x417ee7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x4fe340], 1
je 0x417ec7
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.0046ecb0
push ebx
push 0x16
call fcn.0046ecb0
add esp, 0x10
jmp 0x417e10
mov dword [0x6fd02c], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6fd028], eax
cmp eax, 0xffffffff
jne 0x417e8d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x417dfd
push 0x417aa0
call fcn.0046f6d0
push 0x417a60
call fcn.0046f6d0
add esp, 8
jmp 0x417dfd
push 1
push 2
call fcn.0046ecb0
mov esi, eax
push 1
push 0x16
call fcn.0046ecb0
add esp, 0x10
mov ebx, eax
jmp 0x417df4
push 1
push 2
call fcn.0046ecb0
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.0046ecb0
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x417e45
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.004267d0
add esp, 0xc
test eax, eax
je 0x417f0e
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4fe29c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4fe298]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4fe294]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4fe290]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x417f16
push dword [ebp - 0x10]
push dword [0x6fd028]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x10]
jmp 0x417e33
Function at 0x422c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x422c25
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x422c53
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x422cc8
mov ecx, 1
jmp 0x422cc8
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x422c63
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x422c92
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x422cc8
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x422ca4
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x422cb5
mov dword [ebp - 4], esi
test esi, esi
jne 0x422cb9
jmp 0x422cbd
test esi, esi
je 0x422cbd
test eax, eax
ja 0x422c6b
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x422d28
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x428550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x428575
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x4285a3
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x428618
mov ecx, 1
jmp 0x428618
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x4285b3
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4285e2
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x428618
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x4285f4
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x428605
mov dword [ebp - 4], esi
test esi, esi
jne 0x428609
jmp 0x42860d
test esi, esi
je 0x42860d
test eax, eax
ja 0x4285bb
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x428678
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x42a6c0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x42d6b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x7c]
test esi, esi
mov dword [ebp - 0xc], edi
je 0x42d86c
mov edx, dword [0x4fe340]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x701f68]
jge 0x42d6ff
mov eax, dword [ebx]
test eax, eax
jne 0x42d740
mov dword [edi + 0x701f68], 1
jmp 0x42d740
push ebx
call fcn.00417fb0
add esp, 4
test eax, eax
jne 0x42d73a
cmp dword [edi + 0x701f64], 0
je 0x42d84c
mov dword [edi + 0x701f68], 0
push 0xffffffffffffffff
push dword [edi + 0x701f64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.00417fb0
add esp, 4
mov edx, dword [0x4fe340]
cmp edx, 1
je 0x42d838
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x42d7af
mov eax, dword [0x4fe340]
cmp eax, 1
je 0x42d794
cmp eax, 2
jge 0x42d76f
mov dword [edi + 0x701f68], 0
jmp 0x42d785
mov dword [edi + 0x701f68], 0
push dword [edi + 0x701f64]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x701f78]
push dword [edi + 0x701f74]
call fcn.00417f90
add esp, 8
mov eax, dword [0x4fe340]
jmp 0x42d75e
mov edx, dword [esi]
test edx, edx
je 0x42d7bb
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x42d7c6
mov dword [eax], edx
jmp 0x42d7cc
mov dword [edi + 0x701f60], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x4fe340]
cmp eax, 1
je 0x42d81d
cmp eax, 2
jge 0x42d7f1
mov dword [edi + 0x701f68], 0
jmp 0x42d807
mov dword [edi + 0x701f68], 0
push dword [edi + 0x701f64]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00426890
push esi
call fcn.00426890
add esp, 8
jmp 0x42d785
push dword [edi + 0x701f78]
push dword [edi + 0x701f74]
call fcn.00417f90
add esp, 8
mov eax, dword [0x4fe340]
jmp 0x42d7e0
lea eax, [edi + 0x701f74]
push eax
call fcn.00417f60
add esp, 4
jmp 0x42d749
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x701f64], eax
mov dword [edi + 0x701f68], 0
jmp 0x42d723
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x42d880
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.0043b240
mov ebx, dword [ebp + 8]
cmp dword [0x707860], 0
jne 0x42d8a7
test ebx, ebx
je 0x42d89c
mov eax, dword [ebx]
jmp 0x42d89e
xor eax, eax
push eax
call fcn.00472460
add esp, 4
test ebx, ebx
je 0x42d8af
mov eax, dword [ebx]
jmp 0x42d8b1
xor eax, eax
push eax
call fcn.004c34f0
add esp, 4
jmp 0x42d894
Function at 0x436c30
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x441280
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]

Function at 0x44128c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov edx, eax
mov dword [ecx], 0
cmp dword [0x707860], 0
je 0x441363
cmp dword [ebp + 0x20], 2
je 0x4412c3
cmp dword [ebp + 0x20], 1
jne 0x4412d2
mov eax, 0xffffffff
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x4412e2
cmp dword [ebp + 0x20], 0xfffffffa
je 0x441428
cmp dword [ebp + 0x20], 0
je 0x441434
xor ecx, ecx
xor edi, edi
cmp dword [ebp + 0x18], 0
je 0x441317
cmp dword [ebp + 0x1c], 0
je 0x441317
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.004c32a0
push edi
call fcn.004c3410
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x441363
push edi
push esi
push ebx
call fcn.004c3340
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp esi, 0xffffffff
mov dword [eax], esi
je 0x441458
push 0
push edi
push 2
push 0x4dd0dc
call fcn.004c3300
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov eax, 1
mov byte [esi + ebx], 0xa
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
inc dword [edx]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [edi], 0
je 0x44138b
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x441390
mov edi, 0x20000
cmp esi, edi
jbe 0x441404
cmp dword [ebp + 0x20], 0
je 0x441404
test ecx, ecx
je 0x4413a8
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x4413ad
mov edi, 0x20000
mov dword [ebp - 0x10], edx
push 0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4413f2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
add ebx, edx
sub esi, edx
add dword [ecx], edx
cmp dword [ebp + 0x24], 0
je 0x4413e7
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 0x13c]
test edx, edx
jne 0x4413ec
mov edx, 0x20000
cmp esi, edx
ja 0x4413f2
mov edi, esi
test esi, esi
je 0x44141b
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x44141b
test eax, eax
jne 0x4413b0
jmp 0x44141b
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, edx
mov ecx, 1
jmp 0x4412f6
mov dword [ebp - 0x10], edx
call fcn.004c3530
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x707860], 0
je 0x44131b
mov ecx, 1
jmp 0x4412f0
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x445120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x445145
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x445173
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x4451e8
mov ecx, 1
jmp 0x4451e8
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x445183
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4451b2
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x4451e8
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x4451c4
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x4451d5
mov dword [ebp - 4], esi
test esi, esi
jne 0x4451d9
jmp 0x4451dd
test esi, esi
je 0x4451dd
test eax, eax
ja 0x44518b
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x445248
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x48c130
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5000d0]
jne 0x48c13a
repz ret
jmp fcn.0049e3b0
Function at 0x40d590
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b1c40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x10], eax
mov word [esp + 0x4c], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x68], 0
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
or edi, 0xffffffff
lea ecx, [esp + 8]
push edi
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
test esi, esi
je 0x40d684
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
lea ecx, [esp + 8]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x68], edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x68], edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x40e110
Capabilities:
Read clipboard data

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x40]
mov ecx, esi
call fcn.00427a60
test eax, eax
je 0x40e169
mov ecx, esi
call fcn.00427370
mov ecx, eax
call sub.ConnectDialog13.dll_public:_bool___thiscall_SessionConfig::GetShiftForcesLocalMouse_void_const
mov ebx, dword [esp + 0x10]
test al, al
je 0x40e13e
test bl, 4
jne 0x40e169
test bl, 4
je 0x40e14f
mov ecx, esi
call fcn.00427a60
cmp eax, 2
jne 0x40e169
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
push 1
push eax
push ecx
mov ecx, edi
call fcn.0040e990
pop edi
pop esi
pop ebx
ret 0xc
mov edx, dword [0x58f734]
mov eax, dword [edx + 0x26c]
test eax, eax
je 0x40e19f
mov ecx, edi
call fcn.0043ec60
test al, al
je 0x40e1a5
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
je 0x40e19f
mov ecx, edi
call fcn.0043f950
pop edi
pop esi
pop ebx
ret 0xc
push str.OpenClipboard_
call fcn.0046d7a0
add esp, 4
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x40e990
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
cdq
idiv dword [esi + 0x108]
mov ecx, dword [esi + 0x11c]
xor ebx, ebx
push edi
mov edi, dword [esi + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
cdq
idiv dword [esi + 0xf8]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x28]
test al, 4
je 0x40e9d0
mov ebx, 1
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x40e9e0
or ebx, 2
test byte [esp + 0x28], 8
je 0x40e9ea
or ebx, 4
mov ecx, edi
mov byte [esp + 0x10], 0x1b
mov byte [esp + 0x11], 0x5b
mov byte [esp + 0x12], 0x4d
call fcn.00427a60
cmp eax, 1
jne 0x40ea11
mov al, byte [esp + 0x24]
add al, 0x20
mov byte [esp + 0x13], al
jmp 0x40ea21
mov al, byte [esp + 0x24]
add bl, 8
shl bl, 2
add bl, al
mov byte [esp + 0x13], bl
mov al, byte [esp + 0x1c]
mov ecx, esi
add al, 0x21
mov byte [esp + 0x14], al
mov al, byte [esp + 0xc]
add al, 0x21
mov byte [esp + 0x15], al
call fcn.00445eb0
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push 6
push ecx
mov ecx, eax
call dword [edx + 0x2c]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10