joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ab580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5ab764
add esp, 0xffffff80
lea edi, [esp + 0x30]
mov esi, dword [esp + 0x84]
call fcn.004637cc
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.005aab50
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea edi, [esp + 0x58]
xor eax, eax
call fcn.00463316
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x88]
xor ecx, ecx
jmp 0x5ab632
mov edx, dword [esp + 0x10]
lea ecx, [edx + 1]
cmp ecx, 5
jge 0x5ab705
mov dword [esp + 0x10], ecx
imul edx, ecx, 0x33
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1d
add edx, ebx
sar edx, 3
mov dword [esp + 0x1c], edx
shl edx, 3
sub ebx, edx
cmp ebx, 0x20
sbb edx, edx
lea esi, [esp + ecx*8 + 0x58]
mov edi, dword [esi]
mov dword [esp + 0xc], edi
mov esi, dword [esi + 4]
mov ecx, ebx
shl edi, cl
and edi, edx
mov dword [esp + 8], edi
xchg edi, eax
mov byte [esp + 0x20], al
xchg edi, eax
lea ebp, [ecx - 0x20]
mov dword [esp + 0x18], ebp
cmp ebp, 0x20
sbb edi, edi
mov dword [esp + 0x14], edi
xchg ebp, ebx
neg ebx
xchg ebp, ebx
cmp ebp, 0x20
sbb edi, edi
shl esi, cl
and esi, edx
mov ecx, ebp
mov edx, dword [esp + 0xc]
mov ebx, edx
shr edx, cl
and edx, edi
or edx, esi
mov ecx, dword [esp + 0x18]
shl ebx, cl
mov ebp, dword [esp + 0x14]
and ebx, ebp
or ebx, edx
mov edx, dword [esp + 8]
mov ebp, edx
shr edx, 8
mov esi, ebx
shl ebx, 0x18
or edx, ebx
mov byte [esp + 0x21], dl
mov edx, ebp
shr ebp, 0x10
mov ebx, esi
shl esi, 0x10
or esi, ebp
xchg esi, eax
mov byte [esp + 0x22], al
xchg esi, eax
mov ebp, ebx
shl ebx, 8
shr edx, 0x18
or edx, ebx
mov byte [esp + 0x23], dl
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x1c]
xor ecx, ecx
jmp 0x5ab736
test byte [eax], al
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0x20
mov dword [esp + 0x94], 0x20
sub esp, 0xffffff80
ret
movzx esi, byte [eax + ebp]
or esi, ebx
xchg esi, ebx
mov byte [eax + ebp], bl
xchg esi, ebx
inc ecx
cmp ecx, 8
jge 0x5ab62b
movzx ebx, byte [esp + ecx + 0x28]
lea ebp, [edx + ecx]
cmp ebp, 0x20
jge 0x5ab62b
test byte [eax], al
cmp ebp, 0x20
jb 0x5ab728
mov eax, ebp
mov ecx, 0x20
call fcn.00463100
nop
call fcn.00461c70
jmp fcn.005ab580
Function at 0x5b1a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b1b51
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x5b1ab3
mov edx, dword [esp + 0x18]
movzx ebx, byte [edx + ecx - 1]
movzx ebp, bl
mov esi, ebp
sub ebp, ecx
cmp ecx, 0x100
jge 0x5b1a9d
mov eax, ecx
jmp 0x5b1aa4
mov eax, ecx
mov ecx, 0x100
mov byte [esp + 0xa], bl
mov dword [esp + 0x10], esi
sar ebp, 0x1f
xor edi, edi
jmp 0x5b1b03
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
add esp, 0x14
ret
inc edi
xchg esi, ebx
not ebx
xchg esi, ebx
sar esi, 0x1f
mov dword [esp + 0xc], esi
movzx ebp, byte [eax + edx - 1]
movzx eax, byte [esp + 0xa]
and esi, eax
mov eax, dword [esp + 0xc]
and ebp, eax
xor ebp, esi
xchg ebp, ebx
not ebx
xchg ebp, ebx
movzx eax, byte [esp + 0xb]
and ebp, eax
movzx eax, byte [esp + 0xa]
mov esi, dword [esp + 0x10]
mov eax, ebx
movzx ebx, byte [esp + 0xa]
cmp ecx, edi
jle 0x5b1b1e
xchg ebp, eax
mov byte [esp + 0xb], al
xchg ebp, eax
sub esi, edi
sub eax, edi
lea ebp, [eax - 1]
mov ebx, dword [esp + 0x1c]
cmp ebx, ebp
ja 0x5b1ac4
jmp 0x5b1b47
mov eax, ebp
shl ebp, 4
and eax, ebp
mov ecx, eax
shl eax, 2
and eax, ecx
mov ecx, eax
shl eax, 1
and eax, ecx
sar al, 7
and ebx, eax
movzx ecx, bl
inc ecx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x28], al
add esp, 0x14
ret
mov eax, ebp
mov ecx, ebx
call fcn.00463100
nop
call fcn.00461c70
jmp fcn.005b1a60
Function at 0x5d6740
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x5d685d
sub esp, 0x84
nop
lea edi, [esp + 0x20]
xor eax, eax
call fcn.00463308
nop
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x30], 0xc3d2e1f0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x5d67c3
mov eax, dword [esp + 0x88]
xor edx, edx
jmp 0x5d681d
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00560df0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x84
ret
mov ebx, dword [esp + 0x80]
add ebx, 0xc
mov edx, eax
mov eax, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x80], eax
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
lea esi, [esp + 0x20]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00560c10
mov eax, dword [esp + 0x1c]
inc eax
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
jg 0x5d680f
jmp 0x5d67c3
call fcn.00461c70
jmp fcn.005d6740
Function at 0x5d6870
Capabilities:
Hash data with md5

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x5d6a30
sub esp, 0x84
lea eax, [0x68e6c0]
mov dword [esp], eax
mov dword [esp + 4], 0x24
mov dword [esp + 8], 0x24
call fcn.0044b730
mov eax, dword [esp + 0xc]
mov dword [esp + 0x80], eax
nop
lea edi, [esp + 0x20]
xor eax, eax
call fcn.00463309
nop
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x5d6917
mov ecx, dword [esp + 0x88]
xor edx, edx
jmp 0x5d69f3
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.005990e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ecx, 0x24
jl 0x5d694d
mov ecx, 0x24
mov edx, dword [esp + 0x80]
cmp eax, edx
je 0x5d6968
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00463a10
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], eax
call fcn.005d6740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x14
jl 0x5d699f
mov ecx, 0x14
mov edx, dword [esp + 0x80]
lea ebx, [edx + 0x10]
cmp eax, ebx
je 0x5d69c4
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00463a10
mov edx, dword [esp + 0x80]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], 0x24
mov dword [esp + 0x9c], 0x24
add esp, 0x84
ret
mov ebx, dword [esp + 0x7c]
add ebx, 0xc
mov ecx, ebx
mov edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x7c], ecx
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
lea esi, [esp + 0x20]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00598f00
mov eax, dword [esp + 0x1c]
inc eax
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
jg 0x5d69e8
jmp 0x5d6917
call fcn.00461c70
jmp fcn.005d6870
Function at 0x5d9490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5d965f
sub esp, 0x40
lea eax, [0x68e6c0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
lea ebx, [edx + ecx]
mov dword [esp + 0x30], ebx
mov dword [esp + 8], ebx
call fcn.0044b730
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
cmp ecx, edx
jbe 0x5d9512
lea ebx, [0x68e6c0]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.0044b870
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
mov edx, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp], eax
mov ebx, dword [esp + 0x58]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.00463a10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jb 0x5d9540
mov edx, dword [esp + 0x38]
jmp 0x5d9574
lea edx, [0x68e6c0]
mov dword [esp], edx
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0044b870
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov edx, eax
mov eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x5c]
add ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
call fcn.00463a10
lea eax, [0x68e6c0]
mov dword [esp], eax
mov dword [esp + 4], 0x30
mov dword [esp + 8], 0x30
call fcn.0044b730
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
movzx ecx, word [esp + 0x44]
mov word [esp], cx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.005d93d0
mov edx, dword [esp + 8]
mov eax, dword [edx]
mov ecx, dword [str.master_secret]
mov ebx, dword [0x8bb3f4]
mov ebp, dword [0x8bb3f8]
mov esi, dword [esp + 0x3c]
mov dword [esp], esi
mov dword [esp + 4], 0x30
mov dword [esp + 8], 0x30
mov edi, dword [esp + 0x4c]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
call eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x30
mov dword [esp + 0x78], 0x30
add esp, 0x40
ret
call fcn.00461c70
jmp fcn.005d9490
Function at 0x5da1b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5da35a
sub esp, 0x48
movzx eax, word [esp + 0x78]
cmp ax, 0x303
jb 0x5da1de
movzx ecx, byte [esp + 0x80]
jmp 0x5da1eb
movzx ecx, byte [esp + 0x80]
cmp cl, 0xe4
jne 0x5da223
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x5da341
cmp cl, 0xe4
je 0x5da202
cmp ax, 0x303
jmp 0x5da227
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x48
ret
cmp ax, 0x303
jae 0x5da2b5
cmp cl, 0xe3
jne 0x5da27f
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov eax, dword [eax + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x48
ret
lea edi, [esp]
lea esi, [esp + 0x4c]
call fcn.004637ae
call fcn.005d9e90
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x48
ret
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.004822e0
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0x20]
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
call edx
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x48
ret
lea eax, [0x68e4c0]
mov dword [esp], eax
lea eax, [0x738cb8]
mov dword [esp + 4], eax
call fcn.00436f70
nop
call fcn.00461c70
jmp fcn.005da1b0
Function at 0x4226aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4226b9
pop dword [ebp - 0x10]
mov eax, 0x4226b9
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x50c01
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x38cd1460
sub ecx, 0x38ccc9d7
xor edx, edx
add edx, eax
mov ebx, 0x488e00
add ebx, dword [ebp - 0x10]
mov esi, 0xc2b90841
add esi, 0x36851a5f
sub dword [ebp - 8], 0x7aeeb916
mov edi, dword [ebx]
mov dword [ebp - 4], 0x18c3b66f
add edi, esi
xor dword [ebp - 8], 0x70a98f81
mov dword [edx], edi
mov dword [ebp - 8], 0x57d96522
add edx, 4
add ebx, 4
loop 0x42270a
add eax, 0xad218c3
add eax, 0xf52f0434
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3cd7716f
sub ecx, 0x3c97716f
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000a210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1000a21f
pop dword [ebp - 0x4c]
mov eax, 0xfbe23f40
sub eax, 0xebe19d21
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x35d33
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x7f235f24
add ecx, 0x80dce404
xor edx, edx
add edx, eax
mov edi, 0x10019800
add edi, dword [ebp - 0x4c]
mov esi, 0x7c7d30a2
sub esi, 0x7efd5f42
sub dword [ebp - 0x24], 0xc7b83d1d
mov ebx, dword [edi]
sub dword [ebp - 0x38], ebx
add ebx, esi
xor dword [ebp - 0xc], 0x2f24bb53
mov dword [edx], ebx
add dword [ebp - 0x48], edx
add edx, 0xc215abea
sub edx, 0xc215abe6
add edi, 0x9a7d29be
sub edi, 0x9a7d29ba
loop 0x1000a275
add eax, 0xff73
mov ebx, eax
add eax, 0xf21fc97c
add eax, 0xde03689
mov ecx, 0x2c13e640
add ecx, 0xe3ec19c0
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x1030a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1030a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1030a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1030a06a
add dl, dl
jne 0x1030a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1030a0dc
xor eax, eax
add dl, dl
jne 0x1030a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1030a17d
add dl, dl
jne 0x1030a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1030a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1030a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1030a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1030a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1030a075
mov eax, 1
add dl, dl
jne 0x1030a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1030a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1030a0e1
sub eax, ebx
mov ebx, 1
jne 0x1030a128
mov ecx, 1
add dl, dl
jne 0x1030a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1030a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1030a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1030a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1030a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1030a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1030a136
cmp eax, 0x7d00
jae 0x1030a16d
cmp eax, 0x500
jb 0x1030a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1030a075
cmp eax, 0x7f
ja 0x1030a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1030a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1030a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1030a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x402ee4
pop dword [ebp - 0x3c]
mov eax, 0x4cb76282
add eax, 0xb388cc62
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x81662ee9
add dword [ebp - 0x4c], 0xccec1662
mov dword [ebp - 0x48], 0xad97a118
sub dword [ebp - 0x48], 0x7b6454d3
mov dword [ebp - 0x44], 0xc2f3cad1
sub dword [ebp - 0x44], 0x76a786a3
mov dword [ebp - 0x40], 0x8fac1684
sub dword [ebp - 0x40], 0x8fac1684
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x12a4c5c3
sub dword [ebp - 0x4c], 0x9e325c6d
mov dword [ebp - 0x48], 0x8c7a8707
add dword [ebp - 0x48], 0xb4f1da6e
mov dword [ebp - 0x44], 0x76808c14
sub dword [ebp - 0x44], 0x13111fa8
mov dword [ebp - 0x40], 0xfd9d168b
add dword [ebp - 0x40], 0x262e975
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x75c2afa3
add eax, 0x8a7dd15d
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x34d97
push 0
call eax
mov ecx, 0xa9658d65
sub ecx, 0xa9654e24
mov ebx, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x3c]
mov edx, 0x5b57a8c1
mov esi, dword [edi]
sub dword [ebp - 0x30], esi
xor esi, edx
xor dword [ebp - 0x30], edi
mov dword [ebx], esi
add ebx, 4
add edi, 0x4e39b73f
sub edi, 0x4e39b73b
loop 0x402ff5
add eax, 0x98b171a8
sub eax, 0x98b081d1
mov ebx, eax
add eax, 0x3592683f
sub eax, 0x3592683a
mov ecx, 0x6cdefa8b
sub ecx, 0x6c9efa8b
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10