joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fd5d
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0040f2d0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x429cb4]
je 0x41fe64
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41fdcd
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x41fdd4
cmp ebx, ebx
jne 0x41fdd4
xor eax, eax
jmp 0x41fe67
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x41fde1
mov byte [esi + 0x20], bl
jmp 0x41fdf5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004040dd
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004040dd
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.004040dd
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x41fe50
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x41fe64
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42096d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x4209a4
call fcn.004240e0
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4209b5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4209ee
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4209d3
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x4209db
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4209ec
test ax, ax
jne 0x4209ec
test si, si
je 0x4209ee
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4209fd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4228e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x434140]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x422931
push dword [ebp + 8]
call fcn.00424827
mov esi, eax
test esi, esi
je 0x422959
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x422959
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x428fa8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040eeee
leave
ret 0xc

Function at 0x423186
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x434140]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x4231e4
push 0x4289d4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0040f045
add esp, 0x10
cmp eax, 0xffffffff
je 0x4231f8
cmp eax, esi
jae 0x4231f8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4231fa
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4231af
jmp 0x4231fb
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040eeee
leave
ret
Function at 0x42321b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x434140]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4232bd
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x4233bf
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42336d
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4233c0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x423362
cmp dword [ebp - 0x24], 1
jne 0x423362
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x4289e4
push eax
call fcn.0040f09c
add esp, 0xc
cmp eax, 1
jne 0x423362
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4233c0
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4233c0
lea ecx, [ebp - 0x18]
push ecx
push 0x423205
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x4233c0
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4233e6
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00423186
cmp eax, ebx
pop ecx
pop ecx
jne 0x4233e8
inc edi
cmp edi, esi
jl 0x4233cf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040eeee
leave
ret 4
Function at 0x401360
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x415040]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebp
mov ebp, dword [esp + 0x428]
test esi, esi
je 0x4013c6
cmp dword [ebp], 0
je 0x4013c6
push 0x410
push 0
push esi
call fcn.004077d0
add esp, 0xc
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SoftwareSogouWallPaper
push 0x80000001
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4013de
xor al, al
pop ebp
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00402720
add esp, 0x420
ret
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov word [esp + 0x20], cx
call fcn.004077d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.InstallLocation
push eax
mov dword [esp + 0x28], 0x208
mov dword [esp + 0x24], 1
call edi
test eax, eax
je 0x401454
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop ebp
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00402720
add esp, 0x420
ret
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x226]
push eax
mov word [esp + 0x228], dx
call fcn.004077d0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.Version
push ecx
mov dword [esp + 0x28], 0x208
mov dword [esp + 0x24], 1
call edi
mov edx, dword [esp + 8]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40143b
lea eax, [esp + 0x14]
push eax
push 0x208
push esi
call fcn.0040272f
push 0x4132a4
push 0x208
push esi
call fcn.0040272f
lea ecx, [esp + 0x234]
push ecx
push 0x208
push esi
call fcn.0040272f
push 0x4132a4
push 0x208
push esi
call fcn.0040272f
add esp, 0x30
mov eax, ebp
call fcn.00402590
push eax
push 0x208
push esi
call fcn.0040272f
mov ecx, dword [esp + 0x430]
add esp, 0xc
pop edi
pop ebp
xor ecx, esp
mov al, 1
call fcn.00402720
add esp, 0x420
ret
Function at 0x401de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x14]
cmp eax, ebx
jne 0x401dfb
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push ebp
push eax
mov dword [esp + 0x30], ebx
call edi
test eax, eax
jne 0x401e91
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x401e91
lea eax, [eax + eax + 8]
push esi
push eax
mov dword [esp + 0x20], eax
call fcn.00402a39
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x401e40
pop esi
pop edi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x1c]
push edx
push ebx
push esi
call fcn.004077d0
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx]
push esi
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push eax
mov dword [esp + 0x28], 1
call edi
test eax, eax
jne 0x401e7e
mov edx, dword [esp + 0x20]
mov eax, esi
call fcn.00402460
mov bl, 1
push esi
call fcn.0040295c
add esp, 4
pop esi
pop edi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 0xc
pop edi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc

Function at 0x402250
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x1218
call fcn.0040cdc0
mov eax, dword [0x415040]
xor eax, esp
mov dword [esp + 0x1214], eax
push ebp
push 0x2e
push esi
call fcn.00402f3d
xor ebp, ebp
add esp, 8
cmp eax, ebp
jne 0x402292
xor al, al
pop ebp
mov ecx, dword [esp + 0x1214]
xor ecx, esp
call fcn.00402720
add esp, 0x1218
ret
lea ecx, [esp + 4]
push ecx
push 0x20019
push ebp
push eax
push 0x80000000
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40227a
push 0x206
lea eax, [esp + 0x16]
xor edx, edx
push ebp
push eax
mov word [esp + 0x1c], dx
call fcn.004077d0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.PerceivedType
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x206
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402367
lea edx, [esp + 0x10]
push str.image
push edx
call fcn.00402d0a
add esp, 8
test eax, eax
jne 0x402367
push 0xffe
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.004077d0
push esi
push str.shimgvw.dll_ImageView_Fullscreen__s
lea edx, [esp + 0x22c]
call fcn.00402390
mov edx, dword [esp + 0x1234]
add esp, 0x14
push edx
push ebx
lea eax, [esp + 0x220]
push eax
push str.rundll32.exe
push 0
push edi
call dword [0x41116c]
mov ebp, eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1218]
cmp ebp, 0x20
setg al
pop ebp
xor ecx, esp
call fcn.00402720
add esp, 0x1218
ret
Function at 0x10004e80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.100130d0
mov eax, dword [0x1001a008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x832
lea eax, [ebp - 0x1038]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push 0x400
push eax
call fcn.1000cdb8
lea eax, [ebp - 0x804]
push eax
push 0x10017e68
push str._s____s_n
lea eax, [ebp - 0x1038]
push 0x419
push eax
call fcn.10004fd0
add esp, 0x40
lea eax, [ebp - 0x1038]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cb3b
mov esp, ebp
pop ebp
ret

Function at 0x10004f20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x1001a008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x419
lea eax, [ebp - 0x820]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push 0x400
push eax
call fcn.1000ceac
cmp dword [0x1001b7e0], 0x10
lea ecx, [ebp - 0x404]
push ecx
mov eax, 0x1001b7cc
cmovae eax, dword [0x1001b7cc]
push eax
push str._xcpp_
push str._s_s_s_n
lea eax, [ebp - 0x820]
push 0x419
push eax
call fcn.10004ff0
add esp, 0x44
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cb3b
mov esp, ebp
pop ebp
ret

Function at 0x10007040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x100070a5
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000709e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000709e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1000709d
push 0x100182c4
lea eax, [edi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000709d
cmp word [edi + 2], bx
jbe 0x1000709d
mov ebx, dword [edi + 0x30]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x10007ac0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007ba8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10007ba1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop word [eax + eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10007b86
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10007b86
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10007b86
mov ecx, dword [esi]
test ecx, ecx
jne 0x10007b4f
push 0x200
push ecx
push dword [0x1001b7b0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10007ba0
jmp 0x10007b78
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10007b78
shl eax, 3
push eax
push ecx
push 0
push dword [0x1001b7b0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10007ba0
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10007b10
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000cb3b
mov esp, ebp
pop ebp
ret

Function at 0x10007bc0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10007ac0
cmp dword [edi], 0
je 0x10007c2c
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10007c2b
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10007c24
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10007950
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10007bf1
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10007c40
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x10007c8c
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10007c7b
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10007c74
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10007c51
pop ebx
push dword [edi]
push 0
push dword [0x1001b7b0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
Function at 0x10007c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
imul edi, ecx, 0x2c
mov ebx, 5
add edi, dword [0x1001c820]
test byte [edi + 0x14], 1
mov esi, dword [edi]
je 0x10007cc0
sub esi, ebx
mov ebx, 7
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10007ce8
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cb3b
mov esp, ebp
pop ebp
ret
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x10007d03
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cb3b
mov esp, ebp
pop ebp
ret
Function at 0x10007d40
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1001a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x1001c828]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0xc], ebx
test ecx, ecx
je 0x10007ebd
mov eax, dword [0x1001c820]
add eax, 0x14
nop
test byte [eax], 2
je 0x10007d8f
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10007d70
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cb3b
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10007ebd
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10007bc0
mov edx, dword [0x1001c828]
add esp, 4
cmp esi, edx
jae 0x10007e6a
imul ecx, esi, 0x2c
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov ebx, dword [0x1001c820]
add ebx, ecx
test byte [ebx + 0x14], 2
jne 0x10007e4f
test byte [ebx + 0x14], 1
mov eax, 5
mov edi, dword [ebx]
mov dword [ebp - 0xc], eax
je 0x10007dec
sub edi, eax
mov eax, 7
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10007e62
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x10007e19
mov eax, dword [ebx]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [ebx + 0x14], 6
xor ebx, ebx
mov edx, dword [0x1001c828]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
jmp 0x10007e51
xor ebx, ebx
inc esi
add ecx, 0x2c
mov dword [ebp - 0x10], ecx
cmp esi, edx
jb 0x10007dc0
jmp 0x10007e6a
mov ebx, 0xa
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10007ebc
xor esi, esi
cmp dword [ebp - 0x14], esi
jbe 0x10007ead
mov ebx, eax
nop word [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10007ea1
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x10007e80
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
push eax
push 0
push dword [0x1001b7b0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cb3b
mov esp, ebp
pop ebp
ret
Function at 0x10008580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ecx + 4]
push ebx
mov ebx, dword [edx + 8]
push esi
mov esi, dword [ecx]
mov ecx, dword [edx]
bswap ecx
mov dword [ebp - 4], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 0xc]
push edi
xor edi, edi
bswap ebx
bswap ecx
bswap edx
mov dword [ebp - 0xc], ebx
lea ebx, [edi + 0x10]
bswap esi
bswap eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
nop word [eax + eax]
mov edx, eax
lea edi, [edi - 0x61c88647]
shr edx, 5
add edx, ecx
mov ecx, eax
shl ecx, 4
add ecx, dword [ebp - 4]
xor edx, ecx
lea ecx, [eax + edi]
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shr edx, 5
add edx, dword [ebp - 8]
shl ecx, 4
add ecx, dword [ebp - 0xc]
xor edx, ecx
lea ecx, [esi + edi]
xor edx, ecx
mov ecx, dword [ebp - 0x10]
add eax, edx
sub ebx, 1
jne 0x100085c0
mov ecx, dword [ebp + 8]
bswap esi
pop edi
bswap eax
mov dword [ecx], esi
pop esi
mov dword [ecx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008d20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1001c81c]
test eax, eax
je 0x10008d3c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x10008d96
mov eax, dword [eax]
test eax, eax
jne 0x10008d30
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x10008d94
push esi
lea edx, [ecx + 0x20]
mov dword [ecx + 4], 0
mov esi, edx
mov dword [ecx + 8], 0
sub esi, ecx
nop dword [eax]
mov eax, dword [ecx + 4]
add esi, 0x20
mov dword [edx], eax
mov dword [ecx + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x10008d70
mov eax, dword [0x1001c81c]
mov dword [ecx], eax
mov dword [0x1001c81c], ecx
pop esi
mov eax, ecx
ret