joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ed00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x1003ed28
nop dword [eax + eax]
cmp eax, esi
jae 0x1003eea1
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x1003eea1
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x1015cf40]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x1003ed5a
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp - 3]
mov byte [ebp - 4], cl
cmp esi, edx
jae 0x1003ed72
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x1003ed76
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x1003ed82
mov ch, byte ds:[esi]
jmp 0x1003ed84
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x1003ed92
mov bl, byte [ebx]
jmp 0x1003ed94
xor bl, bl
movzx esi, byte [ebp - 1]
movzx edx, ch
movzx ecx, cl
movzx edi, bl
mov byte [ebp - 2], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x1015cf60]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x1015cf88]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x1015cf74]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0x10ffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x1015cf9c]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1003ee88
xor edx, edx
cmp byte [ebp - 4], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1003ed0e
add eax, ebx
test esi, esi
je 0x1003ee97
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1003ed0e
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003f120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1003f132
mov dword [edi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003ef80
mov esi, eax
add esp, 8
test esi, esi
jne 0x1003f14a
pop edi
pop esi
pop ebp
ret
push ebx
push esi
call fcn.101187d0
add esp, 4
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x1003f246
push 2
push 0
push esi
call fcn.10114d89
add esp, 0xc
test eax, eax
jne 0x1003f246
push esi
call fcn.101187d0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1003f246
push 0
push dword [ebp + 0x10]
push esi
call fcn.10114d89
add esp, 0xc
test eax, eax
jne 0x1003f246
mov eax, dword [0x10240b04]
test eax, eax
je 0x1003f1b8
inc dword [eax + 0x370]
push dword [0x10240b0c]
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
call dword [0x1023e6b0]
add esp, 8
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1003f246
push esi
push ebx
push 1
push eax
call fcn.10114883
add esp, 0x10
cmp eax, ebx
je 0x1003f217
push esi
call fcn.10113bce
mov eax, dword [0x10240b04]
add esp, 4
test eax, eax
je 0x1003f1fd
dec dword [eax + 0x370]
push dword [0x10240b0c]
mov eax, dword [ebp + 0x10]
push eax
call dword [0x1023e6b4]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x1003f22f
push eax
mov eax, dword [ebp + 0x10]
add eax, ebx
push 0
push eax
call fcn.100ec0a0
add esp, 0xc
push esi
call fcn.10113bce
add esp, 4
test edi, edi
je 0x1003f23e
mov dword [edi], ebx
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call fcn.10113bce
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x100402c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xc4]
mov eax, dword [ecx + 0xcc]
push esi
push edi
lea esi, [ebp + 8]
mov edi, 4
mov eax, dword [eax + edx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1015ca00]
sub edi, 1
jne 0x100402e0
mov ecx, dword [0x10240b04]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1d14], eax
jne 0x10040312
mov dword [ecx + 0x1d18], eax
cmp dword [ecx + 0x1d4c], eax
jne 0x10040321
mov byte [ecx + 0x1d50], 1
pop ebp
ret 4
Function at 0x100404c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movss xmm0, dword [edx]
mov edi, 0x10
subss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0xc4]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 8], eax
cvttss2si eax, xmm0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xcc]
lea esi, [ebp - 0x10]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1015ca00]
sub edi, 1
jne 0x10040530
mov eax, dword [0x10240b04]
not edx
pop edi
pop esi
cmp dword [eax + 0x1d14], edx
jne 0x10040561
mov dword [eax + 0x1d18], edx
cmp dword [eax + 0x1d4c], edx
jne 0x10040570
mov byte [eax + 0x1d50], 1
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x1004e2e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x10240b04]
cmp byte [edi + 0x3745], 0
lea eax, [edi + 0x20]
jne 0x1004e40a
mov ecx, dword [eax]
push ebx
test ecx, ecx
je 0x1004e402
push esi
push 0x1015d708
push ecx
call fcn.1003ef80
mov esi, eax
add esp, 8
test esi, esi
je 0x1004e3fe
push esi
call fcn.101187d0
add esp, 4
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x1004e3f5
push 2
push 0
push esi
call fcn.10114d89
add esp, 0xc
test eax, eax
jne 0x1004e3f5
push esi
call fcn.101187d0
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x1004e3f5
push 0
push dword [ebp - 8]
push esi
call fcn.10114d89
add esp, 0xc
test eax, eax
jne 0x1004e3f5
mov eax, dword [0x10240b04]
test eax, eax
je 0x1004e38e
inc dword [eax + 0x370]
push dword [0x10240b0c]
push ebx
call dword [0x1023e6b0]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1004e3f5
push esi
push dword [ebp - 4]
push 1
push ebx
call fcn.10114883
add esp, 0x10
push esi
cmp eax, dword [ebp - 4]
je 0x1004e3e2
call fcn.10113bce
add esp, 4
mov eax, dword [0x10240b04]
test eax, eax
je 0x1004e3d0
dec dword [eax + 0x370]
push dword [0x10240b0c]
push ebx
call dword [0x1023e6b4]
add esp, 8
jmp 0x1004e3fe
call fcn.10113bce
push dword [ebp - 4]
push ebx
call fcn.1003c2a0
add esp, 0xc
jmp 0x1004e3c1
push esi
call fcn.10113bce
add esp, 4
lea eax, [edi + 0x20]
pop esi
mov byte [edi + 0x3745], 1
pop ebx
movss xmm0, dword [edi + 0x3748]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1004e45b
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x3748], xmm0
jb 0x1004e45b
mov eax, dword [eax]
test eax, eax
je 0x1004e44a
push eax
call fcn.1003c520
add esp, 4
mov dword [edi + 0x3748], 0
pop edi
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x358], 1
mov dword [edi + 0x3748], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100549c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x100549e7
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.1003c860
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10054a0f
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.1003c860
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10054a34
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.1003c860
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10054a75
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.1003c860
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10054a9a
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.1003c860
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword ds:[esi + 0x5c]
test eax, eax
je 0x10054ac2
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.1003c860
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10050600
Function at 0x10056400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x54]
mov dword [ebp - 4], ecx
cmp dword [esi + 0x4c], ebx
jle 0x10056456
xor edi, edi
nop word [eax + eax]
mov eax, dword [ecx]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x10056448
cmp byte [edi + eax + 8], 0
je 0x10056448
push ecx
call fcn.1003c860
mov eax, dword [esi + 0x54]
lea ecx, [esi + 0x54]
add esp, 4
mov dword [edi + eax], 0
jmp 0x1005644b
lea ecx, [esi + 0x54]
inc ebx
add edi, 0x78
cmp ebx, dword [esi + 0x4c]
jl 0x10056420
jmp 0x10056459
mov dword [ebp - 4], ecx
lea edi, [esi + 0x34]
xor edx, edx
mov dword [ebp - 8], edi
cmp dword [edi], edx
jle 0x100564aa
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + edx*4]
mov eax, dword [ecx]
mov dword [ebp - 8], eax
cmp dword [ebx + 0x34], eax
jb 0x1005649c
mov ecx, dword [esi + 0x4c]
shl ecx, 4
sub ecx, dword [esi + 0x4c]
lea eax, [eax + ecx*8]
cmp dword [ebx + 0x34], eax
jae 0x10056499
mov dword [ebx + 0x34], 0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + edx*4]
mov word [eax + 0x38], cx
mov ecx, dword [ebp - 4]
inc edx
cmp edx, dword [edi]
jl 0x10056465
lea edi, [esi + 0x34]
mov dword [ebp - 8], edi
mov eax, dword [esi + 0x54]
test eax, eax
je 0x100564cf
push eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.1003c860
add esp, 4
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x48]
mov ebx, edi
test eax, eax
je 0x100564f9
push eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
call fcn.1003c860
add esp, 4
mov dword [esi + 0x48], 0
lea ebx, [esi + 0x34]
mov eax, dword [esi + 0x14]
mov dword [esi + 0x464], 0xffffffff
mov dword [esi + 0x460], 0xffffffff
test eax, eax
je 0x10056522
push eax
call fcn.1003c860
mov edi, ebx
add esp, 4
mov dword [ebp - 8], edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10056532
push eax
call fcn.1003c860
add esp, 4
xor ebx, ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x11], 0
cmp dword [edi], ebx
jle 0x100565ac
nop word [eax + eax]
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x100565a1
mov ecx, edi
call fcn.10057b40
mov eax, dword [edi + 0x28]
test eax, eax
je 0x10056575
push eax
call fcn.1003c860
add esp, 4
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x10056588
push eax
call fcn.1003c860
add esp, 4
mov eax, dword [edi + 8]
test eax, eax
je 0x10056598
push eax
call fcn.1003c860
add esp, 4
push edi
call fcn.1003c860
add esp, 4
mov eax, dword [ebp - 8]
inc ebx
cmp ebx, dword [eax]
jl 0x10056550
lea edi, [esi + 0x34]
mov eax, dword [edi + 8]
test eax, eax
je 0x100565d0
push eax
mov dword [edi + 4], 0
mov dword [edi], 0
call fcn.1003c860
add esp, 4
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10063f00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
call fcn.10033380
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
push eax
push dword [0x1024b778]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
movd xmm0, eax
lea eax, [ebp - 0x10]
cvtdq2ps xmm0, xmm0
push eax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movss dword [edi + 0xc], xmm0
xorps xmm0, xmm0
movss dword [edi + 8], xmm1
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x1024b780]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x1024b784]
call fcn.100d6e10
mov edx, dword [0x1024b78c]
mov ecx, dword [0x1024b788]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 4], xmm0
call fcn.100d6e10
movss xmm1, dword [ebp - 4]
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 - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [0x1024b780], eax
mov dword [0x1024b784], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf4], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf5], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xf7], 0
mov byte [edi + 0xf6], al
call fcn.10033380
mov esi, eax
cmp byte [esi + 0x34f], 0
je 0x10064036
cvttss2si ecx, dword ds:[esi + 0xdc]
lea eax, [ebp - 8]
push eax
push dword [0x1024b778]
mov dword [ebp - 8], ecx
cvttss2si ecx, dword [esi + 0xe0]
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x10064036
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xdc], 0xff7fffff
mov dword [esi + 0xe0], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x100640ac
mov ecx, dword [0x1024b778]
cmp eax, ecx
je 0x1006406a
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x100640ac
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x100640ac
lea eax, [ebp - 0x18]
push eax
push dword [0x1024b778]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x100640ac
movd xmm0, dword [ebp - 0x18]
movd xmm1, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xdc], xmm0
movss dword [esi + 0xe0], xmm1
cmp byte [edi + 0xa8], 0
pop edi
pop esi
je 0x100640bc
or eax, 0xffffffff
jmp 0x100640c5
nop dword [eax]
call fcn.1003c0c0
cmp dword [0x1023e8b0], eax
je 0x100640d7
mov dword [0x1023e8b0], eax
call fcn.100649a0
mov esp, ebp
pop ebp
ret
Function at 0x10092280
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1024bab8]
test eax, eax
je 0x1009229c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x100922f2
mov eax, dword [eax]
test eax, eax
jne 0x10092290
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100922ef
push esi
push edi
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0x100922c5
mov ecx, dword [0x1024bab8]
mov dword [eax], ecx
mov dword [0x1024bab8], eax
pop edi
pop esi
test eax, eax
jne 0x100922f2
xor eax, eax
ret
mov edx, dword ds:[eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
Function at 0x10093400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0x1024bac4]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp + 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10093448
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1009346d
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1009348e
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1009348e
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10093488
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1009348e
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
shl bl, 2
add cl, cl
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
xor eax, eax
mov byte [esi + 0x14], bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10093580
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10093674
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1009366d
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x1c], 0x10
jb 0x10093654
call ebx
nop dword [eax + eax]
cmp dword [ebp - 0x10], eax
jne 0x10093654
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x14], eax
je 0x10093654
mov edx, dword [esi]
test edx, edx
jne 0x10093619
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x1024bac0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1009366d
jmp 0x10093648
mov eax, dword ds:[esi + 4]
cmp dword [esi + 8], eax
jb 0x10093648
shl eax, 3
push eax
push edx
push 0
push dword [0x1024bac0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1009366d
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100935d3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x100936b6
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100936b6
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100936b0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100936c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10093685
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10093820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
call fcn.100934e0
cmp dword [0x1024bac0], 0
je 0x100938c6
mov edx, dword [ebp + 8]
push esi
push edi
test edx, edx
jne 0x10093881
xor esi, esi
cmp dword [0x1024bacc], esi
jbe 0x10093871
push ebx
mov bl, byte [ebp + 0xc]
shl bl, 2
xor edi, edi
mov edx, dword [0x1024bac4]
lea edi, [edi + 0x2c]
inc esi
mov cl, byte [edx + edi - 0x18]
xor cl, bl
and cl, 4
xor byte [edx + edi - 0x18], cl
cmp esi, dword [0x1024bacc]
jb 0x10093851
pop ebx
xor eax, eax
pop edi
pop esi
xor ecx, ecx
mov edx, 0x1024babc
xchg dword [edx], ecx
pop ebp
ret
mov esi, dword [0x1024bacc]
xor eax, eax
test esi, esi
je 0x100938a4
mov edi, dword [0x1024bac4]
mov ecx, edi
cmp edx, dword [ecx]
je 0x100938ab
inc eax
add ecx, 0x2c
cmp eax, esi
jb 0x10093895
mov eax, 4
jmp 0x10093873
cmp eax, 0xffffffff
je 0x100938a4
mov cl, byte [ebp + 0xc]
imul edx, eax, 0x2c
shl cl, 2
xor cl, byte [edx + edi + 0x14]
and cl, 4
xor byte [edx + edi + 0x14], cl
jmp 0x10093871
mov eax, 2
jmp 0x10093875
Function at 0x100938e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x10093937
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10093926
push ebx
mov eax, dword ds:[edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1009391a
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x100938f5
pop ebx
push dword [edi]
push 0
push dword [0x1024bac0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0x10094180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100941ed
push dword [ebp + 8]
stmxcsr dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
or eax, 0x8000
mov dword [ebp + 0xc], eax
ldmxcsr dword [ebp + 0xc]
stmxcsr dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
or eax, 0x40
mov dword [ebp + 0xc], eax
ldmxcsr dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
push 0
push 0
push dword [ebp + 8]
push 0x10094100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10098fe0
Capabilities:
Create thread

Disassembly:
mov dl, 1
lea eax, [ecx + 0x38]
xchg byte [eax], dl
push 0
push 0
push dword [ecx + 0x54]
push 0x10099060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x10099d80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [0x1024c214]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov eax, dword [edi + 0x18]
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1024bbc0]
cmp eax, dword [ecx + 4]
jg 0x10099e14
mov ecx, edi
call dword [0x1024bbbc]
mov eax, edi
pop edi
ret
push 0x1024bbc0
call fcn.100d69b1
add esp, 4
cmp dword [0x1024bbc0], 0xffffffff
jne 0x10099e08
push esi
mov esi, dword [0x101f9010]
mov ecx, esi
push str.E8_________83_BE___________74_3A
push str.client.dll
call fcn.100b5420
push eax
mov ecx, esi
call fcn.100b5520
push 0x1024bbc0
mov dword [0x1024bbbc], eax
call fcn.100d6960
add esp, 4
pop esi
jmp 0x10099e08