joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426b60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x80f78c]
cmp eax, 0x270
jl 0x426c40
cmp eax, 0x271
jne 0x426b81
mov eax, 0x1105
call fcn.00426b20
xor ecx, ecx
jmp 0x426b90
mov eax, dword [ecx*4 + 0x84bd8c]
xor eax, dword [ecx*4 + 0x84bd88]
inc ecx
and eax, 0x7fffffff
xor eax, dword [ecx*4 + 0x84bd84]
mov edx, eax
shr eax, 1
and edx, 1
xor eax, dword [edx*4 + 0x821168]
xor eax, dword [ecx*4 + 0x84c3b8]
cmp ecx, 0xe3
mov dword [ecx*4 + 0x84bd84], eax
jl 0x426b90
cmp ecx, 0x26f
jge 0x426c11
lea ecx, [ecx*4 + 0x84bd88]
mov edi, edi
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
add ecx, 4
and eax, 0x7fffffff
xor eax, dword [ecx - 4]
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x821168]
xor edx, dword [ecx - 0x390]
shr eax, 1
xor edx, eax
cmp ecx, 0x84c744
mov dword [ecx - 4], edx
jl 0x426be0
mov ecx, dword [0x84c744]
mov eax, dword [0x84bd88]
xor eax, ecx
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x821168]
xor eax, dword [0x84c3b8]
mov dword [0x84c744], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x84bd88]
inc eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov dword [0x80f78c], eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x439680
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x80f798]
cmp eax, 0x270
jl 0x413780
cmp eax, 0x271
jne 0x4136c4
push 0x1105
call fcn.004135b0
add esp, 4
xor ecx, ecx
jmp 0x4136d0
mov eax, dword [ecx*4 + 0x84aa0c]
xor eax, dword [ecx*4 + 0x84aa08]
inc ecx
and eax, 0x7fffffff
xor eax, dword [ecx*4 + 0x84aa04]
mov edx, eax
shr eax, 1
and edx, 1
xor eax, dword [edx*4 + 0x821158]
xor eax, dword [ecx*4 + 0x84b038]
cmp ecx, 0xe3
mov dword [ecx*4 + 0x84aa04], eax
jl 0x4136d0
cmp ecx, 0x26f
jge 0x413751
lea ecx, [ecx*4 + 0x84aa08]
mov edi, edi
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
add ecx, 4
and eax, 0x7fffffff
xor eax, dword [ecx - 4]
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x821158]
xor edx, dword [ecx - 0x390]
shr eax, 1
xor edx, eax
cmp ecx, 0x84b3c4
mov dword [ecx - 4], edx
jl 0x413720
mov ecx, dword [0x84b3c4]
mov eax, dword [0x84aa08]
xor eax, ecx
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x821158]
xor eax, dword [0x84b038]
mov dword [0x84b3c4], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x84aa08]
inc eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov dword [0x80f798], eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
jmp 0x4136a0
Function at 0x439bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6522c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x7d9a88]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0043bb60
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x188], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esi + 0x68], edx
push str.INPUT_TASK
mov dword [esi + 0x6c], ecx
mov edx, 0x2e
push 0xb
mov ecx, esi
mov dword [esi], vtable.kcTaskTop.0
mov word [esi + 0x80], dx
mov dword [esi + 0x184], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0xb
mov dword [esp + 0x2c], str.INPUT_TASK
call fcn.00439d80
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x40]
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], eax
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ecx
push eax
mov ecx, esi
mov dword [esp + 0x20], 2
call fcn.0043af80
mov ecx, dword [esp + 0x40]
call fcn.0053ff30
lea ecx, [esp + 0x3c]
push ecx
push str.SOUND_TASK
push 0xd
mov ecx, esi
mov dword [esi + 0x78], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0xd
mov dword [esp + 0x2c], str.SOUND_TASK
call fcn.00439d80
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 2
call fcn.0043af80
mov ecx, dword [esp + 0x40]
call fcn.0053ff30
mov dword [esi + 0x7c], eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x14
Function at 0x441a19
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
add eax, 0xfffffe2a
push esi
mov esi, ecx
cmp eax, 6
ja case.default.0x441a25
jmp dword [eax*4 + 0x441b28]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x80], ecx
call fcn.004b6f30
push esi
push 0
push 0x441920
mov dword [esi + 0x84], eax
call fcn.005af765
add esp, 0xc
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x74]
push 0xffffffffffffffff
push eax
call dword [0x65b164]
xor eax, eax
pop esi
ret 0x18
cmp dword [esp + 0x14], 0
je 0x441a7f
mov ecx, dword [esi + 0x6c]
push 5
push ecx
call dword [0x65b36c]
xor eax, eax
pop esi
ret 0x18
mov edx, dword [esi + 0x6c]
push 0
push edx
call dword [0x65b36c]
xor eax, eax
pop esi
ret 0x18
lea eax, [esp + 0x14]
push eax
push 0
push 0x40e
mov ecx, dword [esi + 0x6c]
push ecx
call dword [0x65b37c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
xor eax, eax
pop esi
ret 0x18
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x40b
jmp 0x441b05
mov eax, dword [esi + 0x6c]
lea edx, [esp + 0x14]
push edx
push 0
push 0x40c
push eax
call dword [0x65b37c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
xor eax, eax
pop esi
ret 0x18
lea eax, [esp + 0x14]
push eax
push 0
push 0x40f
jmp 0x441a9d
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x410
mov edx, dword [esi + 0x6c]
push edx
call dword [0x65b37c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
xor eax, eax
pop esi
ret 0x18
mov eax, 1
pop esi
ret 0x18

Function at 0x443d59
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
add eax, 0xfffffe58
push esi
mov esi, ecx
cmp eax, 3
ja case.default.0x443d65
jmp dword [eax*4 + 0x443dfc]
push esi
push 0
push 0x443c90
call fcn.005af765
add esp, 0xc
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x80]
push 0xffffffffffffffff
push eax
call dword [0x65b164]
mov ecx, dword [esi + 0x80]
push ecx
call dword [0x65b16c]
xor eax, eax
pop esi
ret 0x18
cmp dword [esp + 0x14], 0
je 0x443dba
mov edx, dword [esi + 0x6c]
push 5
push edx
call dword [0x65b36c]
xor eax, eax
pop esi
ret 0x18
mov eax, dword [esi + 0x6c]
push 0
push eax
call dword [0x65b36c]
xor eax, eax
pop esi
ret 0x18
mov ecx, dword [esi + 0x6c]
push 0
push 0
push 0x40a
push ecx
call dword [0x65b388]
xor eax, eax
pop esi
ret 0x18
mov edx, dword [esp + 0x14]
mov dword [esi + 0x74], edx
xor eax, eax
pop esi
ret 0x18
mov eax, 1
pop esi
ret 0x18
Function at 0x4529f9
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
sub eax, 0x13d
push esi
mov esi, ecx
je 0x452a37
sub eax, 1
je 0x452a0c
mov eax, 1
pop esi
ret 0x18
cmp dword [esp + 0x14], 0
je 0x452a25
mov eax, dword [esi + 0x6c]
push 5
push eax
call dword [0x65b36c]
xor eax, eax
pop esi
ret 0x18
mov ecx, dword [esi + 0x6c]
push 0
push ecx
call dword [0x65b36c]
xor eax, eax
pop esi
ret 0x18
push esi
push 0
push 0x452920
call fcn.005af765
mov edx, dword [esi + 0x7c]
add esp, 0xc
push 0xffffffffffffffff
push edx
mov dword [esi + 0x70], eax
call dword [0x65b164]
xor eax, eax
pop esi
ret 0x18

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

Disassembly:
mov eax, 0x1068
call fcn.005af820
mov eax, dword [0x7d9a88]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push esi
mov esi, ecx
cmp dword [esi + 0x84], 0
mov dword [esp + 8], esi
je 0x453047
push ebx
push ebp
push edi
push 0x481
push eax
call dword [0x65b330]
mov ebx, dword [0x65b37c]
push 0
push 0
mov edi, eax
push 0x1009
push edi
call ebx
mov ecx, dword [esi + 0x84]
call fcn.0051f700
mov ebp, eax
xor esi, esi
test ebp, ebp
jle 0x453044
lea ecx, [ecx]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [edx + 0x84]
push esi
call fcn.0051f730
test eax, eax
je 0x453044
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x58]
push 0x6c21b4
push ecx
mov dword [esp + 0x24], 1
call fcn.005ae775
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0
push 0x1007
lea edx, [esp + 0x60]
push edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0
call ebx
lea edx, [esp + 0x18]
push edx
push 0
mov eax, 1
push 0x1006
lea ecx, [esp + 0x80]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
call ebx
inc esi
cmp esi, ebp
jl 0x452fb0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1068]
pop esi
xor ecx, esp
call fcn.005ae766
add esp, 0x1068
ret 4

Function at 0x4606c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x652f08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7d9a88]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x24]
push ebx
call fcn.0045f6d0
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x460705
lea edi, [ebx + 0x28]
jmp 0x460707
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x46071f
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::xpressive::regex_error.1.0
mov dword [esi + 0x28], vtable.boost::xpressive::regex_error.0
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x463ed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x653358
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x7d9a88]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0045c040
add esp, 8
mov esi, dword [esp + 0x38]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.00460a40
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00457d00
mov eax, dword [esp + 0x34]
lea edx, [esi + 0xc]
push edx
push esi
push eax
call fcn.00460ed0
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret

Function at 0x475c6c
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push ebp
push esi
add eax, 0xfffffec9
push edi
mov esi, ecx
cmp eax, 5
ja case.default.0x475c57
jmp dword [eax*4 + 0x475df4]
push ebx
mov ebx, dword [esi]
lea eax, [esp + 0x20]
push eax
push 0
lea edi, [esi + 0x78]
push edi
push 0
push 0xab
call fcn.005673b0
mov ecx, eax
call fcn.0053ff30
mov ebp, dword [esp + 0x28]
mov edx, dword [ebx + 0x10]
push eax
push ebp
mov ecx, esi
call edx
mov ecx, dword [edi]
pop ebx
test ecx, ecx
je 0x475de1
call fcn.005026f0
xor ecx, ecx
mov dword [esi + 0x190], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056bdbf
mov edi, dword [esi]
add esp, 4
mov dword [esi + 0x194], eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi + 0x80]
push ecx
lea edx, [esi + 0x7c]
push edx
push 0xaa
mov ecx, esi
call fcn.005673b0
mov ecx, eax
call fcn.0053ff30
push eax
mov eax, dword [edi + 0x10]
push ebp
mov ecx, esi
call eax
push esi
push 0
push 0x475b80
call fcn.005af765
mov ecx, dword [esi + 0x22c]
add esp, 0xc
push 0xffffffffffffffff
push ecx
mov dword [esi + 0x74], eax
call dword [0x65b164]
mov edx, dword [esi + 0x22c]
push edx
call dword [0x65b16c]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x18
cmp dword [esp + 0x1c], 0
je 0x475d60
mov eax, dword [esi + 0x70]
push 5
push eax
call dword [0x65b36c]
cmp dword [esi + 0x78], 0
je 0x475de1
mov ecx, dword [esi + 0x70]
push 0xc
push 0
push 0x40a
push ecx
call dword [0x65b388]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x18
mov edx, dword [esi + 0x70]
push 0
push edx
call dword [0x65b36c]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x18
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x70]
push eax
push 0
push 0x40d
push ecx
call dword [0x65b37c]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x18
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x70]
push edx
push 0
push 0x40e
push eax
call dword [0x65b37c]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x18
mov ecx, dword [esi + 0x70]
push 0
push 0
push 0x40f
push ecx
call dword [0x65b37c]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x18
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x70]
push edx
push 0
push 0x410
push eax
call dword [0x65b37c]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x18
pop edi
pop esi
mov eax, 1
pop ebp
ret 0x18
Function at 0x47f6d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x224
mov eax, dword [0x7d9a88]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x4bc]
push edi
test eax, eax
jne 0x47f6ff
mov ecx, dword [esi + 0x80]
call fcn.005e2040
mov ecx, dword [esi + 0x4c4]
mov ebx, dword [esp + 0x238]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4c0]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
xor ecx, ecx
lea ebp, [esi + 0xb8]
mov edx, dword [ebp]
cmp ebx, edx
jae 0x47f736
xor edx, edx
mov word [esp + ecx*2 + 0x30], dx
jmp 0x47f75c
mov edi, dword [esi + 0x70]
lea eax, [edx + edi]
cmp ebx, eax
jbe 0x47f74c
mov edx, 0x100
mov word [esp + ecx*2 + 0x30], dx
jmp 0x47f75c
mov eax, ebx
sub eax, edx
shl eax, 8
xor edx, edx
div edi
mov word [esp + ecx*2 + 0x30], ax
inc ecx
add ebp, 4
cmp ecx, 0x100
jb 0x47f726
mov ecx, dword [esi + 0x74]
call fcn.0053e680
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.0052a210
mov ecx, dword [esi + 0xa0]
mov dword [esp + 0x28], eax
call fcn.0052a210
mov ecx, dword [esi + 0x74]
mov edi, eax
mov dword [esp + 0x20], edi
call fcn.0053e670
mov ecx, dword [esp + 0x10]
mov ebp, eax
call fcn.005673b0
mov ecx, dword [esi + 0xa0]
mov dword [esp + 0x10], eax
call fcn.005673b0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x2c], eax
call fcn.0053e690
mov edx, dword [esi + 0x7c]
add edx, dword [esi + 0x9c]
mov ecx, dword [esi + 0x78]
add ecx, dword [esi + 0x98]
imul edx, ebx
imul eax, ecx
mov ecx, dword [esi + 0x74]
add edx, ebp
lea ebp, [edx + eax]
mov dword [esp + 0x18], ebp
call fcn.0053e690
imul eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
imul ecx, edi
add ecx, dword [esp + 0x2c]
cmp dword [esi + 0x94], 0
lea edi, [ecx + eax]
mov eax, dword [esp + 0x14]
je 0x47f87c
test eax, eax
jbe 0x47f8e5
mov dword [esp + 0x14], eax
jmp 0x47f820
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
test edx, edx
jbe 0x47f865
mov esi, ebp
lea eax, [edi + 3]
sub esi, edi
mov dword [esp + 0x18], edx
jmp 0x47f840
movzx edx, byte [ecx]
movzx ebx, byte [esi + eax]
movzx edx, word [esp + edx*2 + 0x30]
imul edx, ebx
sar edx, 8
mov byte [eax], dl
add ecx, 4
add eax, 4
sub dword [esp + 0x18], 1
jne 0x47f840
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
add edi, dword [esp + 0x20]
add ebp, ebx
sub dword [esp + 0x14], 1
jne 0x47f820
jmp 0x47f8e5
test eax, eax
jbe 0x47f8e5
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
test ecx, ecx
jbe 0x47f8cc
lea eax, [edi + 3]
sub ebp, edi
jmp 0x47f8a0
movzx edx, byte [esi]
movzx ebx, byte [eax + ebp]
movzx edx, word [esp + edx*2 + 0x30]
imul edx, ebx
sar edx, 8
or bl, 0xff
sub bl, dl
mov byte [eax], bl
add esi, 4
add eax, 4
sub ecx, 1
jne 0x47f8a0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
add edi, dword [esp + 0x20]
add ebp, ebx
sub dword [esp + 0x14], 1
mov dword [esp + 0x18], ebp
jne 0x47f884
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae766
add esp, 0x224
ret 4
Function at 0x47f6e6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x224
mov eax, dword [0x7d9a88]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x4bc]
push edi
test eax, eax
jne 0x47f6ff
mov ecx, dword [esi + 0x80]
call fcn.005e2040
mov ecx, dword [esi + 0x4c4]
mov ebx, dword [esp + 0x238]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4c0]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
xor ecx, ecx
lea ebp, [esi + 0xb8]
mov edx, dword [ebp]
cmp ebx, edx
jae 0x47f736
xor edx, edx
mov word [esp + ecx*2 + 0x30], dx
jmp 0x47f75c
mov edi, dword [esi + 0x70]
lea eax, [edx + edi]
cmp ebx, eax
jbe 0x47f74c
mov edx, 0x100
mov word [esp + ecx*2 + 0x30], dx
jmp 0x47f75c
mov eax, ebx
sub eax, edx
shl eax, 8
xor edx, edx
div edi
mov word [esp + ecx*2 + 0x30], ax
inc ecx
add ebp, 4
cmp ecx, 0x100
jb 0x47f726
mov ecx, dword [esi + 0x74]
call fcn.0053e680
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x1c], ebx
call fcn.0052a210
mov ecx, dword [esi + 0xa0]
mov dword [esp + 0x28], eax
call fcn.0052a210
mov ecx, dword [esi + 0x74]
mov edi, eax
mov dword [esp + 0x20], edi
call fcn.0053e670
mov ecx, dword [esp + 0x10]
mov ebp, eax
call fcn.005673b0
mov ecx, dword [esi + 0xa0]
mov dword [esp + 0x10], eax
call fcn.005673b0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x2c], eax
call fcn.0053e690
mov edx, dword [esi + 0x7c]
add edx, dword [esi + 0x9c]
mov ecx, dword [esi + 0x78]
add ecx, dword [esi + 0x98]
imul edx, ebx
imul eax, ecx
mov ecx, dword [esi + 0x74]
add edx, ebp
lea ebp, [edx + eax]
mov dword [esp + 0x18], ebp
call fcn.0053e690
imul eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x9c]
imul ecx, edi
add ecx, dword [esp + 0x2c]
cmp dword [esi + 0x94], 0
lea edi, [ecx + eax]
mov eax, dword [esp + 0x14]
je 0x47f87c
test eax, eax
jbe 0x47f8e5
mov dword [esp + 0x14], eax
jmp 0x47f820
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
test edx, edx
jbe 0x47f865
mov esi, ebp
lea eax, [edi + 3]
sub esi, edi
mov dword [esp + 0x18], edx
jmp 0x47f840
movzx edx, byte [ecx]
movzx ebx, byte [esi + eax]
movzx edx, word [esp + edx*2 + 0x30]
imul edx, ebx
sar edx, 8
mov byte [eax], dl
add ecx, 4
add eax, 4
sub dword [esp + 0x18], 1
jne 0x47f840
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
add edi, dword [esp + 0x20]
add ebp, ebx
sub dword [esp + 0x14], 1
jne 0x47f820
jmp 0x47f8e5
test eax, eax
jbe 0x47f8e5
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
test ecx, ecx
jbe 0x47f8cc
lea eax, [edi + 3]
sub ebp, edi
jmp 0x47f8a0
movzx edx, byte [esi]
movzx ebx, byte [eax + ebp]
movzx edx, word [esp + edx*2 + 0x30]
imul edx, ebx
sar edx, 8
or bl, 0xff
sub bl, dl
mov byte [eax], bl
add esi, 4
add eax, 4
sub ecx, 1
jne 0x47f8a0
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
add edi, dword [esp + 0x20]
add ebp, ebx
sub dword [esp + 0x14], 1
mov dword [esp + 0x18], ebp
jne 0x47f884
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae766
add esp, 0x224
ret 4
Function at 0x480d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xbc]
test edi, edi
jne 0x480d50
mov ecx, dword [esi + 0x88]
call fcn.005e2040
mov edi, eax
mov ecx, dword [esi + 0x6c]
mov eax, dword [esp + 0x38]
cmp ecx, eax
ja 0x480d5d
mov eax, ecx
shl eax, 8
cdq
idiv ecx
mov ebx, dword [esi + 0xc4]
mov ecx, 0x100
sub ecx, eax
mov eax, dword [esi + 0xc0]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x28], eax
call fcn.0053e680
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x18], eax
call fcn.0053e680
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.0052a210
mov ecx, dword [esi + 0xa4]
mov dword [esp + 0x30], eax
call fcn.0052a210
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x20], eax
call fcn.0053e670
mov ecx, dword [esi + 0x7c]
mov ebp, eax
call fcn.0053e670
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.005673b0
mov ecx, dword [esi + 0xa4]
mov dword [esp + 0x10], eax
call fcn.005673b0
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x38], eax
call fcn.0053e690
mov edx, dword [esi + 0x78]
add edx, dword [esi + 0xa0]
mov ecx, dword [esi + 0x74]
add ecx, dword [esi + 0x9c]
imul edx, dword [esp + 0x18]
imul eax, ecx
mov ecx, dword [esi + 0x7c]
add edx, ebp
lea ebp, [edx + eax]
call fcn.0053e690
mov edx, dword [esi + 0x84]
add edx, dword [esi + 0xa0]
mov ecx, dword [esi + 0x80]
add ecx, dword [esi + 0x9c]
imul edx, dword [esp + 0x1c]
add edx, dword [esp + 0x24]
imul eax, ecx
mov ecx, dword [esi + 0x70]
lea edi, [edx + eax]
call fcn.0053e690
imul eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0xa0]
imul ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x38]
push 0
add ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [0x841c1c]
call fcn.004fb9f0
test ebx, ebx
jbe 0x480ecd
mov dword [esp + 0x24], ebx
nop
mov ebx, dword [esp + 0x28]
test ebx, ebx
jbe 0x480eae
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov esi, ebp
sub edx, edi
sub esi, edi
mov eax, edi
sub ecx, edi
mov dword [esp + 0x14], ebx
mov edi, edi
movzx ebx, byte [edx + eax]
cmp ebx, dword [esp + 0x2c]
jl 0x480e9e
mov ebx, dword [eax]
jmp 0x480ea1
mov ebx, dword [esi + eax]
mov dword [ecx + eax], ebx
add eax, 4
sub dword [esp + 0x14], 1
jne 0x480e90
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
add ebp, dword [esp + 0x18]
add edi, dword [esp + 0x1c]
add dword [esp + 0x10], edx
add dword [esp + 0x38], eax
sub dword [esp + 0x24], 1
jne 0x480e70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4