joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4744f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x474523
push esi
call fcn.00482890
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47451c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4745a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x474592
mov eax, dword [esi + 8]
test eax, eax
je 0x474547
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47458e
cmp eax, 2
je 0x474592
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47453a
cmp eax, 3
je 0x47456d
cmp eax, 1
jne 0x47453a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47453a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47453a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004745d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4745b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004745d0
add esp, 4
pop esi
ret

Function at 0x474e40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x474e61
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x474e61
mov eax, dword [eax + 0x44]
test eax, eax
je 0x474e61
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x492240
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x49224e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
not eax
jb 0x49234f
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4e5e74]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4e5e74]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4e5e74]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4e5e74]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4e5e74]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4e5e74]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4e5e74]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4e5e74]
xor eax, edx
inc ecx
dec edi
jne 0x492267
pop edi
test esi, esi
je 0x492371
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4e5e74]
xor eax, edx
inc ecx
dec esi
jne 0x492353
pop esi
pop ebx
not eax
pop ebp
ret

Function at 0x492380
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x4e5e74]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x4e5e74]
xor eax, edx
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x492db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov cl, byte [ebx]
mov eax, esi
imul eax, dword [ebp + 0x10]
test cl, cl
je 0x492def
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x492de4
mov byte [ebx + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x492e00
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
push edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div dword [ebp + 0xc]
mov dword [ebx + 0x1c], ecx
pop ebx
pop ebp
ret

Function at 0x493e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
cmp dword [esi], 0
jne 0x493efa
cmp dword [esi + 4], 0xffffffff
jne 0x493efa
lea ebx, [esi + 0x140]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + esi + 0x13f]
cmp cl, 0x5c
je 0x493e8b
cmp cl, 0x2f
je 0x493e8b
mov edi, 0x4e6524
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
cmp ebx, 1
jne 0x493eb6
push 1
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x493eb6
pop edi
pop esi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push ebx
push ecx
push edi
call fcn.00492b70
add esp, 0x10
test eax, eax
jne 0x493ed8
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
call fcn.00493080
add esp, 4
mov dword [esi], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x494430
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x494457
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x494457
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [ebp + 0xc]
mov cl, byte [ebx]
test cl, cl
je 0x494536
mov eax, ebx
mov edx, ebx
cmp cl, 0x2f
je 0x494472
cmp cl, 0x5c
jne 0x494474
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x494468
cmp eax, ebx
push esi
je 0x4944b9
sub eax, ebx
mov esi, ebx
mov ecx, eax
lea edi, [ebp - 0x208]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov byte [ebp + eax - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push ecx
call fcn.00494430
mov edi, dword [ebp + 8]
add esp, 8
test edi, edi
mov byte [ebp - 0x104], 0
je 0x4944e7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x104]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x494536
lea ecx, [ebp - 0x104]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4979b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x52d6f8]
xor edx, edx
cmp eax, edx
jne 0x4979d6
xor eax, eax
mov byte [eax + 0x52d5f8], al
inc eax
cmp eax, 0x100
jl 0x4979be
mov dword [0x52d6f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x52d5f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x497a67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x497a3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x497a08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x497a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x497ac3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x497aaa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49e440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cb16e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0049ed60
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4e677c
call fcn.004bc8a5
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x49e4d3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004bc8a5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49e4cc
push 0
mov ecx, eax
call fcn.004955e0
mov dword [esi + 0xc], eax
jmp 0x49e4d5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x49e4d5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4bef32
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bef6a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bcfbf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bcf97
jmp 0x4bef76
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c0623
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c0665
call fcn.004c60dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c0665
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c065c
xor eax, eax
jmp 0x4c066d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c0673
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c660c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c663a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c6658
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c6572
jmp 0x4c6658
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c6658
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c6572
test edi, edi
mov eax, edi
jne 0x4c6642
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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
pop eax
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x10004480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.10004480]
mov dword [0x1002fba4], 0x120d
mov dword [ebp - 8], eax
mov dword [0x1002fba8], 0x16c3
jmp 0x100044b7
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
jmp 0x100044e8
mov eax, dword [ebp - 8]
movzx eax, word [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0x5a4d
je 0x100044d4
jmp 0x100044a5
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10004506
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
je 0x100044cc
jmp 0x100044a5
mov al, 1
test al, 1
jne 0x100044b7
jmp 0x100044f0
mov eax, dword [0x1002fba8]
sub eax, 0x21f9
mov dword [0x1002fba4], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0xc
pop ebp
ret

Function at 0x10004580
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [0x1002fba8], 0x178
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x100045d4
jmp 0x100046ce
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x10004611
jmp 0x100046d0
cmp dword [ebp - 0x10], 0x104
jge 0x100045bd
mov dword [0x1002fba4], 0x16e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x100045fa
jmp 0x100045bd
mov dword [0x1002fba4], 0xa0d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x100045d4
mov dword [0x1002fba4], 0x2458
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x100046ce
mov eax, dword [0x1002fba4]
add eax, 0x388
mov dword [0x1002fba4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x100045b8
mov eax, dword [ebp - 0x10]
shl eax, 1
add eax, dword [ebp - 0xc]
add eax, 0xffffffec
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x64
jne 0x100046c9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x100046c7
mov eax, dword [0x1002fba4]
add eax, 0x2524
mov dword [0x1002fba8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x100046c5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x100046c3
mov dword [ebp - 4], 1
jmp 0x100046d7
jmp 0x100046c5
jmp 0x100046c7
jmp 0x100046c9
jmp 0x100045b8
jmp 0x100046d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x14
pop ebp
ret
Function at 0x10002b90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, 0x101080e7
call fcn.100de193
mov ecx, dword [esi + 4]
mov dword [ebp - 0x14], 0x33323738
mov dword [ebp - 0x10], 0x35444633
mov dword [ebp - 0xc], 0x38304638
mov dword [ebp - 8], 0x46434334
pop esi
test ecx, ecx
je 0x10002bdc
push 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.10025d50
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret

Function at 0x10003de0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10104008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, 0x101080e7
call fcn.100de193
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x10003e41
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003e28
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10003e41
mov edx, dword [ebp - 8]
xor eax, eax
add eax, esi
pop esi
adc edx, 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
xor edx, edx
pop esi
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
Function at 0x1000bac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, 0x101080e7
call fcn.100de193
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1000bc4a
cmp dword [eax + 0x10], 0
je 0x1000bc4a
cmp dword [eax + 0x14], 8
jb 0x1000baf0
mov eax, dword [eax]
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
push 1
push 0x40
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
push 4
push esi
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 4]
push 4
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 8]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0xa]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0xc]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0xe]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0x10]
push 0x80
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0x90]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0x92]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0x94]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0x96]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0x98]
push 0x80
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0x118]
push 8
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
push edi
push eax
lea eax, [esi + 0x120]
push 8
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1000bc4a
pop edi
pop esi
mov al, al
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x1000c670
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100fd978
push 0x100dd140
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10104008]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov ecx, 0x101080e7
call fcn.100de193
xor bl, bl
mov ecx, esi
call fcn.1000c420
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x1000c731
mov al, byte [ebp + 8]
mov byte [esi + 4], al
push 0x100ed6e4
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x1000c724
mov dword [ebp - 4], 0
push edi
mov ecx, esi
call fcn.1000c220
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000c71a
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test bl, bl
je 0x1000c747
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x1000c771
push str.NtQuerySystemTime
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x88], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 8]
test eax, eax
je 0x1000c781
push eax
lea ecx, [esi + 0xc]
call fcn.1000d580
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000cd10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100fd9f0
push 0x100dd140
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10104008]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov ecx, 0x101080e7
call fcn.100de193
mov ecx, ebx
call fcn.1000c420
mov edi, eax
mov dword [ebp - 0x20], edi
push 0x100ed714
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x1000cdd4
mov dword [ebp - 4], 0
push esi
mov ecx, ebx
call fcn.1000c7a0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000cdab
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test bl, bl
je 0x1000cdc0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret