joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ee120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
not eax
je 0x4ee152
jmp 0x4ee130
test cl, 3
je 0x4ee152
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5448c8]
add ecx, 1
sub esi, 1
jne 0x4ee130
cmp esi, 0x20
push ebx
push edi
jb 0x4ee33c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x544cc8]
xor edx, dword [ebx*4 + 0x5450c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5448c8]
add ecx, 4
xor edx, dword [eax*4 + 0x5454c8]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x544cc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5450c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5448c8]
add ecx, 4
xor eax, dword [edx*4 + 0x5454c8]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x544cc8]
xor edx, dword [ebx*4 + 0x5450c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5448c8]
xor edx, dword [eax*4 + 0x5454c8]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x544cc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5450c8]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5448c8]
xor eax, dword [edx*4 + 0x5454c8]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x544cc8]
xor edx, dword [ebx*4 + 0x5450c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5448c8]
xor edx, dword [eax*4 + 0x5454c8]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x544cc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5450c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5448c8]
and edx, 0xff
xor eax, dword [edx*4 + 0x5454c8]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x544cc8]
xor edx, dword [ebx*4 + 0x5450c8]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x5448c8]
add ecx, 4
xor edx, dword [eax*4 + 0x5454c8]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x544cc8]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x5450c8]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x5448c8]
and edx, 0xff
xor eax, dword [edx*4 + 0x5454c8]
sub edi, 1
jne 0x4ee162
cmp esi, 4
jb 0x4ee389
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x544cc8]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x5450c8]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x5448c8]
and eax, 0xff
xor edi, dword [eax*4 + 0x5454c8]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4ee346
test esi, esi
pop edi
pop ebx
je 0x4ee3ad
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x5448c8]
add ecx, 1
sub esi, 1
jne 0x4ee390
not eax
pop esi
ret
Function at 0x500b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53c548
mov eax, dword fs:[0]
push eax
mov eax, dword [0x577830]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xf
push eax
mov byte [esi + 4], al
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004fe7d0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], 0xffffffff
cmp dword [esp + 0x2c], 0x10
mov dword [esi + 0x1c], ecx
jb 0x500b85
mov edx, dword [esp + 0x18]
push edx
call fcn.00511cfe
add esp, 4
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x20
Function at 0x507be0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x53d618
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x577830]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x577830]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, edx
push 0xffffffffffffffff
mov esi, ecx
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.004fe100
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
push 0x543bb1
push 0x5581d8
lea eax, [esp + 0x20]
push eax
push esi
mov eax, edi
mov dword [esp + 0x50], ebx
call fcn.00507970
mov eax, 0x5581d8
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x507c58
sub eax, edx
mov ebp, eax
cmp ebp, 0x80
jbe 0x507c7b
push 0x20
mov eax, 0x80
call fcn.00503970
jmp 0x507cdd
mov esi, 0x80
sub esi, ebp
lea ebx, [ebp + 0x64]
cmp esi, ebx
jb 0x507cc9
lea esp, [esp]
push 0x20
mov eax, 0x64
call fcn.00503970
mov eax, 0x5581d8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x507ca4
sub eax, edx
push eax
push 0x5581d8
mov eax, edi
call fcn.00503400
mov ecx, 0xffffff9c
sub ecx, ebp
add esi, ecx
cmp esi, ebx
jae 0x507c90
push 0x20
mov eax, esi
call fcn.00503970
push edi
mov edx, 0x5581d8
call fcn.005033e0
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x20]
push edx
mov esi, edi
call fcn.00503880
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 0x10
jb 0x507d09
mov eax, dword [esp + 0x1c]
push eax
call fcn.00511cfe
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005120db
add esp, 0x30
ret
Function at 0x50e730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x53c62c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x577830]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov al, byte [esp + 0x34]
mov byte [esi + 4], al
mov dword [esi], vtable.XML_Node.0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov byte [esi + 0xc], bl
lea edi, [esi + 0x24]
mov dword [esp + 0x20], ebx
mov dword [edi + 0x18], eax
mov eax, ebp
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x50e790
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.004fee90
mov dword [esi + 0x58], 0xf
mov dword [esi + 0x54], ebx
mov byte [esi + 0x44], bl
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x5120db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x577830]
jne 0x5120e5
repz ret
jmp fcn.005149c2

Function at 0x514f25
Capabilities:
Encrypt data using chaskey

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
push 0
sete al
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x587690], eax
jne 0x514eee
xor eax, eax
ret
call fcn.00514e70
cmp eax, 3
mov dword [0x5a06dc], eax
jne 0x514f21
push 0x3f8
call fcn.005150cc
test eax, eax
pop ecx
jne 0x514f21
push dword [0x587690]
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
and dword [0x587690], 0
jmp 0x514eeb
xor eax, eax
inc eax
and esi, edx
dec eax
call fcn.0045db50
test eax, 0x3f51bfd2
jbe 0x514f36
or esi, ebp
mov ebx, 0xa725ad59
shl ecx, 8
cmp ebx, 0xf3a202d7
jbe 0x514f48
xor ecx, esp
inc ecx
rol edi, 0x11
xor edx, 0xa338b39
cmp dword [0x57b15c], 0x6e593fca
je 0x514f60
neg esi
call fcn.00476999
ror eax, 0xd
call fcn.00451eb3
xor esi, edi
call fcn.0046b8ae
xchg ecx, esi
call fcn.00508d1e
add ebx, dword [0x58601f]
mov ecx, 0x42b270b0
not edi
shl eax, 0x13
and esi, dword [0x57af66]
neg esi
mov esi, ebx
and esi, dword [0x5831dc]
add esi, eax
neg edx
and eax, dword [0x586360]
dec eax
inc esi
not edx
and esi, dword [0x58244d]
mov esi, 0xe29dbb8a
dec ecx
jne 0x514f86
mov ecx, 0x74cdf1da

Function at 0x514fc3
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
xor esi, dword [0x5845f1]
sub dword [0x5a076e], eax
inc esi
and ebx, 0xc6f920e9
dec esi
inc edx
shl edx, 0x1c
sub edx, dword [0x585da6]
pop ebp
pop eax
add byte [ecx], cl
or eax, 0x5a098b
not esi
xchg ebx, eax
neg esi
dec ecx
jne 0x514fbd
sub eax, 0x38f705e3
mov ecx, 0x65cf7ebd
add dword [0x5a07e2], edx
xchg ebx, esi
mov edi, ecx
sub eax, 0x629f2369
ror ebx, 0x17
xchg edi, edx
not esi
sub dword [0x5a08e1], edx
or edx, 0x6828369c
xchg eax, edx
rol edi, 0x18
mov edi, 0x4bc831f1
dec esi
sub edi, ebx
and edi, 0xeafbdd1c
xor edi, eax
dec ecx
jne 0x514ff6
neg esi
or ebx, 0x27e42afb
and dword [0x5a072e], 0xc062a120
mov ecx, edx
mov ecx, 0xc88fd685
xor esi, dword [0x5a0c03]
rol ebx, 0x1d
call fcn.00414ed9
sub edi, 0xea5bca8e
mov dword [0x5a0aeb], eax
ror esi, 6
call fcn.0046ee2c
xchg edi, eax
mov dword [0x5a0a0c], edi
call fcn.0041bdcf
call fcn.0044722e
or dword [0x5a0b17], eax
xchg edi, eax
call fcn.0051df41
rol esi, 6
mov dword [0x5a0b4a], ecx
add edi, 0xea5bca8e

Function at 0x51509b
Capabilities:
Encrypt data using chaskey

Disassembly:
call fcn.00439dc9
ror ebx, 0x1d
or ecx, 0x76e407a9
sub dword [0x5a083a], eax
ror edx, 4
xchg esi, eax
add ecx, 0xb94b895c
xchg ebx, esi
xor edx, dword [0x5a0f17]
mov dword [0x5a0b2a], eax
xchg ecx, eax
sub dword [0x5a08d3], ecx
ror dword [eax], cl
pop edx
add byte [ebx], dh
adc eax, 0x5a0c26
neg eax
rol edx, 0x10
call fcn.004af182
or dword [0x5a0899], eax
sub dword [0x5a079a], edi
ror edx, 0x10
neg eax
add dword [0x5a0811], ecx
xchg ecx, eax
sub dword [0x5a078e], ecx
xchg ebx, esi
sub ecx, 0xb94b895c
xchg esi, eax
rol edx, 4
or dword [0x5a08b4], ecx
invalid
invalid
Function at 0x5150cc
Capabilities:
Encrypt data using chaskey

Disassembly:
call fcn.00439dc9
ror ebx, 0x1d
or ecx, 0x76e407a9
sub dword [0x5a083a], eax
ror edx, 4
xchg esi, eax
add ecx, 0xb94b895c
xchg ebx, esi
xor edx, dword [0x5a0f17]
mov dword [0x5a0b2a], eax
xchg ecx, eax
sub dword [0x5a08d3], ecx
ror dword [eax], cl
pop edx
add byte [ebx], dh
adc eax, 0x5a0c26
neg eax
rol edx, 0x10
call fcn.004af182
or dword [0x5a0899], eax
sub dword [0x5a079a], edi
ror edx, 0x10
neg eax
add dword [0x5a0811], ecx
xchg ecx, eax
sub dword [0x5a078e], ecx
xchg ebx, esi
sub ecx, 0xb94b895c
xchg esi, eax
rol edx, 4
or dword [0x5a08b4], ecx
invalid
invalid
Function at 0x51a6d4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00512d24
xor ebx, ebx
cmp dword [0x587974], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x51a7aa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x51a88a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5430a0
push edi
call esi
cmp eax, ebx
je 0x51a88a
push eax
call fcn.00512cb6
mov dword [esp], 0x543090
push edi
mov dword [0x587974], eax
call esi
push eax
call fcn.00512cb6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x587978], eax
call esi
push eax
call fcn.00512cb6
mov dword [0x58797c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0051474f
test eax, eax
pop ecx
pop ecx
je 0x51a778
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0051429f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x51a7aa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00512cb6
cmp eax, ebx
pop ecx
mov dword [0x587984], eax
je 0x51a7aa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00512cb6
pop ecx
mov dword [0x587980], eax
mov eax, dword [0x587980]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x51a82f
cmp dword [0x587984], ecx
je 0x51a82f
push eax
call fcn.00512d2d
push dword [0x587984]
mov esi, eax
call fcn.00512d2d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x51a82f
cmp edi, ebx
je 0x51a82f
call esi
cmp eax, ebx
je 0x51a7fc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51a7fc
test byte [ebp - 0x18], 1
jne 0x51a82f
lea eax, [ebp - 0x10]
push eax
call fcn.00514786
test eax, eax
pop ecx
je 0x51a817
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0051429f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x51a826
or dword [ebp + 0x10], 0x200000
jmp 0x51a86a
or dword [ebp + 0x10], 0x40000
jmp 0x51a86a
mov eax, dword [0x587978]
cmp eax, dword [ebp - 8]
je 0x51a86a
push eax
call fcn.00512d2d
cmp eax, ebx
pop ecx
je 0x51a86a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x51a86a
mov eax, dword [0x58797c]
cmp eax, dword [ebp - 8]
je 0x51a86a
push eax
call fcn.00512d2d
cmp eax, ebx
pop ecx
je 0x51a86a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x587974]
call fcn.00512d2d
cmp eax, ebx
pop ecx
je 0x51a88a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51a88c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x100160c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], 0x1001150
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1001654
mov eax, dword [ebp - 4]
leave
ret 0x10
Function at 0x10019d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001208
push 0x1002a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x10064b8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x10064b4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x10064b0], ecx
shr eax, 0x10
mov dword [0x10064ac], eax
call fcn.010028e0
test eax, eax
jne 0x1001a3a
push 0x1c
call 0x1001ba0
add esp, 4
mov dword [ebp - 4], 0
call fcn.010026e0
call fcn.010026d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1007090], eax
call fcn.010022a0
mov dword [0x1006494], eax
test eax, eax
je 0x1001a6d
mov eax, dword [0x1007090]
test eax, eax
jne 0x1001a77
push 0xffffffffffffffff
call fcn.01001c00
add esp, 4
call fcn.01001ff0
call fcn.01001f00
call fcn.01001bd0
mov esi, dword [0x1007090]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x1001b56
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x1001abe
test al, al
je 0x1001abe
and eax, 0xff
push eax
call fcn.01001ea0
add esp, 4
test eax, eax
je 0x1001a98
inc esi
mov dword [ebp - 0x64], esi
jmp 0x1001a98
cmp byte [esi], 0x22
jne 0x1001ac7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x1001ad7
cmp al, 0x20
ja 0x1001ad7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x1001ac7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x1001af8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x1001afd
mov eax, 0x8b08000a
sti
lea ebx, [0xd3080779]
mov esi, eax
add esi, 0x3dd
jmp 0x1001b11
test ebp, 0x264b1294
add ecx, 0x70a9
jmp 0x1001b25
add ecx, 0x6fd
pop edi
js 0x1001b30
mov ecx, esi
mov bl, 0x30
and bl, 0xe1
cmp eax, 0xc00a
jb 0x1001b43
sub ecx, ebx
movsx ecx, al
add edi, 0xc5d7
sbb ch, dl
lea ebp, [0xb3d39f3e]
sub edi, 0xf95
and eax, 0xc7677426
add byte [0xc7677426], ah
lea eax, [0xb39f1db8]
test edx, ebp
lea edx, [0xd1462ca9]
cmp ebx, ebx
js 0x1001b72
imul esi, esi
jne 0x1001b7d
xor al, 0x60
lea ebx, [0x63e47ce8]
dec esi
sub edx, 0x89c6ec2a
add ecx, 0xa4c6
test ch, 0xe
sub ecx, 0x6ad
jne 0x1001b9d
imul ebp, ebx, 0x9277218a
mov eax, ebx
jno 0x1001ba1
xchg esi, ebx
imul esi, edi, 0x3dd361a4
push 0x2aa0cb
push 0x709259
jmp 0x1001bb7
jmp edi
Function at 0x1001c40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x10064e8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x1001c5f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x10064e4], 1
mov byte [0x10064e0], bl
jne 0x1001cb9
mov ecx, dword [0x1007088]
test ecx, ecx
je 0x1001ca7
mov esi, dword [0x1007084]
sub esi, 4
cmp esi, ecx
jb 0x1001ca7
mov eax, dword [esi]
test eax, eax
je 0x1001ca0
call eax
mov ecx, dword [0x1007088]
sub esi, 4
cmp esi, ecx
jae 0x1001c92
push 0x1004014
push 0x1004010
call fcn.01001cf0
add esp, 8
push 0x100401c
push 0x1004018
call fcn.01001cf0
add esp, 8
test ebx, ebx
jne 0x1001ce0
push ebp
mov dword [0x10064e8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x10022a0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x10065f8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x10022e2
call edi
mov esi, eax
test esi, esi
je 0x10022cc
mov eax, 1
jmp 0x10022dd
call ebp
mov ebx, eax
test ebx, ebx
je 0x10023ef
mov eax, 2
mov dword [0x10065f8], eax
cmp eax, 1
jne 0x1002382
test esi, esi
jne 0x10022fb
call edi
mov esi, eax
test esi, esi
je 0x10023ef
cmp word [esi], 0
mov eax, esi
je 0x1002315
add eax, 2
cmp word [eax], 0
jne 0x1002303
add eax, 2
cmp word [eax], 0
jne 0x1002303
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1002374
push edi
call fcn.01002d60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002374
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1002366
push ebx
call fcn.01002d10
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10023ef
test ebx, ebx
jne 0x1002393
call ebp
mov ebx, eax
test ebx, ebx
je 0x10023ef
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x10023ab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100239b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100239b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.01002d60
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10023cd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x418d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420b80], ecx
inc edx
cmp edx, 0x100
jb 0x418d52
cmp edx, 0x800
jae 0x418e29
lea esp, [esp]
mov eax, dword [edx*4 + 0x420780]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420b80]
inc edx
mov dword [edx*4 + 0x420b7c], eax
cmp edx, 0x800
jb 0x418e00
mov eax, 0x419630
mov dword [0x420b74], eax
mov dword [0x422b80], eax
mov dword [0x420b70], 0x419550
call fcn.00419060
test eax, eax
jne 0x418e55
mov dword [0x422b80], 0x419550
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x1bc35b1f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x1a124e7d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x41d8da
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x5ba278
call fcn.0041e7ac
mov edi, 0x94
mov eax, edi
call fcn.004201f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x6d974c], ecx
mov eax, dword [esi + 4]
mov dword [0x6d9758], eax
mov edx, dword [esi + 8]
mov dword [0x6d975c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x6d9750], esi
cmp ecx, 2
je 0x41d93a
or esi, 0x8000
mov dword [0x6d9750], esi
shl eax, 8
add eax, edx
mov dword [0x6d9754], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x41d973
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d973
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41d98b
cmp eax, 0x20b
je 0x41d978
mov dword [ebp - 0x1c], edi
jmp 0x41d99f
cmp dword [ecx + 0x84], 0xe
jbe 0x41d973
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x41d999
cmp dword [ecx + 0x74], 0xe
jbe 0x41d973
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041dab3
pop ecx
test eax, eax
jne 0x41d9b3
push 0x1c
call fcn.0041d8b6
pop ecx
call fcn.004200fd
test eax, eax
jne 0x41d9c4
push 0x10
call fcn.0041d8b6
pop ecx
call fcn.0041fe97
mov dword [ebp - 4], edi
call fcn.0041fc99
test eax, eax
jge 0x41d9dd
push 0x1b
call fcn.0041d891
pop ecx
call fcn.0041fbfa
mov dword [0x6db138], eax
call fcn.0041fa90
mov dword [0x6d95e4], eax
call fcn.0041f9fa
test eax, eax
jge 0x41da02
push 8
call fcn.0041d891
pop ecx
call fcn.0041f7c7
test eax, eax
jge 0x41da13
push 9
call fcn.0041d891
pop ecx
push 1
call fcn.0041f346
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x41da29
push eax
call fcn.0041d891
pop ecx
mov eax, dword [0x6d9774]
mov dword [0x6d9778], eax
push eax
push dword [0x6d9768]
push dword [0x6d9760]
call fcn.00415090
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x41da58
push esi
call fcn.0041f473
call fcn.0041f495
jmp 0x41da8a
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0041e7e7
ret