joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3004c126
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x3004c13e
xor eax, eax
jmp 0x3004c2b5
mov eax, dword [esi]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
je 0x3004c156
push eax
call fcn.3005bc92
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
push edi
or edi, 0xffffffff
cmp dword [ebp - 8], ebx
jne 0x3004c173
cmp dword [0x300d676c], ebx
je 0x3004c181
mov dword [ebp - 0x1c], 2
jmp 0x3004c18e
cmp dword [ebp - 8], 1
jne 0x3004c181
cmp dword [0x300d7774], ebx
je 0x3004c18b
test byte [esi + 0xc], 0x10
je 0x3004c24f
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], ebx
call fcn.3004af3a
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
jmp 0x3004c217
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov esi, dword [ebp - 0x10]
jne 0x3004c1b6
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 2
mov edi, eax
jae 0x3004c1e1
cmp dword [ebp - 0x14], 1
je 0x3004c1de
cmp dword [ebp - 0x14], 2
jne 0x3004c1e1
push 2
pop edi
push edi
call fcn.3004ab58
test eax, eax
pop ecx
je 0x3004c22a
push 0x796d746f
push ebx
call fcn.3004370f
push esi
mov ecx, 0x300d6778
call fcn.3004b0da
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.3004b19c
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x3004c1aa
jmp 0x3004c239
push esi
mov ecx, 0x300d6778
call fcn.3004b058
cmp edi, ebx
je 0x3004c25e
cmp dword [0x300d6774], ebx
je 0x3004c24c
push 0x300d6290
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x3004c15a
jmp 0x3004c271
cmp dword [0x300d6774], ebx
je 0x3004c275
push 0x300d6290
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x3004c295
cmp dword [ebp - 0x14], 2
je 0x3004c287
mov eax, dword [ebp + 8]
mov al, byte [eax + 0xc]
and al, 0xf
cmp al, 2
jne 0x3004c295
push dword [ebp - 4]
call fcn.3004ad79
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], ebx
je 0x3004c2a2
push dword [ebp - 0x18]
call fcn.300433f3
cmp edi, ebx
pop edi
je 0x3004c2b2
push dword [ebp + 8]
call fcn.3004ad94
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x3004cc96
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x30]
push eax
call fcn.300463a0
test eax, eax
jne 0x3004ccb3
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x30]
push ebx
push esi
push edi
push eax
push 0x11
call fcn.30043b0e
push dword [ebp - 0x1c]
push 0x12
call fcn.30043b0e
push 0x3000a730
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x3004cdb5
push 0x3000a710
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3004cdb5
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x3004cdb5
push dword [ebp - 4]
call fcn.30043209
mov edi, eax
test edi, edi
mov dword [ebp - 0xc], edi
je 0x3004cdad
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x3004cdad
mov eax, dword [ebp - 4]
push 0x18
xor edx, edx
pop ecx
div ecx
xor ebx, ebx
and dword [ebp - 8], ebx
xor esi, esi
test eax, eax
jbe 0x3004cdad
mov edx, edi
mov edi, eax
mov eax, dword [edx + 4]
sub eax, 0
je 0x3004cd65
dec eax
dec eax
jne 0x3004cd76
push dword [edx]
call fcn.3004c5a3
cmp ebx, eax
pop ecx
ja 0x3004cd76
mov ebx, eax
jmp 0x3004cd76
push dword [edx]
inc dword [ebp - 8]
call fcn.3004c5a3
cmp esi, eax
pop ecx
ja 0x3004cd76
mov esi, eax
add edx, 0x18
dec edi
jne 0x3004cd49
test esi, esi
je 0x3004cd8b
push esi
push 0x19e1
call fcn.30043b0e
test ebx, ebx
je 0x3004cd9a
push ebx
push 0x19e2
call fcn.30043b0e
cmp dword [ebp - 8], 0
je 0x3004cdad
push dword [ebp - 8]
push 0x19e0
call fcn.30043b0e
push dword [ebp - 0xc]
call fcn.30043266
xor esi, esi
cmp dword [ebp - 0x1c], esi
ja 0x3004cdd0
push esi
push 0x72766c74
call fcn.300436bb
cmp dword [ebp - 0x1c], esi
jbe 0x3004ce63
push 0x3000a6f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
jne 0x3004cde9
push esi
push 0x3366646b
jmp 0x3004ce01
push 0x3000a6dc
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x3004ce08
push eax
push 0x3366646c
call fcn.300436bb
jmp 0x3004ce58
mov eax, dword [ebp - 0x1c]
push 0x18
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.30043209
mov esi, eax
test esi, esi
je 0x3004ce58
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x18
push eax
push esi
push 0
push 0
push 0xb
call edi
test eax, eax
je 0x3004ce47
push 0
push 0x72766c76
call fcn.300436bb
jmp 0x3004ce51
push dword [esi + 4]
push 0x10
call fcn.30043b0e
push esi
call fcn.3003197d
pop ecx
test ebx, ebx
je 0x3004ce63
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3004d33c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x3004d3dd
cmp dword [ebp - 0x90], 2
mov edx, dword [ebp - 0x98]
mov dword [0x300d62b0], edx
jne 0x3004d3d1
mov eax, dword [ebp - 0x9c]
cmp eax, 5
mov cx, word [ebp - 0xc]
mov dword [0x300d62ac], eax
mov word [0x300d62b4], cx
jne 0x3004d3bb
xor eax, eax
inc eax
cmp edx, eax
jb 0x3004d3dd
test cx, cx
mov dword [0x300d62b8], eax
ja 0x3004d3af
cmp edx, eax
jbe 0x3004d3b4
mov dword [0x300d62bc], eax
cmp cx, ax
jbe 0x3004d3dd
jmp 0x3004d3ca
jbe 0x3004d3dd
xor eax, eax
inc eax
mov dword [0x300d62b8], eax
mov dword [0x300d62bc], eax
mov dword [0x300d62c0], eax
jmp 0x3004d3dd
push 0
push 0x77617376
call fcn.300436bb
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
mov dword [section..data], eax
call fcn.30069876
leave
ret

Function at 0x3004d5b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x300d7780], 0
je 0x3004d5d3
mov eax, dword [0x300d777c]
jmp 0x3004d652
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.3006a130
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
je 0x3004d60f
test byte [ebp - 8], 0x10
je 0x3004d60f
xor eax, eax
inc eax
jmp 0x3004d642
mov ecx, dword [0x300d62ac]
xor eax, eax
cmp ecx, 5
mov dword [0x300d777c], eax
jg 0x3004d62b
jne 0x3004d647
cmp dword [0x300d62b0], eax
jbe 0x3004d647
lea eax, [ebp - 0xa0]
push eax
call esi
test eax, eax
je 0x3004d640
test word [ebp - 8], 0x100
jne 0x3004d60a
xor eax, eax
mov dword [0x300d777c], eax
mov dword [0x300d7780], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30069876
leave
ret
Function at 0x3005956b
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x2ec60235
sbb esp, dword [esi - 0x63]
push eax
invalid

Function at 0x3005efe3
Capabilities:
Encode data using xor

Disassembly:
in eax, dx
rcr dword [0xad32e966], 0x7b
test al, 0xe4
cmpsb byte [esi], byte es:[edi]
mov al, byte [0x99facc3c]
adc al, 6
jmp 0x3005f060
add eax, 0xc858440d
and al, 0xcb
xchg dword [eax - 0x61], ecx
aam 0xfa
push ds
xlatb
mov al, 0x75
invalid

Function at 0x3005f657
Capabilities:
Encode data using xor

Disassembly:
invalid
mov edx, 0x6c0a819c
inc esi
xor al, 0x11
in al, dx
rol dword [0x14d9ba57], 0x1a
pushal
xor ah, al
sahf
inc esi
xor al, ch
das
xor byte [esi - 0x5e7bd39a], bl
sal ebx, 0x7c
jbe 0x3005f652
invalid
Function at 0x3008186b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc88], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc8c], eax
mov eax, dword [esi + 0x870]
add eax, 0x20
mov ecx, eax
shl ecx, 3
cmp ecx, 0x320
mov dword [ebp - 0xc9c], ecx
jb 0x300818b8
xor eax, eax
jmp 0x30081a94
push edi
mov edi, eax
shl edi, 4
push edi
lea eax, [ebp - 0xc84]
push 0
push eax
call fcn.3006a130
push edi
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.3006a130
mov ecx, dword [ebp + 0x18]
add esp, 0x18
test ecx, ecx
jbe 0x30081a18
mov eax, dword [ebp + 0x14]
mov edi, dword [esi + 0x30]
shl eax, 2
mov dword [ebp - 0xc90], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
push ebx
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xc98], ecx
jmp 0x30081917
mov eax, dword [ebp - 0xc94]
mov ecx, dword [ebp - 0xc88]
and ecx, 7
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0xc88]
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x30081941
mov eax, dword [ebp - 0xc88]
movzx eax, byte [edi + eax]
jmp 0x30081985
mov ecx, dword [ebp - 0xc88]
cmp byte [edi + ecx], 7
mov ecx, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x3008196f
call 0x3007fbd5
mov ecx, dword [ebp - 0xc88]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x3008197e
call 0x3007fbd5
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc94], 4
inc dword [ebp - 0xc88]
lea eax, [ebp + eax*2 - 0xc84]
inc word [eax]
mov eax, dword [ebp - 0xc8c]
xor edx, edx
mov ecx, eax
and ecx, 7
inc edx
shl edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x300819b7
movzx eax, byte [edi + eax]
jmp 0x300819fb
cmp byte [edi + eax], 7
mov ecx, dword [ebp - 0xc90]
mov eax, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x300819e5
call 0x3007fbd5
mov ecx, dword [ebp - 0xc8c]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x300819f4
call 0x3007fbd5
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc90], 4
inc dword [ebp - 0xc8c]
lea eax, [ebp + eax*2 - 0x644]
inc word [eax]
dec dword [ebp - 0xc98]
jne 0x30081911
pop ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0xc9c], esi
jbe 0x30081a91
movzx eax, word [ebp + esi*2 - 0xc84]
cmp ax, 0x100
movzx eax, ax
jae 0x30081a3e
movzx eax, byte [eax + 0x300247f8]
jmp 0x30081a4b
shr eax, 8
movzx eax, byte [eax + 0x300247f8]
add eax, 8
movzx ecx, word [ebp + esi*2 - 0x644]
cmp cx, 0x100
movzx ecx, cx
jae 0x30081a66
movzx ecx, byte [ecx + 0x300247f8]
jmp 0x30081a73
shr ecx, 8
movzx ecx, byte [ecx + 0x300247f8]
add ecx, 8
mov eax, dword [eax*4 + 0x300247b0]
sub eax, dword [ecx*4 + 0x300247b0]
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc esi
cmp esi, dword [ebp - 0xc9c]
jb 0x30081a24
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30069876
leave
ret 0x14
Function at 0x10005e78
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x10005e9a
mov eax, 0xfffffffd
jmp 0x10005f7a
mov ebx, dword [0x108b30dc]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x10005f48
mov ebx, dword [0x108b30dc]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x10005ee9
mov ebx, dword [0x108b30dc]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x10005ee9
mov eax, 1
jmp 0x10005eee
mov eax, 0
test eax, eax
je 0x10005f1a
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x10005f03
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x108b30dc]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x10005f70
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x10005f7a
mov esp, ebp
pop ebp
ret 4

Function at 0x10006181
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10006234
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x10006bb3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10006181
test eax, eax
je 0x10006bf6
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x10006bf6
cmp word [eax], 0x5a4d
jne 0x10006bf6
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x10006bf6
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.10006253
mov eax, dword [ebp + 8]
jmp 0x10006c0f
mov esp, ebp
pop ebp
ret 4
Function at 0x10051d2d
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 0x10051e02
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x10051e02
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x10051e02
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 0x10051d88
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 0x10051e02
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10051dcd
test dl, dl
je 0x10051dc9
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10051dcd
add ecx, 2
add eax, 2
test dl, dl
jne 0x10051dad
xor eax, eax
jmp 0x10051dd2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10051de4
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x10051def
inc esi
cmp esi, ebp
jae 0x10051e02
mov edx, dword [esp + 0x10]
jmp 0x10051da3
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 0x10052066
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x10052071
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x10052085
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10052089
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x100520c2
cmp dword [edi + ecx], 0x4550
jne 0x100520c2
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x100520c2
test byte [edi + ecx + 0x16], 2
je 0x100520c2
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x100520c7
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x10052103
xor eax, eax
jmp 0x100520e6
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x1005210c
inc edx
movzx eax, dx
cmp eax, edi
jl 0x100520e6
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x10052112
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 0x1005214a
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x10052158
add edx, 0x20
cmp eax, edx
jne 0x10052169
test bx, bx
je 0x1005219e
add esi, 2
add edi, 2
jmp 0x1005213a
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10052177
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x10052185
add edx, 0x20
sub ecx, edx
je 0x1005219e
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x10052133
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 0x100521b7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x10052278
test ecx, ecx
je 0x10052278
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x10052278
test ebx, ebx
je 0x10052278
mov ebx, eax
add ebx, edx
je 0x10052278
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x10052278
cmp dword [edx + eax + 0x14], 0
je 0x10052278
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x10052278
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x10052268
test dl, dl
je 0x10052264
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x10052268
add edi, 2
add esi, 2
test dl, dl
jne 0x10052248
xor eax, eax
jmp 0x1005226d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10052284
inc ebp
cmp ebp, dword [esp + 4]
jb 0x10052235
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x10056430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1010cee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.101017b6
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1005a0c0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10056484
jmp dword [ecx*4 + 0x100565ec]
mov al, byte [esi]
test al, al
je 0x100564b2
cmp al, 0x20
je 0x1005649e
cmp al, 0xa1
jne 0x100564b2
cmp byte [esi + 1], al
jne 0x100564b2
test al, 0x80
je 0x100564aa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100564b2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10056491
test ecx, ecx
je case.default.0x10056484
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10056484
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100564f8
cmp dl, 0xa1
jne 0x100564ec
cmp byte [eax + 1], 0xa1
jne 0x100564ec
test ecx, ecx
jne 0x100564e4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1005650c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10056526
jmp 0x1005650c
cmp dl, 0x20
jne 0x1005650a
test ecx, ecx
jne 0x10056503
mov edi, eax
mov ecx, 1
jmp 0x1005650c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100564cc
cmp ecx, 1
jne case.default.0x10056484
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10056484
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10056484
mov al, byte [esi]
test al, al
je 0x1005657e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10056564
mov cl, byte [esi + 1]
test cl, cl
je 0x1005657e
cmp al, 0xa1
jne 0x10056554
cmp cl, al
je 0x10056561
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1005a390
inc esi
jmp 0x10056576
cmp al, 0x20
je 0x10056576
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1005a3d0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1005653d
push 0
lea ecx, [esp + 0x14]
call fcn.1005a3d0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10068940
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100565b1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10882868
call fcn.1005a2c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10101748
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10076310
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x108bf888]
xor edx, edx
cmp eax, edx
jne 0x10076336
xor eax, eax
mov byte [eax + 0x108bf788], al
inc eax
cmp eax, 0x100
jl 0x1007631e
mov dword [0x108bf888], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x108bf788
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x100763c7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1007639a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10076368
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10076440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10076493
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1007647a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret