joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015b020
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
mov edi, edx
mov ebx, ecx
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.1015fca0
add esp, 0x18
cmp dword [esp + 0xc], 0
jne 0x1015b05a
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.1015fca0
add esp, 0x10
pop edi
pop ebx
ret

Function at 0x1015fdb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov ecx, dword [esp + 0x14]
push esi
push edi
mov dword [esp + 0x10], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x1015fe4b
nop
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test ecx, ecx
je 0x1015fe03
mov edx, edi
mov eax, ecx
mov ecx, dword [ebx + 0x10]
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, dword [esp + 0x1c]
nop
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x1015fe28
test edx, edx
jne 0x1015fe3a
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x10]
add edi, edi
push 0
mov edx, ebp
mov ecx, dword [eax + edi*8 + 0xc]
add ecx, 8
call fcn.10124050
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
jne 0x1015feaa
jmp 0x1015fe41
movzx ecx, byte [ecx + 0x1022a168]
movzx edx, byte [edx + 0x1022a168]
sub edx, ecx
jne 0x1015fe3d
inc eax
jmp 0x1015fdf0
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [ebx + 0x14]
jl 0x1015fdd0
mov edx, str.sqlite_master
sub edx, ebp
movzx ecx, byte [ebp]
movzx eax, byte [edx + ebp]
cmp ecx, eax
jne 0x1015fe76
test ecx, ecx
jne 0x1015fe88
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
test ecx, ecx
jne 0x1015fe8b
neg eax
sbb eax, eax
jmp 0x1015fe9a
movzx eax, byte [eax + 0x1022a168]
movzx ecx, byte [ecx + 0x1022a168]
sub ecx, eax
jne 0x1015fea8
inc ebp
jmp 0x1015fe52
test eax, eax
je 0x1015fea8
mov edx, eax
call fcn.10122bb0
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x1015fea8
mov ebp, str.sqlite_temp_master
jmp 0x1015fdc3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x101601f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
mov eax, ecx
mov dword [esp + 4], edx
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x10], eax
xor edi, edi
cmp dword [eax + 0x14], ebx
jle 0x1016028a
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov eax, dword [eax + 0x10]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x10160249
mov esi, dword [esi]
mov eax, ebp
sub esi, ebp
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x10160275
test edx, edx
jne 0x10160287
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 0x18]
push 0
call fcn.10124050
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x1016026b
mov eax, dword [esp + 0x18]
inc edi
cmp edi, dword [eax + 0x14]
jl 0x10160212
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
movzx ecx, byte [ecx + 0x1022a168]
movzx edx, byte [edx + 0x1022a168]
sub edx, ecx
jne 0x10160261
inc eax
jmp 0x10160236
pop edi
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x101b6600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push 0x38
xorps xmm0, xmm0
lea eax, [esp + 0x4c]
mov ebp, edx
movlpd qword [esp + 0x2c], xmm0
mov ebx, ecx
mov dword [esp + 0x20], ebp
push 0
movups xmmword [esp + 0x40], xmm0
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], 0x13
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x48]
mov edx, ebp
mov ecx, ebx
push eax
push 1
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [esp + 0xa0]
call fcn.101a6b90
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x101b67de
push dword [esp + 0x3c]
lea eax, [esp + 0x3c]
mov ecx, ebx
push dword [esp + 0x3c]
lea edx, [esp + 0x50]
mov dword [esp + 0x5c], eax
call fcn.101b20f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x101b67de
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.101b2210
mov esi, eax
cmp esi, 0x64
jne 0x101b67de
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x20]
mov ebp, dword [esp + 0x7c]
xorps xmm0, xmm0
mov ecx, edi
movlpd qword [esp + 0x20], xmm0
add ebp, edi
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x28], xmm0
call fcn.101a2de0
lea esi, [edi + eax]
cmp esi, ebp
jae 0x101b67be
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.101a2de0
add esi, eax
cmp esi, ebp
jae 0x101b67ba
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
je 0x101b6766
cmp ecx, 1
jne 0x101b6726
test edx, edx
je 0x101b6766
mov eax, dword [esp + 0x28]
add ecx, 0xfffffffe
adc edx, 0xffffffff
add eax, ecx
mov ecx, dword [esp + 0x70]
adc dword [esp + 0x2c], edx
mov edx, dword [esp + 0x74]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x30], eax
push edi
push ebx
push dword [esp + 0x98]
push dword [esp + 0x30]
call fcn.101b6550
xor dword [esp + 0x2c], eax
add esp, 0x18
xor dword [esp + 0x10], edx
jmp 0x101b67b2
xorps xmm0, xmm0
or ecx, edx
movlpd qword [esp + 0x30], xmm0
mov ecx, esi
movlpd qword [esp + 0x28], xmm0
je 0x101b6788
lea edx, [esp + 0x30]
call fcn.101a2de0
add esi, eax
jmp 0x101b67b2
lea edx, [esp + 0x20]
call fcn.101a2de0
add esi, eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xef], 0
je 0x101b67aa
sub ebx, dword [esp + 0x20]
sbb edi, dword [esp + 0x24]
jmp 0x101b67b2
add ebx, dword [esp + 0x20]
adc edi, dword [esp + 0x24]
cmp esi, ebp
jb 0x101b66f1
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x48]
mov ecx, ebx
call fcn.101b2210
mov esi, eax
cmp esi, 0x64
je 0x101b66b4
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
jmp 0x101b67e6
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x48]
call fcn.101b2970
mov ecx, dword [esp + 0x8c]
mov edx, edi
pop edi
mov eax, ebp
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x101c0c10
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov esi, ecx
mov dword [esp + 0x14], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x101c0c4c
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + ebx*4 + 0x1c]
push esi
call fcn.101c0b30
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x101c0d0c
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
push 1
push edi
call fcn.101456b0
push edi
call fcn.10144400
add esp, 0x14
cmp eax, 0x65
jne 0x101c0ca3
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebp
push ecx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.101c0bb0
add esp, 0x1c
jmp 0x101c0cfa
cmp eax, 0x64
jne 0x101c0cfa
push 0
push edi
call fcn.10144d20
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jne 0x101c0cc5
cmp edx, ecx
je 0x101c0cfa
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test ebx, ebx
push ebp
push ecx
mov eax, str.__rowid
mov dword [esp + 0x20], str.__parent
cmove eax, dword [esp + 0x20]
push eax
push edx
push dword [esp + 0x2c]
push ebp
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.101c0bb0
add esp, 0x2c
push edi
call fcn.10143450
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x101c0d0c
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x101c9b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020663e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.101cef50
lea esi, [edi + 4]
mov dword [edi], vtable.Poco::JSON::ParseHandler.0
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.101c838c
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.100ed7c0
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x34], al
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x423997
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor al, ch
out 0x22, eax
mov ecx, dword [edi]
mov eax, dword [esi + 0x34]
lea ecx, [edi - 0x7c13fbd4]
mov dword [edi + 0x7eff85f8], eax
lea eax, [esi + 0x38]
push eax
call 0xb7508057
cmp dword [edi + 0x82cf8], 1
mov eax, dword [esi + 0x48]
mov dword [edi - 0x75f38dc4], eax
mov eax, dword [esi + 0x4c]
mov dword [edi - 0x75f38dc0], eax
mov eax, dword [esi + 0x50]
mov dword [edi - 0x75f38db8], eax
je 0x413b65
mov eax, dword [esi + 0x54]
mov dword [edi + 0x7e7e7ef8], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [edi - 0x7bf0eb0c], eax
call 0x18bf0b12
inc esi
sub al, 0xe8
dec ebx
add al, 0
push ebx
mov ebx, esp
or al, 0x51
stc
in al, 0xf0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
pop esi
mov eax, dword [ebx + 0x575628ec]
mov edi, dword [ebx + 0xc]
xor eax, eax
movzx ecx, word [edi]
mov dword [ebp - 8], ecx
cmp ax, cx
jne 0x4239c9
inc ebp
inc ebx
or cl, ch
pop eax
add al, byte [eax]
add byte [ecx + 0x4c31f8], ah
mov eax, dword [0x4c31f8]
cmp eax, 1
jle 0x2e0ccc
mov eax, edi
and eax, 0xfff
push 2
pop esi
cmp eax, 0xff0
ja 0x4239ee
movdqu xmm0, xmmword [edi]
jmp 0x423a17
push 8
pxor xmm0, xmm0
movzx ecx, cx
pop edx
movzx eax, cx
psrldq xmm0, 2
pinsrw xmm0, eax, 7
xor eax, eax
cmp ax, cx
je 0x423a11
add edi, esi
movzx ecx, word [edi]
dec edx
jne 0x4239f8
mov ecx, dword [ebp - 8]
mov edx, dword [ebx + 8]
mov eax, edx
and eax, 0xfff
cmp eax, 0xff0
ja 0x423a8c
movdqu xmm1, xmmword [edx]
pcmpistri xmm0, xmm1, 0xd
jbe 0x423a3c
add edx, 0x10
mov ecx, dword [ebp - 8]
jmp 0x423a1a
jae 0x423c1f
pcmpistri xmm0, xmm1, 0xd
lea edx, [edx + ecx*2]
mov ecx, dword [ebx + 0xc]
mov edi, edx
mov eax, edi
mov dword [ebp - 4], ecx
and eax, 0xfff
cmp eax, 0xff0
ja 0x423aa6
mov eax, ecx
and eax, 0xfff
cmp eax, 0xff0
ja 0x423aa6
movdqu xmm1, xmmword [edi]
movdqu xmm2, xmmword [ecx]
pcmpistri xmm2, xmm1, 0xd
jno 0x423abe
js 0x423ac5
mov ecx, dword [ebp - 4]
add edi, 0x10
add ecx, 0x10
jmp 0x423a50
movzx eax, word [edx]
xor edi, edi
cmp di, ax
je 0x7ec53c1f
cmp ax, cx
je 0x423a4b
add edx, esi
jmp 0x413b1a
movzx eax, word [ecx]
and dword [ebp - 4], 0xffffff8b
cmp word [ebp - 4], ax
je 0x423ac5
cmp word [edi], ax
jne 0x423abe
add edi, esi
add ecx, esi
jmp 0x423a50
add edx, esi
jmp 0xff423d37
mov eax, edx
jmp 0x842ec621
Function at 0x45f411
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x28]
push edi
call fcn.00407677
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push dword [ebx + 4]
mov edi, dword [esi + 4]
mov dword [ebp - 4], edi
call fcn.00407a26
mov eax, dword [ebp + 0x10]
test eax, eax
jns 0x45f479
push 0x7fffffff
push 0xffffffffffffffff
push edi
push eax
push dword [ebp + 0x14]
mov ecx, ebx
push dword [esi]
call fcn.0045f177
mov esi, eax
test esi, esi
jns 0x45f462
neg eax
xor edi, edi
mov esi, edi
jmp 0x45f472
push esi
xor edi, edi
lea ecx, [ebp - 0x18]
push edi
push ebx
call fcn.0040785b
mov eax, dword [ebp + 0x10]
neg eax
mov dword [ebp + 0x10], eax
jmp 0x45f47d
xor edi, edi
mov esi, edi
mov eax, dword [ebp + 8]
mov ecx, ebx
push 0xffffffffffffffff
push esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
push 1
jne 0x45f504
adc al, 0x75
jne 0x45f4c2
xor al, ch
loopne 0x45f491
call fcn.0045f177
mov esi, eax
cmp esi, dword [ebx + 4]
je 0x45f4dd
invalid
mov ecx, dword [ebp - 8]
sub eax, ecx
push eax
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040785b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.00407b3e
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00407b3e
add esi, dword [ebp - 4]
xchg dl, bh
inc dword [ebx]
jne 0x45f4c4
inc edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45f47d
cmp edi, eax
jne 0x45f47d
mov eax, dword [ebx + 4]
sub eax, esi
push eax
push esi
jmp 0x45f4e4
mov eax, dword [ebp - 8]
sub esi, eax
push esi
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040785b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.00407b3e
test edi, edi
je 0x45f508
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00407f87
jg 0x45f490
cli
dec dword [ebp + 0x4e8e84d]
cli
dec dword [ebp - 0x31727b3]
arpl dx, di
dec dword [ebx + 0x5b5e5fc7]
lea ecx, [ebp - 0x18]
call fcn.00405914
lea ecx, [ebp - 0x28]
call fcn.00405914
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4687b2
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4c3190]
jne 0x4687bf
call fcn.00468899
mov eax, dword [0x4c6ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c6ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x4687f7
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c3190]
jne 0x468809
call fcn.00468899
mov eax, dword [0x4c6ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c6ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x46884c
fadd qword [0x4b9e48]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4b9e20]
mov esp, ebp
pop ebp
ret
Function at 0x46885c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4c6530], ecx
inc esi
mov ecx, 0x4c6530
mov edx, esi
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
imul eax, eax, 0x6c078965
add eax, edx
inc edx
mov dword [ecx + 4], eax
add ecx, 4
cmp ecx, 0x4c6eec
jl 0x46886d
mov dword [0x4c3190], esi
mov dword [0x4c6518], esi
pop esi
ret

Function at 0x468899
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4c6518], 0
push esi
push edi
mov esi, 0x4c6530
jne 0x4688b8
push 0
call fcn.0042521a
pop ecx
mov ecx, eax
call fcn.0046885c
mov dword [0x4c3190], 0x270
mov edi, 0xe3
mov dword [0x4c6ef0], esi
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi], eax
mov esi, edx
dec edi
jne 0x4688cd
mov edi, 0x18c
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
lea esi, [edx]
dec edi
jne 0x468902
mov ecx, dword [0x4c6530]
mov al, cl
and al, 1
movzx edx, al
mov eax, dword [esi]
neg edx
pop edi
sbb edx, edx
xor eax, ecx
and eax, 0x7ffffffe
and edx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, edx
mov dword [esi], eax
pop esi
ret
Function at 0x4069c5
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 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
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 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
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 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
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 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x100c254
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x100c293
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100c293
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100c293
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100c293
cmp dword [ecx + 0x74], 0xe
jbe 0x100c293
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444004]
jne 0x401010
repz ret
jmp fcn.00401866

Function at 0x4069ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403424
and dword [ebp - 4], 0
cmp dword [0x447484], 0
mov ebx, eax
jne 0x406a5c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406b0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406b0d
push eax
call fcn.004033b2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x447484], eax
call esi
push eax
call fcn.004033b2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x447488], eax
call esi
push eax
call fcn.004033b2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44748c], eax
call esi
push eax
call fcn.004033b2
pop ecx
mov dword [0x447494], eax
test eax, eax
je 0x406a5c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004033b2
pop ecx
mov dword [0x447490], eax
mov eax, dword [0x447490]
cmp eax, ebx
je 0x406ab4
cmp dword [0x447494], ebx
je 0x406ab4
push eax
call fcn.0040342d
push dword [0x447494]
mov esi, eax
call fcn.0040342d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406ab4
test edi, edi
je 0x406ab4
call esi
test eax, eax
je 0x406aab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406aab
test byte [ebp - 0xc], 1
jne 0x406ab4
or dword [ebp + 0x10], 0x200000
jmp 0x406aed
mov eax, dword [0x447488]
cmp eax, ebx
je 0x406aed
push eax
call fcn.0040342d
pop ecx
test eax, eax
je 0x406aed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406aed
mov eax, dword [0x44748c]
cmp eax, ebx
je 0x406aed
push eax
call fcn.0040342d
pop ecx
test eax, eax
je 0x406aed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447484]
call fcn.0040342d
pop ecx
test eax, eax
je 0x406b0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406b0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43cd60
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x445000]
push ebx
mov ebx, dword [0x81a1d4]
push esi
mov esi, dword [0x81a01c]
push eax
call fcn.0043cc50
add esp, 4
cmp dword [0x81a1d4], 0x2f
jne 0x43cd8b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
call fcn.0043ccc0
add esp, 4
cmp dword [0x81a1d4], 0x568
pop esi
pop ebx
jne 0x43cdaa
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
ret