joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010a0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x12c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
cmp eax, 0x104
jb 0x1000111b
mov edi, dword [0x10018194]
jae 0x100010c2
call fcn.100070f7
mov ecx, esi
call fcn.10002cc0
mov eax, dword [esi + 8]
lea ecx, [eax - 0x104]
cmp ecx, edi
jae 0x100010d8
mov edi, ecx
test edi, edi
jbe 0x1000112c
mov ecx, dword [esi + 4]
sub eax, edi
sub eax, 0x104
push eax
lea eax, [ecx + edi + 0x104]
add ecx, 0x104
push eax
push ecx
call fcn.100097a0
mov ebx, dword [esi + 8]
add esp, 0xc
sub ebx, edi
mov ecx, esi
push 0
push ebx
call fcn.10002ba0
test al, al
je 0x1000112c
push ebx
mov ecx, esi
call fcn.10002b80
jmp 0x1000112c
mov ecx, 0x104
push 0
sub ecx, eax
push ecx
mov ecx, esi
call fcn.10002340
mov eax, dword [esi + 4]
test eax, eax
je 0x1000115b
mov al, byte [eax - 1]
test al, al
je 0x1000114b
cmp al, 0xff
je 0x1000114b
mov edx, dword [esi + 8]
push 0
push edx
mov ecx, esi
call fcn.10002ba0
mov eax, dword [esi + 4]
test eax, eax
je 0x10001156
mov byte [eax - 1], 0xff
mov eax, dword [esi + 4]
jmp 0x10001160
mov eax, 0x10018190
push eax
call fcn.100067a0
add esp, 4
test eax, eax
jne 0x10001187
push eax
push eax
push str.Failed_to_generate_configuration_filename
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x10001193
mov eax, 0x10018190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x100011da
mov esi, dword [esi + 4]
test esi, esi
jne 0x100011aa
mov esi, 0x10018190
push esi
lea eax, [esp + 0x10]
push str.Failed_to_find_configuration_file___s_.
push eax
call fcn.10009742
add esp, 0xc
lea ecx, [esp + 0xc]
push 0
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x12c
ret

Function at 0x100011f0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
jne 0x100011fc
mov eax, 0x10018190
mov ecx, dword [esp + 4]
mov edx, dword [str.Rebuilder]
push eax
mov eax, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 8
Function at 0x10001220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10016a0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x84]
mov dword [esp + 8], ebx
mov dword [esp + 0x34], 0x100181d0
call fcn.10002930
mov dword [esp + 0x84], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 8], 1
push ebx
push 1
lea eax, [esp + 0x40]
push ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xd0], ebx
call fcn.10002780
lea ecx, [esp + 0x38]
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x38]
call fcn.10002e10
push 2
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc4], 2
mov dword [esp + 0x3c], 0x1001819c
call fcn.10002fa0
push eax
push ebx
push ebx
lea ecx, [esp + 0x44]
call fcn.10002ec0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x34], 0x10018198
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0xc0], 3
push ecx
lea ecx, [esp + 0x38]
call fcn.10001680
lea edx, [esp + 0x10]
lea ecx, [esp + 0x34]
push edx
call fcn.10001c60
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0xcc], 4
call fcn.10001470
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x1000132f
mov eax, 0x10018190
push eax
call fcn.10009ad5
mov eax, dword [esp + 0x28]
add esp, 4
fstp dword [esp + 8]
cmp eax, ebx
je 0x10001361
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10001358
cmp al, 0xff
je 0x10001358
dec al
mov byte [ecx], al
jmp 0x10001361
push ecx
call fcn.10006ec0
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
cmp eax, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x10001392
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10001389
cmp al, 0xff
je 0x10001389
dec al
mov byte [ecx], al
jmp 0x10001392
push ecx
call fcn.10006ec0
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx + 4]
lea eax, [esp + 0x84]
mov dword [esp + 0xc], eax
mov dword [esp + edx + 0x34], 0x10018198
mov ebx, 5
lea eax, [esp + 0x38]
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x1001819c
lea ecx, [esp + 0x38]
mov byte [esp + 0xc0], 6
call fcn.10002b50
lea ecx, [esp + 0x38]
mov byte [esp + 0xc0], bl
call fcn.100018d0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc0], 0xffffffff
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x84]
mov dword [esp + edx + 0x34], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x84], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
call fcn.100074a8
mov ecx, dword [esp + 0xb8]
pop esi
fld dword [esp + 4]
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret 8
Function at 0x10001470
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10016a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
lea ecx, [esp + 0x14]
push edi
mov dword [esp + 0x14], edi
mov byte [esp + 0x18], al
call fcn.10002730
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
cmp eax, 0x64
jb 0x100014c7
mov ecx, dword [0x10018194]
push ecx
push 0x64
lea ecx, [esp + 0x1c]
call fcn.10002610
jmp 0x10001520
mov edx, dword [0x10018194]
mov esi, 0x64
sub esi, eax
sub edx, eax
cmp edx, esi
ja 0x100014df
call fcn.10006ecb
cmp esi, edi
jbe 0x10001520
mov eax, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.10002ba0
test al, al
je 0x10001520
mov edx, dword [esp + 0x18]
mov ecx, esi
mov esi, dword [esp + 0x1c]
xor eax, eax
push ebp
lea edi, [esi + edx]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x18]
call fcn.10002b80
mov eax, dword [ebx + 4]
mov esi, 0x10018190
test eax, eax
je 0x1000152e
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10001564
mov cl, byte [eax - 1]
test cl, cl
je 0x10001556
cmp cl, 0xff
je 0x10001556
mov eax, dword [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.10002ba0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10001569
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x18]
jmp 0x10001569
mov eax, 0x10018190
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x10001579
mov ecx, 0x10018190
mov edx, dword [esp + 0x38]
push esi
push 0x64
push eax
mov eax, dword [str.Rebuilder]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
jb 0x100015fd
mov edi, dword [0x10018194]
jae 0x100015a6
call fcn.100070f7
lea ecx, [esp + 0x14]
call fcn.10002cc0
mov eax, dword [esp + 0x1c]
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jae 0x100015bd
mov edi, ecx
test edi, edi
jbe 0x1000160b
mov ecx, dword [esp + 0x18]
sub eax, edi
sub eax, esi
lea edx, [ecx + edi]
push eax
add edx, esi
add ecx, esi
push edx
push ecx
call fcn.100097a0
mov esi, dword [esp + 0x28]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x14]
push 0
push esi
call fcn.10002ba0
test al, al
je 0x1000160b
push esi
lea ecx, [esp + 0x18]
call fcn.10002b80
jmp 0x1000160b
sub esi, eax
push 0
push esi
lea ecx, [esp + 0x1c]
call fcn.10002340
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x14]
push 0
mov ecx, esi
mov byte [esi], al
call fcn.10002730
mov ecx, dword [0x10018194]
lea edx, [esp + 0x14]
push ecx
push 0
push edx
mov ecx, esi
call fcn.10002410
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10001657
mov al, byte [ecx - 1]
test al, al
je 0x1000164d
cmp al, 0xff
je 0x1000164d
dec al
mov byte [ecx - 1], al
jmp 0x10001657
dec ecx
push ecx
call fcn.10006ec0
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x100065c0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10016cf8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.10006590
add esp, 4
test eax, eax
je 0x10006601
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov al, byte [esp + 0x28]
push edi
mov byte [esp + 0xc], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebx
push ecx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.10006890
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
cmp eax, ebx
pop edi
je 0x10006669
mov cl, byte [eax - 1]
cmp cl, bl
je 0x1000665b
cmp cl, 0xff
je 0x1000665b
mov ecx, dword [esp + 0x10]
push ebx
push ecx
lea ecx, [esp + 0x10]
call fcn.10002ba0
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x1000666e
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0xc]
jmp 0x1000666e
mov eax, 0x10018190
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x10006682
mov eax, 0x10018190
push eax
call fcn.100065c0
add esp, 4
test eax, eax
je 0x100066e1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp ecx, ebx
je 0x100066ce
mov al, byte [ecx - 1]
cmp al, bl
je 0x100066c4
cmp al, 0xff
je 0x100066c4
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
dec ecx
push ecx
call fcn.10006ec0
add esp, 4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x10006716
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000670c
cmp al, 0xff
je 0x1000670c
dec al
pop esi
mov byte [ecx - 1], al
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
dec ecx
push ecx
call fcn.10006ec0
add esp, 4
mov ecx, dword [esp + 0x18]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x10006730
Capabilities:
Get common file path

Disassembly:
push str.SHGetSpecialFolderPathA
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006759
mov ecx, dword [esp + 4]
push 1
push 0x1a
push ecx
push 0
call eax
ret
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Application_Data
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x10006960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push eax
push 0x40
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100069cf
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10006999
mov ecx, ebx
mov esi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100069b3
mov ecx, ebx
mov edi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x100069e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebp, ebp
je 0x10006a2a
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x10006b0b
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push 0x1c
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10006b0b
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
cmp eax, edx
jne 0x10006b0b
cmp dword [esp + 0x30], 0x1000
jne 0x10006afe
cmp dword [esp + 0x34], 1
je 0x10006afe
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
push 0x40
push ecx
push edx
call edi
test eax, eax
je 0x10006afe
mov eax, dword [esp + 0x2c]
mov edx, 0
sub eax, ebx
mov dword [esp + 0x1c], eax
je 0x10006ada
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x44]
add eax, edx
mov ecx, ebx
mov esi, eax
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x10006ad1
mov esi, dword [esp + 0x48]
mov ecx, ebx
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x50]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
inc ecx
test eax, eax
mov dword [esp + 0x10], ecx
jne 0x10006ada
mov eax, dword [esp + 0x1c]
inc edx
cmp edx, eax
jb 0x10006a96
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call edi
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
add esi, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
jmp 0x10006a1a
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x10006c90
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push 0x1c
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
mov ebp, edi
push edi
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10006d92
cmp dword [esp + 0x20], edi
jne 0x10006d92
cmp dword [esp + 0x2c], 0x1000
jne 0x10006d71
cmp dword [esp + 0x30], 1
je 0x10006d71
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10006d71
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
sub edi, ebx
mov eax, 0
je 0x10006d53
cmp byte [eax + esi], 0xe8
jne 0x10006d4a
mov ebp, dword [esp + 0x40]
lea edx, [eax + esi + 5]
lea ecx, [eax + esi + 1]
sub ebp, edx
cmp dword [ecx], ebp
jne 0x10006d4a
mov esi, dword [esp + 0x44]
sub esi, edx
inc ebx
mov dword [ecx], esi
mov esi, dword [esp + 0x1c]
add eax, 4
inc eax
cmp eax, edi
jb 0x10006d22
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push 0x1c
add ebp, ecx
lea ecx, [esp + 0x20]
push ecx
push ebp
push esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x10006cd7
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x10006da0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebp, dword [esp + 0x40]
mov ebx, eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push 0x1c
push eax
mov edi, ebp
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x10006ea7
cmp dword [esp + 0x24], ebp
jne 0x10006ea7
cmp dword [esp + 0x30], 0x1000
jne 0x10006e86
cmp dword [esp + 0x34], 1
je 0x10006e86
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10006e86
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
sub eax, ecx
mov ebx, 0
je 0x10006e5c
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov esi, edx
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x10006e56
inc ebx
inc edx
cmp ebx, eax
jb 0x10006e3a
mov esi, dword [esp + 0x10]
jmp 0x10006e5c
mov esi, edx
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
jne 0x10006ea7
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x20]
add edi, eax
push 0x1c
push edx
push edi
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x10006deb
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000ef1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000b89a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1000ef3f
test byte [esp + 8], 2
je 0x1000ef3f
call fcn.1000b90d
mov dword [eax], 0xd
call fcn.1000b916
mov dword [eax], 5
jmp 0x1000ef18
xor eax, eax
ret
Function at 0x407250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x407294
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x407263
jmp 0x407294
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x407284
pop esi
pop ebp
ret

Function at 0x407d22
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x407d57
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x407d81
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x407d81
test edi, edi
je 0x407d4e
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x407d4e
test edi, edi
je 0x407d89
mov eax, edi
jmp 0x407d50
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x407d50
int3
Function at 0x40a2cf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestQuickReturn.exe_gMozillaPoisonSize], eax
call fcn.00407d22
pop ecx
mov ecx, dword [sym.TestQuickReturn.exe_gMozillaPoisonSize]
mov dword [sym.TestQuickReturn.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40a307
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestQuickReturn.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x40107e
Capabilities:
Delete file
Manipulate console buffer
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.0040dce0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
xor ebx, ebx
cmp dword [0x449674], 0x594
push edi
mov dword [ebp - 0x14], ecx
jne 0x4010b6
push ebx
lea eax, [ebp - 0x844]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x43a338]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x43a33c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x38], 0x9e3779b9
call fcn.00401077
mov eax, dword [0x43a340]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x43a344]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 0x20
jmp 0x4010fb
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
cmp dword [0x449674], 0xc
mov dword [ebp - 4], eax
jne 0x401156
push ebx
lea eax, [ebp - 0x844]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push ebx
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosw word es:[edi], ax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x1044]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x449674]
cmp eax, 0xfa9
jne 0x401172
mov dword [0x449670], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401198
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4495c8], ebx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, edx
shr edx, cl
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [0x44966c], 0xf4ea3dee
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, esi
shr esi, cl
mov dword [ebp - 0x1c], eax
add esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
cmp dword [0x449674], 0xb03
jne 0x401211
push str.yacey_jutesepage_vomebawaridamuzixobonawodewagim
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor dword [ebp - 4], esi
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
sub dword [ebp - 8], eax
dec dword [ebp - 0x24]
jne 0x4010f8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4