joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ea40
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x4bead0]
xorps xmm5, xmm5
or edx, 0xffffffff
mov esi, 0x4a060d
movss xmm4, dword [edi + 0x38e8]
movss xmm1, dword [edi + 0x3978]
mov eax, dword [edi + 0x4a34]
subss xmm1, xmm4
movss xmm0, dword [edi + 0x3974]
addss xmm4, xmm4
mov ebx, dword [eax]
mov al, 0x23
maxss xmm1, xmm5
mov dword [ebp - 4], ebx
addss xmm4, dword [edi + 0x3cf4]
movss dword [edi + 0x49b0], xmm0
or ebx, 0xffffffff
movss dword [edi + 0x49b4], xmm1
cmp al, 0x23
jne 0x48eab4
cmp byte [esi], al
jne 0x48eab4
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x4a2af0]
test al, al
jne 0x48eaa6
not edx
mov ecx, edx
call fcn.0040d220
mov ebx, dword [ebp - 4]
test eax, eax
je 0x48eaeb
cmp word [eax + 0xbc], 0
jne 0x48eb90
test ebx, ebx
jne 0x48eaf7
mov eax, dword [edi + 0x4a34]
mov ebx, dword [eax]
movss xmm1, dword [ebx + 0x98]
movss xmm0, dword [ebx + 0x10]
movaps xmm3, xmm1
addss xmm3, dword [ebx + 8]
movss xmm2, dword [ebx + 0x9c]
subss xmm0, xmm1
addss xmm2, dword [ebx + 0xc]
addss xmm0, dword [ebx + 0xa0]
or dword [edi + 0x4954], 3
movss dword [edi + 0x4964], xmm3
movss dword [edi + 0x4968], xmm2
mov dword [edi + 0x496c], 0
maxss xmm5, xmm0
mov dword [edi + 0x4970], 0
mov dword [edi + 0x4958], 1
movss dword [edi + 0x4978], xmm4
mov dword [edi + 0x495c], 1
addss xmm5, xmm3
subss xmm5, xmm3
movss dword [edi + 0x4974], xmm5
addss xmm4, dword [ebx + 0x9c]
movss dword [ebx + 0x9c], xmm4
movss xmm0, dword [edi + 0x38b8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x49cc]
mov dword [ebp - 0x10], 3
movss dword [ebp - 0xc], xmm0
call fcn.00428d00
mov esi, dword [0x4bead0]
lea eax, [ebp - 0x10]
mov dword [edi + 0x38b8], 0
push eax
mov dword [ebp - 0x10], 5
movss xmm1, dword [esi + 0x38c0]
lea ecx, [esi + 0x49cc]
movss xmm0, dword [esi + 0x38c4]
movss dword [ebp - 0xc], xmm1
movss dword [ebp - 8], xmm0
call fcn.00428d00
push 0x50f
xor edx, edx
mov dword [esi + 0x38c0], 0
mov ecx, str.MainMenuBar
mov dword [esi + 0x38c4], 0
call fcn.0040fc80
add esp, 4
mov ecx, 2
mov bl, al
call fcn.00406060
mov dword [edi + 0x49b0], 0
mov dword [edi + 0x49b4], 0
test bl, bl
je 0x48ec4d
call fcn.0048e4c0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00412730
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491440
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov edi, edx
je 0x4914b2
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x491488
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x49146f
cmp byte [esi], cl
jne 0x49146f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4a2af0]
test cl, cl
jne 0x491460
mov ecx, dword [0x4bead0]
not eax
cmp dword [ecx + 0x3fdc], eax
jne 0x49149e
mov dword [ecx + 0x3fe0], eax
cmp dword [ecx + 0x4004], eax
jne 0x4914f8
mov byte [ecx + 0x4008], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x4bead0]
xor edx, edx
mov esi, dword [eax + 0x3f8c]
mov ecx, dword [esi + 0xec]
mov eax, dword [esi + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.00404090
mov ecx, dword [esi]
mov ebx, eax
add esp, 4
cmp dword [ecx + 0x3fc4], ebx
jne 0x4914f6
push ecx
push edi
mov edx, 0xb
mov ecx, ebx
call fcn.00427b90
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49d0bb
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x4070e3
pop dword [ebp - 0x14]
mov eax, 0x5e68e322
sub eax, 0x5e28723f
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x324004
add dword [ebp - 0x24], 0x4e200547
mov dword [ebp - 0x20], 0xd23dc305
add dword [ebp - 0x20], 0x5ff58940
mov dword [ebp - 0x1c], 0xda3fd931
add dword [ebp - 0x1c], 0x720c6afd
mov dword [ebp - 0x18], 0x748a624d
add dword [ebp - 0x18], 0x8b759db3
lea eax, [ebp - 0x24]
push eax
mov eax, 0xaa599893
add eax, 0x55e6e871
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x502a9d98
sub dword [ebp - 0x24], 0xdbb83442
mov dword [ebp - 0x20], 0x771d8950
add dword [ebp - 0x20], 0xca4ed825
mov dword [ebp - 0x1c], 0xa78ea4c8
sub dword [ebp - 0x1c], 0x441f385c
mov dword [ebp - 0x18], 0x292a778e
sub dword [ebp - 0x18], 0x292a778e
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x3cd3b820
sub eax, 0x3c933720
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x35ee8
push 0
call eax
mov ecx, 0xd71294b4
add ecx, 0x28edaecb
xor edi, edi
add edi, eax
mov ebx, 0x179162ac
sub ebx, 0x174c5eac
add ebx, dword [ebp - 0x14]
mov esi, 0x5b05134a
sub esi, 0xeb05ce1
sub dword [ebp - 4], edx
mov edx, dword [ebx]
xor dword [ebp - 0xc], 0xfc2edeb9
sub edx, esi
sub dword [ebp - 4], 0x795df166
mov dword [edi], edx
xor dword [ebp - 4], esi
add edi, 0x45c145b5
add edi, 0xba3eba4f
add ebx, 0x222aa909
add ebx, 0xddd556fb
loop 0x407207
add eax, 0x99fbe277
add eax, 0x66051e58
mov ebx, eax
add eax, 5
mov ecx, 0x3380c225
sub ecx, 0x3340c225
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10006cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10006cff
pop dword [ebp - 0x4c]
mov eax, 0x10006cff
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x66bd3235
sub dword [ebp - 0x5c], 0x186aecea
mov dword [ebp - 0x58], 0xf0d63aef
add dword [ebp - 0x58], 0x415d1156
mov dword [ebp - 0x54], 0x9ec13d2d
sub dword [ebp - 0x54], 0x5274f8ff
mov dword [ebp - 0x50], 0x486db8ad
add dword [ebp - 0x50], 0xb7924753
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x58fd9dc1
sub eax, 0x48f99d85
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x3462126
sub dword [ebp - 0x5c], 0x8ed3b7d0
mov dword [ebp - 0x58], 0xb8482316
add dword [ebp - 0x58], 0x89243e5f
mov dword [ebp - 0x54], 0xb8cdb77b
add dword [ebp - 0x54], 0xaaa1b4f1
mov dword [ebp - 0x50], 0xfe4c06c2
add dword [ebp - 0x50], 0x1b3f93e
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x7e5e4f2c
sub eax, 0x6e5a4efc
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x459f0
push 0
call eax
mov ecx, 0x452c
xor edx, edx
add edx, eax
mov ebx, 0x394db7ff
sub ebx, 0x294849ff
add ebx, dword [ebp - 0x4c]
mov edi, 0x680ae8cd
sub dword [ebp - 4], 0xcf2dbc18
mov esi, dword [ebx]
xor dword [ebp - 8], ebx
sub esi, edi
add dword [ebp - 8], edx
mov dword [edx], esi
sub dword [ebp - 0x1c], esi
add edx, 4
add ebx, 0x95563e6b
sub ebx, 0x95563e67
loop 0x10006e12
add eax, 0x28215e9
sub eax, 0x2810e66
mov ebx, eax
add eax, 0x6018fb95
sub eax, 0x6018fb90
mov ecx, 0x73bea5a
add ecx, 0x8c415a6
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x402555
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4061f8
cmp edx, dword [eax]
je 0x402577
add eax, 8
inc ecx
cmp eax, 0x406288
jl 0x402568
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4061f8]
jne 0x4026a5
mov eax, dword [0x4065b0]
cmp eax, 1
je 0x40267f
test eax, eax
jne 0x4025a8
cmp dword [0x406148], 1
je 0x40267f
cmp edx, 0xfc
je 0x4026a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4025df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402b00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402c70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402622
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402c70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405410
push edi
call fcn.00403900
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402b00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402b10
lea eax, [ebp - 0xa0]
push 0x4053f0
push eax
call fcn.00402b10
push dword [esi + 0x4061fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402b10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040386e
add esp, 0x2c
pop edi
jmp 0x4026a5
lea eax, [ebp + 8]
lea esi, [esi + 0x4061fc]
push 0
push eax
push dword [esi]
call fcn.00402c70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x100a22e4], 1
mov dword [ebp - 0x214], edi
jne 0x1000104c
mov eax, dword [0x100a0f74]
or dword [0x100a22e4], 1
mov ecx, 0x100a0f74
call dword [eax + 0xc]
add eax, 0x10
push 0x1007aca5
mov dword [0x100a22e0], eax
call fcn.10054ea0
pop ecx
mov eax, dword [0x100a22e0]
cmp dword [eax - 0xc], edi
jne 0x10001095
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.10054f10
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x100a22e0
call fcn.100015b4
mov eax, dword [0x100a22e0]
add eax, 0xfffffff0
call fcn.10001647
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.10054c7d
leave
ret

Function at 0x100010b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x100a22dc], 1
mov dword [ebp - 0x214], edi
jne 0x10001102
mov eax, dword [0x100a0f74]
or dword [0x100a22dc], 1
mov ecx, 0x100a0f74
call dword [eax + 0xc]
add eax, 0x10
push 0x1007acb2
mov dword [0x100a22d8], eax
call fcn.10054ea0
pop ecx
mov eax, dword [0x100a22d8]
cmp dword [eax - 0xc], edi
jne 0x1000114b
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.10054f10
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x100a22d8
call fcn.100015b4
mov eax, dword [0x100a22d8]
add eax, 0xfffffff0
call fcn.10001647
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.10054c7d
leave
ret
Function at 0x1000116c
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x1007775a
call fcn.1005d50a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x10001327
mov eax, dword [0x100a0f74]
mov esi, 0x100a0f74
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x100a0f74]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x100012ef
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.10001391
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100011e3
mov esi, edi
call fcn.100019b1
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x100012ef
lea esi, [ebp - 0x18]
call fcn.100019b1
lea esi, [ebp - 0x1c]
call section..text
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.10001391
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10001981
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x1000126b
mov esi, edi
call fcn.1001a5a7
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.1000144f
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.10001391
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10001981
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000126b
mov esi, edi
call fcn.100019b1
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x100012ef
lea esi, [ebp - 0x18]
call fcn.100019b1
lea esi, [ebp - 0x1c]
call fcn.100010b6
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.10001391
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10001981
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x100012eb
mov esi, edi
call fcn.1001a5a7
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.1000144f
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.10001391
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10001981
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100012eb
mov esi, edi
call fcn.100019b1
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x1000130b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000130b
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x10001314
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.10001981
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10001981
mov eax, edi
call fcn.1005d58d
ret
Function at 0x1000174a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001761
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10001796
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10001792
cmp edi, eax
jae 0x10001796
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10001784
cmp edi, eax
jb 0x1000179a
xor eax, eax
jmp 0x100017a4
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x10001e61
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov dword [0x100a1edc], eax
mov eax, dword [ebp + 8]
push edi
mov dword [0x100a1ee0], eax
lea eax, [ebp - 0xc]
push eax
push eax
push eax
push 0x100a1ed4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
xor ebx, ebx
push ebx
push ebx
mov esi, 0x100a1ecc
push esi
push 0x10001ed3
push ebx
push ebx
call fcn.100556f1
add esp, 0x18
lea edi, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.100025c0
cmp dword [ebp + 8], ebx
je 0x10001ec1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x100a1ecc], ebx
pop edi
pop esi
setne al
pop ebx
leave
ret 4

Function at 0x10002bea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
lea esi, [ebx + 0x44]
call fcn.10002de9
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push 0x10002c56
push eax
push eax
mov dword [ebx + 0x64], eax
mov dword [ebp - 4], eax
call fcn.100556f1
add esp, 0x18
lea esi, [ebx + 0x40]
lea edi, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.100025c0
cmp dword [ebp + 8], 0
je 0x10002c38
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10002c4d
push 0xffffffffffffffff
push dword [ebx + 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x64]
jmp 0x10002c4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10003d74
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.10054f10
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret
Function at 0x100047de
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov ebx, eax
push dword [ebx]
call esi
push dword [ebx + 4]
mov edi, eax
call esi
and dword [ebp - 4], 0
mov ebx, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x10004800
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x10004821
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004874
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x10004896
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x100048ba
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x10005f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x10006093
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push str._sConnection
push 0x103
push eax
call fcn.10008716
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x1000608a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x10006081
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.10054f10
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x10006081
cmp dword [ebp - 0x70], edi
jne 0x10006071
mov esi, 0x10086ae8
push esi
call fcn.100557a0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.10057d6c
add esp, 0x10
test eax, eax
jne 0x1000604b
mov dword [ebp - 0x6c], ebx
jmp 0x10006081
cmp dword [ebp - 0x70], edi
jne 0x10006071
push esi
call fcn.100557a0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.10057d6c
add esp, 0x10
test eax, eax
je 0x10006071
mov dword [ebp - 0x6c], 2
jmp 0x10006081
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10054c7d
add ebp, 0xa4
leave
ret
Function at 0x10006333
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x48
mov eax, 0x1007978b
call fcn.1005d50a
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea edi, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x49], bl
call fcn.10006564
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x10006363
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000640e
push 1
lea edi, [ebp - 0x2c]
call fcn.10006564
pop ecx
lea eax, [ebp - 0x48]
push eax
call fcn.100069f5
test al, al
pop ecx
jne 0x100063e1
mov eax, edi
push eax
call fcn.100069f5
test al, al
pop ecx
je 0x100063e1
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x100063b5
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x100063c1
lea eax, [ebp - 0x28]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100063e1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x100063da
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x100063ed
lea eax, [ebp - 0x28]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call esi
push ebx
push 1
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.100031e5
cmp edi, 0xffffffff
je 0x10006446
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x10
jb 0x1000643f
cmp esi, 0xffffffff
je 0x1000643f
push ebx
lea eax, [ebp - 0x50]
push eax
push esi
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000643f
cmp dword [ebp - 0x50], esi
jne 0x1000643f
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.100031e5
mov al, byte [ebp - 0x49]
call fcn.1005d58d
ret 4