joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf26f88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0xf26fe1
test eax, edx
je 0xf26fe4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0xf26f9f
movzx eax, word [eax]
sub eax, ecx
jmp 0xf26fc6
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0xf26fc7
add ecx, 4
js 0xf26fb7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0xf26fc4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0xf26fc6
xor eax, eax
ret
test eax, eax
je 0xf26ff0
test edx, edx
jne 0xf26f90
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0xf28594
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0xf285c1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00f0b0f4
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0xf286fe
test ah, 4
je 0xf286f7
test bl, bl
jne 0xf286bc
mov al, 1
jmp 0xf28725
test al, 0x10
je 0xf286c4
xor eax, eax
jmp 0xf28725
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0xf286e8
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0xf28725
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0xf28725
test al, 0x10
sete al
jmp 0xf28725
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0xf2871f
cmp ebx, 3
je 0xf2871f
cmp ebx, 0x7b
je 0xf2871f
mov eax, esi
call fcn.00f28654
test al, al
jne 0xf28723
xor eax, eax
jmp 0xf28725
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0xf2cccc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0xf2cd05
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00f0a324
jmp 0xf2cd0e
mov eax, ebx
mov edx, esi
call fcn.00f0a57c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0xf2cd18
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0xf2cd3a
movzx eax, word [esp]
jmp 0xf2cd3c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0xf2e038
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0xf2e15d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00f2de40
mov esi, eax
mov eax, dword [0x19c58d8]
cmp byte [eax], 0
je 0xf2e105
mov eax, dword [0x19c4ecc]
call fcn.00f07b84
call fcn.00f07310
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0xf2e008]
call fcn.00f0d070
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0xf2e178
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0xf2e141
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x19c4d58]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x19c9634]
call fcn.00f0d740
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf2e164
lea eax, [ebp - 4]
mov edx, dword [0xf2e008]
call fcn.00f0d194
ret

Function at 0xf2f23c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xf2f312
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00f0a5c4
lea eax, [ebp - 4]
call fcn.00f0a734
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00f0b0f4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0xf2f2fc
mov eax, ebx
call fcn.00f0719c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xf2f2f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00f0b0f4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0xf2f2df
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xf2f324
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0xf2f2df
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf2f2fc
mov eax, dword [ebp - 0x10]
call fcn.00f071b8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf2f319
lea eax, [ebp - 4]
call fcn.00f0a19c
ret
Function at 0xf2f328
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0xf2f428
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00f0a5c4
lea eax, [ebp - 4]
call fcn.00f0a734
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00f0b0f4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0xf2f412
mov eax, ebx
call fcn.00f0719c
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0xf2f40b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00f0b0f4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0xf2f3f5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xf2f43c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0xf2f3f5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf2f412
mov eax, dword [ebp - 0x10]
call fcn.00f071b8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf2f42f
lea eax, [ebp - 4]
call fcn.00f0a19c
ret

Function at 0xf302d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00f0a674
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00f1076c
mov edi, eax
cmp edi, 0x104
jbe 0xf30283
mov eax, edi
add eax, eax
call fcn.00f0719c
mov esi, eax
jmp 0xf30285
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00f1076c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0xf302be
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0xf302a8
mov eax, esp
cmp esi, eax
je 0xf302cb
mov eax, esi
call fcn.00f071b8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0xf30304
cmp bl, 0
je 0xf30300
cmp bl, 0x41
jl 0xf302fb
cmp bl, 0x5a
jg 0xf302fb
or bl, 0x20
xor al, bl
inc esi
jmp 0xf302df
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0xf30244
Function at 0xf30460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0xa
push 0xf304d0
push ebx
call sub.KERNEL32.DLL_FindResourceW
test eax, eax
je 0xf304c7
push eax
push ebx
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0xf304c7
xor eax, eax
push ebp
push 0xf304c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xf304c7
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeResource
ret
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0xf31350
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00f0b1b0
add esp, 0x800
pop ebx
ret

Function at 0xf340f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0xf34114
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0xf3412e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0xf34129
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0xf34133
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0xf341a1
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0xf341ea
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0xf3415f
inc dword [ebp - 0xc]
jmp 0xf34177
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0xf34177
cmp dword [ebp - 0xc], 0
jle 0xf34177
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0xf34199
xor eax, eax
jmp 0xf34195
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0xf34194
mov eax, esi
jmp 0xf341ed
inc eax
cmp eax, ecx
jle 0xf34181
inc esi
cmp esi, dword [ebp - 8]
jl 0xf3414b
jmp 0xf341ea
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0xf341ea
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0xf341c2
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0xf341e4
xor eax, eax
jmp 0xf341e0
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0xf341df
mov eax, esi
jmp 0xf341ed
inc eax
cmp eax, ecx
jle 0xf341cc
inc esi
cmp esi, dword [ebp - 8]
jl 0xf341aa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0xf34658
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0xf34677
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0xf34687
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0xf347a9
test ebx, ebx
jl 0xf347a9
test esi, esi
jle 0xf347a9
mov eax, dword [ebp - 8]
call fcn.00f0b0f4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00f0b0f4
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0xf34746
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0xf347a9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0xf3472b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0xf346fa
inc dword [ebp - 0x14]
jmp 0xf3470a
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0xf3470a
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0xf34715
or eax, 0xffffffff
jmp 0xf3472b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0xf34728
inc eax
jmp 0xf3472b
or eax, 0xffffffff
test eax, eax
jl 0xf34733
cmp esi, eax
jg 0xf346e8
cmp esi, eax
jg 0xf3473e
mov eax, edx
add eax, dword [ebp + 8]
jmp 0xf347ac
inc edx
dec dword [ebp - 0x1c]
jne 0xf346e4
jmp 0xf347a9
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0xf347a9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0xf34790
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0xf3476f
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0xf3477a
or eax, 0xffffffff
jmp 0xf34790
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0xf3478d
inc eax
jmp 0xf34790
or eax, 0xffffffff
test eax, eax
jl 0xf34798
cmp esi, eax
jg 0xf34758
cmp esi, eax
jg 0xf347a3
mov eax, edx
add eax, dword [ebp + 8]
jmp 0xf347ac
inc edx
dec dword [ebp - 0x1c]
jne 0xf34754
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0xf8d32c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0xf8d334
mov eax, edx
pop esi
pop ebx
ret

Function at 0xfce060
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0xfce0fe
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0xfce0c2
cmp byte [ebx + 0x11], 0
jne 0xfce0c2
cmp byte [ebx + 0x24], 0
jne 0xfce0c2
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0xfce0e3
lea edx, [ebp - 4]
mov eax, dword [0x19c5794]
call fcn.00f106d8
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0xf9f2a0]
call fcn.00f2e1a8
call fcn.00f09858
jmp 0xfce0e3
lea edx, [ebp - 8]
mov eax, dword [0x19c5794]
call fcn.00f106d8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0xf9f2a0]
call fcn.00f2e1a8
call fcn.00f09858
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xfce105
lea eax, [ebp - 8]
mov edx, 2
call fcn.00f0a1fc
ret

Function at 0xfce918
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0xfce966
push dword fs:[eax]

Function at 0xfce988
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00fcdee0
dec esi
jne 0xfce9aa
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0xfd17e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x19cbe00
cmp dword [edi], 0
jne 0xfd1860
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x19cbdfc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x158397c
mov ecx, 2
call fcn.00f07360
mov edx, 0xfd17bc
lea eax, [esi + 5]
call fcn.00fd17dc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00fd17dc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0xfd1835
mov dword [0x19cbdfc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100dc3c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x100ddd1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x100dda6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x100dd89
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dl, 1
call fcn.00f28694
test al, al
je 0x100dd89
push 0x20
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dl, 1
mov eax, dword [0xf9a9d4]
call fcn.00fc04e8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x100dd82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00fbdcd0
sub ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0xf04e0c]
call fcn.00f0d070
add esp, 4
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 8]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.00f358f0
mov ebx, eax
mov dl, 1
mov eax, dword [0xf97908]
call fcn.00fbdb38
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x100dd65
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 4]
test esi, esi
je 0x100dd22
sub esi, 4
mov esi, dword [esi]
sub esi, ebx
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, ebx
mov edx, dword [ebp - 4]
call fcn.00f36d58
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0100e0e0
mov eax, dword [ebp - 8]
call fcn.0100da98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100ddad
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
ret
Function at 0x10116b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x101186b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00f0a5c4
mov eax, dword [ebp - 4]
call fcn.01011000
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x1011702
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00f0b578
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.010122f8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10117e1
xor eax, eax
push ebp
push 0x10117da
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.010112a0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.010118a0
test al, al
je 0x10117b8
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00f0a324
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x10117b8
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00f0b0f4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.01011200
test al, al
je 0x10117b2
mov eax, dword [ebp - 8]
call fcn.00f0b0f4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00f0b15c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.010116b0
dec ebx
cmp ebx, 0xffffffff
jne 0x1011761
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10117e1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.010112a0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
cmp byte [0x19cbe5c], 0
je 0x1011821
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00f0b0f4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0101128c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.01011200
mov ebx, eax
jmp 0x1011848
mov eax, dword [ebp - 4]
call fcn.00f0b0f4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0101128c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.01011200
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1011872
lea eax, [ebp - 0x3c]
call fcn.00f0a19c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00f0a1fc
ret
Function at 0x10121d4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.01011018
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00f0b0f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.01011200
test al, al
jne 0x101223c
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x19c5474]
mov dl, 1
mov eax, dword [0x100fde4]
call fcn.00f2e3ac
call fcn.00f09858
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1012248
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00f0b0f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.01011200
test al, al
jne 0x10122a9
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x19c5eec]
mov dl, 1
mov eax, dword [0x100fde4]
call fcn.00f2e3ac
call fcn.00f09858
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.01011048
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8