joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42988c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x10]
lea eax, [ebx + 0x48]
cmp esi, eax
je 0x4299ab
nop dword [eax]
mov al, byte [esi + 0x12]
test al, 1
jne 0x42985c
mov ecx, esi
test al, 0x10
je 0x42981b
and al, 0xef
mov byte [esi + 0x12], al
mov eax, dword [esi + 0x20]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x44], eax
cmp word [esi + 0x10], 0xffff
jne 0x42982d
mov eax, dword [ebx + 8]
cmp dword [ecx + 4], eax
jae 0x42982d
mov dword [ecx + 4], eax
mov al, byte [esi + 0x12]
test al, 0x20
jne 0x429838
mov byte [esi + 0x25], 1
and al, 0xcf
or al, 8
mov byte [esi + 0x12], al
mov eax, dword [esi + 0x1c]
push ebx
call eax
mov edx, dword [ebx + 8]
add esp, 4
shl eax, 3
mov ecx, ebx
sub edx, eax
call fcn.004296b0
jmp 0x42999d
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
mov dword [esp + 0x10], edi
mov ecx, dword [eax - 4]
mov edx, ecx
and edx, 0x3f
mov dword [esp + 0x14], ecx
lea eax, [edx - 6]
cmp eax, 0x1c
ja case.0x429885.8
movzx eax, byte [eax + 0x4299cc]
jmp dword [eax*4 + 0x4299b4]
add dword [ebx + 8], 0xfffffff8
mov edx, dword [ebx + 8]
shr ecx, 6
movzx ecx, cl
mov eax, dword [edx]
mov dword [edi + ecx*8], eax
mov eax, dword [edx + 4]
mov dword [edi + ecx*8 + 4], eax
jmp case.0x429885.8
mov eax, dword [ebx + 8]
mov edi, dword [eax - 4]
cmp edi, 0x7ff7a500
je 0x4298cd
cmp edi, 0x7ff7a501
jne 0x4298c6
cmp dword [eax - 8], 0
je 0x4298cd
mov edi, 1
jmp 0x4298cf
xor edi, edi
add eax, 0xfffffff8
mov dword [ebx + 8], eax
cmp edx, 0x1a
jne 0x429902
mov eax, ecx
mov ecx, dword [esp + 0x10]
shr eax, 0x17
push 0xe
lea edx, [ecx + eax*8]
mov ecx, ebx
call fcn.0042d8d0
mov ecx, dword [esp + 0x18]
add esp, 4
cmp dword [eax + 4], 0x7ff7a500
jne 0x429902
xor edi, 1
shr ecx, 6
movzx eax, cl
cmp edi, eax
je case.0x429885.8
add dword [esi + 0x1c], 4
jmp case.0x429885.8
mov edx, dword [ebx + 8]
mov eax, ecx
shr eax, 0x17
sub edx, 8
mov dword [esp + 0x10], edx
lea eax, [eax*8 + 8]
sub dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub eax, edi
sar eax, 3
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov edi, dword [esp + 0x10]
mov dword [edx - 0x10], eax
mov eax, dword [edx + 4]
mov dword [edx - 0xc], eax
cmp edi, 1
jle 0x429967
lea eax, [edx - 8]
mov ecx, ebx
mov edx, edi
mov dword [ebx + 8], eax
call fcn.004272f0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x18]
shr ecx, 6
movzx edi, cl
mov ecx, dword [ebx + 8]
mov eax, dword [ecx - 8]
mov dword [edx + edi*8], eax
mov eax, dword [ecx - 4]
mov dword [edx + edi*8 + 4], eax
jmp case.0x429885.34
and ecx, 0x7fc000
cmp ecx, 0x4000
jb case.0x429885.8
mov eax, dword [esi + 4]
mov dword [ebx + 8], eax
mov ecx, ebx
call fcn.00427a90
mov esi, dword [ebx + 0x10]
lea eax, [ebx + 0x48]
cmp esi, eax
jne 0x429800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b2b0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x42b2cd.11
movzx eax, byte [eax + 0x42b45c]
jmp dword [eax*4 + 0x42b434]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0xc]
shl eax, 2
push 0
push eax
call fcn.0042da00
mov eax, dword [esi + 0x38]
mov ecx, edi
mov edx, dword [esi + 0x10]
shl eax, 2
push 0
push eax
call fcn.0042da00
mov eax, dword [esi + 0x2c]
mov ecx, edi
mov edx, dword [esi + 8]
shl eax, 3
push 0
push eax
call fcn.0042da00
mov eax, dword [esi + 0x34]
mov ecx, edi
mov edx, dword [esi + 0x14]
shl eax, 2
push 0
push eax
call fcn.0042da00
mov eax, dword [esi + 0x3c]
mov ecx, edi
mov edx, dword [esi + 0x18]
push 0
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.0042da00
mov eax, dword [esi + 0x28]
mov ecx, edi
mov edx, dword [esi + 0x1c]
shl eax, 3
push 0
push eax
call fcn.0042da00
push 0
push 0x50
mov edx, esi
mov ecx, edi
call fcn.0042da00
add esp, 0x38
pop edi
pop esi
ret
movzx eax, byte [esi + 6]
push 0
lea eax, [eax*4 + 0x10]
push eax
call fcn.0042da00
add esp, 8
pop edi
pop esi
ret
movzx eax, byte [esi + 6]
push 0
lea eax, [eax*8 + 0x10]
push eax
call fcn.0042da00
add esp, 8
pop edi
pop esi
ret
pop edi
pop esi
jmp 0x42cbd0
mov edx, dword [esi + 0x10]
cmp edx, 0x48edd8
je 0x42b3bb
mov cl, byte [esi + 7]
mov eax, 1
shl eax, cl
mov ecx, edi
push 0
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.0042da00
add esp, 8
mov eax, dword [esi + 0x1c]
mov ecx, edi
mov edx, dword [esi + 0xc]
shl eax, 3
push 0
push eax
call fcn.0042da00
push 0
push 0x20
mov edx, esi
mov ecx, edi
call fcn.0042da00
add esp, 0x10
pop edi
pop esi
ret
mov edx, dword [esi + 0x1c]
mov ecx, esi
call fcn.0042cc00
mov ecx, esi
call fcn.00424860
push 0
push 0x70
mov edx, esi
mov ecx, edi
call fcn.0042da00
add esp, 8
pop edi
pop esi
ret
mov eax, dword [esi + 0x10]
add eax, 0x18
push 0
push eax
call fcn.0042da00
add esp, 8
pop edi
pop esi
ret
mov eax, dword [edi + 0xc]
dec dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
add eax, 0x11
push 0
push eax
call fcn.0042da00
add esp, 8
pop edi
pop esi
ret
push edi
mov edi, ecx
lea ecx, [edx + 0x10]
cmp dword [edx + 8], ecx
je 0x42cbed
mov eax, dword [ecx]
push esi
mov esi, dword [edx + 0x14]
mov dword [esi + 0x10], eax
mov ecx, dword [ecx]
mov eax, dword [edx + 0x14]
pop esi
mov dword [ecx + 0x14], eax
push 0
push 0x18
mov ecx, edi
call fcn.0042da00
add esp, 8
pop edi
ret
Function at 0x42c490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, edx
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [edi], ecx
movzx eax, byte [ecx]
test byte [eax + 0x48f671], 8
je 0x42c4d1
movzx eax, byte [ecx + 1]
inc ecx
test byte [eax + 0x48f671], 8
jne 0x42c4c3
mov al, byte [ecx]
cmp al, 0x2d
jne 0x42c4e1
inc ecx
mov dword [ebp - 0x14], 1
jmp 0x42c4e9
cmp al, 0x2b
jne 0x42c4e6
inc ecx
mov dword [ebp - 0x14], esi
cmp byte [ecx], 0x30
jne 0x42c5dd
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x42c501
cmp al, 0x58
jne 0x42c5dd
add ecx, 2
lea edx, [ebp - 0x10]
mov dword [ebp - 8], ecx
xorps xmm1, xmm1
lea ecx, [ebp - 8]
call fcn.0042c430
mov edx, dword [ebp - 8]
cmp byte [edx], 0x2e
jne 0x42c532
inc edx
movaps xmm1, xmm0
mov dword [ebp - 8], edx
lea edx, [ebp - 0xc]
call fcn.0042c430
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 0x10], 0
jne 0x42c540
test esi, esi
je 0x42c5dd
neg esi
mov dword [edi], edx
mov al, byte [edx]
shl esi, 2
cmp al, 0x70
je 0x42c551
cmp al, 0x50
jne 0x42c5ac
mov al, byte [edx + 1]
inc edx
xor ecx, ecx
cmp al, 0x2d
jne 0x42c565
inc edx
mov dword [ebp - 0x10], 1
jmp 0x42c56d
cmp al, 0x2b
jne 0x42c56a
inc edx
mov dword [ebp - 0x10], ecx
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x48f671], 2
je 0x42c5ae
nop
movsx eax, byte [ebp - 1]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x48f671], 2
jne 0x42c580
mov eax, ecx
neg eax
cmp dword [ebp - 0x10], 0
cmove eax, ecx
add esi, eax
mov dword [edi], edx
cmp dword [ebp - 0x14], 0
je 0x42c5bb
xorps xmm0, xmmword [0x494530]
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.004616c2
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
xorps xmm0, xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x42cf00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, esi
mov eax, esi
xor eax, dword [ebp + 8]
shr edi, 5
inc edi
cmp esi, edi
jb 0x42cf3b
nop dword [eax]
movzx edx, byte [ebx + esi - 1]
mov ecx, eax
shl ecx, 5
sub esi, edi
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp esi, edi
jae 0x42cf20
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x46c46b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046c2ea

Function at 0x473374
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00473034

Function at 0x10001032
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x10001240
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.PangyaUS.ini
call esi
cmp eax, 0xffffffff
jne 0x10001277
push str.PangyaJP.ini
call esi
cmp eax, 0xffffffff
je 0x10001266
mov eax, 1
pop esi
ret
push str.PangyaTH.ini
call esi
inc eax
neg eax
pop esi
sbb eax, eax
and eax, 2
ret
xor eax, eax
pop esi
ret
Function at 0x402e88
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00401f7a
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
invalid
invalid

Function at 0x4051d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405209
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040324c
jmp 0x405212
mov eax, ebx
mov edx, esi
call fcn.00403200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406c00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c8e
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c4b
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.0040324c
jmp 0x406c78
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c5f
lea eax, [ebp - 4]
call fcn.0040316c
jmp 0x406c6e
lea edx, [ebp - 4]
call fcn.00406ac4
test ebx, ebx
je 0x406c6e
dec ebx
jmp 0x406c50
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c95
lea eax, [ebp - 4]
call fcn.0040316c
ret
Function at 0x4094ac
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409506
inc esi
xor edi, edi
cmp edi, 1
jne 0x4094d2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4094e0
cmp edi, 1
jle 0x4094e0
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408f90
test eax, eax
jne 0x409506
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409506
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409506
inc edi
dec esi
jne 0x4094c2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x409510
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x40955d
xor ebx, ebx
jmp 0x409552
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.00404c04
test eax, eax
jne 0x409551
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40960d
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x409533
mov al, byte [ebp - 1]
sub al, 1
jb 0x409568
je 0x409571
jmp 0x40957a
call fcn.00406ff8
mov edi, eax
jmp 0x40957c
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x40957c
xor edi, edi
test di, di
je 0x40960d
xor ebx, ebx
jmp 0x4095b8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x4095b7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x4095ac
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x4095b7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40960d
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x409589
xor ebx, ebx
jmp 0x409602
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x409601
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x4095f6
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x409601
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40960d
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x4095c7
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax], 0x10
je 0x4063dc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push 0x92
push 0
mov eax, dword [ebx]
mov dword [ebp + 8], eax
lea esi, [eax + 0x358]
push esi
call fcn.0058f850
add esp, 0xc
mov ecx, ebx
call fcn.00404910
push 0
mov ecx, ebx
call fcn.00404760
test eax, eax
je 0x4063c4
push edi
lea esp, [esp]
mov edi, dword [eax]
mov ecx, eax
call fcn.00404320
mov bl, al
mov ecx, 0x6a7de8
mov eax, dword [ebp + 8]
add bl, byte [eax + 0x52c]
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.004058b0
test eax, eax
je case.0x4062f3.10
movzx ecx, word [edi + 0x2c]
add ecx, 0xfffffffd
cmp ecx, 0x75
ja case.0x4062f3.10
movzx ecx, byte [ecx + 0x406428]
jmp dword [ecx*4 + 0x4063e4]
movzx ecx, word [edi + 0x2e]
mov eax, dword [eax]
mov dword [esi + ecx*4 - 4], eax
jmp case.0x4062f3.10
movzx ecx, word [edi + 0x2e]
movss xmm0, dword [eax + 8]
test cx, cx
je case.0x4062f3.10
mov eax, dword [eax + 4]
mov dword [esi + ecx*4 + 0x24], eax
movss dword [esi + ecx*4 + 0x3c], xmm0
jmp case.0x4062f3.10
mov eax, dword [eax + 0xc]
mov dword [esi + 0x5c], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x10]
mov dword [esi + 0x58], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x14]
mov dword [esi + 0x60], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x68], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x6c], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x70], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x74], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x20]
mov dword [esi + 0x78], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x24]
mov dword [esi + 0x7c], eax
movzx eax, bl
mov word [esi + 0x80], ax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x28]
mov dword [esi + 0x82], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x86], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x30]
mov dword [esi + 0x8a], eax
jmp case.0x4062f3.10
mov eax, dword [eax + 0x34]
mov dword [esi + 0x8e], eax
mov ecx, dword [ebp + 0x10]
push 0
call fcn.00404760
test eax, eax
jne 0x4062b0
pop edi
mov ecx, dword [0x6d3b84]
call fcn.004430a0
mov ecx, dword [0x6d3b84]
call fcn.00442cc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40bf60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0058fe50
movdqa xmm0, xmmword [str.__7788Iop_fgMNa4858hgUt__MS]
lea eax, [ebp - 0xfd4]
push esi
mov esi, ecx
mov dword [ebp - 0xfe0], 0x6951246f
push 0xfd4
movdqu xmmword [ebp - 0x1000], xmm0
push 0
movdqa xmm0, xmmword [0x5bffe0]
push eax
mov dword [esi], vtable.cAESFile.0
movdqu xmmword [ebp - 0xff0], xmm0
mov dword [ebp - 0xfdc], 0x6f69306f
mov dword [ebp - 0xfd8], 0x31312436
call fcn.0058f850
push 0x1000
lea eax, [ebp - 0x1000]
mov dword [esi + 4], 1
push eax
lea eax, [esi + 0x1010]
mov dword [esi + 0xc], 0x134b30b
push eax
call fcn.0058edb0
add esp, 0x18
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x72c
mov eax, dword [0x6a12a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x728], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x724], ebx
push esi
mov esi, ecx
test eax, eax
jne 0x40c081
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058e944
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
je 0x40c06d
push eax
push 1
lea eax, [ebp - 0x71d]
push 1
push eax
call fcn.00590289
push 0x200
lea eax, [ebp - 0x604]
push 0
push eax
call fcn.0058f850
lea edx, [esi + 0x10]
add esp, 0x1c
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c0b4
push edi
sub ecx, esi
lea eax, [ebp - 0x604]
push ecx
push edx
push eax
call fcn.0058edb0
push 0x100
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x71c]
push eax
call fcn.0040d060
xor esi, esi
add esp, 0x18
mov dword [ebp - 0x72c], esi
cmp dword [ebp + 0x10], esi
jle 0x40c22a
mov edi, ebx
lea ebx, [ebx]
push dword [ebp - 0x728]
lea eax, [ebp - 0x404]
push 0x10
push 1
push eax
call fcn.00590289
add esp, 0x10
cmp eax, 0x10
jne 0x40c26e
lea eax, [ebp - 0x404]
push eax
push eax
lea eax, [ebp - 0x71c]
push 0
push eax
call fcn.0040c370
lea ecx, [esi + 0xf]
add esp, 0x10
lea edx, [ebp - 0x3f5]
xor eax, eax
add ecx, ebx
cmp edi, edx
ja 0x40c156
lea edx, [ebp - 0x404]
cmp ecx, edx
jae 0x40c1ad
movdqu xmm0, xmmword [ebp - 0x404]
mov eax, 0x10
xorps xmm1, xmm1
movdqu xmmword [edi], xmm0
movdqu xmm2, xmmword [edi]
paddb xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
paddb xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
paddb xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
paddb xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 1
paddb xmm2, xmm0
movd ecx, xmm2
add byte [ebp + 0x14], cl
xor bl, bl
xor dl, dl
cmp eax, 0x10
jge 0x40c20f
mov ecx, 0x10
sub ecx, eax
cmp ecx, 2
jl 0x40c1e3
mov cl, byte [ebp + eax - 0x404]
mov byte [edi + eax], cl
add bl, cl
mov cl, byte [ebp + eax - 0x403]
mov byte [edi + eax + 1], cl
add dl, cl
add eax, 2
cmp eax, 0xf
jl 0x40c1c2
cmp eax, 0x10
jge 0x40c205
mov cl, byte [ebp + eax - 0x404]
add eax, dword [ebp - 0x724]
mov esi, dword [ebp - 0x72c]
mov byte [eax + esi], cl
mov eax, dword [ebp + 0x14]
add al, cl
jmp 0x40c208
mov eax, dword [ebp + 0x14]
add dl, bl
add al, dl
mov dword [ebp + 0x14], eax
mov ebx, dword [ebp - 0x724]
add esi, 0x10
add edi, 0x10
mov dword [ebp - 0x72c], esi
cmp esi, dword [ebp + 0x10]
jl 0x40c100
push dword [ebp - 0x728]
lea eax, [ebp - 0x71e]
push 1
push 1
push eax
call fcn.00590289
mov al, byte [ebp - 0x71d]
add esp, 0x10
cmp al, byte [ebp - 0x71e]
jne 0x40c26e
cmp al, byte [ebp + 0x14]
jne 0x40c26e
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058e944
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058e944
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c2b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0058fe50
movdqa xmm0, xmmword [str.__7788Iop_fgMNa4858hgUt__MS]
lea eax, [ebp - 0xfd4]
push esi
push 0xfd4
movdqu xmmword [ebp - 0x1000], xmm0
mov esi, ecx
mov dword [ebp - 0xfe0], 0x6951246f
movdqa xmm0, xmmword [0x5bffe0]
push 0
push eax
movdqu xmmword [ebp - 0xff0], xmm0
mov dword [ebp - 0xfdc], 0x6f69306f
mov dword [ebp - 0xfd8], 0x31312436
call fcn.0058f850
mov edx, dword [esi + 4]
add esp, 0xc
xor eax, eax
test edx, edx
jle 0x40c32e
mov ecx, dword [ebp + 8]
cmp dword [eax*4 + 0x5bffc0], ecx
je 0x40c337
inc eax
cmp eax, edx
jl 0x40c320
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax*4 + 0x5bffc0]
mov dword [esi + 8], eax
lea eax, [ebp - 0x1000]
push 0x1000
push eax
lea eax, [esi + 0x10]
push eax
call fcn.0058edb0
add esp, 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ce00
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x6a12a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov edx, 1
lea ecx, [ecx]
mov eax, edx
mov dword [ebp + esi*4 - 0x804], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x404], esi
movsx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
inc esi
and ecx, 0x1b
xor ecx, eax
xor edx, ecx
and edx, 0xff
cmp esi, 0x100
jl 0x40ce20
mov esi, 1
mov edx, 0x6aa358
lea esp, [esp]
mov eax, esi
mov dword [edx], esi
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
add esi, esi
and ecx, 0x1b
add edx, 4
xor esi, ecx
and esi, 0xff
cmp edx, 0x6aa380
jl 0x40ce60
mov eax, 1
mov byte [0x6a8158], 0x63
mov byte [0x6a92bb], 0
mov dword [ebp - 0x808], eax
mov edi, edi
mov ecx, dword [ebp + eax*4 - 0x404]
lea eax, [ebp - 0x408]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
and ecx, 0xff
mov edx, ecx
xor ebx, ecx
sar edx, 7
lea eax, [ecx + ecx]
or edx, eax
and edx, 0xff
mov esi, edx
xor ebx, edx
sar esi, 7
lea eax, [edx + edx]
or esi, eax
and esi, 0xff
mov ecx, esi
sar ecx, 7
lea eax, [esi + esi]
or ecx, eax
mov eax, dword [ebp - 0x808]
xor ecx, 0x63
and ecx, 0xff
xor ecx, esi
xor ebx, ecx
mov byte [eax + 0x6a8158], bl
mov byte [ebx + 0x6a9258], al
inc eax
mov dword [ebp - 0x808], eax
cmp eax, 0x100
jl 0x40cea0
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 0x80c], ebx
lea esp, [esp]
movzx edx, byte [esi + 0x6a8158]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, 0xff
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
movzx ecx, byte [esi + 0x6a9258]
mov dword [esi*4 + 0x6a8258], eax
rol eax, 8
mov dword [esi*4 + 0x6a8658], eax
rol eax, 8
mov dword [esi*4 + 0x6a8a58], eax
rol eax, 8
mov dword [esi*4 + 0x6a8e58], eax
test ecx, ecx
je 0x40cff3
mov ecx, dword [ebp + ecx*4 - 0x404]
mov eax, dword [ebp - 0x3cc]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e0]
add eax, ecx
mov edi, dword [ebp + edx*4 - 0x804]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d0]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x804]
cdq
idiv dword [ebp - 0x80c]
mov eax, dword [ebp + edx*4 - 0x804]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x3d8]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x804]
jmp 0x40cfff
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x808], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x808]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, edi
mov dword [esi*4 + 0x6a9358], eax
rol eax, 8
mov dword [esi*4 + 0x6a9758], eax
rol eax, 8
mov dword [esi*4 + 0x6a9b58], eax
rol eax, 8
mov dword [esi*4 + 0x6a9f58], eax
inc esi
cmp esi, 0x100
jl 0x40cf30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058e944
mov esp, ebp
pop ebp
ret