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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.10019a30
mov edi, eax
mov ecx, dword [edi + 0x90]
cmp dword [ecx + 0x34], 0
jle 0x1003a5b1
cmp dword [ecx + 0x14], 0
jne 0x1003a5c8
cmp dword [ecx + 0x18], 0
jne 0x1003a5c8
push 0xd9
push str.D:Dev_Arc2MGRModingcppRisingDevMenu_srcimguiimgui_impl_win32.cpp
push str.io.Fonts__IsBuilt_____Font_atlas_not_built__It_is_generally_built_by_the_renderer_back_end._Missing_call_to_renderer__NewFrame___function__e.g._ImGui_ImplOpenGL3_NewFrame__._
call fcn.1006664e
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [0x100c2f00]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
movd xmm1, eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x14]
cvtdq2ps xmm0, xmm0
push eax
movss dword [edi + 8], xmm1
movss dword [edi + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x100c2f08]
mov edx, dword [ebp - 0x10]
sbb edx, dword [0x100c2f0c]
call fcn.10055580
mov edx, dword [0x100c2f14]
mov ecx, dword [0x100c2f10]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 8], xmm0
call fcn.10055580
movss xmm1, dword [ebp - 8]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [0x100c2f08], eax
mov dword [0x100c2f0c], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf8], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf9], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xfb], 0
mov byte [edi + 0xfa], al
call fcn.10019a30
cmp byte [eax + 0x353], 0
lea esi, [eax + 0xe0]
je 0x1003a6d6
cvttss2si eax, dword [eax + 0xe4]
cvttss2si ecx, dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [0x100c2f00]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi], 0xff7fffff
mov dword [esi + 4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1003a73e
mov ecx, dword [0x100c2f00]
cmp eax, ecx
je 0x1003a703
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1003a73e
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1003a73e
lea eax, [ebp - 0x1c]
push eax
push dword [0x100c2f00]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1003a73e
movd xmm0, dword [ebp - 0x1c]
movd xmm1, dword [ebp - 0x18]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
cmp byte [edi + 0xa8], 0
pop edi
pop esi
je 0x1003a74e
or eax, 0xffffffff
jmp 0x1003a753
call fcn.10019b30
cmp dword [0x100bebd8], eax
je 0x1003a765
mov dword [0x100bebd8], eax
call fcn.1003aa20
call fcn.1003a780
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
Function at 0x10053630
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100823e0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
push eax
mov dword [ebp - 0x98], 0x42c80000
mov dword [ebp - 0x94], 0
call fcn.100512d0
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.10023db0
add esp, 8
cmp byte [0x100c2f1c], 0
jne 0x10053712
mov esi, dword [edi]
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
lea ecx, [esi - 0x21]
cmp ecx, 0x84
ja case.0x100536bc.41
movzx ecx, byte [ecx + 0x10053824]
jmp dword [ecx*4 + 0x1005381c]
or eax, 0x100
push 0x80
lea ecx, [ebp - 0x90]
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x98]
test esi, esi
push eax
lea ecx, [ebp - 0x90]
mov eax, 0x1008aaa8
cmovne eax, ecx
push eax
call fcn.10041840
add esp, 8
test al, al
je 0x100537ec
mov byte [0x100c2f1c], 1
jmp 0x100537ec
lea eax, [ebp - 0x98]
push eax
push 0x100883cc
call fcn.10041840
add esp, 8
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x10092630
push 0
push 1
mov dword [ebp - 4], 0
call fcn.1001b9a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x100537d6
push 0
push 2
mov dword [ebp - 4], 1
call fcn.1001b9a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x100537d6
push 0
push 0x12
mov dword [ebp - 4], 2
call fcn.1001b9a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x100537d6
push 0
push 0x1b
mov dword [ebp - 4], 3
call fcn.1001b9a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x1005380f
mov eax, dword [esi]
mov dword [ebp - 4], 4
test eax, eax
jne 0x100537c0
xor al, al
jmp 0x100537cb
push 0
push eax
call fcn.1001b9a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test al, al
jne 0x10053807
add esi, 4
cmp esi, str.enabled
jne 0x10053733
mov al, 1
mov byte [0x100c2f1c], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [edi], eax
xor al, al
jmp 0x100537e7
mov dword [edi], 0
xor al, al
jmp 0x100537e7
Function at 0x10066b70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10055250
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10070675
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10066bb2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10066d0e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10055600
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100c38e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100725c1
mov ecx, dword [esi*4 + 0x100c38e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10066d07
cmp eax, dword [edi + ecx + 0x24]
jne 0x10066d07
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10066d07
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100725c1
add esp, 0x14
test edx, edx
jl 0x10066d07
jg 0x10066c7d
test eax, eax
jb 0x10066d07
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10066d07
jl 0x10066c97
cmp dword [ebp - 0x1008], eax
ja 0x10066d07
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10066cb5
test ebx, ebx
je 0x10066cee
cmp ecx, edi
jae 0x10066cee
mov al, byte [ecx]
cmp al, 0xd
jne 0x10066ccf
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10066cdb
cmp byte [ecx + 1], 0xa
jne 0x10066cdb
inc ecx
jmp 0x10066cdb
movzx eax, al
movsx eax, byte [eax + 0x100bf168]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10066cb5
cmp edx, ebx
jne 0x10066cb5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10066d0c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10054ef6
leave
ret

Function at 0x1006f6b7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100970a8
push 0x100970a0
push str.FlsAlloc
push 0x1e
call fcn.1006f4a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006f6eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10083208]
call esi
jmp 0x1006f6f1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1006f735
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100970b8
push 0x100970b0
push str.FlsGetValue
push 0x20
call fcn.1006f4a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006f76c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10083208]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1007163d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100714ae

Function at 0x10071a79
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100c38e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10071ab9
cmp byte [ebx], 0xa
jne 0x10071ab9
or byte [eax + edi + 0x28], 4
jmp 0x10071abe
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10071bbc
mov al, byte [edx]
cmp al, 0x1a
je 0x10071b9e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10071aed
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10071b12
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10071b1c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10071acf
jmp 0x10071bbc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10071b99
cmp dword [ebp - 0xc], 0
je 0x10071b99
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100c38e0]
test byte [eax + edi + 0x28], 0x48
je 0x10071b73
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10071b5e
mov byte [esi], dl
jmp 0x10071b6f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c38e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10071bbc
cmp byte [ebp - 1], 0xa
jne 0x10071b82
cmp esi, ebx
jne 0x10071b82
mov byte [esi], 0xa
jmp 0x10071bbb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100725df
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10071bbc
mov byte [esi], 0xd
jmp 0x10071bbb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100c38e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10071bb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10071bbc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10071bc5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100c38e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10071c08
cmp word [esi], dx
jne 0x10071c08
or byte [edi + eax + 0x28], 4
jmp 0x10071c0d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x10071d46
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x10071d26
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10071c4f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10071c85
cmp eax, edx
jae 0x10071c91
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10071c27
jmp 0x10071d46
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10071d22
cmp dword [ebp - 0x14], 0
je 0x10071d22
mov eax, dword [ebx*4 + 0x100c38e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10071cfa
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x10071d40
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100c38e0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100c38e0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100c38e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10071d43
pop ebx
cmp word [ebp - 4], bx
jne 0x10071d0b
cmp esi, dword [ebp + 0xc]
jne 0x10071d0b
mov word [esi], bx
jmp 0x10071d43
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100725df
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10071d46
push 0xd
jmp 0x10071d3f
mov ecx, dword [ebx*4 + 0x100c38e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10071d3d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10071d46
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10075324
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100752a6
Function at 0x10077cd5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10077d72
push ebx
push esi
call fcn.10077c9e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10076aaa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10077d1f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10077d71
push edi
push eax
call fcn.100727be
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10077d3f
call fcn.1006f0c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10077d70
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10076aaa
add esp, 0x20
test eax, eax
jne 0x10077d5e
push edi
call fcn.1006f0c2
jmp 0x10077d66
push ebx
call fcn.1006f0c2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10077d75
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10077d86
pop esi
ret
push ebx
push edi
push esi
call fcn.10077c9e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100727be
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10077dae
push ebx
push esi
push edi
call fcn.10056a60
add esp, 0xc
push 0
call fcn.1006f0c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100784fa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10078021
Function at 0x1007ffa1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007ff1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10080119
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10080119
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100800c8
jg 0x1007fffa
test eax, eax
je 0x100800be
push 1
push 0x1000
call fcn.1006f172
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10080020
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100800b5
push 0x8000
push ebx
call fcn.1007fe4e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1008004c
jg 0x10080047
cmp ecx, 0x1000
jb 0x1008004c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100712ae
add esp, 0x10
cmp eax, 0xffffffff
je 0x10080091
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10080047
jl 0x10080078
test ecx, ecx
jne 0x10080039
push dword [ebp - 0xc]
push ebx
call fcn.1007fe4e
push esi
call fcn.1006f0c2
add esp, 0xc
xor edi, edi
jmp 0x1008012a
cmp byte [edi + 0x24], 0
je 0x100800a8
cmp dword [edi + 0x20], 5
jne 0x100800a8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100800b3
mov edi, dword [edi + 0x18]
jmp 0x100800b5
xor edi, edi
push esi
call fcn.1006f0c2
pop ecx
jmp 0x1008012a
test ecx, ecx
jg 0x1008008a
jl 0x100800c8
test eax, eax
jae 0x1008008a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100725df
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100800eb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1008008a
jmp 0x10080122
push ebx
call fcn.1007b3af
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1008008a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1008012a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10080127
mov edi, dword [edi + 0x18]
jmp 0x1008012a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100725df
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10081080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100810ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100810ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4023af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00402342
mov ebx, eax
mov dh, byte [ebx]
mov dl, 1
mov ecx, dword [edi]
or dh, dh
jne 0x4023e2
inc ebx
push ecx
mov eax, esp
push eax
push 0
push dword [ebx]
call fcn.00402245
pop ecx
jecxz 0x4023f0
push eax
mov al, byte [eax]
xor al, 0xb5
mov byte [esi], al
pop eax
inc esi
inc eax
loop 0x4023e4
or dh, dh
jne 0x4023fc
inc dl
mov cl, dl
cmp ecx, dword [edi]
jl 0x4023cf
mov byte [esi], 0
sub esi, dword [ebp + 0xc]
mov dword [edi], esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x402657
Capabilities:
Write file on windows

Disassembly:
push 0x244
push 0x4013c0
call fcn.00402307
xor edi, edi
mov dword [ebp - 0x1c], edi
mov ebx, 0x80
push ebx
push edi
lea eax, [ebp - 0xa8]
push eax
call fcn.00404529
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x24], edi
dec dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
dec eax
je 0x4026fc
dec eax
je 0x4026bc
dec eax
je 0x402685
dec eax
jne 0x40278a
lea eax, [ebp - 0x254]
push eax
push 0x101
call fcn.0040445e
test eax, eax
jne 0x40278a
inc dword [ebp - 0x1c]
jmp 0x402685
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push dword [ecx + 4]
lea ecx, [eax + 2]
push ecx
add eax, 6
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00402539
cmp eax, edi
jle 0x40278a
push edi
push 0x12
push 0x12
push edi
lea eax, [ebp - 0xc4]
push eax
call dword [0x401138]
test eax, eax
je 0x402685
jmp 0x40278a
push 0x4464
push 0x40
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov esi, eax
cmp esi, edi
je 0x402778
mov dword [esi + 0x6c], 1
or dword [esi + 0x70], 0xffffffff
or byte [esi + 0x5c], 4
call dword [0x401080]
mov dword [esi + 0x3ba8], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [esi + 0x3c58]
push eax
call fcn.00404510
mov dword [esi + 0x6c], 3
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push 0x4028db
push edi
push edi
call dword [0x4010a8]
lea ecx, [esi + 0x3ba4]
mov dword [ecx], eax
cmp eax, edi
je 0x402778
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x74], edi
push 0xfffffffffffffff1
push dword [ecx]
call dword [sym.imp.ntdll.dll_NtWriteFile]
push dword [ebp - 0x24]
push esi
call fcn.004037a0
cmp dword [ebp - 0x24], edi
jne 0x402685
lea eax, [ebp - 0xa8]
push eax
call fcn.00402992
cmp dword [ebp - 0x1c], edi
je 0x4027bb
dec dword [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.0040450a
or dword [ebp - 4], 0xffffffff
jmp 0x402796
push 2
push 1
push 0x400
push dword [0x4050b4]
call dword [0x40110c]
call fcn.0040239e
ret 4
Function at 0x4046c3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [esi + 0x1a], bx
push 0x7e
push esi
call fcn.00403281
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x404749
cmp ebx, dword [esi]
jne 0x4046ef
cmp ebx, edi
jge 0x4046ef
mov edi, ebx
mov eax, ebx
sub eax, edi
je 0x40470c
dec eax
je 0x404707
dec eax
je 0x404702
add ebx, dword [ebp + 0xc]
mov bl, byte [ebx]
jmp 0x40471b
mov bl, byte [esi + 0x1a]
jmp 0x404725
mov bl, byte [esi + 0x1b]
jmp 0x404725
mov bl, byte [esi + 0x18]
test edi, edi
je 0x40471b
cmp edi, dword [ebp + 0x10]
jne 0x40471b
or bl, 8
movzx eax, bl
push eax
push esi
call fcn.0040469c
movzx eax, bl
bt dword [0x405198], eax
jae 0x40473c
push 0x7d
push esi
call fcn.00403281
xor bl, 0x20
movzx eax, bl
push eax
push esi
call fcn.00403281
inc dword [ebp - 8]
lea eax, [edi + 3]
cmp dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
jl 0x4046e5
push 0x7e
push esi
call fcn.00403281
push esi
call fcn.0040321a
movzx ecx, byte [esi + 0x18]
shr ecx, 4
and cl, 7
mov edi, ecx
lea eax, [esi + 0x18]
push eax
call fcn.00404ad4
mov eax, dword [ebp + 0xc]
mov dword [esi + edi*4 + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi*4 + 0x3c], eax
lea eax, [ebx - 3]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x404aa5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pushal
mov ebx, dword [ebp + 0x10]
call sub.ntdll.dll_NtTerminateProcess
shl eax, 1
cmc
mov ecx, dword [ebp + 0xc]
adc ecx, 0
mov ebp, esp
push dword [ebx]
add ebx, 4
jecxz 0x404ac5
loop 0x404abc
pop eax
call eax
mov esp, ebp
mov dword [ebp + 0x1c], eax
popal
leave
ret 0xc