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

Disassembly:
push 0xffffffffffffffff
push 0x55f387
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.0054ed65
mov dword [esi], method.CEdit.virtual_0
mov eax, dword [0x59a620]
lea edi, [esi + 0x44]
mov dword [edi], eax
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa8], 0x571ccc
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xb8], 0x571cc0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c], 4
push ecx
mov ecx, edi
mov dword [esi], method.CEdit.virtual_0
call fcn.0054d811
mov edx, dword [esp + 0x34]
mov dword [esi + 0x48], ebx
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
xor ecx, ecx
cmp ebx, 1
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x40], eax
setne cl
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x60], edx
mov edx, ecx
mov dword [esi + 0x64], ebx
lea eax, [esi + 0x50]
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [edx + 8]
mov dword [eax + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [esi + 0x68], 0
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
or eax, 0x50801084
push ebx
push ecx
push eax
mov ecx, esi
call fcn.0055647b
test eax, eax
je 0x519b5d
mov eax, dword [ebx + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push eax
call ebx
push eax
call fcn.00554640
test eax, eax
je 0x519a85
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x1c]
push 1
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.00551c76
mov ecx, esi
call fcn.00551dcc
mov ebp, dword [esp + 0x40]
lea eax, [ebp - 1]
cmp eax, 0x27
ja case.0x519ab7.4
xor ecx, ecx
mov cl, byte [eax + 0x519b98]
jmp dword [ecx*4 + 0x519b88]
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xffffffffffffffff
push ecx
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
jmp 0x519b5b
mov edi, dword [edi]
or ecx, 0xffffffff
xor eax, eax
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esi + 0x1c]
push 0xb1
push ecx
call ebx
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push edx
jmp 0x519b46
mov eax, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
call ebx
push 0
push 0
push 0xb7
jmp 0x519b57
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebx
push 0
push ebp
mov dword [esi + 0x68], 1
push 0x102
mov ecx, dword [esi + 0x1c]
push ecx
call ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0054d724
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x51ea10
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x51ea57
mov edi, dword [esp + 0x10]
push edi
call fcn.0054d465
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.00536711
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x51ea8b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x51ea8b
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x51ea75
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x51ea8b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0051eb50
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x51eabe
cmp edi, 0x5a
jle 0x51eabe
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x51eabe
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x51eaed
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x51eb33
cmp ebx, 1
jge 0x51eb33
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x51eb33
mov al, byte [esi + 0x1d]
test al, al
jne 0x51eb33
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x51eb33
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x51eb33
mov al, byte [esi + 0x1d]
test al, al
je 0x51eb13
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0051eb50
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x51fcf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x51fd17
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.00536711
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.00536c14
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.00536711
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x51fd4b
push esi
push ebx
push edi
mov ecx, ebp
call fcn.0051ff10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x51fd60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5b869c]
xor edx, edx
cmp eax, edx
jne 0x51fd86
xor eax, eax
mov byte [eax + 0x5b859c], al
inc eax
cmp eax, 0x100
jl 0x51fd6e
mov dword [0x5b869c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5b859c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x51fe17
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 0x51fdea
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 0x51fdb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x51fe90
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 0x51fee3
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 0x51feca
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

Function at 0x526890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55f64e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005271b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x57234c
call fcn.0054d465
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x526923
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0054d465
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x52691c
push 0
mov ecx, eax
call fcn.0051d9d0
mov dword [esi + 0xc], eax
jmp 0x526925
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x526925
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x5401b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59bed4]
jne 0x5401be
repz ret
jmp fcn.005477b3
Function at 0x546905
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59bed4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0053b5a1
and dword [ebp - 0x14], 0
cmp dword [0x5cae80], 0
mov dword [ebp - 0x18], eax
jne 0x5469b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x546a60
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x546a60
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x57a8f8
push ebx
mov dword [0x5cae80], eax
call edi
push eax
call esi
push 0x57a8e4
push ebx
mov dword [0x5cae84], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5cae88], eax
call edi
push eax
call esi
mov dword [0x5cae90], eax
test eax, eax
je 0x5469b8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5cae8c], eax
mov eax, dword [0x5cae8c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x546a11
cmp dword [0x5cae90], ecx
je 0x546a11
push eax
call esi
push dword [0x5cae90]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x546a11
test ebx, ebx
je 0x546a11
call edi
test eax, eax
je 0x546a08
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x546a08
test byte [ebp - 8], 1
jne 0x546a11
or dword [ebp + 0x10], 0x200000
jmp 0x546a44
mov eax, dword [0x5cae84]
cmp eax, dword [ebp - 0x18]
je 0x546a44
push eax
call esi
test eax, eax
je 0x546a44
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x546a44
mov eax, dword [0x5cae88]
cmp eax, dword [ebp - 0x18]
je 0x546a44
push eax
call esi
test eax, eax
je 0x546a44
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5cae80]
call esi
test eax, eax
je 0x546a60
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x546a62
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005401b4
leave
ret

Function at 0x54fb5b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x54fb93
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0054db7f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054db57
jmp 0x54fb9f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x5513cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x55140e
call fcn.0055790c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x55140e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x551405
xor eax, eax
jmp 0x551416
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0055141c
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c9aa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4c9aba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c9ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c9ab0
mov eax, 1
add ebx, ebx
jne 0x4c9ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c9ae4
jne 0x4c9b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c9b03
dec eax
add ebx, ebx
jne 0x4c9af0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c9ac8
add ebx, ebx
jne 0x4c9aff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c9b55
xor ecx, ecx
sub eax, 3
jb 0x4c9b1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c9b8a
sar eax, 1
mov ebp, eax
jmp 0x4c9b26
add ebx, ebx
jne 0x4c9b26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c9af4
inc ecx
add ebx, ebx
jne 0x4c9b34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c9af4
add ebx, ebx
jne 0x4c9b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c9b36
jne 0x4c9b52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c9b36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c9b74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c9b66
jmp 0x4c9ab6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c9b74
add edi, ecx
jmp 0x4c9ab6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c9b92
cmp byte [edi], 0x11
jne 0x4c9b92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4c9b97
lea edi, [esi + 0xc5000]
mov eax, dword [edi]
or eax, eax
je 0x4c9c0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe2274]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe23c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c9bc4
mov ecx, edi
jns 0x4c9bf3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe23cc]
or eax, eax
je 0x4c9c09
mov dword [ebx], eax
add ebx, 4
jmp 0x4c9be1
call dword [esi + 0xe23dc]
mov ebp, dword [esi + 0xe23d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c9c43
sub esp, 0xffffff80
jmp 0x416310
Function at 0x528834
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x52886c
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x52885a
mov al, 1
jmp 0x5288b6
cmp dword [ebx + 0x54], ecx
jne 0x528863
mov al, 2
jmp 0x5288b6
cmp dword [ebx + 0x7c], ecx
jne 0x5288b6
mov al, 3
jmp 0x5288b6
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x528881
mov al, 4
jmp 0x5288b6
cmp ecx, 5
jne 0x5288a1
cmp ebx, 0
jne 0x52888f
mov al, 5
jmp 0x5288b6
cmp ebx, 1
jne 0x528898
mov al, 6
jmp 0x5288b6
cmp ebx, 2
jne 0x5288a1
mov al, 7
jmp 0x5288b6
cmp ecx, 6
jne 0x5288ad
cmp ebx, 0
jne 0x5288af
mov al, 8
jmp 0x5288b6
cmp ebx, 1
jne 0x5288b6
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x557cca
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x557d02
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x557cf0
mov al, 1
jmp 0x557d4c
cmp dword [ebx + 0x54], ecx
jne 0x557cf9
mov al, 2
jmp 0x557d4c
cmp dword [ebx + 0x7c], ecx
jne 0x557d4c
mov al, 3
jmp 0x557d4c
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x557d17
mov al, 4
jmp 0x557d4c
cmp ecx, 5
jne 0x557d37
cmp ebx, 0
jne 0x557d25
mov al, 5
jmp 0x557d4c
cmp ebx, 1
jne 0x557d2e
mov al, 6
jmp 0x557d4c
cmp ebx, 2
jne 0x557d37
mov al, 7
jmp 0x557d4c
cmp ecx, 6
jne 0x557d43
cmp ebx, 0
jne 0x557d45
mov al, 8
jmp 0x557d4c
cmp ebx, 1
jne 0x557d4c
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x588d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e4b68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00583c60
test eax, eax
jne 0x588dcc
push ebp
push 0x573f4c
mov ecx, edi
call fcn.00587fe0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.005837e0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.005790c0
push ebx
mov dword [esp + 0x4c], ebp
call fcn.00583e10
add esp, 4
test eax, eax
je 0x588e6f
add esi, 0x18
push esi
call fcn.00579aa0
add esi, eax
push esi
call fcn.00579aa0
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x589172
jmp dword [ecx*4 + 0x47c5b0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00588120
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00579aa0
add esi, eax
push esi
call fcn.00579aa0
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x588ec0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004e95c8]
test eax, eax
je 0x588ec0
mov eax, 1
jmp 0x588ec2
xor eax, eax
cmp ebx, 8
jge 0x589127
cmp ebx, 7
ja 0x589172
jmp dword [ebx*4 + 0x47c5c0]
test eax, eax
jne 0x58913a
mov ecx, dword [esp + 0x10]
push eax
push 0x573f38
call fcn.00587fe0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.00589680
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x55a888
call fcn.005792c0
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x591d50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x58c2c0]
xor edx, edx
cmp eax, edx
jne 0x591d76
xor eax, eax
mov byte [eax + 0x58c1c0], al
inc eax
cmp eax, 0x100
jl 0x591d5e
mov dword [0x58c2c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x58c1c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x591e07
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 0x591dda
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 0x591da8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x591e80
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 0x591ed3
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 0x591eba
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
Function at 0x5963d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x5965f1
cmp eax, 8
jg 0x5965f1
cmp dword [esp + 0x8c], 2
jl 0x5965f1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x5965f1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x5965f1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x596457
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x5965da
mov ebp, dword [fcn.004e9550]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x596489
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x5965c1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x5964a9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [fcn.004e9540]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5964e8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.004e9544]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.004e9588]
test eax, eax
jne 0x5965a8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.005959e0
cmp eax, 1
jne 0x5965d2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00596290
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x59649d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x5965da
jmp 0x596474
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.005955e0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c