joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4f6189
xor ecx, ecx
jne 0x4f6189
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4f61d0
mov eax, dword [ebp - 0xc]
jmp 0x4f622d
cmp dword [ebp - 4], 1
je 0x4f61e3
cmp dword [ebp - 4], 2
je 0x4f61e3
mov eax, 0xd
jmp 0x4f622d
cmp dword [ebp + 0xc], 0
je 0x4f6221
cmp dword [ebp - 8], 0
je 0x4f6219
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4f6210
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4f6217
mov eax, 0xd
jmp 0x4f622d
jmp 0x4f6221
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4f9790
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x42444c7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov byte [eax + 8], 0xe9
mov ecx, dword [ebp - 8]
add ecx, 0xd
mov edx, dword [ebp + 8]
sub edx, ecx
mov eax, dword [ebp - 8]
mov dword [eax + 9], edx
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0xd
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esp, ebp
pop ebp
ret 8

Function at 0x500700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00426a10
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00426aa0
mov esp, ebp
pop ebp
ret 4

Function at 0x5009c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x5009d4
xor eax, eax
jmp 0x5009ef
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052f0df
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc
Function at 0x500a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x500a14
xor eax, eax
jmp 0x500a2f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052f55f
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x50ac6c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x50ac90
cmp dword [edi + 0x54], 0
jne 0x50ac90
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00516152
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0050ac2d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x510791
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x5107d8
call fcn.00516152
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5107d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5107f4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00510309
mov esi, eax
test edi, edi
je 0x5107f2
test ebx, ebx
je 0x5107f2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x511641
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57591d
call fcn.00532cee
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x511666
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x5116ac
lea ecx, [ebp - 0x10]
call fcn.00426c20
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00510eac
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040d670
mov eax, esi
call fcn.00532dc6
ret 8
Function at 0x514d8f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x514dd7
call fcn.00516152
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x514dd7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x514e1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x514e03
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x514e03
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x514e17
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x52906d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xfca848]
jne 0x529077
repz ret
jmp fcn.00535dbc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x544be8
call fcn.0052f9bb
mov dword [eax], esi
call fcn.0052f9a8
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005298fb
add esp, 0x14
push 0x16
pop eax
jmp 0x544c3d
test dword [ebp + 0xc], 0xfffffff9
jne 0x544bc4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x544c15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052f9ce
pop ecx
call fcn.0052f9a8
mov eax, dword [eax]
jmp 0x544c3d
test al, 0x10
jne 0x544c3b
test al, 1
je 0x544c3b
test byte [ebp + 0xc], 2
je 0x544c3b
call fcn.0052f9bb
mov dword [eax], 5
call fcn.0052f9a8
mov dword [eax], 0xd
jmp 0x544c0c
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5495b0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00534a25
and dword [ebp - 4], 0
cmp dword [0x102c7ec], 0
mov ebx, eax
jne 0x549661
push 0xfa26c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x549712
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xfa26b8
push edi
call esi
test eax, eax
je 0x549712
push eax
call fcn.005349b3
mov dword [esp], 0xfa26a8
push edi
mov dword [0x102c7ec], eax
call esi
push eax
call fcn.005349b3
mov dword [esp], 0xfa2694
push edi
mov dword [0x102c7f0], eax
call esi
push eax
call fcn.005349b3
mov dword [esp], 0xfa2678
push edi
mov dword [0x102c7f4], eax
call esi
push eax
call fcn.005349b3
pop ecx
mov dword [0x102c7fc], eax
test eax, eax
je 0x549661
push 0xfa2660
push edi
call esi
push eax
call fcn.005349b3
pop ecx
mov dword [0x102c7f8], eax
mov eax, dword [0x102c7f8]
cmp eax, ebx
je 0x5496b9
cmp dword [0x102c7fc], ebx
je 0x5496b9
push eax
call fcn.00534a2e
push dword [0x102c7fc]
mov esi, eax
call fcn.00534a2e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5496b9
test edi, edi
je 0x5496b9
call esi
test eax, eax
je 0x5496b0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5496b0
test byte [ebp - 0xc], 1
jne 0x5496b9
or dword [ebp + 0x10], 0x200000
jmp 0x5496f2
mov eax, dword [0x102c7f0]
cmp eax, ebx
je 0x5496f2
push eax
call fcn.00534a2e
pop ecx
test eax, eax
je 0x5496f2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5496f2
mov eax, dword [0x102c7f4]
cmp eax, ebx
je 0x5496f2
push eax
call fcn.00534a2e
pop ecx
test eax, eax
je 0x5496f2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102c7ec]
call fcn.00534a2e
pop ecx
test eax, eax
je 0x549712
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x549714
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5582a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x55844a
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x5582f8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x55830b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x55831f
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x558366.3
jmp 0x558330
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x55833c
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x558341
mov esi, 1
inc eax
cmp eax, edi
jl 0x558330
cmp si, cx
je case.0x558366.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x558366.3
movzx eax, byte [eax + 0x558464]
jmp dword [eax*4 + 0x558450]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x558366.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x558380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, pe_nt_image_headers32
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x558366.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x5583c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x558366.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x5583e6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x558366.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x558410
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x55e510
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0xfca848]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x55e59a
movzx eax, word [esi + 0x118]
test ax, ax
jne 0x55e546
test byte [esi + 0x230], 1
jne 0x55e56e
movzx cx, byte [edi]
cmp cx, ax
jbe 0x55e56e
push 0xfa6f10
push esi
call fcn.00551b10
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0052906d
add esp, 0xc
ret
mov dl, byte [edi]
push 1
lea eax, [esp + 0xc]
push eax
push 0xfa5198
push esi
mov byte [esp + 0x18], dl
call fcn.0055d6f0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0052906d
add esp, 0xc
ret
test al, 2
je 0x55e62e
movzx ecx, word [edi + 2]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0055c700
movzx eax, word [edi + 4]
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.0055c700
movzx edx, word [edi + 6]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0055c700
add esp, 0x18
cmp byte [esi + 0x127], 8
jne 0x55e608
mov cl, byte [esp + 0xc]
or cl, byte [esp + 0xa]
or cl, byte [esp + 8]
je 0x55e608
push 0xfa6ed0
push esi
call fcn.00551b10
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0052906d
add esp, 0xc
ret
push 6
lea edx, [esp + 0xc]
push edx
push 0xfa5198
push esi
call fcn.0055d6f0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0052906d
add esp, 0xc
ret
mov cl, byte [esi + 0x127]
movzx eax, word [edi + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x55e662
push 0xfa6e90
push esi
call fcn.00551b10
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0052906d
add esp, 0xc
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0055c700
push 2
lea ecx, [esp + 0x14]
push ecx
push 0xfa5198
push esi
call fcn.0055d6f0
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.0052906d
add esp, 0xc
ret
Function at 0x561fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x24]
push ebp
push esi
mov ebp, dword [edi + 0x34]
sub ebp, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x56205e
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00529940
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x562031
sub eax, ebx
jmp 0x562033
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x562022
mov ecx, dword [edi + 0x38]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x562052
sub eax, ebx
jmp 0x562054
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x562043
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x5620b9
mov edx, dword [edi + 0x6c]
add edx, dword [edi + 0x64]
mov ecx, ebp
add edx, dword [edi + 0x30]
push edx
call fcn.00561ce0
add dword [edi + 0x6c], eax
mov edx, dword [edi + 0x6c]
add esp, 4
cmp edx, 3
jb 0x5620a5
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp edx, 0x106
jae 0x5620b9
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x561fe6
pop esi
pop ebp
pop ebx
ret
Function at 0x563510
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x56352a
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x56363a
push ebp
jmp 0x563540
mov eax, ebx
cmp ebx, 0x15b0
jb 0x56354f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x5635fb
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x563570
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x563570
test eax, eax
je 0x56360d
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x563600
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x563540
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x4638f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x52defb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00521d4f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x463972
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0051f602
mov eax, dword [eax]
push 0x73aef8
push eax
call fcn.004fc284
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00521fda
test bl, bl
je 0x463972
push 0x73aef8
lea ecx, [esp + 0xc]
call fcn.0052236a
push 0x73af04
lea ecx, [esp + 0xc]
call fcn.0052236a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4639ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00521fda
jmp 0x463a79
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x463a32
lea edx, [esp + 0x7c]
push 0x73af00
push edx
call fcn.004fc284
add esp, 8
test eax, eax
je 0x463a32
lea eax, [esp + 0x7c]
push 0x73aefc
push eax
call fcn.004fc284
add esp, 8
test eax, eax
je 0x463a32
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4639c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00521fda
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x464280
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4642e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4642f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x52df7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x78c598]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x464428
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x464356
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00521fda
xor eax, eax
jmp 0x46449f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00522117
push esi
lea ecx, [esp + 0xc]
call fcn.005223a6
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x46447d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00464280
test eax, eax
jne 0x46447d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.00464280
test eax, eax
jne 0x46447d
lea eax, [esp + 0x14]
push 0x73af14
push eax
call fcn.004fd3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46445c
lea ecx, [esp + 0x14]
push 0x73af10
push ecx
call fcn.004fd360
mov esi, eax
add esp, 8
test esi, esi
jne 0x46445c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x46445f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005220c7
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x46436e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00521fda
xor eax, eax
jmp 0x46449f
mov byte [esi], 0
push 0x73af0c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00521fda
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4