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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 2
push 0
mov dword [ebp - 8], edx
mov ebx, 0xc0000022
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, 0x13
mov dword [ebp - 0x10], eax
mov esi, 0x430d60
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x43536c], 2
movsw word es:[edi], word [esi]
jl 0x4035d0
movaps xmm4, xmmword [0x431090]
movaps xmm3, xmmword [0x4310f0]
movaps xmm5, xmmword [0x4310b0]
movaps xmm6, xmmword [0x4310d0]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x60]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x60], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x58]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x58], xmm1
add ecx, 8
cmp ecx, 0x20
jl 0x4034e4
cmp ecx, 0x27
jge 0x4035f8
nop word [eax + eax]
mov eax, 0x4ec4ec4f
imul ecx
mov eax, 1
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
sub eax, esi
imul eax, eax, 0x34
add eax, ecx
xor word [ebp + ecx*2 - 0x60], ax
inc ecx
cmp ecx, 0x27
jl 0x4035d0
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.00402710
mov esi, dword [ebp - 4]
add esp, 8
test eax, eax
jne 0x403632
test esi, esi
je 0x40363e
mov eax, dword [esi]
push 0
push 0
push 0
push dword [ebp - 8]
mov eax, dword [eax + 0x24]
push dword [ebp - 0xc]
push esi
call eax
mov ebx, eax
sar ebx, 0x1f
and ebx, 0xc0000022
test esi, esi
je 0x40363e
mov ecx, dword [esi]
push esi
mov ecx, dword [ecx + 8]
call ecx
cmp dword [ebp - 0x10], 0
jne 0x40364a
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408f80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428510
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x434040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0040cb88
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040b388
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00409260
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40db0d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40db4c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40db4c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40db4c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40db4c
cmp dword [ecx + 0x74], 0xe
jbe 0x40db4c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41c1df
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d160
push 0x42d158
push str.FlsAlloc
push 0x1f
call fcn.0041c0a7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c213
push dword [ebp + 8]
mov ecx, esi
call dword [0x429180]
call esi
jmp 0x41c219
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41c25d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d170
push 0x42d168
push str.FlsGetValue
push 0x21
call fcn.0041c0a7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c294
push dword [ebp + 8]
mov ecx, esi
call dword [0x429180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41c29c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d178
push 0x42d170
push str.FlsSetValue
push 0x22
call fcn.0041c0a7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c2d6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x429180]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41e4df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040dc20
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041ae13
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41e521
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e67d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427ef0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x435a40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041e904
mov ecx, dword [esi*4 + 0x435a40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41e676
cmp eax, dword [ecx + edi + 0x24]
jne 0x41e676
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e676
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e904
add esp, 0x14
test edx, edx
jl 0x41e676
jg 0x41e5ec
test eax, eax
jb 0x41e676
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e676
jl 0x41e606
cmp dword [ebp - 0x1008], eax
ja 0x41e676
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e624
test ebx, ebx
je 0x41e65d
cmp ecx, edi
jae 0x41e65d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e63e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e64a
cmp byte [ecx + 1], 0xa
jne 0x41e64a
inc ecx
jmp 0x41e64a
movzx eax, al
movsx eax, byte [eax + 0x4349b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e624
cmp edx, ebx
jne 0x41e624
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e67b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040cb75
leave
ret
Function at 0x420624
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4206c1
push ebx
push esi
call fcn.004205ed
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041f4f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42066e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4206c0
push edi
push eax
call fcn.00419f5e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42068e
call fcn.00419f24
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4206bf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041f4f1
add esp, 0x20
test eax, eax
jne 0x4206ad
push edi
call fcn.00419f24
jmp 0x4206b5
push ebx
call fcn.00419f24
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x422918
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00419b7d
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422987
cmp esi, dword [ebp - 4]
je 0x422982
cmp dword [ebp + 0xc], 0
je 0x422982
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42295f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042246a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x422989
xor eax, eax
inc eax
jmp 0x422989
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4229ee
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00419b7d
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00419b7d
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x422a65
cmp word [ecx], dx
je 0x422a65
mov eax, dword [0x42d5dc]
push edi
dec eax
push eax
push 0x42d4c8
call fcn.0042298d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x422ad8
cmp word [eax], dx
je 0x422ad8
mov eax, dword [edi]
test eax, eax
je 0x422a89
cmp word [eax], dx
je 0x422a89
lea eax, [ebp - 0x10]
push eax
call fcn.00422370
jmp 0x422a92
lea eax, [ebp - 0x10]
push eax
call fcn.0042240b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x422b02
mov eax, dword [0x42d4c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42d1b8
call fcn.0042298d
add esp, 0xc
test al, al
je 0x422b02
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x422acd
cmp word [eax], di
je 0x422acd
lea eax, [ebp - 0x10]
push eax
call fcn.00422370
pop ecx
jmp 0x422b04
lea eax, [ebp - 0x10]
push eax
call fcn.0042240b
jmp 0x422aca
mov eax, dword [edi]
test eax, eax
je 0x422aef
cmp word [eax], dx
je 0x422aef
lea eax, [ebp - 0x10]
push eax
call fcn.00422325
pop ecx
jmp 0x422b02
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x422bcd
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00422812
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422bcd
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x422bcd
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x422bcd
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x422b5a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041c3dc
test ebx, ebx
je 0x422bc8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041c3dc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422bcd
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422bcd
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00426701
add esp, 0x10
xor eax, eax
inc eax
jmp 0x422bcf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cb75
leave
ret
Function at 0x424fd3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x435a40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425013
cmp byte [ebx], 0xa
jne 0x425013
or byte [edi + eax + 0x28], 4
jmp 0x425018
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x425117
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4250fa
inc eax
cmp dl, 0xd
je 0x425044
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42506a
cmp eax, ecx
jae 0x425078
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42502c
jmp 0x425117
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4250f5
cmp dword [ebp - 0x10], 0
je 0x4250f5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x435a40]
test byte [eax + edi + 0x28], 0x48
je 0x4250cf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4250ba
mov byte [esi], dl
jmp 0x4250cb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x435a40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425117
cmp byte [ebp - 1], 0xa
jne 0x4250de
cmp esi, ebx
jne 0x4250de
mov byte [esi], 0xa
jmp 0x425116
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e922
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425117
mov byte [esi], 0xd
jmp 0x425116
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x435a40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425114
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425117
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425120
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x435a40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425166
cmp word [ebx], dx
jne 0x425166
or byte [eax + edi + 0x28], 4
jmp 0x42516b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4252ce
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4252ae
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4251ac
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4251e2
cmp eax, edx
jae 0x4251f0
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x425187
jmp 0x4252ce
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4252a9
cmp dword [ebp - 0x18], 0
je 0x4252a9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x435a40]
test byte [eax + edi + 0x28], 0x48
je 0x42527f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x425243
mov word [esi], cx
jmp 0x42527a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x435a40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x435a40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x435a40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4252ce
pop eax
cmp word [ebp - 4], ax
jne 0x42528f
cmp esi, ebx
jne 0x42528f
mov word [esi], ax
jmp 0x4252cb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e922
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4252ce
push 0xd
pop eax
jmp 0x42528a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x435a40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4252c8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4252ce
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x427df0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427e1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427e1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5bfae0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x53a000
lea edi, [esi - 0x169000]
push edi
jmp 0x5bfafa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5bfb01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bfaf0
mov eax, 1
add ebx, ebx
jne 0x5bfb13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5bfb24
jne 0x5bfb43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bfb43
dec eax
add ebx, ebx
jne 0x5bfb30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5bfb08
add ebx, ebx
jne 0x5bfb3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5bfb95
xor ecx, ecx
sub eax, 3
jb 0x5bfb5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5bfbca
sar eax, 1
mov ebp, eax
jmp 0x5bfb66
add ebx, ebx
jne 0x5bfb66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bfb34
inc ecx
add ebx, ebx
jne 0x5bfb74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bfb34
add ebx, ebx
jne 0x5bfb81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5bfb76
jne 0x5bfb92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5bfb76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5bfbb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5bfba6
jmp 0x5bfaf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5bfbb4
add edi, ecx
jmp 0x5bfaf6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5bfbd2
cmp byte [edi], 0x11
jne 0x5bfbd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5bfbd7
lea edi, [esi + 0x1b8000]
mov eax, dword [edi]
or eax, eax
je 0x5bfc4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a6bb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a6d2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5bfc04
mov ecx, edi
jns 0x5bfc33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a6d30]
or eax, eax
je 0x5bfc49
mov dword [ebx], eax
add ebx, 4
jmp 0x5bfc21
call dword [esi + 0x2a6d40]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5bfc80
cmp al, 0xef
ja 0x5bfc73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5bfc55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5bfc62
mov ebp, dword [esi + 0x2a6d34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5bfcb4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x1006115d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x10124e70
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [reloc.KERNEL32.dll_EnterCriticalSection], 1
jge 0x10124edf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x10124eb5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x10124eb5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10124e92
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10124ecb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x10124ed2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x10124fcf
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x10124fa0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10124f95
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x10124f89
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x10124f90
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x10124fcf
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x10124fca
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10124fb3
mov eax, dword [ebx + 8]
jmp 0x10124fcf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x10124fc1
xor eax, eax
jmp 0x10124fcf
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10124eff
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1017e0d3
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop dword [esp]
push si
lea esp, [esp + 2]
mov dword [esp], ebx
jmp 0x1017e0af

Function at 0x1017e104
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp]
jb 0x1017e167
lea esp, [esp + 2]
lea esp, [esp + 2]
mov dword [esp], edi
jmp 0x1017e17f
jmp 0x1017e151