joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1f60
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
mov dword [esp + 4], ecx
jbe 0x4d2000
push ebx
mov ebx, dword [esp + 0x14]
add ebp, 0xffffffff
push esi
mov esi, dword [esp + 0x1c]
shr ebp, 3
push edi
mov edi, dword [esp + 0x18]
add ebp, 1
lea ebx, [ebx]
movzx eax, byte [edi]
xor al, byte [ebx]
push esi
mov byte [esi], al
movzx ecx, byte [ebx + 1]
xor cl, byte [edi + 1]
push esi
mov byte [esi + 1], cl
movzx edx, byte [ebx + 2]
xor dl, byte [edi + 2]
mov byte [esi + 2], dl
movzx eax, byte [ebx + 3]
xor al, byte [edi + 3]
mov byte [esi + 3], al
movzx ecx, byte [ebx + 4]
xor cl, byte [edi + 4]
mov byte [esi + 4], cl
movzx edx, byte [ebx + 5]
xor dl, byte [edi + 5]
mov byte [esi + 5], dl
movzx eax, byte [ebx + 6]
xor al, byte [edi + 6]
mov byte [esi + 6], al
movzx ecx, byte [ebx + 7]
xor cl, byte [edi + 7]
mov byte [esi + 7], cl
mov ecx, dword [esp + 0x18]
call fcn.004d1b30
mov edx, dword [esi]
mov dword [edi], edx
mov eax, dword [esi + 4]
add ebx, 8
add esi, 8
sub ebp, 1
mov dword [edi + 4], eax
jne 0x4d1f90
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 0x10

Function at 0x4d27b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x5894dc]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
test eax, eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
jbe 0x4d2848
add eax, 0xffffffff
shr eax, 3
add eax, 1
mov dword [esp + 0xc], eax
push ebp
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x14]
mov ebp, dword [ebx]
push esi
push ebx
mov dword [esp + 0x24], eax
call fcn.004d2010
movzx ecx, byte [edi]
xor byte [esi], cl
movzx edx, byte [edi + 1]
xor byte [esi + 1], dl
movzx eax, byte [edi + 2]
xor byte [esi + 2], al
movzx ecx, byte [edi + 3]
xor byte [esi + 3], cl
movzx edx, byte [edi + 4]
xor byte [esi + 4], dl
movzx eax, byte [edi + 5]
xor byte [esi + 5], al
movzx ecx, byte [edi + 6]
xor byte [esi + 6], cl
movzx edx, byte [edi + 7]
xor byte [esi + 7], dl
mov eax, dword [esp + 0x1c]
add ebx, 8
add esi, 8
sub dword [esp + 0x10], 1
mov dword [edi], ebp
mov dword [edi + 4], eax
jne 0x4d27e7
pop ebp
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ec47e
add esp, 0x14
ret 0x10
Function at 0x4d2d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50e94b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
lea ecx, [esi + 0x10]
mov byte [esi], bl
call fcn.00404230
push 0x48
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x38], 0x80
mov dword [esi + 0x3c], 1
mov dword [esi + 0x40], ebx
call fcn.004eceb1
push 0x1000
mov dword [esi + 4], eax
call fcn.004eceb1
mov dword [esi + 8], eax
add esp, 8
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov byte [esi + 0x32], bl
mov byte [esi + 0x33], bl
mov byte [esi + 0x34], bl
mov byte [esi + 0x35], bl
mov byte [esi + 0x36], bl
mov byte [esi + 0x37], bl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4d6750
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x20]
push edi
mov ecx, ebx
mov dword [esi + 0x10], 0x12345678
mov dword [esi + 0x14], 0x23456789
mov dword [esi + 0x18], 0x34567890
xor edi, edi
call fcn.0046fb80
test eax, eax
jle 0x4d67db
lea ebx, [ebx]
push edi
mov ecx, ebx
call fcn.00409460
mov ecx, dword [esi + 0x10]
add edi, 1
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x588be0]
shr ecx, 8
xor eax, ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10], eax
movzx eax, al
add eax, dword [esi + 0x14]
imul eax, eax, 0x8088405
add eax, 1
mov dword [esi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x588be0]
mov dword [esi + 0x18], ecx
mov ecx, ebx
call fcn.0046fb80
cmp edi, eax
jl 0x4d6780
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d67f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jbe 0x4d686b
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [ecx + 0x18]
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
sar edx, 8
xor byte [esi + edi], dl
movzx eax, byte [esi + edi]
mov edx, dword [ecx + 0x10]
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x588be0]
shr edx, 8
xor eax, edx
mov edx, dword [ecx + 0x18]
mov dword [ecx + 0x10], eax
movzx eax, al
add eax, dword [ecx + 0x14]
add esi, 1
imul eax, eax, 0x8088405
add eax, 1
mov dword [ecx + 0x14], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x588be0]
cmp esi, ebp
mov dword [ecx + 0x18], edx
jb 0x4d6801
pop edi
pop esi
pop ebp
ret 8
Function at 0x4d8240
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xa8]
cmp eax, 0xffffffff
je 0x4d82bf
cmp eax, 0x40
jbe 0x4d8268
push esi
lea ecx, [esi + 0x40]
call fcn.00488ca0
mov dword [esi + 0xa8], 0x14
mov eax, dword [esi + 0xa8]
mov ecx, 0x40
sub ecx, eax
push ecx
add eax, esi
push 0
push eax
call fcn.004ed3e0
add esp, 0xc
xor eax, eax
jmp 0x4d8290
xor dword [esi + eax*4], 0x36363636
add eax, 1
cmp eax, 0x10
jb 0x4d8290
push edi
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.00488020
push 0x40
push esi
mov ecx, edi
call fcn.00488500
mov dword [esi + 0xa8], 0xffffffff
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4d82d5
mov edx, dword [esp + 8]
push eax
push edx
lea ecx, [esi + 0x40]
call fcn.00488500
pop esi
ret

Function at 0x4d82e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x5894dc]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x2c]
cmp dword [esi + 0xa8], 0xffffffff
je 0x4d830e
push esi
push 0
push 0
call fcn.004d8240
add esp, 0xc
push edi
lea eax, [esp + 0xc]
lea edi, [esi + 0x40]
push eax
mov ecx, edi
call fcn.00488ca0
xor eax, eax
xor dword [esi + eax*4], 0x6a6a6a6a
add eax, 1
cmp eax, 0x10
jb 0x4d8320
mov ecx, edi
call fcn.00488020
push 0x40
push esi
mov ecx, edi
call fcn.00488500
push 0x14
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00488500
lea edx, [esp + 0xc]
push edx
mov ecx, edi
call fcn.00488ca0
mov eax, dword [esp + 0x2c]
test eax, eax
pop edi
jbe 0x4d8372
push eax
lea eax, [esp + 0xc]
push eax
push ebx
call fcn.004ed460
add esp, 0xc
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
call fcn.004ec47e
add esp, 0x18
ret
Function at 0x4dc530
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x50f4d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004230e0
xor eax, eax
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], eax
mov dword [esi], 0x55fd80
mov dword [esi + 0x18], eax
call fcn.004e82b0
mov dword [esi + 0x10], 0xd
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4dc5a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50f4d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x55fd80
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0
call fcn.004e8320
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], 0x55fb2c
call fcn.00423110
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4ddc60
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x50eef8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esp + 0x40], 0
je 0x4ddc97
mov edi, dword [esi + 0x184]
jmp 0x4ddc9d
mov edi, dword [esi + 0x174]
lea ecx, [esp + 0x10]
call fcn.00404230
push 0x14
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0
call fcn.00404de0
push 0
lea ecx, [esp + 0x14]
call fcn.00404de0
mov eax, dword [edi + 0x3c]
shr eax, 8
push eax
lea ecx, [esp + 0x14]
call fcn.00404de0
movzx ecx, byte [edi + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404de0
mov edx, dword [edi + 0x3c]
push edx
add edi, 0x18
push edi
lea ecx, [esp + 0x18]
call fcn.004050c0
lea ecx, [esp + 0x10]
call fcn.0046fb70
push eax
lea ecx, [esp + 0x14]
call fcn.004e81e0
push eax
lea ecx, [esi + 0x98]
call fcn.00488500
lea ecx, [esp + 0x10]
call fcn.0046fb70
push eax
lea ecx, [esp + 0x14]
call fcn.004e81e0
push eax
lea ecx, [esi + 0x100]
call fcn.00443490
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004da580
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x38], 0xffffffff
call fcn.00404a00
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x4de870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50eef8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x180], 0
jne 0x4de8c8
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.No_ClientKeyExchange_to_send_
call edx
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
lea ecx, [esp + 0x10]
call fcn.00404230
mov edi, dword [esp + 0x48]
mov ecx, dword [esi + 0xc]
push edi
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0x180]
mov dword [esp + 0x44], 0
call fcn.004db540
cmp dword [esi + 0x48], 0
je 0x4de90a
push edi
lea edx, [esp + 0x14]
push edx
push str.hhashWrite2
mov ecx, esi
call fcn.004d89b0
lea ecx, [esp + 0x10]
call fcn.0046fb70
push eax
lea ecx, [esp + 0x14]
call fcn.004e81e0
push eax
lea ecx, [esi + 0x98]
call fcn.00488500
lea ecx, [esp + 0x10]
call fcn.0046fb70
push eax
lea ecx, [esp + 0x14]
call fcn.004e81e0
push eax
lea ecx, [esi + 0x100]
call fcn.00443490
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + 0xc]
push edi
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004da580
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x38], 0xffffffff
call fcn.00404a00
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0xc
Function at 0x4e0a20
Capabilities:
Get socket status

Disassembly:
mov eax, ecx
mov ecx, dword [eax + 0x544]
test ecx, ecx
je 0x49a951
jmp 0x4a6ee0
cmp byte [eax + 0x38], 0
je 0x49a95f
lea ecx, [eax + 0x40]
jmp 0x4c3730
lea ecx, [eax + 0x3b8]
jmp fcn.004591c0
add ecx, 0x88
jmp fcn.004591c0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
add ecx, 8
call fcn.004e08d0
mov ecx, eax
call fcn.004591c0
ret 0x1c
push esi
mov esi, ecx
lea ecx, [esi + 8]
call fcn.0046fb70
test eax, eax
je 0x4e0a35
mov al, 1
pop esi
ret 0x1c
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4e0a42
pop esi
jmp fcn.004591c0
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4e0a4f
pop esi
jmp 0x49a940
xor al, al
pop esi
ret 0x1c

Function at 0x4e7b00
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 0x4e7b1e
pop edi
mov eax, 1
pop esi
ret 0xc
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x4e7c1e
push ebp
lea esp, [esp]
cmp ebx, 0x15b0
mov eax, ebx
jb 0x4e7b3f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jb 0x4e7bde
mov edx, eax
shr edx, 4
nop
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 eax, 0x10
sub edx, 1
jne 0x4e7b50
test eax, eax
je 0x4e7bf1
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x4e7be2
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 0x4e7b30
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret 0xc
Function at 0x4ec47e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5894dc]
jne 0x4ec488
repz ret
jmp fcn.004f03b1

Function at 0x4fad5d
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.004f0f31
and dword [ebp - 4], 0
cmp dword [0x58e070], 0
mov ebx, eax
jne 0x4fae0e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4faebf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4faebf
push eax
call fcn.004f0ebf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x58e070], eax
call esi
push eax
call fcn.004f0ebf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x58e074], eax
call esi
push eax
call fcn.004f0ebf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x58e078], eax
call esi
push eax
call fcn.004f0ebf
pop ecx
mov dword [0x58e080], eax
test eax, eax
je 0x4fae0e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f0ebf
pop ecx
mov dword [0x58e07c], eax
mov eax, dword [0x58e07c]
cmp eax, ebx
je 0x4fae66
cmp dword [0x58e080], ebx
je 0x4fae66
push eax
call fcn.004f0f3a
push dword [0x58e080]
mov esi, eax
call fcn.004f0f3a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4fae66
test edi, edi
je 0x4fae66
call esi
test eax, eax
je 0x4fae5d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4fae5d
test byte [ebp - 0xc], 1
jne 0x4fae66
or dword [ebp + 0x10], 0x200000
jmp 0x4fae9f
mov eax, dword [0x58e074]
cmp eax, ebx
je 0x4fae9f
push eax
call fcn.004f0f3a
pop ecx
test eax, eax
je 0x4fae9f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4fae9f
mov eax, dword [0x58e078]
cmp eax, ebx
je 0x4fae9f
push eax
call fcn.004f0f3a
pop ecx
test eax, eax
je 0x4fae9f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58e070]
call fcn.004f0f3a
pop ecx
test eax, eax
je 0x4faebf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4faec1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xf83130
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0xf83140
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0xf83150
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0xf83710
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x11a16ec]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
mov ecx, dword [edi]
or edx, 0x2001f
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00f836a0
mov ebp, eax
cmp ebp, esi
je 0xf83774
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0xf8376d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0xf8380d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
jne 0xf837da
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00f83710
mov ebp, eax
cmp ebp, esi
jne 0xf8375e
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
push esi
push ecx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
je 0xf837a0
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0xf837ef
push eax
call ebp
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 0x18], esi
call fcn.00f83890
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0xf8380b
push eax
call ebp
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.010c8a41
add esp, 0x228
ret 4
Function at 0xf843e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x1132ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x11a16ec]
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 eax, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
xor esi, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0xf8445f
call fcn.00f82970
mov esi, eax
jmp 0xf84554
mov eax, dword [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0xf8447b
call fcn.00f82970
jmp 0xf8454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0xf84494
call fcn.00f82970
jmp 0xf8454b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jae 0xf844b2
mov esi, 0x8007000e
jmp 0xf8454d
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0xf844c7
cmp eax, 0xffffffff
jbe 0xf844d1
push 0x80070216
call fcn.00f84db0
cmp eax, 0x400
jbe 0xf844fa
lea ecx, [ebp]
push ecx
call fcn.00f83110
jmp 0xf84500
lea edx, [ebp + 4]
mov dword [ebp], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp]
cmp eax, esi
jne 0xf84515
mov esi, 0x8007000e
jmp 0xf8454d
push ebx
push eax
mov eax, dword [ebp - 0x18]
push ebx
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
jne 0xf84530
call fcn.00f82970
jmp 0xf8454b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea esi, [ebp - 0x24]
call fcn.00f84250
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0xf84564
lea eax, [ebp]
call fcn.00f830f0
mov eax, esi
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.010c8a41
lea esp, [ebp + 0x408]
pop ebp
ret 0xc
Function at 0xf86000
Capabilities:
Get common file path

Disassembly:
cmp dword [0x11bd554], 0
jne 0xf860b8
cmp byte [0x11bd450], 0
jne 0xf8608d
push 0x11bd450
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jb 0xf86056
push 0x104
push 0x11bd450
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x11bd450
call fcn.010ca2d0
add esp, 8
test eax, eax
je 0xf86056
mov byte [eax + 1], 0
mov eax, 0x11bd450
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0xf86060
mov ecx, dword [str._debug.log]
mov edx, dword [0x1158ac8]
mov dword [eax], ecx
mov cx, word [0x1158acc]
mov dword [eax + 4], edx
mov dl, byte [0x1158ace]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 0x1158ad0
push 0x11bd450
call fcn.010ca19e
add esp, 8
mov dword [0x11bd554], eax
test eax, eax
jne 0xf860ab
xor al, al
ret
push 2
push 0
push eax
call fcn.010ca67f
add esp, 0xc
mov al, 1
ret
Function at 0xf860c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1129f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x11a16ec]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x11a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x29c]
cmp dword [ebp + 0x10], 0
je 0xf8627c
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x7e]
push ecx
mov word [esp + 0x80], ax
call fcn.010ce420
add esp, 0xc
push 0x104
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x74]
push 0x5c
push eax
call fcn.010ca0b4
add esp, 8
test eax, eax
je 0xf86154
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x74]
lea edx, [eax + 2]
jmp 0xf86160
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xf86160
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
lea eax, [esp + 0x78]
push 0x1158ad4
push eax
call fcn.010c9f23
xor ecx, ecx
add esp, 0xc
cmp dword [ebp + 0x14], 0x10
mov word [esp + 0x27a], cx
jb 0xf8619e
mov eax, dword [ebp]
jmp 0xf861a0
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
test esi, esi
je 0xf8627c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010c7a7c
add esp, 4
mov edi, eax
cmp dword [ebp + 0x14], 0x10
jb 0xf861e4
mov ebp, dword [ebp]
push esi
push edi
or esi, 0xffffffff
push esi
push ebp
push 0
push 0xfde9
call ebx
test eax, eax
je 0xf8626c
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.010ce420
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0xf8625c
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x1c]
push eax
call ebx
jmp 0xf8626c
push 0x10
push str.Fatal_error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
mov dword [esp + 0x298], esi
call fcn.010c9081
add esp, 4
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.010c8a41
add esp, 0x284
ret