joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b54
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x10001b8c
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x10001b9a
add edx, 0x20
cmp eax, edx
jne 0x10001bab
test bx, bx
je 0x10001be0
add esi, 2
add edi, 2
jmp 0x10001b7c
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10001bb9
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x10001bc7
add edx, 0x20
sub ecx, edx
je 0x10001be0
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x10001b75
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10001bf9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10001cd2
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x10001cd2
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x10001cd2
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x10001c58
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x10001cd2
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001c9d
test dl, dl
je 0x10001c99
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001c9d
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001c7d
xor eax, eax
jmp 0x10001ca2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001cb4
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x10001cbf
inc esi
cmp esi, ebp
jae 0x10001cd2
mov edx, dword [esp + 0x10]
jmp 0x10001c73
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x10001cee
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
push edi
test esi, esi
je 0x10001e16
xor eax, eax
mov word [esp + 0x54], ax
mov byte [esp + 0x38], al
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x65006b
mov dword [esp + 0x44], 0x6e0072
mov dword [esp + 0x48], 0x6c0065
mov dword [esp + 0x4c], 0x320033
mov dword [esp + 0x50], 0x64002e
mov dword [esp + 0x54], 0x6c006c
mov dword [esp + 0x2c], 0x4d746547
mov dword [esp + 0x30], 0x6c75646f
mov dword [esp + 0x34], 0x6e614865
mov dword [esp + 0x38], 0x41656c64
mov dword [esp + 0x14], 0x65657246
mov dword [esp + 0x18], 0x7262694c
mov dword [esp + 0x1c], 0x797261
mov dword [esp + 0x20], 0x74726956
mov dword [esp + 0x24], 0x466c6175
mov dword [esp + 0x28], 0x656572
call fcn.10001f50
add esp, 4
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.10001e22
mov ebp, eax
test ebp, ebp
je 0x10001e16
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.10001e22
mov edi, eax
test edi, edi
je 0x10001e16
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.10001e22
mov ebx, eax
test ebx, ebx
je 0x10001e16
mov ecx, dword [esi + 0x3c]
mov eax, 0x2000
test word [ecx + esi + 0x16], ax
je 0x10001df2
mov eax, dword [ecx + esi + 0x28]
test eax, eax
je 0x10001df2
push 0
push 0
push esi
add eax, esi
call eax
push edi
push ebp
push esi
call fcn.10001f03
add esp, 0xc
push 0x8000
push 0
push esi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 4

Function at 0x10001e22
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10001ef7
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x10001ef7
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x10001ef7
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x10001e7d
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x10001ef7
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001ec2
test dl, dl
je 0x10001ebe
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001ec2
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001ea2
xor eax, eax
jmp 0x10001ec7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001ed9
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x10001ee4
inc esi
cmp esi, ebp
jae 0x10001ef7
mov edx, dword [esp + 0x10]
jmp 0x10001e98
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x10001f50
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x10001f88
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x10001f96
add edx, 0x20
cmp eax, edx
jne 0x10001fa7
test bx, bx
je 0x10001fdc
add esi, 2
add edi, 2
jmp 0x10001f78
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10001fb5
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x10001fc3
add edx, 0x20
sub ecx, edx
je 0x10001fdc
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x10001f71
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1000205c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
lea eax, [ebp + 8]
push eax
push 0x10002168
xor eax, eax
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
cmp dword [ebp - 4], esp
je 0x10002097
push 0
push 0x4017e3f
push 6
call fcn.1000d812
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x1000209f
mov esp, ebp
pop ebp
ret 4
Function at 0x10005815
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esp
push 0
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
cmp dword [ebp - 4], esp
je 0x10005853
push 0x47
push 0x40189ce
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 1
push dword [ebp - 8]
push 4
push 0xffff
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10005894
push 0x47
push 0x40189ce
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
mov eax, 0
sete al
jmp 0x100058a8
mov esp, ebp
pop ebp
ret 8

Function at 0x100058ae
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 8
call fcn.1000d806
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x100058fa
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 1
jmp 0x10005908
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov word [ebx], 0
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
push eax
push 4
call fcn.1000d806
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10005973
push 0xcd
push 0x40189cb
push 6
call fcn.1000d812
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.1000d81e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push eax
push 4
call fcn.1000d806
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push 0x80
push 0xffff
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10005a07
push 0x10c
push 0x40189cb
push 6
call fcn.1000d812
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.1000d81e
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
mov eax, 0
sete al
jmp 0x10005a42
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1000d81e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10005a56
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esp
push 0
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
cmp dword [ebp - 4], esp
je 0x10005a94
push 0x47
push 0x40189db
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 1
push dword [ebp - 8]
push 1
push 6
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10005ad5
push 0x47
push 0x40189db
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
mov eax, 0
sete al
jmp 0x10005ae9
mov esp, ebp
pop ebp
ret 8
Function at 0x10005aef
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0xc
call fcn.1000d806
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10005b5a
push 0x47
push 0x40189bb
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 1
push dword [ebp - 0x10]
push 8
push 0xffff
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_setsockopt]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10005b9b
push 0x47
push 0x40189bb
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10005d43
cmp dword [ebp + 0xc], 1
jne 0x10005d39
cmp dword [ebp + 0x14], 0
jne 0x10005bc3
mov dword [ebp + 0x10], 0x1388
cmp dword [ebp + 0x1c], 0
jne 0x10005bd4
mov dword [ebp + 0x18], 0x3e8
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 1
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10005c39
push 0x21c
push 0x40189bb
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10005c68
push 0x246
push 0x40189bb
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 4]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10005c9f
push 0x260
push 0x40189bb
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x10005cce
push 0x28a
push 0x40189bb
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 0x98000004
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x10005d1d
push 0x28a
push 0x40189bb
push 6
call fcn.1000d812
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x10005d34
mov eax, 1
jmp 0x10005d4d
jmp 0x10005d43
mov eax, 1
jmp 0x10005d4d
mov eax, 0
jmp 0x10005d4d
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1000d81e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1000f070
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1000f08e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x1000f083
pop esi
ret

Function at 0x10010240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x10010261
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x100102bb
inc edi
cmp edi, esi
jl 0x10010255
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x100102f0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x100102aa
cmp byte [eax], bl
je 0x100102c5
cmp byte [eax + 1], bl
je 0x100102ce
cmp byte [eax + 2], bl
je 0x100102d8
cmp byte [eax + 3], bl
je 0x100102e4
add eax, 4
cmp eax, edi
jb 0x10010281
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x10011770
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x1001177c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x1001180f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x100117d9
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.10011820
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x100117ae
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x10011840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x1001193d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x10011892
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x100118be
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.10011820
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x100118ff
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x10011881
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x10013660
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x1003cc04]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x10013673
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x100136b4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x1003ccac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x100136e6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x100136ea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x100136db
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x10013708
mov bl, byte [esp + ecx + 0x4c]
jmp 0x1001370c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x100136fd
xor ecx, ecx
mov eax, 0x1003cc14
xor ebx, ebx
mov bl, byte [ecx + 0x1003ccbc]
cmp byte [esp + ebx + 0x14], 0
je 0x10013737
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x1003ccd4]
cmp byte [esp + ebx + 0x14], 0
je 0x1001374e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x1001371e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x100136a7
lea edx, [esp + 0x84]
push edx
call fcn.10013790
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x10016108
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d3e8
push 0x100175a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x1001618e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x10016166
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x10016194
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x1001615e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x1001615e
mov al, 1
jmp 0x10016160
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100161f3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x10041564]
test esi, esi
je 0x10016217
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x100161fb
pop esi
pop ecx
ret

Function at 0x1001621a
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId_1]
cmp dword [0x10041570], eax
je 0x10016230
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x10041580]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x1001627d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1001626e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1001626e
push eax
call fcn.100162e4
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.1001767c
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1001623f
mov dword [0x10041580], ebx
call fcn.100162bd
mov esi, dword [0x1004157c]
cmp esi, ebx
je 0x100162aa
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.1001767c
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x10016292
pop edi
mov dword [0x1004157c], ebx
mov dword [0x10041570], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10016567
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10041574]
push esi
test eax, eax
push edi
jne 0x100165d1
call dword [sym.imp.kernel32.dll_GetCurrentThread_1]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x100165cf
push 8
call fcn.100176e8
mov esi, eax
pop ecx
test esi, esi
jne 0x10016593
push 8
pop edi
jmp 0x100165ae
push edi
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100165bf
call dword [sym.imp.kernel32.dll_GetLastError_1]
push esi
mov edi, eax
call fcn.1001767c
pop ecx
and dword [0x10041578], 0
mov dword [0x10041574], edi
mov eax, edi
jmp 0x100165d1
mov dword [esi + 4], edi
mov eax, dword [0x1004157c]
mov dword [esi], eax
mov dword [0x1004157c], esi
xor eax, eax
pop edi
pop esi
ret 4