joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9a80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e050
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x4a9bc7
cmp dword [edi + 0x14], 0
je 0x4a9bc7
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
call fcn.0043b790
mov esi, esp
test esi, esi
je 0x4a9bc7
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x14]
mov ecx, esi
mov eax, dword [eax + 0x7c0]
lea edx, [ecx + 2]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9b10
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00408dd0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test eax, eax
je 0x4a9b56
mov esi, ecx
cmp word [esi], 0xa
je 0x4a9bea
add esi, 2
sub eax, 1
jne 0x4a9b44
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x188]
mov esi, dword [edi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x4a9ba2
push 0
push 0
push 0xb0
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
and eax, 0xf
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x4a9ba2
push ebx
push ebx
push 0xb1
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x14]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push dword [ebp - 0x44]
call dword [eax + 0x20]
mov ecx, eax
call fcn.00450d80
lea ecx, [ebp - 0x28]
call fcn.00405280
xor eax, eax
lea esp, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b31f
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4a9b56
sub esi, ecx
sar esi, 1
cmp esi, 0xffffffff
je 0x4a9b56
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004896e0
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4a9c1c
mov edx, dword [edx]
mov ecx, dword [edi + 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x188]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00405280
push esi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004896e0
cmp dword [eax + 0x14], 8
jb 0x4a9c4b
mov eax, dword [eax]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x40]
call fcn.00405280
jmp 0x4a9ba2
Function at 0x4aa600
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0x17
jne 0x4aa62d
movzx eax, word [esi + 0x554]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.USER32.dll_SetCursor]
cmp eax, 0xd
jne 0x4aa67c
mov eax, dword [esi]
call dword [eax + 0x34]
push dword [edi + 0x10]
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4aa6dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x560], xmm0
mov eax, dword [edi + 0xc]
mov dword [esi + 0x558], eax
mov eax, dword [edi + 0x10]
pop edi
mov dword [esi + 0x55c], eax
mov byte [esi + 0x570], 1
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x4aa69d
mov ecx, dword [esi + 0x550]
mov byte [esi + 0x570], 0
test ecx, ecx
je 0x4aa6dd
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4aa6d7
cmp dword [esi + 0x550], 0
je 0x4aa6dd
cmp byte [esi + 0x570], 0
je 0x4aa6dd
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4aa6dd
mov ecx, dword [esi + 0x550]
lea eax, [edi + 0xc]
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
pop ebp
ret 4
push edi
call fcn.004537f0
pop edi
pop esi
pop ebp
ret 4

Function at 0x4aa6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi]
cmp eax, 0xd
jne 0x4aa73f
mov eax, dword [esi]
push ebx
call dword [eax + 0x34]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4aa738
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x554], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov dword [esi + 0x558], eax
mov byte [esi + 0x55c], 1
pop ebx
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xe
jne 0x4aa760
mov ecx, dword [esi + 0x550]
mov byte [esi + 0x55c], 0
test ecx, ecx
je 0x4aa739
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
jne 0x4aa792
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4aa792
mov ecx, dword [esi + 0x550]
test ecx, ecx
je 0x4aa739
cmp byte [esi + 0x55c], 0
je 0x4aa739
mov edx, dword [ecx]
lea eax, [edi + 0xc]
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [edx]
push edi
mov ecx, esi
call fcn.004537f0
pop edi
pop esi
pop ebp
ret 4
Function at 0x4afec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e31b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4b0001
cmp eax, 0x104
ja 0x4b0001
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x52aadc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4affb2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aff90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00408dd0
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x438]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0x438], ax
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
call fcn.00405280
jmp 0x4b0026
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b31f
mov esp, ebp
pop ebp
ret
Function at 0x4b0410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e358
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x551580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x4b0457
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 1
jbe 0x4b0493
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4b0b60
push 0
push 0
call fcn.004d8b59
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.00454310
mov ecx, esi
call fcn.004b0820
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5e20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x551580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0043b047
mov edi, eax
add esp, 4
test edi, edi
je 0x4b5ec4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043683d
add esp, 4
mov dword [edi + 4], eax
jmp 0x4b5ec6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00417420
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4b5f27
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4b5f27
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x4b5f4a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4b5f6d
cmp byte [ebp + 0xc], 0
je 0x4b5f59
push esi
call fcn.00436cf8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4b5f79
mov esi, str.ios_base::badbit_set
jmp 0x4b5f89
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004107d0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.0040c020
push 0x543a34
lea eax, [ebp - 0x30]
push eax
call fcn.004cee80
int3
Function at 0x4b8b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ec01
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00406c40
mov ecx, eax
test ecx, ecx
je 0x4b8cf4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b8cb5
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b8ca7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b8cb5
add eax, 0x10
push 0x55970e
push eax
mov dword [ebp - 0x20], eax
call fcn.0043b474
mov esi, eax
add esp, 8
test esi, esi
je 0x4b8cb5
push dword [ebp - 0x20]
push 0
push esi
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4b8c6a
push esi
call fcn.0043b335
add esp, 4
jmp 0x4b8cb5
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b8c70
sub ecx, edx
sar ecx, 1
je 0x4b8c9e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b8c86
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040e690
push esi
call fcn.0043b335
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b8cb5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b8cd4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b31f
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00405910
int3
Function at 0x4b8d00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x551580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b8d24
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x4b8d86
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x4b8d86
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4b8da1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b31f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4badb5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4f09b5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f0675
Function at 0x4fe310
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510360
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x551580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x4fe459
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4fe459
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4fe459
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4fe459
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x4fe445
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4fe43e
cmp dword [ebp - 0x1c], ebx
jne 0x4fe43e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x4fe3dd
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4fe3d7
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x4fe3e9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040f820
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.0041cbc0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x4fe43e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
add esp, 0x7a
pop edi
pop esi
stc
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
xchg edi, eax
in al, dx
js 0x401e9d
mov esi, dword [ebp + 0xc]
push esi
lea ebx, [eax + ecx*4]
push 0x29
and eax, 0xa189e856
add byte [eax], al
mov ecx, dword [ebp + 8]
mov edx, dword [0x9c0c8]
push eax
push ecx
fstp dword [eax + 0x3ab66840]
arpl bp, bx
cmp al, 0xff
and byte [ecx], dh
rol dword [eax], 1
mov eax, dword [0xa4102ac]
sub esi, 0x14
test eax, eax
je 0x401e8c
push eax
push 0x8725a354
invalid
push esi
call dword [sym.imp.MSVCRT.dll_exit]
retf
jo 0x401e2f
nop

Function at 0x4046fb
Capabilities:
Encode data using xor

Disassembly:
call 0x404636
xor ecx, ecx
sub cx, 0xff7a
call 0x4046fb
rcr byte [esi - 0x7f], 0x76
push cs
sbb byte [ecx - 0x19], bl
cmpsb byte [esi], byte es:[edi]
xor dword [esi + 0xe], 0xa6e75918
sub esi, 0xfffffffc
loop 0x4046fe
jp 0x4046c9
das
invalid

Function at 0x408370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov cl, byte [ebp - 0x4e]
push ebx
push esi
mov esi, dword [ebp + 0x20]
dec esp
mov edi, dword [ebp + 0x18]
cmp al, 0x66
jne 0x4083a2
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp - 0x5c]
push eax
mov dh, 0x45
adc byte [ebp - 0x74aee7e5], cl
dec ebp
or al, 0xaa
push edi
push eax
call 0x4243f1
inc esi
jmp 0x4083a7
mov eax, dword [ebp - 0x6c]
lea esp, [eax - 0x5c]
movsb byte es:[edi], byte [esi]
push edx
lea ebp, [ecx + 0x258b5018]
adc byte [ebp - 0x22aefea9], cl
dec ebp
or al, 0x52
push eax
push ecx
call 0xc407ec0
mov edx, dword [0x40c1f7]
mov ebx, eax
add esp, 0x18
dec ecx
das
add dword [ecx + 0x15], edx
xchg esi, eax
salc
rol byte [ebx], 1
push esi
add byte [eax], al
inc byte [ebx]
push eax
sub dword [sym.imp.MSVCRT.dll__isctype], edx
add esp, 8
jmp 0x4083f9
test eax, eax
je 0x408434
mov edi, ebx
or ecx, 7
xor eax, eax
mov esp, dword [ebx + 0x24]
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x20]
mov esi, ebx
not ecx
test eax, 0x1389f88b
inc ecx
mov edx, ecx
shr ecx, 2
xlatb
and bh, byte [edi]
and ecx, 0x1a
push edi
mov ebp, dword [0x5b5e2b1c]
and bl, byte [edx]
add byte [eax], al
add byte [eax], al
mov ebp, dword [ebp + 0x11]
ret
mov dl, byte [ebp + 8]
invalid
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x438ca5
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
add ebx, 0x7ced625c
dec edi
call fcn.00438cdf
mov edi, 0x57dc6840
add edi, 0x36a5ed87
xor dword [esi], edx
add edi, edi
dec edi
dec ebx
inc esi
sub ebx, 1
cmp esi, eax
jne fcn.00438ca5
or ebx, ebx
sub edi, 0x9737b5d4
ret
Function at 0x401080
Capabilities:
Create directory
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
cmp word [eax], 0
je 0x4011ea
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x4010a0
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
sub esp, 0xc
xor eax, eax
lea esi, [esi]
lea edi, [edi]
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test edx, edx
jne 0x4010e0
cmp word [esi], 0
je 0x401136
lea esi, [esi]
lea edi, [edi]
mov eax, esi
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x401110
mov edx, eax
sub edx, esi
cmp esi, eax
je 0x401136
lea eax, [esi + edx - 2]
cmp word [eax], 0x5c
jne 0x401136
mov word [eax], 0
cmp word [esi], 0
jne 0x401100
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], eax
jmp 0x40115d
mov word [edi], 0
mov eax, esi
call sym._XCOPY_CreateDirectory
test eax, eax
je 0x4011b7
mov word [edi], 0x5c
mov dword [esp], esi
xor ecx, ecx
mov dword [esp + 4], ecx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
mov ebx, eax
jne 0x4011e3
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
cmp eax, 0xb7
je 0x4011e3
cmp eax, 3
jne 0x4011b7
mov dword [esp], esi
mov eax, 0x5c
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
mov edi, eax
jne 0x401148
mov dword [esp], esi
mov edi, 0x2f
mov dword [esp + 4], edi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
mov edi, eax
jne 0x401148
mov dword [esp + 8], esi
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 1
jmp 0x4011b7
mov eax, 2
jmp 0x4010ae
Function at 0x406770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x4067e0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x4067d8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40f504], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x40679d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret