joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ad50
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a78f5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x160]
push esi
lea ecx, [ebp - 0x10]
call fcn.004023e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 5
push str..part
call fcn.004021c0
lea ecx, [ebp - 0x10]
call fcn.0040d760
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test al, al
je 0x45adb3
push dword [ebp - 0x10]
call edi
mov ecx, esi
call fcn.0040d760
test al, al
je 0x45adc2
push dword [esi]
call edi
push 0x5c
push dword [esi]
call fcn.004788ca
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x45ae14
sub eax, dword [esi]
sar eax, 1
cmp eax, edi
je 0x45ae14
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00409830
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ae14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x45ae33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x460690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8f45
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00460890
mov ecx, dword [esi + 0x10]
mov edi, eax
cmp dword [ecx - 0xc], 0
je 0x460734
mov eax, dword [esi + 4]
cmp eax, 6
je 0x4606e6
cmp eax, 7
je 0x4606e6
cmp eax, 8
je 0x4606e6
cmp eax, 9
je 0x4606e6
cmp eax, 0x12
jne 0x460734
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x3c], xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x8400
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call fcn.00427020
cmp byte [eax + 0x1c], 0
je 0x460829
call fcn.00427020
test byte [eax + 0x20], 8
je 0x460829
call fcn.00427020
mov ebx, eax
call fcn.00404130
test eax, eax
je 0x460877
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x18
push 0x4c1758
call fcn.004021c0
push dword [esi + 4]
lea ecx, [ebp - 0x14]
call fcn.00426bf0
mov esi, eax
push 0xf
push str.._Return_code:
mov ecx, esi
call fcn.004021c0
push edi
mov ecx, esi
call fcn.00426bf0
mov esi, eax
call fcn.00404130
test eax, eax
je 0x460877
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
push 0
push 0x4bc000
call fcn.004021c0
push ecx
push esi
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00427310
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46080a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x460829
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x460863
cmp edi, 0xe0000011
je 0x460863
cmp edi, 0xe0000027
je 0x460863
cmp edi, 0xe0000008
je 0x460863
cmp edi, 0x4c7
je 0x460863
cmp edi, 0x642
je 0x460863
cmp edi, 0xe0000029
je 0x460863
push edi
call fcn.004675b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022e0
int3
Function at 0x4620a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9460
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x18]
lea edi, [esi + 0x14]
push edi
lea ecx, [ebx + 0x18]
call fcn.00408560
mov ecx, ebx
call fcn.0044efe0
push edi
lea ecx, [esi + 0x64]
call fcn.00408560
mov edi, esi
lea ecx, [esi + 0x4c]
mov dword [edi + 0x50], ebx
call fcn.0044f2f0
test al, al
jne 0x462138
movzx eax, byte [edi + 0x11d]
mov ecx, dword [edi + 0x60]
push eax
push 1
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x46211f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00473500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
push 0
push 0
call fcn.00473600
lea eax, [ebp - 0x30]
mov dword [ebp - 0x48], 0x4bd630
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4c00dc
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x48], 0x4bd640
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push esi
call fcn.00462940
mov eax, dword [ebp - 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46220e
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push eax
call edi
test eax, eax
je 0x462204
mov esi, dword [ebp + 8]
jmp 0x462210
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x462210
xor esi, esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], 0x4bd640
test eax, eax
je 0x462263
push dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x40], 0xffffffff
je 0x46225a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x44]
call edi
test eax, eax
je 0x46225a
cmp dword [ebp + 8], 0x103
jne 0x46225a
push 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.004622a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00432aa0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4622a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a94c4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
add eax, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov edx, dword [eax]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462300
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
call fcn.004679c0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.00407f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.00407f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x463200
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x5c
push 0xffffffffffffffff
push 0x4a98a3
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x50], 0x4bfb78
mov dword [ebp - 0x50], 0x4bfcc4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
add eax, 0xe0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x4bc22c
mov word [ebp - 0x24], 0x101
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 2
cmp byte [ecx + 0x80], 0
je 0x4632b8
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.0043e2c0
jmp 0x46340f
lea eax, [ebp - 0x50]
mov dword [ebp + 0x44], 0x4bd630
mov dword [ebp + 0x44], 0x4bd640
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xffffffff
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x58], 0
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov dword [ebp + 4], 0
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x14], 0
mov byte [ebp - 4], 5
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov byte [ebp - 4], 8
lea eax, [ebp + 0x44]
mov dword [ebp + 0x20], 0x4bc1d4
mov dword [ebp + 0x20], 0x4bc1a8
mov dword [ebp], 0x4c0ab0
mov dword [ebp + 0x20], 0x4c0a84
mov byte [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], eax
movups xmmword [ebp + 0x34], xmm0
mov byte [ebp - 4], 9
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x463370
call fcn.0047605e
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x463370
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46339d
push 0
push 0
push eax
call fcn.00476160
lea eax, [ebp]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00433a00
push 0
push 0x43bfc0
push esi
push 0x6e
push dword [0x4dc394]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov dword [ebp + 0x64], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4633b8
push eax
call fcn.0047610a
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x44], 0x4bd640
test eax, eax
je 0x46340f
push dword [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x4c], 0xffffffff
je 0x463406
lea eax, [ebp + 0x64]
mov dword [ebp + 0x64], 0
push eax
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x463406
cmp dword [ebp + 0x64], 0x103
jne 0x463406
push 0
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x3c]
call fcn.00408150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00408150
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
lea esp, [ebp + 0x5c]
pop ebp
ret 4
Function at 0x46add0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4aadd5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4db064]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x46ae78
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x46ae78
call fcn.004694b0
mov edi, eax
jmp 0x46af80
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x46ae95
call fcn.004694b0
jmp 0x46af73
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x46aeb0
call fcn.004694b0
jmp 0x46af73
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x46aece
mov edi, 0x8007000e
jmp 0x46af75
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x46afc2
jb 0x46aef2
cmp eax, 0xffffffff
ja 0x46afc2
cmp eax, 0x400
jbe 0x46af0b
push eax
lea ecx, [ebp]
call fcn.0040a0b0
mov dword [ebp - 4], 1
jmp 0x46af30
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x46af30
mov eax, dword [ebp]
test eax, eax
jne 0x46af3e
mov edi, 0x8007000e
jmp 0x46af75
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x46af59
call fcn.004694b0
jmp 0x46af73
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.0046ac70
mov edi, eax
test esi, esi
je 0x46af80
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x46af94
lea ecx, [ebp]
call fcn.0040a070
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00477280
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.004022e0
int3
Function at 0x46e190
Capabilities:
Create directory
Hash data with md5

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x4abb2d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4db064]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040d2f0
mov dword [ebp - 4], 0
mov ecx, edi
push eax
call fcn.00408560
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e206
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x46e215
xor al, al
jmp 0x46e2f0
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x46e313
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x10]
mov ecx, dword [esi]
push 0
call fcn.0040c490
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 4], 1
jle 0x46e25c
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00404770
mov esi, dword [ebp - 0x10]
xor eax, eax
mov byte [ebp + 0x68], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
cmp byte [esi], al
je 0x46e297
inc eax
cmp byte [eax + esi], 0
jne 0x46e290
push eax
push esi
lea ecx, [ebp]
call fcn.0040e600
lea ecx, [ebp]
call fcn.0040e6d0
lea ecx, [ebp]
call fcn.0040e6d0
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp]
call fcn.0040e7a0
lea eax, [ebp + 0x6c]
mov ecx, edi
push eax
call fcn.0040bef0
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46e2ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.00477280
lea esp, [ebp + 0x94]
pop ebp
ret
push 0x80004005
call fcn.004022e0
int3
Function at 0x46e320
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0xa50]
sub esp, 0xa50
push 0xffffffffffffffff
push 0x4abb7a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4db064]
xor eax, ebp
mov dword [ebp + 0xa4c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], ecx
push 0
push 2
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x28], 0x4ba518
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x46e38f
xor bl, bl
or edi, eax
jmp 0x46e4cc
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.004792b0
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46e4c5
nop dword [eax]
push dword [ebp + 8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x20], 0x4ba518
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0x410
test ebx, ebx
je 0x46e492
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x22c]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x46e492
lea eax, [ebp + 0x22c]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.004806e3
add esp, 8
test eax, eax
jne 0x46e492
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
cmp ecx, edx
jne 0x46e473
mov eax, dword [esi]
lea edi, [ebp + 8]
cmp edi, eax
jb 0x46e443
lea eax, [eax + edx*4]
cmp edi, eax
jb 0x46e511
mov eax, dword [esi]
test edx, edx
jne 0x46e44c
lea edi, [edx + 1]
jmp 0x46e45b
lea edi, [ecx + ecx]
test edi, edi
js 0x46e492
cmp edi, 0x1fffffff
ja 0x46e492
push 4
push edi
push eax
call fcn.0048087f
add esp, 0xc
test eax, eax
je 0x46e492
mov ecx, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [esi], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], ecx
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x46e48b
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ebp - 4], 1
inc dword [esi + 4]
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], 0x4ba518
test ebx, ebx
je 0x46e4af
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp - 0x18]
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46e3c0
cmp dword [esi + 4], 0
setg bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x4ba518
test edi, edi
je 0x46e4ec
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa4c]
xor ecx, ebp
call fcn.00477280
lea esp, [ebp + 0xa50]
pop ebp
ret
push 0x80004005
call fcn.004022e0
int3
Function at 0x46ea30
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 0x46fd90
mov dword [esp + 0x1c], 0
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x46ea79
push 0x64
call edi
inc esi
cmp esi, 0x14
jl 0x46ea47
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x46f600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abf85
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
push 0x22
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x20], 0x4bc098
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x46f709
push 0xa
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x46f709
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x46f73b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x46f6ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46f6ed
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x46f6ed
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.0042ecd0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041c3f0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46f6ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ebx, 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46f709
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4bc098
test edi, edi
je 0x46f729
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022e0
int3
Function at 0x473500
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac6ac
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4db064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0x4c281c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov byte [ebp - 4], 1
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 2
lea esi, [edi + 0x30]
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 4]
push dword [ebp + 8]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
mov dword [ebp + 0x10], esi
mov dword [esi], 0x4bfedc
call fcn.004023e0
mov byte [ebp - 4], 4
mov dword [edi + 0x38], 0x4c0ac0
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], 0
mov dword [ebp - 4], 0xffffffff
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 0xc