joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418a8a
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 + 0x438310]
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 0x418aca
cmp byte [ebx], 0xa
jne 0x418aca
or byte [edi + eax + 0x28], 4
jmp 0x418acf
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 0x418bce
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418bb1
inc eax
cmp dl, 0xd
je 0x418afb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418b21
cmp eax, ecx
jae 0x418b2f
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 0x418ae3
jmp 0x418bce
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 0x418bac
cmp dword [ebp - 0x10], 0
je 0x418bac
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x438310]
test byte [eax + edi + 0x28], 0x48
je 0x418b86
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418b71
mov byte [esi], dl
jmp 0x418b82
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x438310]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418bce
cmp byte [ebp - 1], 0xa
jne 0x418b95
cmp esi, ebx
jne 0x418b95
mov byte [esi], 0xa
jmp 0x418bcd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004197aa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418bce
mov byte [esi], 0xd
jmp 0x418bcd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x438310]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418bcb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418bce
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418bd7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x438310]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418c1d
cmp word [ebx], dx
jne 0x418c1d
or byte [eax + edi + 0x28], 4
jmp 0x418c22
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418d85
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418d65
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418c63
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418c99
cmp eax, edx
jae 0x418ca7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x418c3e
jmp 0x418d85
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418d60
cmp dword [ebp - 0x18], 0
je 0x418d60
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x438310]
test byte [eax + edi + 0x28], 0x48
je 0x418d36
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x418cfa
mov word [esi], cx
jmp 0x418d31
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x438310]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x438310]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x438310]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418d85
pop eax
cmp word [ebp - 4], ax
jne 0x418d46
cmp esi, ebx
jne 0x418d46
mov word [esi], ax
jmp 0x418d82
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004197aa
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418d85
push 0xd
pop eax
jmp 0x418d41
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x438310]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x418d7f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418d85
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bd66
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f940
push 0x42f938
push str.FlsAlloc
push 0x1f
call fcn.0041bc25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bd9a
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281a0]
call esi
jmp 0x41bda0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41bde4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f950
push 0x42f948
push str.FlsGetValue
push 0x21
call fcn.0041bc25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41be1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41be23
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f958
push 0x42f950
push str.FlsSetValue
push 0x22
call fcn.0041bc25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41be5d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41ca9b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41cade
call fcn.004150de
mov dword [eax], 0xf
call fcn.004150f1
mov dword [eax], 0xd
call fcn.0041802c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa47
leave
ret
test eax, eax
jne 0x41cae5
inc eax
jmp 0x41cad2
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 0x41cad0
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41cad2

Function at 0x41dc89
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d7a4
Function at 0x41e604
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41e64f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041e79f
test al, al
jne 0x41e649
sub edx, 2
cmp edx, edi
jne 0x41e62f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41e671
lea eax, [edi + 2]
cmp edx, eax
je 0x41e671
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041e550
add esp, 0x10
jmp 0x41e76b
push esi
lea ecx, [ebp - 0x255]
call fcn.0041e79f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e6b4
push dword [ebp - 0x25c]
jmp 0x41e661
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41e6f1
cmp word [ebp - 0x226], 0
je 0x41e712
cmp word [ebp - 0x226], ax
jne 0x41e6f1
cmp word [ebp - 0x224], 0
je 0x41e712
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041e550
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41e75e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41e6cb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41e746
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41e76b
push 0x41e380
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00423d20
add esp, 0x10
jmp 0x41e73b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aa47
leave
ret
Function at 0x41f077
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f114
push ebx
push esi
call fcn.0041f040
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041cbc6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f0c1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f113
push edi
push eax
call fcn.0041a881
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f0e1
call fcn.00418070
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f112
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cbc6
add esp, 0x20
test eax, eax
jne 0x41f100
push edi
call fcn.00418070
jmp 0x41f108
push ebx
call fcn.00418070
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41f117
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41f128
pop esi
ret
push ebx
push edi
push esi
call fcn.0041f040
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041a881
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41f150
push ebx
push esi
push edi
call fcn.0040b6c0
add esp, 0xc
push 0
call fcn.00418070
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x425085
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.00425001
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4251f4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4251f4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4251a9
jg 0x4250e1
test eax, eax
je 0x42519f
push 1
push 0x1000
call fcn.0041ba95
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x425104
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x425196
push 0x8000
push ebx
call fcn.00417555
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42512d
jg 0x425128
cmp ecx, 0x1000
jb 0x42512d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a2e6
add esp, 0x10
cmp eax, 0xffffffff
je 0x425172
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 0x425128
jl 0x425159
test ecx, ecx
jne 0x42511a
push dword [ebp - 0xc]
push ebx
call fcn.00417555
push esi
call fcn.00418070
add esp, 0xc
xor ebx, ebx
jmp 0x425202
cmp byte [edi + 0x24], 0
je 0x425189
cmp dword [edi + 0x20], 5
jne 0x425189
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x425194
mov ebx, dword [edi + 0x18]
jmp 0x425196
xor ebx, ebx
push esi
call fcn.00418070
pop ecx
jmp 0x425202
test ecx, ecx
jg 0x42516b
jl 0x4251a9
test eax, eax
jae 0x42516b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004197aa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4251c9
cmp byte [edi + 0x1c], 0
je 0x42516b
jmp 0x4251fa
push ebx
call fcn.00415b97
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42516b
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 0x425202
cmp byte [edi + 0x1c], 0
je 0x4251ff
mov ebx, dword [edi + 0x18]
jmp 0x425202
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004197aa
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426e9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426e9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40ec1d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
test eax, 0x58aa45c6
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], pe_nt_image_headers32
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
inc ebp
mov bl, 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040e9bf
push ds
sbb dword [esi - 0x57ba7207], ebp
push eax
call fcn.0040e9cf
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0040e984
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40ecad
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040e9bf
push eax
pop eax
iretd
Function at 0x40f063
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40f073
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40f06e
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40f058
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40f060
cmp edx, ebx
jne 0x40f1ae
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40f02f
add eax, dword [eax + 4]
jmp 0x40f01c
mov dword [ebp + 0xc], ebx
jmp 0x40f07e
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40f096
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40f0b4
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40f112
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40f0f9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40f102
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40f10c
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40f0ee
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40f078
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40f15f
dec eax
je 0x40f156
sub eax, 3
je 0x40f14d
mov dword [ebp - 4], 0x40
jmp 0x40f17c
mov dword [ebp - 4], 4
jmp 0x40f162
mov dword [ebp - 4], 0x20
jmp 0x40f162
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40f1ae
invalid
invalid
push esp

Function at 0x40f2a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosb byte es:[edi], al
invalid
test dword [eax + 0x4fffff9], edx

Function at 0x40f2ad
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
add byte [eax - 0x3c35b], al
inc dword [eax]

Function at 0x40f2cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9

Function at 0x4105bf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.0040e9cf
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.0040e930
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x410937
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.0040e9bf
outsb dx, byte [esi]
sbb byte [edi], ah
invalid
Function at 0x10001db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push edi
mov edi, ecx
call fcn.10001ed0
mov eax, dword [esp + 0x34]
xor ebx, ebx
mov ecx, dword [eax]
cmp dword [ecx - 8], ebx
je 0x10001ec3
push ebp
push esi
push eax
mov ecx, edi
call fcn.10001f10
xor edx, edx
xor eax, eax
lea esi, [edi + 0x4c]
mov ecx, dword [esi]
mov ecx, dword [ecx - 8]
cmp ecx, ebx
je 0x10001df6
cmp edx, ecx
jge 0x10001ded
mov edx, ecx
inc eax
add esi, 4
cmp eax, 0xa
jl 0x10001dde
mov ebp, dword [0x100c6ab0]
mov ecx, dword [0x100c6ab4]
imul ebp, edx
lea edx, [eax + eax*4]
mov dword [edi + 0x84], ecx
mov ecx, dword [0x100c6ab4]
mov dword [esp + 0x14], ebx
lea eax, [eax + edx*2]
add ecx, 2
mov dword [esp + 0x3c], eax
add eax, 0xc
mov dword [0x100c6ab4], ecx
mov dword [esp + 0x28], eax
lea edx, [esp + 0x14]
lea ecx, [ebp + 0xa]
lea eax, [esp + 0x1c]
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
push eax
push edi
mov ecx, 0x100c6ac0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.10001670
mov esi, 7
lea ebx, [edi + 0x4c]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x10001e92
mov ecx, dword [esp + 0x38]
push 0x100c6a70
push 1
push 0
push ecx
push esi
push 8
push eax
lea ecx, [edi + 0x1c]
call dword [sym.imp.exstage.dll_public:_void___thiscall_CxDDSurface::TextOutA_char_const___int__int__unsigned_long_int__unsigned_long_int__int__struct_tagLOGFONTA__]
add esi, 0xc
add ebx, 4
cmp esi, 0x7f
jl 0x10001e63
mov edx, dword [0x100c6ab0]
mov ecx, dword [esp + 0x3c]
pop esi
lea eax, [edx + ebp + 0xa]
lea edx, [ecx + 0x1b]
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 0x44], edx
pop ebp
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [edi + 0x74], eax
mov eax, 0xffffffe7
sub eax, ecx
mov dword [edi + 0x78], eax
pop edi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x10002de0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
cpuid
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
mov ebx, dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 8]
push ecx
call ebx
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add edi, ecx
adc esi, eax
rdtsc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 8]
push edx
call ebx
mov eax, dword [ebp - 4]
cmp eax, esi
jl 0x10002e19
jg 0x10002e2f
mov ecx, dword [ebp - 8]
cmp ecx, edi
jbe 0x10002e19
rdtsc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
rdtsc
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
rdtsc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
sub edx, edi
push 0
sbb eax, esi
push 0x3e8
push eax
push edx
call fcn.1009d970
push 0
push 0x3e8
push edx
push eax
call fcn.1009d930
mov ecx, dword [ebp - 0x28]
mov esi, edx
mov edx, dword [ebp - 0x30]
mov edi, eax
mov eax, dword [ebp - 0x2c]
sub ecx, edx
mov edx, dword [ebp - 0x24]
push 0
sbb edx, eax
push 0x3e8
push edx
push ecx
call fcn.1009d970
push 0
push 0x3e8
push edx
push eax
call fcn.1009d930
cmp esi, edx
jl 0x10002ebc
jg 0x10002eb8
cmp edi, eax
jbe 0x10002ebc
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004d50
Capabilities:
Packed with generic packer

Disassembly:
sub esp, 0x48
push ebp
push esi
mov esi, ecx
xor ebp, ebp
jmp fcn.100dba5a
Function at 0x100204a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10020502
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpy]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x10020510
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
xor esi, esi
push ebp
push esi
push esi
push eax
push 0x100c4ed8
push esi
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x100205f8
lea ecx, [esp + 0xc]
push ecx
push 0x100c4ed0
push 0x80000000
call fcn.100204a0
add esp, 0xc
test eax, eax
jne 0x10020607
mov ebx, dword [sym.imp.kernel32.dll_lstrcat]
lea edx, [esp + 0xc]
push 0x100c4ebc
push edx
call ebx
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x80000000
call fcn.100204a0
add esp, 0xc
test eax, eax
jne 0x10020607
push edi
mov edi, dword [sym.imp.msvcrt.dll_strstr]
lea edx, [esp + 0x10]
push 0x100c4eb4
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x100205d0
lea eax, [esp + 0x10]
push 0x100c4eb0
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x100205d0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_lstrlen]
lea esi, [esp + eax + 0xf]
jmp 0x100205d3
mov byte [esi], 0
push 0x100c4b98
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.kernel32.dll_WinExec]
cmp eax, 0x1f
pop edi
jbe 0x10020613
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret