joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56cf10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590fd7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5b62e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0056b630
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0056b630
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0056b630
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0056c910
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0056c910
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0056c910
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x56d150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591087
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5b62e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0056b4f0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0056b4f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0056b4f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.0056c930
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.0056c930
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.0056c930
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5770fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x577183
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0057bbf0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x577146
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x577168
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x5771de
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.00576ecc
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x5771ca
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x5771de
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x577107
pop esi
pop ebx
leave
ret
Function at 0x57c2c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b62e0]
jne 0x57c2cf
repz ret
jmp fcn.00582a04

Function at 0x583318
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5b65e0]
je 0x583333
inc edi
cmp edi, 0x17
jb 0x583324
cmp edi, 0x17
jae 0x5834b3
push ebp
push 3
call fcn.00589724
cmp eax, 1
pop ecx
je 0x58347f
push 3
call fcn.00589724
test eax, eax
pop ecx
jne 0x583367
cmp dword [0x5b6420], 1
je 0x58347f
cmp ebx, 0xfc
je 0x5834b2
push 0x5bd194
mov ebx, 0x314
push ebx
mov ebp, 0x5c6018
push ebp
call fcn.005831ac
add esp, 0xc
test eax, eax
je 0x58339d
push esi
push esi
push esi
push esi
push esi
call fcn.0057e4eb
add esp, 0x14
push 0x104
mov esi, 0x5c6031
push esi
push 0
mov byte [0x5c6135], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5833e1
push 0x5bd17c
push 0x2fb
push esi
call fcn.005831ac
add esp, 0xc
test eax, eax
je 0x5833e1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0057e4eb
add esp, 0x14
push esi
call fcn.0057dfc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x583426
push esi
call fcn.0057dfc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5c632c
push 0x5bd178
sub ecx, eax
push ecx
push eax
call fcn.0058826f
add esp, 0x14
test eax, eax
je 0x583426
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0057e4eb
add esp, 0x14
jmp 0x583428
xor esi, esi
push 0x5b7a58
push ebx
push ebp
call fcn.005881fe
add esp, 0xc
test eax, eax
je 0x583448
push esi
push esi
push esi
push esi
push esi
call fcn.0057e4eb
add esp, 0x14
push dword [edi*8 + 0x5b65e4]
push ebx
push ebp
call fcn.005881fe
add esp, 0xc
test eax, eax
je 0x58346a
push esi
push esi
push esi
push esi
push esi
call fcn.0057e4eb
add esp, 0x14
push 0x12010
push 0x5bd150
push ebp
call fcn.00589567
add esp, 0xc
jmp 0x5834b2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5834b2
cmp ebp, 0xffffffff
je 0x5834b2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5b65e4]
push dword [esi]
call fcn.0057dfc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x589567
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00582be2
xor ebx, ebx
cmp dword [0x5c66f8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x58963d
push 0x5be2a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x58971d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5be298
push edi
call esi
cmp eax, ebx
je 0x58971d
push eax
call fcn.00582b74
mov dword [esp], 0x5be288
push edi
mov dword [0x5c66f8], eax
call esi
push eax
call fcn.00582b74
mov dword [esp], 0x5be274
push edi
mov dword [0x5c66fc], eax
call esi
push eax
call fcn.00582b74
mov dword [0x5c6700], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0057e820
test eax, eax
pop ecx
pop ecx
je 0x58960b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0057e4eb
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x58963d
push 0x5be258
push edi
call esi
push eax
call fcn.00582b74
cmp eax, ebx
pop ecx
mov dword [0x5c6708], eax
je 0x58963d
push 0x5be240
push edi
call esi
push eax
call fcn.00582b74
pop ecx
mov dword [0x5c6704], eax
mov eax, dword [0x5c6704]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5896c2
cmp dword [0x5c6708], ecx
je 0x5896c2
push eax
call fcn.00582beb
push dword [0x5c6708]
mov esi, eax
call fcn.00582beb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5896c2
cmp edi, ebx
je 0x5896c2
call esi
cmp eax, ebx
je 0x58968f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x58968f
test byte [ebp - 0x18], 1
jne 0x5896c2
lea eax, [ebp - 0x10]
push eax
call fcn.0057e857
test eax, eax
pop ecx
je 0x5896aa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0057e4eb
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5896b9
or dword [ebp + 0x10], 0x200000
jmp 0x5896fd
or dword [ebp + 0x10], 0x40000
jmp 0x5896fd
mov eax, dword [0x5c66fc]
cmp eax, dword [ebp - 8]
je 0x5896fd
push eax
call fcn.00582beb
cmp eax, ebx
pop ecx
je 0x5896fd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5896fd
mov eax, dword [0x5c6700]
cmp eax, dword [ebp - 8]
je 0x5896fd
push eax
call fcn.00582beb
cmp eax, ebx
pop ecx
je 0x5896fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5c66f8]
call fcn.00582beb
cmp eax, ebx
pop ecx
je 0x58971d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x58971f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a3aa7
Capabilities:
Encode data using xor

Disassembly:
xlatb
arpl word [edi + 0x57ce1d8f], sp
inc eax
or dword [eax + eax*8], esi
xor eax, 0xea0805db
sub edx, eax
jg 0x4a3a8f
mov eax, 0xfb99bd4
cmpsb byte [esi], byte es:[edi]
jecxz 0x4a3a45
invalid
mov byte ss:[edi + 0x67], dh
jae 0x4a3a3d
mov ecx, cs
shl byte [edx + edi], 1
mov word [eax - 0xd0e8728], gs
mov ebp, 0x5c9faddd
fistp word [edx]
dec ecx
imul edi, dword [eax + 0x35154872], 0xffffffbb
mov esp, 0xc20342f7
inc esp
adc byte [edi], 0x11
arpl dx, ax
adc dword [ebx - 0x3e], esp
ret 0x4f96
xchg esi, eax
dec edi
xchg esp, eax
jo 0x3084f442
pushfd
aam 0x73
cmp eax, 0x14194560
pop ebx
movsb byte es:[edi], byte [esi]
dec eax
push ss
iretd
das
stosd dword es:[edi], eax
imul edx, dword [ecx + 0x45df15e9], 0xa5eb2259
mov byte [0x9c1aae81], al
and eax, 0xead9e5b8
call 0xde6550e4
js 0x4a3a8d
cwde
jno 0x4a3a64
jge 0x4a3ae1
push ebp
wait
inc ebp
xor bh, dl
sahf
xchg ecx, eax
dec edx
or byte [ebp - 0x40bd6236], ch
std
cmp ebp, edi
mov ecx, 0xf2098675
adc eax, 0x653bc106
adc eax, 0x653bc106
sbb byte [edi + 0x15], al
ja 0x4a3ace
inc eax
ret
Function at 0x402650
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
xor eax, eax
test ecx, ecx
je 0x402747
test edx, edx
je 0x402747
mov ebp, dword [esp + 0x28]
test ebp, ebp
mov dword [esp], ecx
je 0x40269a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
test ebx, ebx
je 0x4026a1
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, ebx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x402680
jmp 0x4026a3
mov esi, 0x1505
jmp 0x4026a3
mov esi, ecx
mov ecx, dword [esp]
mov ebp, dword [ecx + 0x20]
mov ebx, ebp
sub ebx, 1
jb 0x402747
mov dword [esp + 8], edx
mov eax, esi
not eax
or eax, ebx
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
lea edi, [esi + eax]
inc edi
mov edx, ebx
mov dword [esp + 4], ebx
jmp 0x4026e4
inc edi
dec ebp
je 0x402745
mov eax, edi
and eax, edx
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + eax*4]
cmp ebx, 0xffffffff
je 0x402745
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x4026e0
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408d70
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x4026e0
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00408d90
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4026e0
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x402747
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402bc0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
test ecx, ecx
je 0x402cc2
mov esi, edx
test edx, edx
je 0x402cc2
mov dword [esp], ecx
cmp dword [esp + 0x2c], 0
je 0x402cc2
push esi
call fcn.00408d70
add esp, 4
test eax, eax
je 0x402c1a
mov ecx, 0x1505
xor edi, edi
movzx edx, byte [esi + edi]
test edx, edx
je 0x402c21
mov ebp, ecx
shl ebp, 5
add ebp, ecx
add ebp, edx
inc edi
mov ecx, ebp
cmp eax, edi
jne 0x402c00
jmp 0x402c23
mov ebp, 0x1505
jmp 0x402c23
mov ebp, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
mov edi, esi
mov edx, ebp
not edx
sub edi, 1
mov dword [esp + 0xc], edx
jae 0x402cca
mov edi, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x402c84
call fcn.00402de0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 8]
jne 0x402cc2
push ecx
call fcn.00408d70
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov esi, dword [ecx + 0x20]
mov edx, esi
sub edx, 1
jae 0x402d52
mov edi, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 8]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + edi*4], edx
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], edi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], eax
mov dword [esp + 0x14], edi
mov eax, edi
or eax, edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
lea ebx, [eax + ebp]
inc ebx
jmp 0x402cf8
inc ebx
dec esi
je 0x402c40
mov edi, ebx
and edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402c45
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402cf0
mov ecx, dword [ecx + 0xc]
mov edi, dword [ecx + eax*4]
push edi
call fcn.00408d70
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402cf0
push dword [esp + 4]
push edi
push dword [esp + 0x10]
call fcn.00408d90
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402cf0
mov eax, 0xffffffff
jmp 0x402cc2
mov eax, dword [esp + 0xc]
or eax, edx
mov edi, dword [ecx + 4]
mov dword [esp + 0x14], edi
lea ebx, [eax + ebp]
inc ebx
mov dword [esp + 0x10], edx
jmp 0x402d7c
inc ebx
dec esi
mov edx, dword [esp + 0x10]
je 0x402c7f
mov edi, ebx
and edi, edx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x402c84
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebp
jne 0x402d70
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
push eax
call fcn.00408d70
mov ecx, dword [esp + 4]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x402d70
push dword [esp + 4]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00408d90
mov ecx, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x402d70
jmp 0x402c84
Function at 0x403500
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x4036b6
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
movzx edi, cx
shr ecx, 0x10
test ebx, ebx
je 0x4036af
mov edx, 0x5e6ea9af
mov eax, ebx
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov esi, ebx
sub esi, eax
jmp 0x403593
add ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
mov ebx, dword [esp + 0x10]
sub ebx, esi
mov esi, 0x15b0
je 0x4036af
xor edx, edx
cmp esi, 8
mov dword [esp + 4], esi
jb 0x40360d
and esi, 0x1ff8
mov dword [esp], esi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
movzx edx, byte [ebp + edx]
add edx, edi
add ecx, edx
movzx esi, byte [ebp + eax + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebp + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebp + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebp + eax + 6]
add edx, esi
mov esi, dword [esp + 4]
add ecx, edx
movzx edi, byte [ebp + eax + 7]
add edi, edx
add ecx, edi
lea edx, [eax + 8]
add eax, 0xf
cmp eax, esi
jb 0x4035b0
add ebp, edx
mov edx, dword [esp]
mov eax, esi
sub eax, edx
mov dword [esp + 0x10], ebx
jbe 0x403558
mov dword [esp], edx
not edx
add edx, esi
mov dword [esp + 8], edx
and esi, 3
mov dword [esp + 0xc], eax
je 0x403663
neg esi
xor edx, edx
mov ebx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [ebx]
inc ebx
add edi, eax
add ecx, edi
dec edx
cmp esi, edx
jne 0x403640
mov eax, dword [esp]
sub eax, edx
mov edx, eax
mov eax, dword [esp + 8]
cmp eax, 3
jb 0x403550
jmp 0x403675
mov ebx, ebp
mov eax, dword [esp + 8]
mov edx, dword [esp]
cmp eax, 3
jb 0x403550
mov eax, dword [esp + 4]
sub eax, edx
xor edx, edx
nop
nop
nop
movzx esi, byte [ebx + edx]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 1]
add edi, esi
add ecx, edi
movzx esi, byte [ebx + edx + 2]
add esi, edi
add ecx, esi
movzx edi, byte [ebx + edx + 3]
add edi, esi
add ecx, edi
add edx, 4
cmp eax, edx
jne 0x403680
jmp 0x403550
shl ecx, 0x10
or ecx, edi
jmp 0x4036bb
mov ecx, 1
mov eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4036d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x403722
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test edx, edx
je 0x403724
not eax
xor esi, esi
nop
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 4
xor eax, edi
and eax, 0xf
xor ebx, dword [eax*4 + 0x43da18]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shr edi, 4
xor edi, ebx
xor eax, dword [edi*4 + 0x43da18]
inc esi
cmp edx, esi
jne 0x4036f0
not eax
jmp 0x403724
xor eax, eax
pop esi
pop edi
pop ebx
ret
Function at 0x4091e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00409270
sub esp, 0x100
mov esi, esp
call fcn.00437980
test al, 1
jne 0x4091fc
jmp 0x40923d
call fcn.004322d0
test al, 1
jne 0x409207
jmp 0x409238
call fcn.0040a2a0
test al, 1
jne 0x409212
jmp 0x409236
lea eax, str.system_or_character_via_spellings_glyphs_a_is_uses_that_in_their_modified_other_on_often_reflection_or_resemblance_on_it_leetspeak__used_similarity_internet._play_eleet_the_of_the_replacements_of_primarily_ways
sub esp, 8
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00409250
add esp, 8
call fcn.0040f4c0
call fcn.0040b210
jmp 0x409236
jmp 0x409238
call fcn.004384b0
xor eax, eax
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4092d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20c
mov dword [esp], ecx
mov edi, dword [esp + 0x220]
movzx ecx, word [edi]
test cx, cx
je 0x4093f6
lea eax, [edi + 2]
xor ebx, ebx
jmp 0x40930d
add ebx, esi
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x409331
movzx ebp, cx
xor ecx, ecx
cmp ebp, 0x800
setb dl
mov esi, 1
cmp ebp, 0x80
jb 0x409300
mov cl, dl
xor ecx, 3
mov esi, ecx
jmp 0x409300
lea esi, [ebx + 1]
push esi
call fcn.00408c60
add esp, 4
mov ebp, eax
test ebx, ebx
jle 0x409404
add ebx, ebp
add esi, ebp
mov eax, ebp
mov dword [esp + 8], esi
jmp 0x409378
mov byte [eax], dl
mov esi, 1
add edi, 2
add eax, esi
cmp eax, ebx
mov esi, dword [esp + 8]
jae 0x409406
movzx edx, word [edi]
test dx, dx
je 0x409406
cmp dx, 0x7f
jbe 0x409360
mov ecx, eax
not ecx
add ecx, esi
movzx esi, dx
mov dword [esp + 4], esi
cmp esi, 0x7ff
ja 0x4093c0
cmp ecx, 2
jb 0x4093c0
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [eax], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 1], dl
mov esi, 2
jmp 0x409367
xor esi, esi
cmp ecx, 3
jb 0x409367
mov esi, dword [esp + 4]
mov ecx, esi
shr ecx, 0xc
or cl, 0xe0
mov byte [eax], cl
mov ecx, esi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [eax + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 2], dl
mov esi, 3
jmp 0x409367
push 1
call fcn.00408c60
add esp, 4
mov ebp, eax
jmp 0x409406
mov eax, ebp
mov edi, dword [esp + 0x228]
mov edx, dword [esp + 0x224]
mov byte [eax], 0
xor ecx, ecx
jmp 0x409427
mov ebx, eax
mov byte [esp + ecx + 0xc], bl
inc ecx
movzx eax, byte [ebp + ecx]
mov bl, 0x2f
cmp eax, 0x5c
je 0x409422
test eax, eax
jne 0x409420
mov byte [esp + ecx + 0xc], 0
lea eax, [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0xc]
push dword [ecx + 8]
add ecx, 0x10
push 0
push 0
push edi
push edx
push eax
push ecx
call fcn.004059a0
add esp, 0x28
test eax, eax
setne al
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc