joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10813246
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1084d5e6
call fcn.1081f68f
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor edx, edx
push edx
push edx
push ecx
push edx
push 1
push dword [eax - 0xc]
mov dword [ebp - 4], edx
push eax
call esi
test eax, eax
je 0x108132b0
push dword [ebp - 0x14]
call fcn.1081f099
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.10821f80
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
add esp, 0x10
push 0
push 0
push eax
push ebx
push 1
push dword [ecx - 0xc]
push ecx
call esi
test eax, eax
jne 0x108132c1
push ebx
call fcn.1081f0a2
pop ecx
mov ecx, edi
call fcn.10812f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x108132e2
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.10813385
mov esi, eax
test esi, esi
je 0x108132db
mov ecx, edi
call fcn.10812f91
push ebx
call fcn.1081f0a2
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1081747f
mov eax, esi
call fcn.1081f639
ret 8

Function at 0x108132f7
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1084d5e6
call fcn.1081f68f
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x10813372
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10813334
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x1081336a
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1081e0a7
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov esi, dword [edi - 0xc]
push eax
push ebx
call fcn.1081cdc3
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10813372
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1081747f
mov eax, ebx
call fcn.1081f639
ret
Function at 0x10813385
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x1084d616
call fcn.1081f68f
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.1081f099
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.10821f80
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1081e661
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x108133ff
push esi
call fcn.1081f0a2
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.10812f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10813465
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.108157d3
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.10819659
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.10819590
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x1081345c
push dword [ebp - 0x120]
call fcn.10828c96
pop ecx
push esi
call fcn.1081f0a2
pop ecx
xor eax, eax
call fcn.1081f639
ret 0xc
Function at 0x1081599b
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1182572c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf0000040
push 0x18
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x108159cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10815ad4
push edi
mov edi, 0x94
push edi
call fcn.1081f099
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.10821f80
mov eax, dword [esi + 0x10]
push 0x80
push 0x11002470
push edi
mov dword [eax], 0x206
mov dword [eax + 4], 0xa400
mov eax, dword [esi + 0x10]
mov dword [eax + 8], 0x31415352
mov dword [eax + 0xc], 0x400
mov dword [eax + 0x10], 0x10001
mov eax, dword [esi + 0x10]
add eax, 0x14
push eax
call fcn.1081e661
add esp, 0x20
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [esi + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10815ab7
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x10815ab7
lea ebx, [esi + 0xc]
push ebx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x10815ab7
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x10815ab7
push dword [ebp - 8]
call fcn.1081f099
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.10821f80
add esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x10815abf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10815ad3
mov eax, dword [esi + 0x14]
add eax, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1081ef5b
mov esp, ebp
pop ebp
ret
Function at 0x108177a1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x4c
mov eax, 0x1084da34
call fcn.1081f68f
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], ebx
call fcn.1081361c
push eax
lea ecx, [ebp - 0x48]
call fcn.10810319
mov eax, dword [esi]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], 0x6739484e
mov dword [ebp - 0x40], 0x2b70694a
mov dword [ebp - 0x3c], 0x374e514b
mov dword [ebp - 0x38], 0x4d736762
mov dword [ebp - 0x34], 0x724d6e47
mov dword [ebp - 0x30], 0x50676e63
mov dword [ebp - 0x2c], 0x64497862
mov dword [ebp - 0x28], 0x354e4250
mov dword [ebp - 0x24], 0x48455364
mov dword [ebp - 0x20], 0x614d7a50
mov dword [ebp - 0x1c], 0x41414141
mov word [ebp - 0x18], 0x6747
call dword [eax + 4]
push dword [eax]
mov byte [ebp - 0x14], bl
lea eax, [ebp - 0x16]
push ebx
sub esp, 0xc
mov byte [ebp - 4], 1
mov ecx, esp
push dword [ebp - 0x14]
mov dword [ecx], ebx
push eax
lea eax, [ebp - 0x44]
mov dword [ecx + 4], ebx
push eax
mov dword [ecx + 8], ebx
call fcn.1080fab3
lea eax, [ebp - 0x58]
push eax
call fcn.10812d9b
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1081ce0c
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1081311f
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.1081cc8c
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.1081747f
mov dword [ebp - 0x14], ebx
call fcn.1081361c
push eax
lea ecx, [ebp - 0x14]
call fcn.10810319
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x4c], esi
mov edi, dword [ebp - 0x48]
add edi, 0xfffffff0
push edi
call fcn.10812a29
pop ecx
add eax, 0x10
mov dword [esi], eax
push ebx
call fcn.10817963
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.1081747f
mov ecx, edi
call fcn.1081747f
mov eax, esi
call fcn.1081f639
ret
Function at 0x1081a742
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x9c
mov eax, 0x1084dc96
call fcn.1081f68f
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xa8], eax
call fcn.10815898
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10810404
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], eax
je 0x1081a7b6
push dword [ebp - 0xa8]
call fcn.10828c96
pop ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1081a83d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, dword [ebx + 0x1c]
push eax
mov dword [ecx], eax
call fcn.1081f099
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push edi
push eax
call fcn.10821f80
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
push dword [esi]
call fcn.1081e661
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [eax - 0xc]
add esi, dword [edx]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push esi
call fcn.1081e661
add esp, 0x30
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push esi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1081a845
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.1081747f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1081747f
mov eax, edi
call fcn.1081f639
ret 0xc
Function at 0x1081b856
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x8c
mov eax, 0x1084dddc
call fcn.1081f68f
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebp - 0x84], 0x7630434e
push eax
push eax
sub esp, 0xc
mov dword [ebp - 0x80], 0x4f45694f
mov ecx, esp
mov dword [ebp - 0x7c], 0x33735247
mov dword [ebp - 0x78], 0x586f444d
mov dword [ebp - 0x74], 0x50385342
mov dword [ebp - 0x70], 0x63344250
mov dword [ebp - 0x6c], 0x4e6b574f
mov dword [ebp - 0x68], 0x51554749
mov dword [ebp - 0x64], 0x785a434f
mov dword [ebp - 0x60], 0x526b444f
mov dword [ebp - 0x5c], 0x45555843
mov dword [ebp - 0x58], 0x71456859
mov dword [ebp - 0x54], 0x41676e4d
mov dword [ebp - 0x50], 0x48414350
mov dword [ebp - 0x4c], 0x74415242
mov dword [ebp - 0x48], 0x454d6943
mov dword [ebp - 0x44], 0x386b6745
mov dword [ebp - 0x40], 0x73427850
mov dword [ebp - 0x3c], 0x70385350
mov dword [ebp - 0x38], 0x61386848
mov dword [ebp - 0x34], 0x61386962
mov dword [ebp - 0x30], 0x4734775a
mov dword [ebp - 0x2c], 0x7a676a45
mov dword [ebp - 0x28], 0x76387845
mov dword [ebp - 0x24], 0x41495441
mov dword [ebp - 0x20], 0x47424141
mov byte [ebp - 0x88], al
push dword [ebp - 0x88]
mov dword [ebp - 4], eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1080fab3
lea eax, [ebp - 0x98]
push eax
call fcn.10812d9b
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1081ce0c
push eax
lea ecx, [ebp + 0x14]
call fcn.10812ffd
cmp eax, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
setne bl
call fcn.1081cc8c
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.1081cdc3
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
push 0x18
pop esi
push 0
pop edx
push ecx
mov ecx, dword [ebp - 0x8c]
test bl, bl
push eax
cmovne edx, esi
add ecx, edx
push ecx
call fcn.10823c20
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.1081cc09
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.1081747f
mov al, 1
call fcn.1081f639
ret
Function at 0x1081e87f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1182572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [eax]
mov dword [ebp - 0x24], eax
call fcn.1081e842
push esi
call fcn.1081eba7
mov esi, eax
push edi
mov dword [ebp - 0x14], esi
call fcn.1081eba7
push 0x58
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.10821f80
lea eax, [ebp - 0x7c]
push eax
push 5
push esi
call fcn.1081e72c
mov edi, eax
add esp, 0x20
cmp edi, 5
jb 0x1081ea1d
push edi
push esi
call fcn.1081ec8b
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push esi
call fcn.1081ee17
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x1081ea18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
and dword [ebp - 8], 0
push ecx
push 0x40
push edi
push esi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1081e9fd
lea eax, [ebp - 8]
push eax
push 0x40
push 0x6c
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1081e9e0
xor edx, edx
lea ecx, [ebx + 0x2c]
test edi, edi
je 0x1081e966
sub esi, ecx
mov al, byte [esi + ecx]
mov byte [ecx], al
mov byte [ebx + edx + 0x4c], al
inc edx
inc ecx
cmp edx, edi
jb 0x1081e951
mov esi, dword [ebp - 0x14]
lea ecx, [ebx + 0x2c]
lea eax, [edi + esi]
push eax
lea eax, [ecx + edi]
push eax
call fcn.1081e7f9
mov edx, dword [ebp - 0x18]
mov eax, edx
pop ecx
pop ecx
mov ecx, esi
sub eax, esi
sub ecx, edx
cmp edx, esi
push edx
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x1081e9ac
lea esi, [ebx + 0xc]
push esi
call fcn.1081e7f9
pop ecx
pop ecx
sub eax, ebx
sub eax, 0xc
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
mov esi, dword [ebp - 0x14]
push esi
call fcn.1081e7f9
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov dword [ebx + 8], eax
lea eax, [ebx + 0x2c]
push edi
push eax
push dword [ebp - 0x10]
mov dword [ebx + 4], edi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x6c
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [ebx], 0
je 0x1081ea0c
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x2c]
mov dword [ecx], eax
jmp 0x1081ea18
push 1
push ebx
call fcn.1081ef1e
pop ecx
pop ecx
xor ebx, ebx
call fcn.1081eb29
push 0x11827990
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.1081ef5b
mov esp, ebp
pop ebp
ret
Function at 0x1081ea40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1182572c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xc], ebx
xor edi, edi
call fcn.1081e842
xor esi, esi
mov eax, dword [esi*4 + 0x118279a8]
test eax, eax
je 0x1081ea78
add eax, 0x2c
cmp eax, dword [ebx]
je 0x1081eb1d
inc esi
cmp esi, 0x40
jb 0x1081ea62
xor esi, esi
test esi, esi
je 0x1081eaff
push dword [esi + 4]
push dword [esi]
call fcn.1081ec8b
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 8], edi
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1081eafa
mov edx, dword [esi]
xor ecx, ecx
cmp dword [esi + 4], ecx
jbe 0x1081eac7
mov al, byte [esi + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [esi + 4]
jb 0x1081eaba
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 0xc]
xor edi, edi
mov eax, dword [esi]
inc edi
push 0
push esi
mov dword [ecx], eax
call fcn.1081ef1e
pop ecx
pop ecx
call fcn.1081eb29
push 0x11827990
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1081ef5b
mov esp, ebp
pop ebp
ret
mov esi, dword [esi*4 + 0x118279a8]
jmp 0x1081ea80

Function at 0x1081eb29
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x11827ab0], esi
jbe 0x1081eb7b
mov eax, dword [0x11827aac]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x11827aac]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x11827ab0]
jb 0x1081eb56
push dword [0x11827aac]
call fcn.10828c96
and dword [0x11827aac], 0
and dword [0x11827ab0], 0
pop ecx
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1081ebdf
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x1182572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x1081ec79
test esi, esi
je 0x1081ec79
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1081ec70
mov dword [ebp - 0x2d0], 0x10001
xor ebx, ebx
jmp 0x1081ec5c
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x1081ec79
add eax, dword [ebp + 0x10]
cmp dword [ebp - 0x218], eax
jae 0x1081ec79
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp ebx, 3
jge 0x1081ec70
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
inc ebx
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1081ec2a
jmp 0x1081ec79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1081ef5b
mov esp, ebp
pop ebp
ret

Function at 0x1081ee17
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1182572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], eax
cmp dword [0x11827aa8], 0x40
jae 0x1081ef0d
push esi
lea esi, [edx + ecx]
add ecx, dword [ebp + 0x14]
push edi
cmp ecx, 0x80000000
lea edi, [ebp - 0x44]
push 9
lea eax, [ecx + 0x7ff80000]
mov edx, 0xfff80000
cmovb edx, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
mov esi, dword [ebp - 0x48]
cmovb edi, eax
cmp edi, esi
jae 0x1081ef0b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1081eee6
cmp dword [ebp - 0x10], 0x10000
jne 0x1081eeda
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x1081eedd
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x1081eedd
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1081eeea
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
add edi, eax
cmp edi, esi
jb 0x1081ee8f
test ebx, ebx
je 0x1081ef0b
xor eax, eax
cmp dword [eax*4 + 0x118279a8], 0
je 0x1081eefe
inc eax
cmp eax, 0x40
jb 0x1081eeec
jmp 0x1081ef0b
inc dword [0x11827aa8]
mov dword [eax*4 + 0x118279a8], ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1081ef5b
mov esp, ebp
pop ebp
ret

Function at 0x1082c088
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1082bf8d
Function at 0x10836bd5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x402e7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040451c
test esi, esi
jne 0x402eb3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040460c
jmp 0x402ed4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d18
mov dword [esp], eax
test esi, esi
je 0x402ed4
cmp dword [ebx], 0
je 0x402ed4
dec esi
jmp 0x402ebb
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x469020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403618
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035f8
xor eax, eax
push ebp
push 0x4035f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403634
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x469020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x469020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40431c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b04c], 0
je 0x40437d
cmp word [0x46b220], 0xd7b2
jne 0x404345
cmp dword [0x46b228], 0
jbe 0x404345
mov eax, 0x46b21c
call dword [0x46b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46906c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x469030], 0
jne 0x404399
push 0
push 0x469064
push 0x46906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ab8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044a0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc