joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017750
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
xor edx, 0x811c9dc5
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul edx, edx, 0x1000193
xor edx, eax
imul edx, edx, 0x1000193
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov esi, dword [edi + 0x14]
mov ecx, esi
and ecx, edx
cmp dword [edi + 0x18], ecx
ja 0x100177b3
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov eax, dword [edi + 8]
mov edi, dword [eax + ecx*8]
lea edx, [eax + ecx*8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov ecx, dword [ecx]
mov eax, edi
cmp edi, ecx
jne 0x100177ce
mov edx, ecx
jmp 0x100177d3
mov edx, dword [edx + 4]
mov edx, dword [edx]
cmp eax, edx
je 0x1001782e
mov edx, dword [eax + 8]
cmp edx, dword [ebx]
je 0x100177e5
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
jmp 0x100177c6
mov edx, dword [ebx]
mov ebx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 8], edx
nop
cmp edi, ecx
jne 0x100177f8
mov edx, ecx
jmp 0x100177fd
mov edx, dword [ebx + 4]
mov edx, dword [edx]
cmp eax, edx
je 0x1001780d
mov edx, dword [ebp - 8]
cmp edx, dword [eax + 8]
jne 0x1001780d
mov eax, dword [eax]
jmp 0x100177f0
cmp esi, eax
je 0x1001782e
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ecx], esi
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 8
Function at 0x10018a10
Capabilities:
Empty the recycle bin

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10074398
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 4]
mov dword [esp + 0x14], eax
lea edi, [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x18], 1
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x3c]
mov dword [esp + 0x30], 0
call fcn.10017750
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xor edx, edx
cmp ecx, eax
je 0x10018b1e
jmp 0x10018a80
mov ecx, dword [ecx]
inc edx
cmp ecx, eax
jne 0x10018a80
test edx, edx
je 0x10018b1e
cmp dword [ebp + 8], 1
jne 0x10018aac
push 7
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 6
jmp 0x10018b23
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x3c]
mov dword [esp + 0x14], 0
call fcn.10003c10
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 0x3c]
jne 0x10018ad9
push str.invalid_unordered_map_K__T__key
call dword [sym.imp.MSVCP110.dll_void___cdecl_std::_Xout_of_range_char_const__]
push 0
push 0x1009f5e4
push 0x1009e5f0
push 0
push dword [eax + 0xc]
call sub.MSVCR110.dll___RTDynamicCast
add esp, 0x14
mov esi, eax
push edi
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.10018070
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a770
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], ebx
mov ecx, dword [edi]
cmp edx, dword [ecx]
jne 0x1001a7b9
cmp dword [ebp + 0x10], ecx
jne 0x1001a7b9
mov ecx, edi
call fcn.10003af0
mov ecx, dword [edi]
pop edi
mov ecx, dword [ecx]
mov dword [ebx], ecx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 0xc
cmp edx, dword [ebp + 0x10]
je 0x1001a879
push esi
mov eax, edx
mov edx, dword [edx]
mov dword [ebp + 0xc], edx
movzx esi, byte [eax + 8]
movzx ecx, byte [eax + 9]
xor esi, 0x811c9dc5
imul esi, esi, 0x1000193
xor esi, ecx
movzx ecx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, ecx
movzx ecx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, ecx
mov ecx, dword [edi + 0x14]
imul esi, esi, 0x1000193
mov ebx, ecx
and ebx, esi
cmp dword [edi + 0x18], ebx
ja 0x1001a817
shr ecx, 1
mov dword [ebp - 8], ecx
or ecx, 0xffffffff
sub ecx, dword [ebp - 8]
add ebx, ecx
mov ecx, dword [edi + 8]
cmp dword [ecx + ebx*8 + 4], eax
lea esi, [ecx + ebx*8]
jne 0x1001a83e
cmp dword [esi], eax
jne 0x1001a836
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 8]
mov ecx, dword [edi]
mov dword [edx + ebx*8 + 4], ecx
jmp 0x1001a846
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
jmp 0x1001a846
cmp dword [esi], eax
jne 0x1001a849
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [ebp + 0xc]
cmp eax, dword [edi]
je 0x1001a86c
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push eax
mov dword [edx + 4], ecx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov edx, dword [ebp + 0xc]
add esp, 4
dec dword [edi + 4]
cmp edx, dword [ebp + 0x10]
jne 0x1001a7c3
mov ebx, dword [ebp - 0xc]
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx], edx
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001b520
Capabilities:
Delete file

Disassembly:
cmp byte [ecx + 0x14], 0
mov ecx, dword [ecx + 0x10]
je 0x1001b53d
add ecx, 0x58
mov dl, 1
call fcn.10058c20
mov cl, al
xor eax, eax
test cl, cl
sete al
ret
mov edx, dword [ecx + 0x40]
test edx, edx
je 0x1001b576
mov eax, dword [edx]
or eax, dword [edx + 4]
je 0x1001b576
mov eax, dword [edx + 0x10]
test eax, eax
je 0x1001b562
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x1001b562
mov edx, eax
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x1001b552
lea ecx, [edx + 0x58]
mov dl, 1
call fcn.10058c20
mov cl, al
xor eax, eax
test cl, cl
sete al
ret
cmp dword [ecx + 0x3c], 8
lea eax, [ecx + 0x28]
jb 0x1001b581
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete cl
xor eax, eax
test cl, cl
sete al
ret
Function at 0x1001f570
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007589c
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x21
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
movlpd qword [ebp - 0x220], xmm0
mov dword [ebp - 4], 0
push 5
xor eax, eax
push str..txt
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
call fcn.10003de0
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
cmp word [ebp - 0x218], ax
jne 0x1001f65d
xor ecx, ecx
jmp 0x1001f675
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001f666
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x254]
call fcn.10003de0
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.10012440
cmp dword [ebp - 0x240], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x1001f6bf
push dword [ebp - 0x254]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
jb 0x1001f6f0
push dword [ebp - 0x26c]
call esi
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x230]
push dword [ebp - 0x21c]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x22c]
push dword [ebp - 0x220]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x23c]
push eax
push 0x7d4
mov ecx, edi
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
call fcn.1001f320
mov edi, dword [ebp - 0x23c]
test edi, edi
je 0x1001f771
push dword [ebp - 0x238]
push edi
call fcn.1000db40
push edi
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x10022900
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100756cc
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
mov dword [ebp - 4], eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [ebp - 0x218], 0
jne 0x1002298f
xor ecx, ecx
jmp 0x100229af
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x100229a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100229a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x26c]
call fcn.10003de0
cmp dword [ebp - 0x258], 8
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x26c]
cmovae eax, dword [ebp - 0x26c]
push eax
call edi
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp eax, 1
jne 0x10022b5a
push str.MacromediaFlash_PlayerSharedObjects
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x254]
call fcn.10058b60
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
call edi
cmp eax, 1
jne 0x10022b29
push 0x20
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x10022a5f
push 0x7e3
mov ecx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.1002bd30
mov edi, eax
jmp 0x10022a61
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
movlpd qword [ebp - 0x220], xmm0
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.100126d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x230]
push dword [ebp - 0x21c]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x22c]
push dword [ebp - 0x220]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x23c]
push eax
mov ecx, edi
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
call fcn.1002be10
push edi
push 0x7e3
mov ecx, ebx
call fcn.1001f0a0
mov edi, dword [ebp - 0x23c]
test edi, edi
je 0x10022b29
push dword [ebp - 0x238]
push edi
call fcn.1000db40
push edi
call esi
add esp, 4
cmp dword [ebp - 0x240], 8
jb 0x10022b3d
push dword [ebp - 0x254]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
cmp dword [ebp - 0x258], 8
jb 0x10022b6e
push dword [ebp - 0x26c]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x10024920
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub edx, edi
sar edx, 1
mov esi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x10024951
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edx
jb 0x10024940
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x10025690
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074b6e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.100259f0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.100259f0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x100257a4
test dl, 0x10
jne 0x100257a4
mov eax, 1
jmp 0x100257a6
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.10025840
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x100305d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100305e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10030624
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10030620
lea ebx, [ebx]
cmp esi, edx
jae 0x10030624
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10030610
cmp esi, edx
jb 0x1003062b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10038480
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10038542
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1003853b
lea esp, [esp]
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x100384f9
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100384d0
jmp 0x1003853b
push dword [ebp - 0x228]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1003853b
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10038534
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 8
Function at 0x10038f80
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10038fa5
xor eax, eax
pop edi
ret
push esi
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10038fca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
ret
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x10038ff0
mov eax, 0x5a4d
push ecx
cmp word [ecx], ax
je 0x10039001
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [ecx + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x10038fea
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
ret
Function at 0x1003e1f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10079828
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x1003e34a
cmp byte [edi + 0x45], 0
je 0x1003e34a
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1003e250
xor al, al
jmp 0x1003e34c
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea esi, [edi + 0x48]
lea ebx, [ebx]
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp ebx, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
push esi
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1003e2d1
dec eax
je 0x1003e2d5
sub eax, 2
je 0x1003e330
xor bl, bl
jmp 0x1003e332
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ebx, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub esi, eax
je 0x1003e30d
push dword [edi + 0x50]
lea eax, [esp + 0x1c]
push esi
cmp ebx, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1003e2cd
cmp byte [edi + 0x45], 0
je 0x1003e330
test esi, esi
lea esi, [edi + 0x48]
jne 0x1003e290
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.1003e140
jmp 0x1003e287
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x1003e346
push dword [esp + 0x18]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x1003e34c
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x1003fc70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x234], 0
test edi, edi
jne 0x1003fca5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1003fcde
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call ebx
test eax, eax
je 0x1003fd38
lea ecx, [ecx]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1003fd2c
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call ebx
test eax, eax
jne 0x1003fd00
jmp 0x1003fd38
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x10045d30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10078406
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
push ebx
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0
call fcn.1005cd10
mov dword [esp + 0x278], 0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x10045e8e
test eax, eax
js 0x10045e83
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
mov dword [esp + 0x1c], 0
call fcn.1005c530
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x27c], 1
call fcn.10045ec0
test al, al
je 0x10045dee
push 0
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, edi
call fcn.1004bcb0
mov byte [esp + 0x278], 0
cmp dword [esp + 0x48], 8
jb 0x10045e06
push dword [esp + 0x34]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
jb 0x10045e2d
push dword [esp + 0x18]
call esi
add esp, 4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
dec eax
mov dword [esp + 0x58], eax
test ecx, ecx
je 0x10045e77
test eax, eax
js 0x10045e77
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x70]
push edx
push eax
push ecx
mov dword [esp + 0x30], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x54]
test eax, eax
mov eax, dword [esp + 0x58]
je 0x10045da0
xor edx, edx
mov word [esp + 0x5c], dx
jmp 0x10045da0
test ecx, ecx
je 0x10045e8e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4