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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002db48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
call fcn.10001520
mov ecx, eax
test ecx, ecx
je 0x1000e9e6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov dword [ebp - 4], 0
jge 0x1000e856
push 0x400
lea ecx, [ebp - 0x20]
call fcn.10001ef0
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x1000e9a4
push edi
push 0x400
push esi
call fcn.10001bb0
push dword [esi - 8]
mov edi, eax
push esi
call fcn.1001ecdb
add esp, 0x14
test eax, eax
js 0x1000e9f0
cmp eax, dword [esi - 8]
jg 0x1000e9f0
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x1000e9a9
mov dword [ebp - 0x1c], ecx
call fcn.10001a10
cmp eax, 1
mov ecx, 0x100
lea eax, [ebp - 0x1c]
push eax
cmove edi, ecx
or edi, 0x20019
push edi
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x1000e9a9
mov ecx, dword [ebx]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x400
or eax, edx
jge 0x1000e8f4
push 0x400
mov ecx, ebx
call fcn.10001ef0
mov ecx, dword [ebx]
test ecx, ecx
je 0x1000e994
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x800
push eax
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0
push str.AMSIPath32
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebx]
test eax, eax
jne 0x1000e92f
xor ecx, ecx
jmp 0x1000e945
push dword [eax - 8]
push eax
call fcn.1001ecdb
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1000e9f0
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x1000e9f0
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
mov eax, dword [ebx]
test eax, eax
jne 0x1000e965
xor ecx, ecx
jmp 0x1000e977
push dword [eax - 8]
push eax
call fcn.1001ecdb
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1000e9f0
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x1000e9f0
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000e9a9
push dword [ebp - 0x1c]
mov edi, 0xe
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000e9a9
mov edi, 0x57
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000e9c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001200
push 0x80070057
call fcn.10001200
int3
Function at 0x10010f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002dd46
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.10019d00
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x42c], esi
test esi, esi
jne 0x1001104c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x42c], eax
test esi, esi
jne 0x1001104c
call fcn.100030a0
mov edi, eax
jmp 0x10011168
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1001106f
call fcn.100030a0
jmp 0x1001115b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x1001108d
call fcn.100030a0
jmp 0x1001115b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x100110ae
mov edi, 0x8007000e
jmp 0x1001115d
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x100111a1
jb 0x100110cc
cmp eax, 0xffffffff
ja 0x100111a1
cmp eax, 0x400
jbe 0x100110e1
push eax
lea ecx, [ebp - 0x420]
call fcn.1000fce0
jmp 0x10011107
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
jmp 0x10011107
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x1001111e
mov edi, 0x8007000e
jmp 0x1001115d
push edi
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1001113e
call fcn.100030a0
jmp 0x1001115b
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.10010df0
mov edi, eax
test esi, esi
je 0x10011168
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10011181
lea ecx, [ebp - 0x420]
call fcn.10010860
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10001200
int3
Function at 0x10015180
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
lea esi, [eax + 0x10]
test edi, edi
je 0x100151e7
mov edx, 0x104
mov ecx, esi
sub edi, esi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100151cf
movzx eax, word [edi + ecx]
test ax, ax
je 0x100151cf
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100151b1
mov edi, dword [ebp - 0x210]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x10015302
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.10019d00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x100300e8
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.100017f0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10015264
push str.SHGetFolderPathW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001525d
push esi
push 0
push 0
push 0x8023
push 0
call eax
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x100152c5
push str.AhnLab
push 0x104
push esi
mov edi, 1
call fcn.100017f0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10015299
call ebx
cmp eax, 0xb7
jne 0x100152c1
push str.AIS
push 0x104
push esi
call fcn.100017f0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100152bf
call ebx
cmp eax, 0xb7
jne 0x100152c1
xor edi, edi
test edi, edi
je 0x100152ec
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [ebp - 0x210]
test eax, eax
je 0x100152f2
cmp word [edi + eax*2 + 0xe], 0x5c
jne 0x100152f2
xor ecx, ecx
mov word [edi + eax*2 + 0xe], cx
jmp 0x100152f2
mov edi, dword [ebp - 0x210]
push str._ai.log
push 0x104
push esi
call fcn.100017f0
push 0x2e
push esi
call fcn.1001a681
mov ebx, eax
lea esi, [edi + 0x218]
add esp, 8
test ebx, ebx
jne 0x10015355
mov edx, 0x104
mov ecx, esi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10015341
movzx eax, word [ecx - 0x208]
test ax, ax
je 0x10015341
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10015320
test edx, edx
lea eax, [ecx - 2]
mov ebx, 0x10030144
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x100153bb
mov eax, ebx
sub eax, edi
sub eax, 0x10
sar eax, 1
cmp eax, 0x7ffffffe
jbe 0x1001536c
xor eax, eax
mov word [esi], ax
jmp 0x100153ab
mov edx, 0x104
lea edi, [eax - 0x104]
mov ecx, esi
nop dword [eax]
lea eax, [edi + edx]
test eax, eax
je 0x1001539e
movzx eax, word [ecx - 0x208]
test ax, ax
je 0x1001539e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10015380
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 0x10030144
push 0x104
push esi
call fcn.100017f0
push ebx
push 0x104
push esi
call fcn.100017f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100184e9
mov esp, ebp
pop ebp
ret 4
Function at 0x100153e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002df50
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1003e030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp word [edi + 0x10], 0
lea esi, [edi + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
jne 0x10015424
push 0
call fcn.10015180
mov ebx, dword [edi + 4]
mov dword [ebp - 0x74], vtable.CLogMutex.0
mov dword [ebp - 0x70], ebx
test ebx, ebx
je 0x10015441
push 0x1388
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], vtable.CAhnI2s_File.0
mov dword [ebp - 0x64], 0xffffffff
push 1
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.10017c80
test eax, eax
je 0x100155d1
lea ecx, [ebp - 0x68]
call fcn.10017c00
test eax, eax
js 0x100155d1
cmp eax, dword [edi + 0x430]
jl 0x100154d4
lea ecx, [ebp - 0x68]
call fcn.10017bd0
lea esi, [edi + 0x218]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 1
push esi
lea ecx, [ebp - 0x68]
call fcn.10017c80
test eax, eax
je 0x100155d1
lea ecx, [ebp - 0x68]
call fcn.10017c00
test eax, eax
js 0x100155d1
cmp eax, dword [edi + 0x430]
jge 0x100155d1
push 2
push 0
lea ecx, [ebp - 0x68]
call fcn.10017d00
test eax, eax
js 0x100155d1
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x52]
xor edx, edx
push eax
movzx eax, word [ebp - 0x54]
mov ecx, 0xa
push eax
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5e]
push eax
movzx eax, word [ebp - 0x60]
div ecx
lea eax, [ebp - 0x50]
push edx
push str._d_x_02d._02d_02d_02d_03d.
push 0x40
push eax
call fcn.10004910
lea eax, [ebp - 0x50]
push 0x40
push eax
call fcn.10014bb0
add esp, 0x30
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10017d40
push dword [0x100409cc]
lea ecx, [ebp - 0x68]
push 0x100409bc
call fcn.10017d40
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._x:
lea eax, [ebp - 0x50]
push 0x40
push eax
call fcn.10004910
lea eax, [ebp - 0x50]
push 0x40
push eax
call fcn.10014bb0
add esp, 0x18
lea ecx, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10017d40
mov esi, dword [ebp - 0x6c]
push SysReAllocString
push esi
call fcn.10014bb0
add esp, 8
lea ecx, [ebp - 0x68]
push eax
push esi
call fcn.10017d40
push 2
push 0x10039048
lea ecx, [ebp - 0x68]
call fcn.10017d40
lea ecx, [ebp - 0x68]
call fcn.10017d20
test byte [edi + 0x42c], 1
je 0x100155d1
lea ecx, [ebp - 0x68]
call fcn.10017bf0
lea ecx, [ebp - 0x68]
call fcn.10017bc0
test ebx, ebx
je 0x100155e4
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100184e9
mov esp, ebp
pop ebp
ret 8
Function at 0x10017d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10017de0
add esp, 0x14
test eax, eax
jne 0x10017dca
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x10017dca
cmp dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
je 0x10017dcd
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x1002169d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fistp word [ecx - 0x3a]
inc ebp
loopne 0x100216ed
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10021262
push eax
push esi
push dword [ebp + 8]
call fcn.10021217
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10021252
mov bl, 0xe
adc al, 0x62
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.10021252
inc eax
mov esp, 0x858dddf0
jl 0x1002173d
invalid
invalid
Function at 0x10021916
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
inc edi
push es
inc edi
push es
jne 0x10021929
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10021947
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
or byte [ecx], al
add byte [eax], al
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 0x100219a5
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 0x1002198c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10021995
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1002199f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10021981
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1002190b
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 0x100219f2
dec eax
je 0x100219e9
sub eax, 3
je 0x100219e0
mov dword [ebp - 4], 0x40
jmp 0x10021a0f
mov dword [ebp - 4], 4
jmp 0x100219f5
mov dword [ebp - 4], 0x20
jmp 0x100219f5
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 0x10021a41
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x100219c1
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10021252
mov dword [0xfffa7d7e], eax
jne 0x10021a4c
push 1
push esi
call edi
mov eax, esi
jmp 0x10021a4d
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10021939
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
inc edi
push es
inc edi
push es
jne 0x10021929
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10021947
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
or byte [ecx], al
add byte [eax], al
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 0x100219a5
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 0x1002198c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10021995
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1002199f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10021981
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1002190b
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 0x100219f2
dec eax
je 0x100219e9
sub eax, 3
je 0x100219e0
mov dword [ebp - 4], 0x40
jmp 0x10021a0f
mov dword [ebp - 4], 4
jmp 0x100219f5
mov dword [ebp - 4], 0x20
jmp 0x100219f5
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 0x10021a41
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x100219c1
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10021252
mov dword [0xfffa7d7e], eax
jne 0x10021a4c
push 1
push esi
call edi
mov eax, esi
jmp 0x10021a4d
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10021ad3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax - 0x3a]
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10021262
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10021217
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
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
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10021262
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10021217
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.10021262
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10021217
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.10021252
push ecx
jne 0x10021cd7
dec ebp
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
jmp [eax - 0x80]
sti
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.10021262
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10021217
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.10021252
jle 0x10021d25
sub dh, byte [eax + eax*4 - 0x5b]
pushfd
stc
invalid
Function at 0x402b10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x429290]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402ba4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402b61
cmp dword [ebp + 0x10], ebx
jne 0x402b98
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b10
test eax, eax
jne 0x402b73
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040620c
cmp eax, ebx
je 0x402bab
push ebx
push dword [0x429290]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ba4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x429290], ebx
jne 0x402ba1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402ba1
jmp 0x402ba4
Function at 0x402ff8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403025
mov ecx, dword [0x429238]
push edi
add eax, ecx
push edi
push eax
mov dword [0x417e7c], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403123
cmp eax, edi
jl 0x40311c
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40901c]
call ebx
test eax, eax
je 0x403119
cmp dword [ebp - 4], esi
jne 0x403119
push dword [ebp + 8]
add dword [0x417e7c], esi
call fcn.00403123
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40311c
cmp dword [ebp + 0x10], edi
jne 0x4030e8
cmp dword [ebp + 8], edi
jle 0x403114
mov esi, 0x413e78
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403098
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40901c]
call ebx
test eax, eax
je 0x403119
cmp edi, dword [ebp - 4]
jne 0x403119
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030e4
cmp dword [ebp + 0x14], edi
jne 0x4030e4
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x417e7c], eax
cmp dword [ebp + 8], 0
jg 0x40308b
jmp 0x403114
push 0xfffffffffffffffe
jmp 0x40311b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4030f3
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call ebx
test eax, eax
je 0x403119
mov eax, dword [ebp - 4]
add dword [0x417e7c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40311c
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10