joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c02a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005a6c00
mov eax, dword [0x6342ec]
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.00420ba5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5c02e4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5c0440
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005a7270
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 + 0x63b3f8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00423881
mov ecx, dword [esi*4 + 0x63b3f8]
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 0x5c0439
cmp eax, dword [ecx + edi + 0x24]
jne 0x5c0439
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 0x5c0439
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423881
add esp, 0x14
test edx, edx
jl 0x5c0439
jg 0x5c03af
test eax, eax
jb 0x5c0439
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5c0439
jl 0x5c03c9
cmp dword [ebp - 0x1008], eax
ja 0x5c0439
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5c03e7
test ebx, ebx
je 0x5c0420
cmp ecx, edi
jae 0x5c0420
mov al, byte [ecx]
cmp al, 0xd
jne 0x5c0401
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5c040d
cmp byte [ecx + 1], 0xa
jne 0x5c040d
inc ecx
jmp 0x5c040d
movzx eax, al
movsx eax, byte [eax + 0x634a40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5c03e7
cmp edx, ebx
jne 0x5c03e7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5c043e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040e6df
leave
ret
Function at 0x5d6238
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005d60a7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5d63a7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5d63a7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5d635c
jg 0x5d6294
test eax, eax
je 0x5d6352
push 1
push 0x1000
call fcn.00413db8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5d62b7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5d6349
push 0x8000
push ebx
call fcn.0040ee28
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5d62e0
jg 0x5d62db
cmp ecx, 0x1000
jb 0x5d62e0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00421826
add esp, 0x10
cmp eax, 0xffffffff
je 0x5d6325
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5d62db
jl 0x5d630c
test ecx, ecx
jne 0x5d62cd
push dword [ebp - 0xc]
push ebx
call fcn.0040ee28
push esi
call fcn.00412800
add esp, 0xc
xor ebx, ebx
jmp 0x5d63b5
cmp byte [edi + 0x24], 0
je 0x5d633c
cmp dword [edi + 0x20], 5
jne 0x5d633c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5d6347
mov ebx, dword [edi + 0x18]
jmp 0x5d6349
xor ebx, ebx
push esi
call fcn.00412800
pop ecx
jmp 0x5d63b5
test ecx, ecx
jg 0x5d631e
jl 0x5d635c
test eax, eax
jae 0x5d631e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042389f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5d637c
cmp byte [edi + 0x1c], 0
je 0x5d631e
jmp 0x5d63ad
push ebx
call fcn.004157e2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5d631e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5d63b5
cmp byte [edi + 0x1c], 0
je 0x5d63b2
mov ebx, dword [edi + 0x18]
jmp 0x5d63b5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042389f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5dc622
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6342ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5dc665
call fcn.004151c8
mov dword [eax], 0xf
call fcn.004151db
mov dword [eax], 0xd
call fcn.00413a5d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e6df
leave
ret
test eax, eax
jne 0x5dc66c
inc eax
jmp 0x5dc659
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5dc657
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5dc659

Function at 0x5e0044
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0x63a35c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x63d998]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x63d99c], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.005e3021
mov dword [esi + 0x58], 0x5e1027
mov eax, esi
mov dword [esi + 0x5c], 0x5e1073
mov dword [esi + 0x10], fcn.005e0b5f
mov dword [esi + 0x30], 0x5e093a
mov dword [esi + 0x64], 0x5e1108
mov dword [esi + 0x60], 0x5e10bc
mov dword [esi + 0x34], 0x5e0405
mov dword [esi + 0x24], 0x5e03dc
mov dword [esi + 0x28], 0x5e03b1
mov dword [esi + 0x2c], 0x5e0305
mov dword [esi + 0x44], 0x5e0df7
mov dword [esi + 0x68], 0x5e0105
mov dword [esi + 0x6c], 0x5e130a
pop esi
ret 4
Function at 0x5e564c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5e5858
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
imul esi, dword [esp + 0x24], 3
push edi
mov edi, 0xff
shl ebx, 2
mov dword [esp + 0x28], edx
cmp dword [esp + 0x40], edi
jne 0x5e5768
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x5e5731
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x5e56c2
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x14]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
test ecx, ecx
jne 0x5e568d
jmp 0x5e5854
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x5e5822
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx eax, byte [ebp + 3]
mov esi, 0xff
imul eax, dword [esp + 0x40]
movzx ecx, byte [ebx + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebp + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x5e57a9
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x18]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x5e5770
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5e6227
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x5e62cc
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebx
shl ecx, 2
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x5e62aa
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 4]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x5e6288
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x5e6257
pop ebx
pop edi
pop esi
pop ebp
ret 0x24

Function at 0x5e660b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul ecx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ecx
test ebx, ebx
je 0x5e66d9
push ebp
mov ebp, dword [esp + 0x24]
push esi
imul esi, dword [esp + 0x2c], 3
imul eax, dword [esp + 0x24], 3
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov edx, eax
imul edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
add edi, esi
mov esi, dword [eax + 0xcc]
add edi, dword [esp + 0x20]
imul esi, ebp
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x38]
test ecx, ecx
jle 0x5e66a6
mov ebx, 0xff
mov ebp, ecx
sub ebx, dword [esp + 0x40]
movzx eax, byte [edi]
imul eax, dword [esp + 0x40]
movzx ecx, byte [esi]
imul ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc edi
mov byte [esi], al
inc esi
sub ebp, 1
jne 0x5e6679
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
xor esi, esi
dec ebx
or eax, 0xffffffff
inc esi
mov dword [esp + 0x3c], ebx
inc ebp
cmp dword [ecx + 0xe8], 0
mov ecx, dword [esp + 0x10]
cmovne eax, esi
mov dword [esp + 0x2c], ebp
mov esi, dword [esp + 0x14]
add eax, edx
test ebx, ebx
jne 0x5e6640
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x5e6cea
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x5e6d8d
imul ecx, dword [esp + 0x24], 3
mov eax, dword [esp + 0x28]
push ebx
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x5e6d6b
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 3]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x5e6d49
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x5e6d18
pop ebx
pop edi
pop esi
pop ebp
ret 0x24
Function at 0x5e92f6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x5e948d
push dword [esp + 0x28]
call fcn.0044234a
test eax, eax
je 0x5e9336
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x5e948d
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x5e947a
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x5e9472
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.00423ff0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x5e9472
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x5e9472
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x5e9472
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x5e9469
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x5e9441
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x5e9424
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x103a6cac
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103a6cb6
pushal
call 0x103a6cbc
pop ebp
sub ebp, 0x10
sub ebp, 0x3a6cac
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a6ce0
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103a6ce9
mov eax, 0x3a6cac
add eax, ebp
add eax, 0x63
mov ecx, 0x5ff
mov edx, 0xfe8457b8
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a6d00
jmp 0x103a6d13
xor esi, dword [ebp + 0x33]
xor dword [eax + edi*4 + 0x7939b8b8], eax
inc eax
mov eax, 0x75bbb8b8
add byte [eax + edi*4 - 0x6ffd4748], bh
mov eax, 0x5a4fb8b8
mov ebx, 0xb4393370
mov eax, 0x7dbbb8b8
call 0x54d74973
xor dword [esp + ebx*4 - 0x493d0330], edi
mov eax, 0x934aded0
mov eax, 0xd09c94b9
adc byte [esi], ch
cmp al, 0x8f
push eax
mov ebp, 0x51b8b8b8
xchg edx, eax
mov eax, 0x35edb8b8
aam 0x9c
mov eax, 0xb8b03d33
mov eax, 0xb42d33b8
mov eax, 0x3533b8b8
test al, 0xb8
mov eax, 0xba5179b8
mov dword [edx - 0xe4385c5], edi
mov bh, 0x3d
dec esp
inc edi
inc edi
inc edi
in eax, 0x7a
mov ah, 0xb8
xor esi, dword [esp + ebx*4]
mov esp, 0xd0b8b8b8
cld
ret 0xb8b6
Function at 0x1006544
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov dword [ebp - 8], eax
cmp dword [0x103638c], esi
jne 0x100669a
push edi
mov edi, 0x1001a28
push edi
push 1
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
jmp 0x10065ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100663f
cmp eax, 0xb7
jne 0x1006685
mov eax, dword [section..data]
cmp eax, section..data
je 0x10065b4
test byte [eax + 0x1c], 4
je 0x10065b4
push 0x1001a14
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
cmp dword [ebp + 0x14], 0
je 0x1006665
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jae 0x1006665
cmp dword [ebp - 4], 0
je 0x10065df
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 1
push 1
push 0
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006577
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1006608
mov esi, 0x54f
mov eax, dword [section..data]
cmp eax, section..data
je 0x100662d
test byte [eax + 0x1c], 1
je 0x100662d
push esi
push 0x1001a14
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010062be
test esi, esi
jle 0x100668a
and esi, 0xffff
or esi, 0x80070000
jmp 0x100668a
cmp dword [ebp + 0x10], 0
je 0x100664a
call fcn.01014899
push 0
push dword [ebp - 4]
push 0x103638c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x1006661
and dword [ebp - 4], eax
xor esi, esi
jmp 0x100668a
xor eax, eax
cmp dword [ebp + 0xc], eax
je 0x100667e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], eax
je 0x100667e
push 0x6a
push 0x69
push eax
call fcn.010064b6
mov esi, 0x800700b7
jmp 0x100668a
mov esi, 0x80004005
cmp dword [ebp - 4], 0
pop edi
je 0x100669a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x1006ff6
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x418], 5
call fcn.010066e4
test eax, eax
jge 0x1007068
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x100722d
test byte [ecx + 0x1c], 1
je 0x100722d
movzx eax, ax
push eax
push 0x1001a14
push 0xf
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010062be
jmp 0x100722d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10070b7
mov eax, dword [section..data]
xor ebx, ebx
inc ebx
cmp eax, section..data
je 0x10070ac
test byte [eax + 0x1c], bl
je 0x10070ac
push 0x1001a14
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
mov dword [ebp - 0x418], ebx
jmp 0x100722d
push 0x40000000
push ebx
call fcn.01006e13
test al, al
jne 0x10070f9
mov eax, dword [section..data]
cmp eax, section..data
je 0x10070ea
test byte [eax + 0x1c], 1
je 0x10070ea
push 0x1001a14
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
mov dword [ebp - 0x418], 2
jmp 0x100722d
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10071fe
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x1001bc4
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x1007160
push 0x1001bb8
push dword [ebp - 0x41c]
call esi
pop ecx
pop ecx
test eax, eax
je 0x1007160
push 0x1001bac
push dword [ebp - 0x41c]
call esi
pop ecx
pop ecx
test eax, eax
je 0x1007160
push 0x1001ba0
push dword [ebp - 0x41c]
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10071fe
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.010066e4
test eax, eax
jge 0x10071ad
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x100722c
test byte [ecx + 0x1c], 1
je 0x100722c
movzx eax, ax
push eax
push 0x1001a14
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010062be
jmp 0x100722c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_PathCleanupSpec]
test eax, eax
je 0x10071f5
mov eax, dword [section..data]
cmp eax, section..data
je 0x10071e9
test byte [eax + 0x1c], 1
je 0x10071e9
push 0x1001a14
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
mov dword [ebp - 0x418], 4
jmp 0x100722c
and dword [ebp - 0x418], 0
jmp 0x100722c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007222
test byte [eax + 0x1c], 1
je 0x1007222
push 0x1001a14
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
mov dword [ebp - 0x418], 3
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 4
Function at 0x10085a5
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
jne 0x10085eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x10085d9
mov eax, 0x54f
cmp eax, edi
jg 0x10085df
mov esi, eax
jmp 0x1008645
and eax, 0xffff
or eax, 0x80070000
jmp 0x10085db
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jg 0x10085fa
mov esi, 0x8007054f
jmp 0x100863e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov dword [ebp + 8], ecx
test eax, eax
jle 0x100863c
mov eax, dword [ebp + 0x14]
cmp edi, dword [ebp + 0x10]
je 0x1008612
mov eax, dword [ebx + edi*4]
push eax
push 0x1001c2c
push 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.010083d9
mov esi, eax
add esp, 0x1c
test esi, esi
jl 0x100863e
inc edi
cmp edi, dword [ebp - 4]
jl 0x1008607
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10