joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465860
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x465a32
xor ecx, ecx
xor edx, edx
mov ch, byte [eax]
mov dl, byte [eax + 2]
mov cl, byte [eax + 1]
push ebx
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 3]
push ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 6]
mov dword [eax], ecx
xor ecx, ecx
push esi
mov ch, byte [eax + 4]
push edi
mov cl, byte [eax + 5]
xor ebp, ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
xor ecx, ecx
mov ch, byte [eax + 8]
lea edi, [edx + 0xc]
mov cl, byte [eax + 9]
mov word [eax + 8], cx
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov cx, word [eax + 8]
mov word [edx + 8], cx
xor ecx, ecx
movzx si, byte [eax + 0xb]
mov ch, byte [eax + 0xa]
or ecx, esi
mov word [eax + 0xa], cx
mov word [edx + 0xa], cx
movzx si, byte [eax + 0xb]
xor ecx, ecx
mov ch, byte [eax + 0xa]
or ecx, esi
mov esi, dword [eax + 0xc]
mov word [eax + 0xa], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x11]
mov bp, word [eax + 0xa]
xor ecx, ecx
mov ch, byte [eax + 0x10]
add ebp, 0xc
or ecx, esi
mov word [eax + 0x10], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x11]
xor ecx, ecx
lea edi, [edx + ebp + 2]
mov ch, byte [eax + 0x10]
or ecx, esi
mov esi, dword [eax + 0x14]
mov word [eax + 0x10], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x19]
xor ecx, ecx
mov cx, word [eax + 0x10]
lea ebp, [ecx + ebp + 2]
xor ecx, ecx
mov ch, byte [eax + 0x18]
or ecx, esi
lea edi, [edx + ebp + 2]
mov word [eax + 0x18], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x19]
xor ecx, ecx
mov ch, byte [eax + 0x18]
or ecx, esi
mov esi, dword [eax + 0x1c]
mov word [eax + 0x18], cx
and ecx, 0xffff
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx si, byte [eax + 0x21]
xor ecx, ecx
mov cx, word [eax + 0x18]
lea ebp, [ecx + ebp + 2]
xor ecx, ecx
mov ch, byte [eax + 0x20]
or ecx, esi
lea edi, [edx + ebp + 2]
mov word [eax + 0x20], cx
mov word [edx + ebp], cx
movzx si, byte [eax + 0x21]
xor ecx, ecx
mov ch, byte [eax + 0x20]
or ecx, esi
mov esi, dword [eax + 0x24]
mov word [eax + 0x20], cx
and ecx, 0xffff
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dl, byte [eax + 6]
xor ecx, ecx
mov ch, byte [eax + 4]
pop edi
mov cl, byte [eax + 5]
pop esi
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
pop ebp
shl ecx, 8
or ecx, edx
xor edx, edx
mov dh, byte [eax]
mov dword [eax + 4], ecx
mov dl, byte [eax + 1]
xor ecx, ecx
mov ch, byte [eax + 8]
pop ebx
mov cl, byte [eax + 9]
mov word [eax + 8], cx
xor ecx, ecx
mov cl, byte [eax + 2]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + 3]
shl edx, 8
or edx, ecx
mov dword [eax], edx
ret
Function at 0x468650
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x9c]
push esi
push 0x40
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00468460
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00468590
mov esi, dword [esp + 0xb0]
add esp, 0x14
xor edx, edx
mov cl, byte [esp + edx + 4]
mov al, cl
and cl, 0xf
sar al, 4
and al, 0xf
cmp al, 0xa
movsx eax, al
jge 0x4686ca
add eax, 0x30
jmp 0x4686cd
add eax, 0x57
mov byte [esi], al
cmp cl, 0xa
movsx eax, cl
jge 0x4686dc
add eax, 0x30
jmp 0x4686df
add eax, 0x57
mov byte [esi + 1], al
inc edx
add esi, 2
cmp edx, 0x10
jl 0x4686b0
pop esi
add esp, 0x94
ret

Function at 0x468700
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov ecx, 0x10
xor eax, eax
mov edi, ebp
mov esi, dword [esp + 0xa0]
rep stosd dword es:[edi], eax
mov ecx, 8
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x14], 0x9d14e9a1
mov dword [esp + 0x18], 0x593b6b0e
je 0x46878b
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x28
jne 0x46876f
mov byte [esi + 0x20], al
mov ecx, 0x20
jmp 0x468779
cmp ecx, 0x38
jle 0x468779
mov ecx, 0x38
mov eax, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x494124
test ecx, ecx
je 0x4687bf
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x38
jle 0x4687aa
mov ecx, 0x38
xor eax, eax
test ecx, ecx
jle 0x4687bf
mov dl, byte [eax + 0x494124]
xor byte [esp + eax + 0x1c], dl
inc eax
cmp eax, ecx
jl 0x4687b0
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00468650
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.01d0a8e3
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + ebp]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
cdq
and edx, 3
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
sar eax, 2
xor ecx, ecx
test eax, eax
jle 0x468824
mov esi, ebp
mov dl, byte [esi]
add esi, 4
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, eax
jl 0x468817
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x4693f0
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x469412
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x469426
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x46943a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x4695cd
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x46959e
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x46949c
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x469506
mov eax, dword [esp + 0x14]
push eax
call fcn.0046c4e7
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.0046c3fe
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x4695b3
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x4695b3
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x4695d4
jmp 0x46948c
push ecx
push str.Illegal_character__c_in_input._n
call fcn.0046df42
add esp, 8
push 1
call fcn.0046d89e
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x46ce91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46ceb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046f102
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x46ced4
test byte [esp + 8], 2
je 0x46ced4
call fcn.0046f175
mov dword [eax], 0xd
call fcn.0046f17e
mov dword [eax], 5
jmp 0x46cead
xor eax, eax
ret

Function at 0x47e5b5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47e5ed
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.0047c642
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047c61a
jmp 0x47e5f9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47fcaa
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 0x47fcec
call fcn.0048575f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47fcec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47fce3
xor eax, eax
jmp 0x47fcf4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047fcfa
pop edi
pop esi
pop ebx
ret 4

Function at 0x485c8f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x485cbd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x485cdb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00485bf5
jmp 0x485cdb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x485cdb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00485bf5
test edi, edi
mov eax, edi
jne 0x485cc5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x48abe4
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
fiadd dword [edi]
invalid
stc
jb 0x48abf2
adc al, 1
cmp edi, esp
sbb dword [ebp - 0x2879c29], edx
std
push edx
pushal
clc
jmp 0x48ac07
lodsd eax, dword [esi]
add eax, dword [ecx + 0x79]
in al, dx
jb 0x48abb2
sub eax, 0xeca119f7
push ebx
jnp 0x48abf0
call 0x48ac36
sub al, byte [eax]
add byte [eax], al
pop esi
push esi
mov dword [0x18c1a8a], eax
mov ah, 0x1a
pop edx
je 0x48ac1c
imul esp, ecx, 0xffffffa8
dec esp
sub dword [0x6fab49a2], esp
cdq
sub bh, bl
lock or byte [ecx + ecx*4 - 0x5a], cl
add dword [eax + 0x20], ecx
test ah, al
das
sbb ch, cl
nop
adc al, 0xce
rcr dword [ebx - 0x15], 0x1b
push ecx
jnp 0x48ac37
jmp 0x48ac54
int1
pop esi
sbb cl, byte [esi]
sub al, 0x8f
pop ds
jp 0x48abf9
iretd
add ebx, 0xffffffac
jmp 0x48ac6c
cmp dword [ebx], 0
jmp 0x48ac90
je 0x48adfe
clc
jmp 0x48acc4
mov ecx, ebx
jae 0x48acea
inc edi
std
mov es, ebx
xchg ebx, eax
mov ah, byte [ecx - 0x25]
fild qword [eax]
pop edi
inc ecx
jl 0x48acf2
test cl, ch
adc byte [esi + 0x36], 0xe1
test eax, 0x1a4eafe3
stosd dword es:[edi], eax
dec ecx
sbb dword [eax + edx*4], ebp
test byte [ebx + 0x29eb04c3], 0x66
pushfd
out 0xf3, eax
clc
add ebx, 4
jmp 0x48ad18
clc
sahf
invalid
mov edx, dword [ebx]
jmp 0x48ad2d
add edx, ebx
stc
jb 0x48ad40
mov esi, 0xc17a943f
and edx, 0x3d0f7446
invalid
mov eax, dword [ebx + 4]
jmp 0x48ad58
sub dword [edx], 0x443fa306
jmp 0x48ad72
add edx, 4
jmp 0x48ad80
sub eax, 1
stc
jmp 0x48ad9f
jne 0x48ad43
jmp 0x48adba
add ebx, 8
jmp 0x48adc8
sub dword [ecx], 1
clc
jmp 0x48ade6
jne 0x48aced
stc
jb 0x48adf9
sbb esp, dword [eax + 0x6f5cec9e]
mov ebx, 0xe896be3c
and al, byte [eax]
add byte [eax], al
call 0x48ae20
jmp 0x48ae0e
popal
stc
jb 0x48ae1b
xor al, 0xcc
imul ecx, dword [ebx - 0x64954a60], 0xffffff8b
jmp fcn.0046ab21
Function at 0x48ac36
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
fiadd dword [edi]
invalid
stc
jb 0x48abf2
adc al, 1
cmp edi, esp
sbb dword [ebp - 0x2879c29], edx
std
push edx
pushal
clc
jmp 0x48ac07
lodsd eax, dword [esi]
add eax, dword [ecx + 0x79]
in al, dx
jb 0x48abb2
sub eax, 0xeca119f7
push ebx
jnp 0x48abf0
call 0x48ac36
sub al, byte [eax]
add byte [eax], al
pop esi
push esi
mov dword [0x18c1a8a], eax
mov ah, 0x1a
pop edx
je 0x48ac1c
imul esp, ecx, 0xffffffa8
dec esp
sub dword [0x6fab49a2], esp
cdq
sub bh, bl
lock or byte [ecx + ecx*4 - 0x5a], cl
add dword [eax + 0x20], ecx
test ah, al
das
sbb ch, cl
nop
adc al, 0xce
rcr dword [ebx - 0x15], 0x1b
push ecx
jnp 0x48ac37
jmp 0x48ac54
int1
pop esi
sbb cl, byte [esi]
sub al, 0x8f
pop ds
jp 0x48abf9
iretd
add ebx, 0xffffffac
jmp 0x48ac6c
cmp dword [ebx], 0
jmp 0x48ac90
je 0x48adfe
clc
jmp 0x48acc4
mov ecx, ebx
jae 0x48acea
inc edi
std
mov es, ebx
xchg ebx, eax
mov ah, byte [ecx - 0x25]
fild qword [eax]
pop edi
inc ecx
jl 0x48acf2
test cl, ch
adc byte [esi + 0x36], 0xe1
test eax, 0x1a4eafe3
stosd dword es:[edi], eax
dec ecx
sbb dword [eax + edx*4], ebp
test byte [ebx + 0x29eb04c3], 0x66
pushfd
out 0xf3, eax
clc
add ebx, 4
jmp 0x48ad18
clc
sahf
invalid
mov edx, dword [ebx]
jmp 0x48ad2d
add edx, ebx
stc
jb 0x48ad40
mov esi, 0xc17a943f
and edx, 0x3d0f7446
invalid
mov eax, dword [ebx + 4]
jmp 0x48ad58
sub dword [edx], 0x443fa306
jmp 0x48ad72
add edx, 4
jmp 0x48ad80
sub eax, 1
stc
jmp 0x48ad9f
jne 0x48ad43
jmp 0x48adba
add ebx, 8
jmp 0x48adc8
sub dword [ecx], 1
clc
jmp 0x48ade6
jne 0x48aced
stc
jb 0x48adf9
sbb esp, dword [eax + 0x6f5cec9e]
mov ebx, 0xe896be3c
and al, byte [eax]
add byte [eax], al
call 0x48ae20
jmp 0x48ae0e
popal
stc
jb 0x48ae1b
xor al, 0xcc
imul ecx, dword [ebx - 0x64954a60], 0xffffff8b
jmp fcn.0046ab21
Function at 0x473e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4620d8
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.0046edd0
test eax, eax
jne 0x473edc
push ebp
push 0x478efc
mov ecx, edi
call fcn.004730f0
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.0046e950
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00465090
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0046ef80
add esp, 4
test eax, eax
je 0x473f7f
add esi, 0x18
push esi
call fcn.00465ae0
add esi, eax
push esi
call fcn.00465ae0
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x474282
jmp dword [ecx*4 + 0x4106c0]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00473230
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.00465ae0
add esi, eax
push esi
call fcn.00465ae0
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x473fd0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004653ec]
test eax, eax
je 0x473fd0
mov eax, 1
jmp 0x473fd2
xor eax, eax
cmp ebx, 8
jge 0x474237
cmp ebx, 7
ja 0x474282
jmp dword [ebx*4 + 0x4106d0]
test eax, eax
jne 0x47424a
mov ecx, dword [esp + 0x10]
push eax
push 0x478ee8
call fcn.004730f0
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.00474790
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], fcn.00466ab0
call fcn.00465290
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 0x47ce40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x48f7e0]
xor edx, edx
cmp eax, edx
jne 0x47ce66
xor eax, eax
mov byte [eax + 0x48f6e0], al
inc eax
cmp eax, 0x100
jl 0x47ce4e
mov dword [0x48f7e0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x48f6e0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x47cef7
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 0x47ceca
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 0x47ce98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x47cf70
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 0x47cfc3
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 0x47cfaa
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 0x481260
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 0x481481
cmp eax, 8
jg 0x481481
cmp dword [esp + 0x8c], 2
jl 0x481481
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 0x481481
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x481481
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4812e7
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 0x48146a
mov ebp, dword [fcn.00465430]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x481319
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x481451
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x481339
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.00465440]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x481378
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.0046543c]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.004653fc]
test eax, eax
jne 0x481438
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.00480870
cmp eax, 1
jne 0x481462
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.00481120
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x48132d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x48146a
jmp 0x481304
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00480470
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