joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001560
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x100015a6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100015a6
movzx ecx, word [eax + 0x18]
push esi
mov esi, 0x10b
cmp cx, si
jne 0x1000158e
lea eax, [eax + edx*8]
add eax, 0x78
pop esi
ret
mov esi, 0x20b
cmp cx, si
jne 0x100015a2
lea eax, [eax + edx*8]
add eax, 0x88
pop esi
ret
xor eax, eax
pop esi
ret
xor eax, eax
ret

Function at 0x100015b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
test esi, esi
jne 0x100015d3
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x100016e7
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x100016e7
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x100016e7
movzx ecx, word [eax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x10001607
add eax, 0x88
jmp 0x1000161a
mov edx, 0x20b
cmp cx, dx
jne 0x100016e7
add eax, 0x98
test eax, eax
je 0x100016e7
mov ecx, dword [eax]
test ecx, ecx
je 0x100016e7
cmp dword [eax + 4], 0
je 0x100016e7
movzx edx, word [ecx + esi + 0xe]
movzx eax, word [ecx + esi + 0xc]
push ebx
lea ebx, [ecx + esi]
mov ecx, 0
add edx, eax
je 0x100016de
test dword [ebx + ecx*8 + 0x10], 0x80000000
jne 0x10001684
cmp word [ebx + ecx*8 + 0x10], 0x10
jne 0x10001684
mov eax, dword [ebx + ecx*8 + 0x14]
test eax, eax
jns 0x10001684
and eax, 0x7fffffff
test dword [eax + ebx + 0x10], 0x80000000
jne 0x10001684
test dword [eax + ebx + 0x14], 0x80000000
jne 0x10001692
inc ecx
cmp ecx, edx
jb 0x10001651
mov eax, dword [ebp - 4]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [eax + ebx + 0x14]
xor edx, edx
and edi, 0x7fffffff
xor eax, eax
add edi, ebx
cmp ax, word [edi + 0xe]
jae 0x100016dd
lea esp, [esp]
cmp edx, 0x12c
je 0x100016dd
test dword [edi + edx*8 + 0x10], 0x80000000
jne 0x100016d4
mov eax, dword [edi + edx*8 + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ebx]
add eax, esi
inc dword [ebp - 4]
mov dword [ecx + edx*4], eax
movzx ecx, word [edi + 0xe]
inc edx
cmp edx, ecx
jb 0x100016b0
pop edi
mov eax, dword [ebp - 4]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002420
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1ff
lea eax, [ebp - 0x203]
mov byte [ebp - 0x204], 0
push 0
push eax
call fcn.1002aea0
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x10002496
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.10027734
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80000000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80000080
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
Function at 0x100195d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10049814]
test eax, eax
je 0x1001962c
cmp byte [eax + 0x65], 1
jne 0x100195fb
push 0
call fcn.10022db0
mov eax, dword [0x10049814]
test byte [eax + 0x6c], 1
je 0x1001962c
cmp dword [0x100484d8], 0xffffffff
mov dword [ebp - 8], 0x10000
je 0x1001962c
push 0x8000
lea eax, [ebp - 8]
push eax
push 0x100484d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x100484cc]
cmp dword [0x100492f8], 0
je 0x1001963f
mov ecx, 0x100492f4
call fcn.1001e770
cmp dword [0x10049338], 0
je 0x1001967b
mov eax, dword [0x10049334]
mov ecx, 0x10049334
push dword [eax + 4]
call fcn.1001eba0
mov eax, dword [0x10049334]
mov dword [eax + 4], eax
mov eax, dword [0x10049334]
mov dword [eax], eax
mov eax, dword [0x10049334]
mov dword [eax + 8], eax
mov dword [0x10049338], 0
cmp dword [0x10049340], 0
je 0x100196b7
mov eax, dword [0x1004933c]
mov ecx, 0x1004933c
push dword [eax + 4]
call fcn.1001ec00
mov eax, dword [0x1004933c]
mov dword [eax + 4], eax
mov eax, dword [0x1004933c]
mov dword [eax], eax
mov eax, dword [0x1004933c]
mov dword [eax + 8], eax
mov dword [0x10049340], 0
cmp dword [0x10049308], 0
je 0x100196ca
mov ecx, 0x10049304
call fcn.1001e770
cmp dword [0x10049348], 0
je 0x10019706
mov eax, dword [0x10049344]
mov ecx, 0x10049344
push dword [eax + 4]
call fcn.1001ec00
mov eax, dword [0x10049344]
mov dword [eax + 4], eax
mov eax, dword [0x10049344]
mov dword [eax], eax
mov eax, dword [0x10049344]
mov dword [eax + 8], eax
mov dword [0x10049348], 0
cmp dword [0x10049350], 0
je 0x10019742
mov eax, dword [0x1004934c]
mov ecx, 0x1004934c
push dword [eax + 4]
call fcn.1001ec00
mov eax, dword [0x1004934c]
mov dword [eax + 4], eax
mov eax, dword [0x1004934c]
mov dword [eax], eax
mov eax, dword [0x1004934c]
mov dword [eax + 8], eax
mov dword [0x10049350], 0
cmp dword [0x10049c38], 0
je 0x10019755
mov ecx, 0x10049c34
call fcn.1001e770
cmp byte [0x100484aa], 1
jne 0x10019770
push 0x100490b0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [0x100484aa], 0
push 0x1004931c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, str.ezbeat__mrsshr
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019783
sub ecx, edx
push ecx
push 0
push str.ezbeat__mrsshr
call fcn.1002aea0
mov ecx, 0x100474b0
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100197a4
sub ecx, edx
sar ecx, 1
push ecx
push 0
push 0x100474b0
call fcn.1002aea0
mov eax, dword [0x100484a0]
add esp, 0xc
test eax, eax
je 0x100197eb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x100484a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100484a0], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
Function at 0x10019800
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push 0x104
push 0x100490e0
push eax
xor bl, bl
mov dword [0x100484b0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x100490e0
call fcn.10027bae
mov edx, 0x100497c4
add esp, 8
lea ecx, [eax + 2]
sub edx, ecx
jmp 0x10019840
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10019840
push 0x5c
push 0x100490e0
call fcn.10027bae
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10019895
mov dword [ebp + 8], ecx
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ecx
lea ecx, [ebp + 8]
call fcn.10020fb0
test al, al
je 0x1001988e
mov eax, dword [ebp + 8]
mov dword [0x100492e8], eax
mov eax, dword [ebp + 0xc]
jmp 0x1001989d
mov al, bl
pop ebx
pop ebp
ret 0xc
mov dword [0x100492e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x100492ec], eax
call fcn.10021680
push 0x208
push 0
push 0x100495bc
call fcn.1002aea0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x100495bc
mov ecx, eax
call fcn.10021160
push 0x100497ec
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
push 0x100492f0
mov word [0x100484a8], ax
call fcn.10021940
add esp, 4
neg al
sbb al, al
and byte [0x100492f0], al
mov al, 1
pop ebx
pop ebp
ret 0xc
Function at 0x1001c080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1001c191
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1001c191
push edi
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x1001c190
mov edx, dword [edi + 0x28]
add edx, esi
je 0x1001c190
mov ecx, esi
call fcn.10001370
add eax, esi
cmp eax, esi
je 0x1001c190
cmp dword [edi], 0x4550
je 0x1001c0ec
or ecx, 0xffffffff
jmp 0x1001c0ef
mov ecx, dword [edi + 0x38]
mov edx, dword [eax + 0xc]
mov edi, dword [eax + 8]
add edx, esi
mov dword [ebp - 0x28], edx
mov eax, edi
xor edx, edx
div ecx
test edx, edx
je 0x1001c108
sub edi, edx
add edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x28]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
movdqu xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
lea esp, [esp]
mov eax, dword [ebp - 0x24]
push 0x1c
test eax, eax
jne 0x1001c142
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
jmp 0x1001c149
lea edx, [ebp - 0x24]
add eax, esi
push edx
push eax
call ecx
cmp dword [ebp - 0x18], edi
mov esi, edi
mov eax, dword [ebp - 0x10]
cmovbe esi, dword [ebp - 0x18]
sub eax, 2
je 0x1001c179
sub eax, 2
je 0x1001c171
sub eax, 4
jne 0x1001c185
lea eax, [ebp - 8]
push eax
push 0x80
jmp 0x1001c17f
lea eax, [ebp - 8]
push eax
push 0x40
jmp 0x1001c17f
lea eax, [ebp - 8]
push eax
push 0x20
push esi
push dword [ebp - 0x24]
call ebx
mov ecx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub edi, esi
jne 0x1001c130
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10026980
mov esp, ebp
pop ebp
ret
Function at 0x1001c660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 0x55], 0
call ebx
test eax, eax
jne 0x1001c6ad
push edi
push str._bSyae__Source_FileNotExist_:__S__n
call fcn.10002420
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret 8
push esi
call ebx
test eax, eax
jne 0x1001c6bc
push esi
push str._bSyae__Target_FileNotExist_2_:__S__n
jmp 0x1001c690
push 0x30
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0xaac56b
movdqu xmmword [ebp - 0x24], xmm0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], 0x10
push 0
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x11d0cd44
mov dword [ebp - 0xc], 0xc000c28c
mov dword [ebp - 8], 0xee95c24f
call fcn.1002aea0
add esp, 0xc
mov dword [ebp - 0x54], 0x30
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x48], 2
push eax
push 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov edi, eax
xor bl, bl
cmp edi, 0x800b0100
jg 0x1001c7cb
je 0x1001c790
cmp edi, 0x80092026
je 0x1001c789
cmp edi, 0x800b0004
jne 0x1001c7d7
push str.The_signature_is_present__but_not_trusted._n
jmp 0x1001c7fe
push str.CRYPT_E_SECURITY_SETTINGS___The_hash_representing_the_subject_or_the_publisher_wasnt_explicitly_trusted_by_the_admin_and_admin_policy_has_disabled_user_trust._No_signature__publisher_or_timestamp_errors._n
jmp 0x1001c7fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x800b0100
je 0x1001c7bb
cmp eax, 0x800b0003
je 0x1001c7bb
cmp eax, 0x800b0001
je 0x1001c7bb
push esi
push str.An_unknown_error_occurred_trying_to_verify_the_signature_of_the___s__file._n
call fcn.100271e4
add esp, 8
jmp 0x1001c806
push esi
push str.The_file___s__is_not_signed._n
call fcn.100271e4
add esp, 8
jmp 0x1001c806
cmp edi, 0x800b0111
je 0x1001c7f9
test edi, edi
je 0x1001c7e7
push edi
push str.Error_is:_0x_x._n
call fcn.100271e4
add esp, 8
jmp 0x1001c806
push esi
push str.The_file___s__is_signed_and_the_signature_was_verified._n
call fcn.100271e4
add esp, 8
mov bl, 1
jmp 0x1001c815
push str.The_signature_is_present__but_specifically_disallowed._n
call fcn.100271e4
add esp, 4
push edi
push esi
push str._bSyae__WinVerifyTrust_check_failed_:__S___0x_x___n
call fcn.10002420
add esp, 0xc
lea eax, [ebp - 0x54]
mov dword [ebp - 0x38], 2
push eax
lea eax, [ebp - 0x14]
push eax
push 0
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
test bl, bl
jne 0x1001c698
push esi
push str._bSyae__Signature_check_failed_:__S__n
call fcn.10002420
mov ecx, dword [ebp - 4]
add esp, 8
mov al, byte [ebp - 0x55]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10026980
mov esp, ebp
pop ebp
ret 8
Function at 0x1001daa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0x1000
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x41334754
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
jne 0x1001db65
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 1
jne 0x1001db65
lea eax, [ebp - 0x14]
push eax
push 0x1100
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp eax, 1
jne 0x1001db46
push 0
push 0
push 0
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001db36
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001db46
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push esi
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026980
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1001dc60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor al, al
mov ebx, ecx
test edi, edi
je 0x1001dd1e
push esi
push 0x5c
push ebx
call fcn.1002774f
mov esi, eax
xor eax, eax
sub esi, ebx
mov word [edi], ax
shr esi, 1
push esi
push str.CSIDL_APPDATA
push ebx
call fcn.10028417
add esp, 0x14
test eax, eax
jne 0x1001dca8
push eax
push 0x1a
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1001dce6
push esi
push str.TEMP
push ebx
call fcn.10028417
add esp, 0xc
test eax, eax
jne 0x1001dce6
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001dcd0
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [edi + ecx*2 - 2], ax
cmp word [edi], 0
je 0x1001dd1b
lea edx, [ebx + esi*2]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001dcf1
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001dd01
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, 1
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10021060
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edi
lea ecx, [esi + 2]
lea ecx, [ecx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021080
sub esi, ecx
mov ebx, 0
sar esi, 1
je 0x1002112e
lea eax, [ebp - 0x20a]
mov edx, 2
lea ecx, [ebp - 0x20c]
sub eax, edi
sub ecx, edi
mov dword [ebp - 0x218], eax
sub edx, edi
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], edx
movzx eax, word [edi]
mov word [ecx + edi], ax
cmp eax, 0x5c
je 0x100210d4
cmp eax, 0x2f
jne 0x10021126
lea eax, [edx + edi]
cmp eax, 0x208
jae 0x10021154
mov eax, dword [ebp - 0x218]
xor ecx, ecx
mov word [eax + edi], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002111a
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1002111a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10021141
mov ecx, dword [ebp - 0x214]
mov edx, dword [ebp - 0x210]
inc ebx
add edi, 2
cmp ebx, esi
jb 0x100210c3
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026980
mov esp, ebp
pop ebp
ret
call fcn.1002801f
int3

Function at 0x10021380
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x424
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x430], 0
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.1002aea0
add esp, 0xc
xor ebx, ebx
push esi
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100213df
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1002143a
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10021406
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
push edi
call fcn.1002869f
add esp, 0xc
test eax, eax
je 0x10021454
lea eax, [ebp - 0x430]
push eax
push esi
call ebx
test eax, eax
jne 0x10021401
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026980
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x41c]
jmp 0x1002143a
Function at 0x100214c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov dword [ebp - 0x238], edx
mov esi, ecx
mov byte [ebp - 0x231], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100215e3
push ebx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1002153e
lea esp, [esp]
cmp esi, dword [ebp - 0x228]
je 0x10021538
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x10021520
jmp 0x1002153e
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x230], 0x22c
jmp 0x10021550
lea eax, [ebp - 0x230]
mov byte [ebp - 0x232], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100215a8
lea esp, [esp]
cmp esi, dword [ebp - 0x228]
je 0x10021588
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x10021570
jmp 0x100215a8
lea eax, [ebp - 0x20c]
mov byte [ebp - 0x232], 1
push eax
push dword [ebp - 0x238]
call fcn.10028531
add esp, 8
test eax, eax
je 0x100215b9
cmp byte [ebp - 0x232], 0
mov esi, dword [ebp - 0x218]
jne 0x10021550
jmp 0x100215c0
mov byte [ebp - 0x231], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x231], 1
pop ebx
jne 0x100215e3
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10026980
mov esp, ebp
pop ebp
ret

Function at 0x10021600
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push str.GlobalBFURLSM
push 0
push 6
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x10021650
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10021632
xor eax, eax
pop esi
pop ebp
ret
push str.GlobalBFURLSM
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x1002162d
push edi
push 0x400
push 0
push 0
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x10021672
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10021680
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.NtAllocateVirtualMemory
push 0x10042270
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtFreeVirtualMemory
push 0x10042270
mov dword [0x100484c0], eax
call edi
push eax
call esi
push str.NtQueryInformationProcess
push 0x10042270
mov dword [0x100484cc], eax
call edi
push eax
call esi
push str.NtQueryInformationThread
push 0x10042270
mov dword [0x100484b8], eax
call edi
push eax
call esi
push str.NtUnmapViewOfSection
push 0x10042270
mov dword [0x100484c4], eax
call edi
push eax
call esi
push str.IsWow64Process
push str.kernel32.dll
mov dword [0x100484c8], eax
call edi
push eax
call esi
push str.IsWow64Process2
push str.kernel32.dll
mov dword [0x100484d0], eax
call edi
push eax
call esi
pop edi
mov dword [0x100484bc], eax
pop esi
ret

Function at 0x100217b0
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov edi, edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10021844
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
xor ecx, ecx
mov dword [ebp - 0x10], eax
push 0
test edi, edi
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
cmove eax, ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
cmp eax, 1
jne 0x10021844
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026980
mov esp, ebp
pop ebp
ret

Function at 0x10021dd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
add edi, 0xffff0000
lea ebx, [ebx]
push 0x40
push 0x3000
push 0x10000
push edi
call ebx
test eax, eax
jne 0x10021e72
inc esi
sub edi, 0x10000
cmp esi, 0x64
jbe 0x10021df0
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10021e25
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10021e1c
mov eax, dword [eax + ecx + 0x50]
mov edx, eax
and edx, 0xffff
je 0x10021e46
sub eax, edx
add eax, 0x10000
lea edi, [ecx + 0x10000]
mov esi, 1
add edi, eax
push 0x40
push 0x3000
push 0x10000
push edi
call ebx
test eax, eax
jne 0x10021e72
inc esi
add edi, 0x10000
cmp esi, 0x64
jbe 0x10021e53
pop edi
pop esi
pop ebx
pop ebp
ret 8