joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405121
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x40515b
mov ecx, dword [ebp + 8]
push esi
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
movzx esi, byte [ecx]
and eax, 0xff
xor eax, esi
mov esi, dword [0x4152e0]
inc ecx
mov eax, dword [esi + eax*4]
mov esi, dword [ebp + 0x10]
shr esi, 8
xor esi, eax
dec edx
mov dword [ebp + 0x10], esi
jne 0x405135
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x405445
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.00407c8f
mov esi, eax
pop ecx
test esi, esi
je 0x405493
xor edx, edx
test ebx, ebx
jbe 0x405493
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x40547d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001268
cmp byte [esi + ebx - 1], 0xa
je 0x1000123c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10006084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100017c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10006094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10001980
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x10006094]
movzx eax, al
bt eax, esi
jae 0x100019e0
mov ecx, dword [0x10006084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10001885
test byte [0x10002030], 8
jne 0x10001920
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10002040], 8
jne 0x100018d0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001854
cmp esi, 3
jbe 0x10001890
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100040e4]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001854
mov ecx, dword [0x10006094]
test ecx, ecx
je 0x100019c0
mov dword [esp], 0x10002040
call dword [0x10006094]
test al, 8
je 0x1000182b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x1000182b
mov ebx, dword [0x10006094]
test ebx, ebx
je 0x100019a0
mov dword [esp], 0x10002030
call dword [0x10006094]
test al, 8
je 0x10001816
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x1000181e
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x100017dd
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x1000192a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x100018de
mov eax, 0xffffffff
jmp 0x10001885
Function at 0x402810
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0xfffff000
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], 0x1000
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0x4550
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x30], 0x5a4d
mov byte [ebp - 0x16], 0xc0
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x15], 1
mov bl, byte [ebp - 0x15]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], edi
jne 0x40288f
mov eax, dword [ebp - 0x38]
xor eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
jmp 0x40298e
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov eax, 0
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov bl, byte [ebp - 0x16]
mov bh, cl
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
sub bh, bl
mov byte [ebp - 0x16], bh
movzx eax, word [edx]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jne 0x402933
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
add edx, 0
mov ecx, dword [ecx + 0x3c]
mov bl, byte [ebp - 0x16]
mov bh, al
mov al, byte [ebp - 0x16]
add al, 0x2b
xor bl, bh
mov byte [ebp - 0x16], bl
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x16], al
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x48]
cmp dword [esi + ecx], edx
jne 0x402915
lea eax, [ebp - 0x38]
mov ecx, 0
mov edx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
and esi, eax
mov dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x34]
add eax, 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
jmp 0x40298e
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
or edx, eax
mov dword [ebp - 0x38], edx
xor ecx, 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x44]
sub ecx, edx
mov esi, dword [ebp - 0x40]
and ecx, esi
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
add edi, 0
sub eax, ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], eax
mov eax, 0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x34]
xor edx, ecx
mov dword [ebp - 0x34], edx
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov bl, byte [ebp - 0x39]
test bl, 1
jne 0x402895
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
or ecx, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0x16]
add cl, 0xb7
mov byte [ebp - 0x16], cl
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403e60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
mov word [ebp - 0xe], 0xf05
mov dword [ebp - 0x48], 1
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0
mov esi, dword [ebp - 0x30]
mov byte [ebp - 0xf], 0x2d
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x31], 0x34
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], 0
cmp eax, 0
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], esi
jne 0x403ec1
mov eax, 0
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
jmp 0x403fe1
mov ecx, dword [ebp - 0x20]
call fcn.00403340
mov dl, 0xc5
mov ecx, 0
add ecx, 0x18
mov byte [ebp - 0xf], 0xfb
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
movzx ecx, word [ecx + 0x14]
add eax, ecx
sub dl, byte [ebp - 0xf]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x31], dl
mov al, 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x2c]
sub al, byte [ebp - 0x31]
movzx edx, word [edx + 6]
mov byte [ebp - 0x31], al
cmp ecx, edx
jge 0x403fb6
lea eax, [ebp - 0xf]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
mov bl, byte [ebp - 0xf]
add bl, 0xc6
mov di, word [ebp - 0xe]
add di, 0x1be2
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x54]
or eax, ecx
mov dword [ebp - 0x40], eax
add edx, esi
mov word [ebp - 0xe], di
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
mov byte [ebp - 0xf], bl
mov esi, dword [ebp - 0x58]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00401540
mov dword [ebp - 0x5c], eax
mov ax, 0x683d
lea ecx, [ebp - 0x40]
mov dx, 0
sub dx, word [ebp - 0xe]
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x4c]
add esi, edi
mov bx, word [ebp - 0xe]
mov word [ebp - 0xe], dx
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x40]
sub ecx, edx
mov dword [ebp - 0x40], ecx
sub ax, bx
add esi, 0x28
mov word [ebp - 0xe], ax
mov dword [ebp - 0x14], esi
jmp 0x403efa
mov ax, word [ebp - 0xe]
and ax, 0x67bc
mov word [ebp - 0xe], ax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi + 0x54]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
call fcn.00401540
mov dword [ebp - 0x60], eax
mov al, byte [ebp - 0x31]
xor al, 0x66
mov byte [ebp - 0x31], al
mov byte [ebp - 0xf], 0xca
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x4351fe
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0043527d
jae 0x43520a
xor ecx, ecx
call fcn.0043527d
jae 0x435234
xor eax, eax
call fcn.0043527d
jae 0x435245
mov al, 0x10
call fcn.0043527d
adc al, al
jae 0x435226
jne 0x435272
stosb byte es:[edi], al
jmp 0x43520b
call fcn.00435289
dec ecx
loop 0x435251
mov eax, ebp
call fcn.00435287
jmp 0x435273
lodsb al, byte [esi]
shr eax, 1
je 0x435299
adc ecx, 2
mov ebp, eax
jmp 0x435273
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00435287
cmp eax, 0x7d00
jae 0x435271
cmp eax, 0x500
jae 0x435272
cmp eax, 0x7f
ja 0x435273
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x43520b
pop ebp
ret 8
Function at 0x10001850
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, 0x44456f8
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
add esi, 0xfffffffe
xor ecx, ecx
test esi, esi
jle 0x100018e2
jmp 0x10001880
movzx edi, byte [edx + ecx]
shr edi, 2
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax], bl
movsx edi, byte [edx + ecx]
movzx ebx, byte [edx + ecx + 1]
and edi, 3
shr ebx, 4
shl edi, 4
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 1], bl
movsx ebx, byte [edx + ecx + 1]
movzx edi, byte [edx + ecx + 2]
and ebx, 0xf
add ebx, ebx
shr edi, 6
add ebx, ebx
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 2], bl
movsx edi, byte [edx + ecx + 2]
and edi, 0x3f
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 3], bl
add ecx, 3
add eax, 4
cmp ecx, esi
jl 0x10001880
cmp ecx, dword [ebp + 8]
jge 0x1000195e
movzx esi, byte [ecx + edx]
shr esi, 2
mov bl, byte [ebp + esi - 0x44]
mov esi, dword [ebp + 8]
dec esi
mov byte [eax], bl
cmp ecx, esi
jne 0x10001921
movsx ecx, byte [ecx + edx]
and ecx, 3
add ecx, ecx
mov dl, byte [ebp + ecx*8 - 0x44]
mov byte [eax + 1], dl
pop edi
mov byte [eax + 2], 0x3d
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ecx + edx + 1]
movsx ecx, byte [ecx + edx]
movzx edx, byte [esi]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x44]
mov byte [eax + 1], cl
movsx edx, byte [esi]
and edx, 0xf
movzx ecx, byte [ebp + edx*4 - 0x44]
pop edi
mov byte [eax + 2], cl
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10003940
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
xor dword [0x444e210], eax
push ebx
push esi
push edi
mov edi, dword [0x444519c]
call edi
mov ebx, dword [0x4445194]
xor dword [0x444e210], eax
push 0x444622c
call ebx
test eax, eax
je 0x10003981
push 0x44498a4
push eax
call dword [0x4445190]
test eax, eax
je 0x10003981
push 0x444e210
call eax
mov ecx, dword [0x444e210]
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
lea esi, [ecx + eax]
rdtsc
xor ecx, eax
mov dword [0x444e210], ecx
call edi
xor dword [0x444e210], eax
push 0x444622c
call ebx
test eax, eax
je 0x100039c7
push 0x44498a4
push eax
call dword [0x4445190]
test eax, eax
je 0x100039c7
push 0x444e210
call eax
mov ecx, dword [0x444e210]
push esi
mov eax, ecx
xor edx, edx
or esi, 0xffffffff
div esi
add eax, ecx
push eax
push 0x4445968
push 0x104
push 0x4459c60
call dword [0x44452f4]
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x1000d7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x444f588
mov dword [ebp - 4], 0x10
call dword [0x44452a4]
push 0x444f588
call dword [0x44452a8]
or ecx, 0xffffffff
mov edx, 0x444f588
test eax, eax
je 0x1000d7ed
movzx esi, byte [edx]
xor esi, ecx
and esi, 0xff
shr ecx, 8
xor ecx, dword [esi*4 + 0x444f6c8]
inc edx
dec eax
jne 0x1000d7d4
mov edi, dword [0x44454d4]
not ecx
mov esi, ecx
push esi
push 0x444e504
push 0x444f5a0
call edi
lea ebx, [esi + esi]
push ebx
push 0x444e504
push 0x444f54c
call edi
lea ecx, [esi + esi*2]
push ecx
push 0x444e504
push 0x444f5dc
call edi
push esi
push 0x444e580
push 0x444f670
call edi
push ebx
push 0x444e580
push 0x444f630
call edi
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000da30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x101
lea eax, [ebp - 0x104]
push eax
push ecx
call dword [0x44454e4]
mov edx, eax
or eax, 0xffffffff
lea ecx, [ebp - 0x104]
test edx, edx
je 0x1000da7a
push esi
lea esp, [esp]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x444f6c8]
inc ecx
dec edx
jne 0x1000da60
pop esi
not eax
mov esp, ebp
pop ebp
ret

Function at 0x1000daf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4459ed4]
sub esp, 0x104
push ebx
mov ebx, dword [0x44453a8]
push esi
push edi
push 1
push 5
push eax
call ebx
push eax
call ebx
mov edi, dword [0x444540c]
mov esi, eax
lea esp, [esp]
push esi
call dword [0x44453e4]
test eax, eax
je 0x1000dbb7
push 0xfffffffffffffff0
push esi
call dword [0x444541c]
test eax, 0x40000000
jne 0x1000db9c
push 0x101
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [0x44454e4]
or ecx, 0xffffffff
lea edx, [ebp - 0x104]
test eax, eax
je 0x1000db7f
nop
movzx ebx, byte [edx]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x444f6c8]
inc edx
dec eax
jne 0x1000db60
mov ebx, dword [0x44453a8]
not ecx
test ecx, ecx
je 0x1000db96
xor eax, eax
cmp ecx, dword [eax*8 + 0x444e528]
je 0x1000dbcd
inc eax
cmp eax, 0xb
jb 0x1000db87
xor eax, eax
test al, 0x20
je 0x1000dbb7
push 0
push 0x1b
push 0x100
push esi
call edi
push 0xc01b0000
push 0x1b
push 0x101
push esi
call edi
push 3
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x1000db20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax*8 + 0x444e52c]
jmp 0x1000db98
Function at 0x100282e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x100282f0
xor eax, eax
pop ebp
ret 4
push esi
not eax
cmp edx, 8
jb 0x100283bf
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4447d50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4447d50]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4447d50]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4447d50]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4447d50]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4447d50]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4447d50]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4447d50]
add ecx, 8
sub edx, 8
dec esi
jne 0x10028302
pop edi
test edx, edx
je 0x100283dc
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4447d50]
inc ecx
dec edx
jne 0x100283c3
not eax
pop esi
pop ebp
ret 4
Function at 0x100283f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
call dword [0x444512c]
cmp eax, 1
je 0x10028411
mov eax, 0x1000000
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x74]
push eax
push edi
call dword [0x4445128]
test eax, eax
jne 0x1002842d
mov eax, 0x200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x30]
push ecx
call dword [0x44451f4]
lea edx, [ebp - 0x40]
push edx
call dword [0x4445134]
mov esi, dword [0x4445138]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
call esi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x40]
push eax
call esi
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sbb ecx, dword [ebp - 0x14]
sub dword [ebp - 0x60], eax
sbb dword [ebp - 0x5c], ecx
sub dword [ebp - 0x68], eax
sbb dword [ebp - 0x64], ecx
sub dword [ebp - 0x70], eax
sbb dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x74]
mov eax, ecx
xor esi, esi
and eax, 1
je 0x1002848f
mov dword [ebp - 8], 1
mov esi, dword [ebp - 8]
test cl, 2
je 0x10028497
or esi, 2
test cl, 4
je 0x1002849f
or esi, 4
mov edx, ecx
and edx, 0x10
je 0x100284a9
or esi, 0x10
test cl, 0x20
je 0x100284b1
or esi, 0x20
test edx, edx
je 0x100284bd
or esi, 0x40000000
jmp 0x100284c3
or esi, 0x80000000
or esi, 0x1000000
mov dword [ebp - 8], esi
test eax, eax
jne 0x100284d9
or esi, 0x800000
mov dword [ebp - 8], esi
push 0
push edi
call dword [0x444513c]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x10028580
mov esi, dword [0x44451fc]
push 0
push 0
push 0
push edi
call esi
mov ebx, dword [0x444521c]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
lea edx, [ebp - 4]
push edx
push edi
call ebx
push 0
push 0
push 0x24
push edi
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
push edi
call ebx
mov edx, 0x54ad
cmp word [ebp - 4], dx
jne 0x1002857d
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x1002857d
push 0
push 0
push eax
push edi
call esi
push 0
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x1c]
cmp eax, 0x5a4d
je 0x10028576
cmp eax, 0x454e
je 0x10028576
cmp eax, 0x454c
je 0x10028576
cmp eax, 0x4550
jne 0x1002857d
or dword [ebp - 8], 0x400000
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x1002858b
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x10028597
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
cmp eax, ecx
je 0x100285a6
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ecx
je 0x100285ce
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x60]
push edx
call dword [0x4445140]
movzx eax, word [ebp + 8]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002d330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x340]
push esi
push edi
test eax, eax
jne 0x1002d350
mov eax, 0x444acd4
push 0x444acc0
push eax
lea ecx, [ebp - 0x214]
push 0x444acdc
push ecx
call dword [0x44454d4]
lea eax, [ebp - 0x214]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d374
mov ecx, dword [ebx + 0x75c4]
sub eax, edx
lea edx, [ecx + eax + 0xd]
cmp edx, 0x7530
jbe 0x1002d3be
push ecx
lea eax, [ebx + 0x94]
push eax
mov eax, ebx
call fcn.10030cd0
test eax, eax
jns 0x1002d3b4
mov esi, ebx
call fcn.10030a00
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x75c4], 0
mov al, byte [0x444e05d]
movsx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x302fefc
xor edx, edx
add ecx, 0xfffe0003
test al, al
lea eax, [ebp - 0x214]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
lea edx, [eax + 1]
je 0x1002d411
jmp 0x1002d3f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d3f0
sub eax, edx
lea edx, [eax + 1]
shr edx, 8
inc eax
and edx, 0xff
shl eax, 8
xor edx, eax
mov word [ebp - 0xc], dx
jmp 0x1002d41f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d411
sub eax, edx
inc eax
mov word [ebp - 0xc], ax
mov ecx, dword [ebx + 0x75c4]
xor eax, eax
lea edi, [ecx + ebx + 0x94]
mov word [ebp - 0xa], ax
lea esi, [ebp - 0x10]
mov ecx, 0xc
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x75c4], 0xc
mov edx, dword [ebx + 0x75c4]
lea eax, [ebp - 0x214]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d452
sub eax, esi
lea ecx, [eax + 1]
lea edi, [edx + ebx + 0x94]
lea esi, [ebp - 0x214]
lea eax, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d476
sub eax, edx
inc eax
add dword [ebx + 0x75c4], eax
mov eax, dword [ebx + 0x75c4]
push eax
lea edx, [ebx + 0x94]
push edx
mov eax, ebx
call fcn.10030cd0
test eax, eax
js 0x1002d3a2
pop edi
pop esi
mov dword [ebx + 0x75c4], 0
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret 4