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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
mov eax, ecx
push edi
mov dword [ebp - 0x18], esi
xor edx, edx
mov dword [ebp - 0x10], edx
test esi, esi
je 0x10141c48
nop dword [eax]
cmp eax, esi
jae 0x10141dc7
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x10141dc7
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x102f4adc]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x10141c7a
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 0x10141c92
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x10141c96
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x10141ca2
mov ch, byte ds:[esi]
jmp 0x10141ca4
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x10141cb2
mov bl, byte [ebx]
jmp 0x10141cb4
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 + 0x102f4ac8]
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 + 0x102f4ab4]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x102f4aa0]
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 + 0x102f4a8c]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x10141dab
xor edx, edx
mov esi, dword [ebp - 0x18]
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 0x10141c32
add eax, ebx
test esi, esi
je 0x10141dbd
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
inc edx
jmp 0x10141c32
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 0x10141de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ecx
lea eax, [edx - 1]
mov dword [ebp - 0xc], ebx
lea eax, [ebx + eax*4]
mov dword [ebp - 0x1c], eax
cmp ebx, eax
mov eax, dword [ebp + 8]
jae 0x10141f9f
push esi
mov esi, dword [ebp + 0xc]
push edi
nop dword [eax + eax]
test esi, esi
je 0x10141e1c
cmp eax, esi
jae 0x10141f9a
mov bl, byte [eax]
mov byte [ebp - 3], bl
test bl, bl
je 0x10141f9a
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x102f4adc]
test ecx, ecx
mov dword [ebp - 0x10], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x18], ebx
test esi, esi
jne 0x10141e4e
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 0x10141e63
mov bh, byte [esi]
jmp 0x10141e65
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 3], bh
cmp esi, edx
jae 0x10141e73
mov ch, byte [esi]
jmp 0x10141e75
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 2], ch
cmp esi, edx
jae 0x10141e83
mov bl, byte [esi]
jmp 0x10141e85
xor bl, bl
movzx edx, ch
movzx ecx, cl
movzx esi, bh
movzx edi, bl
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx*4 + 0x102f4ac8]
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 - 0x10]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x102f4ab4]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x10]
cmp esi, dword [ebx*4 + 0x102f4aa0]
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 + 0x102f4a8c]
mov ebx, dword [ebp - 0x18]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x10141f78
xor edx, edx
mov esi, 0xfffd
cmp byte [ebp - 1], 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 - 4], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
jmp 0x10141f7e
add eax, ebx
test esi, esi
je 0x10141f97
mov ecx, dword [ebp - 0x14]
mov dword [ecx], esi
add ecx, 4
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x1c]
jb 0x10141e10
jmp 0x10141f9a
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
pop edi
pop esi
mov edx, dword [ebp + 0x10]
mov dword [ecx], 0
test edx, edx
je 0x10141fae
mov dword [edx], eax
sub ecx, ebx
sar ecx, 2
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10142140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10142153
mov dword [edi], 0
mov edx, 0x102f4a20
call fcn.10142320
mov esi, eax
test esi, esi
je 0x10142248
push esi
call fcn.100da10c
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1014223d
push 2
push 0
push esi
call fcn.100d5b19
add esp, 0xc
test eax, eax
jne 0x1014223d
push esi
call fcn.100da10c
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1014223d
push 0
push dword [ebp + 8]
push esi
call fcn.100d5b19
add esp, 0xc
test eax, eax
jne 0x1014223d
mov eax, dword [0x1034d164]
test eax, eax
je 0x101421ce
inc dword [eax + 0x370]
push dword [0x1034d188]
push ebx
call dword [0x10303df4]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x1014223d
push esi
push ebx
push 1
push eax
call fcn.100d616d
add esp, 0x10
push esi
cmp eax, ebx
je 0x10142227
call fcn.100d6ac6
mov eax, dword [0x1034d164]
add esp, 4
test eax, eax
je 0x1014220e
dec dword [eax + 0x370]
push dword [0x1034d188]
push dword [ebp + 8]
call dword [0x10349460]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.100d6ac6
add esp, 4
test edi, edi
je 0x10142235
mov dword [edi], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.100d6ac6
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10142400
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10142466
mov cl, byte ds:[esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10142449
cmp edi, 2
jb 0x10142449
cmp byte [esi], cl
jne 0x10142449
cmp byte [esi + 1], cl
jne 0x10142449
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x102eaa80]
jmp 0x10142415
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x102eaa80]
test edi, edi
jne 0x10142415
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10142498
nop dword [eax]
cmp cl, 0x23
jne 0x1014247f
cmp byte [esi], cl
jne 0x1014247f
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 + 0x102eaa80]
test cl, cl
jne 0x10142470
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x101443e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1034d164]
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1cdc]
mov esi, 4
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 4], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x102eaa80]
sub esi, 1
jne 0x10144412
mov esi, dword [edi + 4]
not ebx
mov ecx, dword [edi]
cmp ecx, esi
jne 0x10144459
inc ecx
test esi, esi
je 0x10144447
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1014444c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1003fec0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101494c0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
mov eax, 0x5e6ea9af
mul dword [ebp + 8]
push edi
shr edx, 0xb
xor edi, edi
imul eax, edx, 0x15b0
mov ecx, 1
mov edx, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x10], edi
sub ebx, eax
mov dword [ebp - 4], ebx
test edx, edx
je 0x10149606
xor edx, edx
mov dword [ebp - 8], edx
cmp ebx, 7
jbe 0x10149564
mov eax, 7
sub eax, esi
mov dword [ebp - 0x10], eax
nop
movzx eax, byte [esi]
add edx, 8
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add edi, ecx
add esi, 8
add ecx, eax
mov eax, dword [ebp - 0x10]
add eax, esi
add edi, ecx
cmp eax, ebx
jb 0x10149510
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 4]
xor ebx, ebx
xor edx, edx
cmp dword [ebp - 8], eax
jae 0x101495c5
sub eax, dword [ebp - 8]
cmp eax, 2
jb 0x101495b8
mov eax, dword [ebp - 8]
mov edi, ebx
mov edx, dword [ebp - 4]
sub edx, eax
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [ebp - 8], eax
nop
movzx eax, byte [esi]
add ecx, eax
movzx eax, byte [esi + 1]
add ebx, ecx
add esi, 2
add ecx, eax
add edi, ecx
sub edx, 1
jne 0x10149590
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jae 0x101495c0
movzx eax, byte [esi]
add ecx, eax
add edi, ecx
inc esi
lea eax, [edx + ebx]
add edi, eax
mov eax, 0x80078071
mov ebx, dword [ebp - 4]
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
sub dword [ebp + 8], ebx
mov ebx, 0x15b0
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
jne 0x101494f8
shl edi, 0x10
lea eax, [ecx + edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1015c4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1015c521
mov eax, dword [0x1034d164]
mov dword ds:[esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1015c50a
dec dword [eax + 0x370]
push dword [0x1034d188]
push ecx
call dword [0x10349460]
add esp, 8
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1015c55c
mov eax, dword [0x1034d164]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1015c545
dec dword [eax + 0x370]
push dword [0x1034d188]
push ecx
call dword [0x10349460]
add esp, 8
mov dword [esi + 0x14], 0
mov ecx, dword ds:[esi + 0x20]
test ecx, ecx
je 0x1015c598
mov eax, dword [0x1034d164]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1015c581
dec dword [eax + 0x370]
push dword [0x1034d188]
push ecx
call dword [0x10349460]
add esp, 8
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 ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1015c5f0
mov eax, dword [0x1034d164]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1015c5d8
dec dword [eax + 0x370]
push dword [0x1034d188]
push ecx
call dword [0x10349460]
add esp, 8
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1015c630
mov eax, dword [0x1034d164]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1015c614
dec dword [eax + 0x370]
push dword [0x1034d188]
push ecx
call dword [0x10349460]
add esp, 8
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1015c670
mov eax, dword [0x1034d164]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1015c654
dec dword [eax + 0x370]
push dword [0x1034d188]
push ecx
call dword [0x10349460]
add esp, 8
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1015e3c0
Function at 0x10160860
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [0x1034d164]
lea eax, [ebp - 0x28]
push esi
push edi
push eax
push dword [0x1034d1ac]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
movd xmm1, eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x10]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x10]
mov ecx, edi
sub ecx, dword [0x1034d1b0]
mov esi, dword [ebp - 0xc]
mov edx, esi
sbb edx, dword [0x1034d1b4]
call fcn.10111930
mov edx, dword [0x1034d1bc]
mov ecx, dword [0x1034d1b8]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 4], xmm0
call fcn.10111930
movss xmm1, dword [ebp - 4]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x1034d1b4], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x1034d1b0], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xfc], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xfd], al
call esi
mov esi, dword [0x1034d164]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xff], 0
mov byte [ebx + 0xfe], al
cmp byte [esi + 0x357], 0
je 0x10160990
cvttss2si eax, dword [esi + 0xe4]
mov dword [ebp - 8], eax
cvttss2si eax, dword [esi + 0xe8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [0x1034d1ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
nop
test eax, eax
je 0x10160990
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe4], 0xff7fffff
mov dword [esi + 0xe8], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x10160a0c
mov ecx, dword [0x1034d1ac]
cmp eax, ecx
je 0x101609ca
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x10160a0c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10160a0c
lea eax, [ebp - 0x18]
push eax
push dword [0x1034d1ac]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10160a0c
movd xmm0, dword [ebp - 0x18]
movd xmm1, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe4], xmm0
movss dword [esi + 0xe8], xmm1
cmp byte [ebx + 0xb0], 0
je 0x10160a1a
or eax, 0xffffffff
jmp 0x10160a25
mov eax, dword [0x1034d164]
mov eax, dword [eax + 0x1f80]
cmp dword [0x1034946c], eax
je 0x10160a37
mov dword [0x1034946c], eax
call fcn.101605e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1018d240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1034d1c0]
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 - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [eax]
test eax, eax
jne 0x1018d290
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1018d2b1
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 0x1018d2d2
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1018d2d2
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1018d2cc
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1018d2d2
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, ds:[ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
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
pop edi
mov byte [esi + 0x14], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1018d320
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x1018d377
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1018d366
push edi
mov eax, dword ds:[ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1018d35a
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x1018d331
pop edi
push dword [ebx]
push 0
push dword [0x1034d16c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x1018d380
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1018d478
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1018d471
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1018d457
call ebx
nop
cmp dword [ebp - 0x14], eax
jne 0x1018d457
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1018d457
mov edx, dword [esi]
test edx, edx
jne 0x1018d419
push 0x200
push edx
push dword [0x1034d16c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1018d471
jmp 0x1018d448
mov eax, dword ds:[esi + 4]
cmp dword [esi + 8], eax
jb 0x1018d448
shl eax, 3
push eax
push edx
push 0
push dword [0x1034d16c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1018d471
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 - 0x18]
mov dword [edx + ecx*4], eax
lea eax, [ecx + 1]
mov dword [esi + 8], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1018d3d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1018d4b7
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1018d4b7
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 0x1018d4b1
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1018d5c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1018d485
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1018e2c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1018e32d
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 0x1018e340
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 0x10194380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x1034ac9c]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x18]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10358444]
cmp eax, dword [ecx + 4]
jg 0x10194414
mov ecx, esi
call dword [0x10358448]
mov eax, esi
pop esi
ret
push 0x10358444
call fcn.100987a0
add esp, 4
cmp dword [0x10358444], 0xffffffff
jne 0x10194408
push str.E8_________83_BE___________74_3A
push str.client.dll
call fcn.101a6180
push 0x10358444
mov ecx, dword [eax + 1]
add eax, 5
add eax, ecx
mov dword [0x10358448], eax
call fcn.1009874f
add esp, 4
jmp 0x10194408
Function at 0x1019abc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov al, byte [ecx]
mov edx, 0x811c9dc5
test al, al
je 0x1019abe4
nop dword [eax + eax]
movzx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x1019abd0
mov eax, edx
ret
Function at 0x101a6180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x101a625b
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x101a625b
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx], 0x4550
jne 0x101a625b
mov eax, dword [eax + edx + 0x50]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 4], eax
cmp edx, eax
jae 0x101a625b
mov ecx, 0x3f3f
mov al, byte [esi]
mov byte [ebp + 0xb], al
cmp al, 0x3f
je 0x101a6226
movzx ecx, al
sub al, 0x30
cmp al, 9
ja 0x101a61eb
add ecx, 0xffffffd0
jmp 0x101a61f1
and ecx, 0xffffffdf
sub ecx, 0x37
mov al, byte [esi + 1]
movzx edi, al
sub al, 0x30
cmp al, 9
ja 0x101a6202
add edi, 0xffffffd0
jmp 0x101a6208
and edi, 0xffffffdf
sub edi, 0x37
movzx eax, byte [edx]
shl ecx, 4
or ecx, edi
cmp eax, ecx
mov ecx, 0x3f3f
je 0x101a6226
test ebx, ebx
je 0x101a6251
mov esi, dword [ebp + 0xc]
mov edx, ebx
xor ebx, ebx
jmp 0x101a6251
test ebx, ebx
mov eax, edx
cmovne eax, ebx
cmp byte [esi + 2], 0
mov ebx, eax
je 0x101a6266
cmp word [esi], cx
je 0x101a6245
cmp byte [ebp + 0xb], 0x3f
mov eax, 2
je 0x101a624a
mov eax, 3
add esi, eax
cmp byte [esi], 0
je 0x101a6266
inc edx
cmp edx, dword [ebp - 4]
jb 0x101a61d4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100173b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
push 0x10074a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1007494]
mov edi, dword [ebp + 8]
test eax, eax
je 0x1001767
mov ecx, dword [edi + 4]
cmp dword [eax + 4], ecx
je 0x10017b7
mov eax, dword [eax]
test eax, eax
jne 0x100175c
push esi
push 8
call fcn.01003307
mov esi, eax
pop ecx
test esi, esi
je 0x10017b6
call fcn.01001545
mov eax, dword [0x1007494]
mov dword [esi], eax
mov dword [0x1007494], esi
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x1001573
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10017b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10017b6
call fcn.01001515
pop esi
push 0x10074a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
leave
ret 4