joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a4a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5617a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00480f20
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004865ad
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00487ac0
test eax, eax
je 0x44a5bc
mov ecx, dword [esp + 0x3c]
call fcn.004865da
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44a580
push edi
mov ecx, esi
call fcn.00483c4a
mov ecx, esi
call fcn.0044a760
cmp dword [esp + 0x38], 1
jne 0x44a5b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00483d85
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44c6e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44c713
push esi
call fcn.0045aa30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44c70c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44c799
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44c782
mov eax, dword [esi + 8]
test eax, eax
je 0x44c737
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44c77e
cmp eax, 2
je 0x44c782
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44c72a
cmp eax, 3
je 0x44c75d
cmp eax, 1
jne 0x44c72a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44c72a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44c72a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044c7c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44c7a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044c7c0
add esp, 4
pop esi
ret

Function at 0x44d040
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44d061
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44d061
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44d061
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x44d4b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x44d4bb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x44d5be
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5b83b0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5b83b0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5b83b0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5b83b0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5b83b0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5b83b0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5b83b0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5b83b0]
xor eax, edx
inc ecx
dec edi
jne 0x44d4d6
pop edi
test esi, esi
je 0x44d5e0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5b83b0]
xor eax, edx
inc ecx
dec esi
jne 0x44d5c2
pop esi
pop ebx
not eax
ret
Function at 0x468f20
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x468f67
mov edi, dword [esp + 0x10]
push edi
call fcn.0047f6b3
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.005470fe
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x468f9b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x468f9b
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x468f85
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x468f9b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00469060
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x468fce
cmp edi, 0x5a
jle 0x468fce
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x468fce
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x468ffd
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x469043
cmp ebx, 1
jge 0x469043
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x469043
mov al, byte [esi + 0x1d]
test al, al
jne 0x469043
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x469043
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x469043
mov al, byte [esi + 0x1d]
test al, al
je 0x469023
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00469060
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x46a220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x46a247
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.005470fe
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.0054e5dd
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.005470fe
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x46a27b
push esi
push ebx
push edi
mov ecx, ebp
call fcn.0046a350
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x46a290
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x642e40]
xor edx, edx
cmp eax, edx
jne 0x46a2b6
xor eax, eax
mov byte [eax + 0x642d40], al
inc eax
cmp eax, 0x100
jl 0x46a29e
mov dword [0x642e40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x642d40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x46a347
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46a31a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x46a2e8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x470cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56465e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00471610
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x604134
call fcn.0047f6b3
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x470d83
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047f6b3
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x470d7c
push 0
mov ecx, eax
call fcn.00467ec0
mov dword [esi + 0xc], eax
jmp 0x470d85
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x470d85
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x481d15
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x481d4d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047fdcd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047fda5
jmp 0x481d59
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x483407
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x483449
call fcn.00488eb0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x483449
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x483440
xor eax, eax
jmp 0x483451
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00483457
pop edi
pop esi
pop ebx
ret 4

Function at 0x4905e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561a00
mov eax, dword fs:[0]
push eax
push ecx
mov dword [ebp - 0x10], 0xcccccccc
mov eax, dword [0x634928]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x65a055
call fcn.0053954a
mov dword [ebp - 0x10], 0
jmp 0x490626
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x10]
jae 0x490649
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul ecx, dword [ebp + 8], 0x1000193
mov dword [ebp + 8], ecx
jmp 0x49061d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret

Function at 0x492df0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov ecx, 0x65a0ab
call fcn.0053954a
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x492e2d
xor eax, eax
jmp 0x492ebd
lea ecx, [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx]
mov dword [ebp - 0xc], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ecx, 0x1000
div ecx
test edx, edx
je 0x492e87
mov edx, dword [ebp - 0x14]
shr edx, 0xc
shl edx, 0xc
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp esi, esp
call fcn.0053951b
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x492eb7
xor eax, eax
jmp 0x492ebd
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
pop esi
add esp, 0x1c
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cefd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x634928]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov ecx, 0x65a2c2
call fcn.0053954a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4cf010
cmp dword [ebp + 0xc], 0
jg 0x4cf014
xor eax, eax
jmp 0x4cf03e
mov dword [ebp - 0x10], 0
mov esi, esp
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.0053951b
push edx
mov ecx, ebp
push eax
lea edx, [0x4cf06c]
call fcn.005394c7
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053957c
add esp, 0x14
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret 8

Function at 0x4cf1a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov ecx, 0x65a2c2
call fcn.0053954a
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4cf1d6
or eax, 0xffffffff
jmp 0x4cf212
mov dword [ebp - 8], 0
mov esi, esp
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.0053951b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4cf20f
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0053951b
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret

Function at 0x4cf540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x634928]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov ecx, 0x65a2c2
call fcn.0053954a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4cf57e
xor eax, eax
jmp 0x4cf5a8
mov dword [ebp - 0x10], 0
mov esi, esp
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.0053951b
push edx
mov ecx, ebp
push eax
lea edx, [0x4cf5d4]
call fcn.005394c7
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053957c
add esp, 0x14
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret 8
Function at 0x5040c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x634928]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x65a58e
call fcn.0053954a
cmp dword [ebp + 8], 0
je 0x5040f7
cmp dword [ebp + 0xc], 0
jne 0x5040fe
xor eax, eax
jmp 0x504250
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x2c], 0
mov esi, esp
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.0053951b
test eax, eax
jne 0x504141
jmp 0x504219
mov esi, esp
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp esi, esp
call fcn.0053951b
test eax, eax
jne 0x50416a
jmp 0x504219
mov esi, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp esi, esp
call fcn.0053951b
test eax, eax
jne 0x504190
jmp 0x504219
mov esi, esp
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 2
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.0053951b
test eax, eax
jne 0x5041b3
jmp 0x504219
mov edx, dword [ebp - 0x24]
push edx
call fcn.00545faf
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x5041ce
jmp 0x504219
mov esi, esp
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
push 2
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.0053951b
test eax, eax
je 0x504211
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.0053cf40
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
xor ecx, ecx
jne 0x50411a
cmp dword [ebp - 0x18], 0
je 0x504232
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.0053951b
cmp dword [ebp - 0xc], 0
je 0x50424d
mov esi, esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.0053951b
mov eax, dword [ebp - 0x2c]
push edx
mov ecx, ebp
push eax
lea edx, [0x50427c]
call fcn.005394c7
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053957c
add esp, 0x2c
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret
Function at 0x504370
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
push esi
push edi
lea edi, [ebp - 0x498]
mov ecx, 0x126
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x634928]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x65a5d1
call fcn.0053954a
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x5043b9
cmp dword [ebp - 8], 0x18
jne 0x5043c0
xor eax, eax
jmp 0x5045e9
push 0x22c
push 0
lea eax, [ebp - 0x238]
push eax
call fcn.0053d4c0
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.0053951b
mov dword [ebp - 0x240], eax
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x504412
mov byte [ebp - 0x495], 1
jmp 0x504419
mov byte [ebp - 0x495], 0
mov al, byte [ebp - 0x495]
mov byte [ebp - 0x241], al
mov dword [ebp - 0x248], 0
movzx ecx, byte [ebp - 0x241]
test ecx, ecx
je 0x504488
mov edx, dword [ebp - 0x230]
cmp edx, dword [ebp - 0x240]
jne 0x504456
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x248], eax
jmp 0x504488
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x504473
mov byte [ebp - 0x496], 1
jmp 0x50447a
mov byte [ebp - 0x496], 0
mov al, byte [ebp - 0x496]
mov byte [ebp - 0x241], al
jmp 0x50442f
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0053951b
mov esi, esp
push 0x104
lea edx, [ebp - 0x454]
push edx
mov edi, esp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp edi, esp
call fcn.0053951b
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, esp
call fcn.0053951b
lea eax, [ebp - 0x454]
push eax
call fcn.005462b1
add esp, 4
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
lea edx, [ebp + ecx*2 - 0x45c]
mov dword [ebp - 0x460], edx
push str..tmp
mov eax, dword [ebp - 0x460]
push eax
call fcn.0054d9aa
add esp, 8
test eax, eax
je 0x504525
mov esi, esp
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp esi, esp
call fcn.0053951b
test eax, eax
je 0x504525
mov dword [ebp - 0x248], 0
mov eax, dword [ebp - 0x248]
jmp 0x5045e9
push edx
mov ecx, ebp
push eax
lea edx, [0x504618]
call fcn.005394c7
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053957c
add esp, 0x498
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret
Function at 0x505a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov ecx, 0x65a628
call fcn.0053954a
lea eax, [ebp - 8]
push eax
mov ecx, 0x642c30
call fcn.00510630
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
mov ecx, 0x642c30
call fcn.00510d80
mov ecx, eax
call fcn.0050c360
movzx eax, al
test eax, eax
je 0x505a8d
mov ecx, dword [ebp + 8]
push ecx
call fcn.005070d0
add esp, 4
mov dword [0x642cb8], 0x32
cmp dword [0x642cc0], 0
jne 0x505acc
mov esi, esp
push str.FA6E5F10_1413_48DB_A752_E7F35C5DF3C5
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
cmp esi, esp
call fcn.0053951b
mov dword [0x642cc0], eax
cmp dword [0x642cc0], 0
jne 0x505acc
mov dword [0x642cc0], 0x8079
cmp dword [0x642cbc], 0
jne 0x505afa
mov esi, esp
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0x5072d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.0053951b
mov dword [0x642cbc], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x642c3c
call fcn.0050b320
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret