joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ae90
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x41b180
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x477600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push edi
push 0x40
push 0x36
push eax
mov dword [ebp - 0x48], ebx
call fcn.004218a0
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov edi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
jle 0x41b1d7
mov ebx, edi
lea eax, [ebp - 0x44]
sub ebx, eax
nop dword [eax]
cmp edx, 0x40
jge 0x41b1d4
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x41b1c0
mov ebx, dword [ebp - 0x48]
push ebx
call fcn.0041b010
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0041ad90
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.004218a0
add esp, 0x1c
xor edx, edx
test esi, esi
jle 0x41b218
lea eax, [ebp - 0x44]
sub edi, eax
cmp edx, 0x40
jge 0x41b218
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor byte [ecx], al
cmp edx, esi
jl 0x41b204
lea esi, [ebx + 0x60]
push esi
call fcn.0041b010
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0041ad90
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0041ca50
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041fa52
mov esp, ebp
pop ebp
ret

Function at 0x41c9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x478190]
push esi
push edi
test ecx, ecx
jne 0x41c9f6
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.00402980
add esp, 0xc
mov dword [0x478190], eax
push esi
push eax
call edi
mov ecx, dword [0x478190]
cmp eax, esi
jge 0x41c9c7
push 0
push dword [ebp + 8]
push 0x46b510
push ecx
call fcn.00402170
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.004028c0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x41cd20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x477600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
push 4
mov dword [ebp - 0x60], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0xc9
push dword [0x4794c8]
mov dword [ebp - 0x200], 0x1fc
mov dword [ebp - 0x1fc], esi
mov dword [ebp - 0x1f8], 1
mov dword [ebp - 0x1f4], 7
mov dword [ebp - 0x1f0], 0x8006
call dword [sym.imp.USER32.dll_LoadIconA]
movups xmm0, xmmword [str.asdfghj__qwert_authentication_agent_]
mov ecx, dword [0x46bdc0]
mov ebx, eax
lea eax, [ebp - 0x200]
mov dword [ebp - 0x1c8], ecx
mov cl, byte [0x46bdc4]
movups xmmword [ebp - 0x1e8], xmm0
push eax
movups xmm0, xmmword [0x46bdb0]
push 0
mov dword [ebp - 0x1ec], ebx
movups xmmword [ebp - 0x1d8], xmm0
mov byte [ebp - 0x1c4], cl
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, eax
test ebx, ebx
je 0x41cde7
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fa52
mov esp, ebp
pop ebp
ret
Function at 0x41e400
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.004022a0
add esp, 8
mov esi, eax
push 0x1010
push str.asdfghj_Fatal_Error
push esi
push dword [0x4794d0]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.004028c0
add esp, 4
push 1
call fcn.00440d64
int3

Function at 0x41e5b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x41e602
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_run___.100s___Error:__d
call fcn.00402230
add esp, 0xc
mov esi, eax
push 0x30
push 0x46bcb4
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.004028c0
add esp, 4
pop esi
pop ebp
ret
Function at 0x41e690
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x477600]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4781ac], 0
je 0x41e876
lea eax, [ebp - 0x218]
push eax
push str.SoftwareSimonTathamqwertSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41e876
push esi
push edi
push dword [0x4781a4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, eax
cmp esi, dword [0x4781b4]
jle 0x41e708
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
nop dword [eax]
push 0x400
push 0
push dword [0x4781a4]
call edi
dec esi
cmp esi, dword [0x4781b4]
jg 0x41e6f0
push 0x104
lea eax, [ebp - 0x10c]
xor edi, edi
push eax
push edi
push dword [ebp - 0x218]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41e81b
push ebx
mov ebx, 0x1000
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0041e610
add esp, 0xc
lea ecx, [ebp - 0x10c]
mov eax, str.Default_20Settings
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x41e780
test dl, dl
je 0x41e77c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x41e780
add ecx, 2
add eax, 2
test dl, dl
jne 0x41e760
xor eax, eax
jmp 0x41e785
sbb eax, eax
or eax, 1
test eax, eax
je 0x41e7f8
lea eax, [ebp - 0x214]
mov dword [ebp - 0x248], 0x30
mov dword [ebp - 0x224], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x248]
movlpd qword [ebp - 0x234], xmm0
push eax
push 1
push edi
push dword [0x4781a4]
movlpd qword [ebp - 0x22c], xmm0
movlpd qword [ebp - 0x220], xmm0
mov dword [ebp - 0x244], 0x13
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], ebx
call dword [sym.imp.USER32.dll_InsertMenuItemA]
inc edi
add ebx, 0x10
push 0x104
lea eax, [ebp - 0x10c]
inc esi
push eax
push esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x41e733
pop ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
jne 0x41e876
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x30
push eax
push 1
push 0
push dword [0x4781a4]
mov dword [ebp - 0x244], 0x11
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 3
mov dword [ebp - 0x224], str._No_sessions_
call dword [sym.imp.USER32.dll_InsertMenuItemA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fa52
mov esp, ebp
pop ebp
ret
Function at 0x41ee40
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4781d8], 0
jne 0x41efc7
push esi
push str.advapi32.dll
mov dword [0x4781d8], 1
call fcn.0041c9b0
add esp, 4
mov dword [0x4781e0], eax
test eax, eax
je 0x41efbe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x479488], eax
test eax, eax
je 0x41efbe
mov eax, dword [0x4781e0]
test eax, eax
je 0x41efb4
push str.SetSecurityInfo
push eax
call esi
mov dword [0x479484], eax
test eax, eax
je 0x41efbe
mov eax, dword [0x4781e0]
test eax, eax
je 0x41efa1
push str.OpenProcessToken
push eax
call esi
mov dword [0x479498], eax
test eax, eax
je 0x41efbe
mov eax, dword [0x4781e0]
test eax, eax
je 0x41ef8e
push str.GetTokenInformation
push eax
call esi
mov dword [0x479494], eax
test eax, eax
je 0x41efbe
mov eax, dword [0x4781e0]
test eax, eax
je 0x41ef7b
push 0x46c01c
push eax
call esi
mov dword [0x479490], eax
test eax, eax
je 0x41efbe
mov eax, dword [0x4781e0]
test eax, eax
je 0x41ef68
push 0x46c03c
push eax
call esi
mov dword [0x47948c], eax
test eax, eax
je 0x41efbe
mov eax, dword [0x4781e0]
test eax, eax
je 0x41ef55
push str.SetEntriesInAclA
push eax
call esi
mov dword [0x479480], eax
test eax, eax
je 0x41efbe
mov eax, 1
mov dword [0x4781dc], eax
pop esi
ret
xor eax, eax
mov dword [0x479480], 0
mov dword [0x4781dc], eax
pop esi
ret
xor eax, eax
mov dword [0x47948c], 0
mov dword [0x4781dc], eax
pop esi
ret
xor eax, eax
mov dword [0x479490], 0
mov dword [0x4781dc], eax
pop esi
ret
xor eax, eax
mov dword [0x479494], 0
mov dword [0x4781dc], eax
pop esi
ret
xor eax, eax
mov dword [0x479498], 0
mov dword [0x4781dc], eax
pop esi
ret
mov dword [0x479484], 0
xor eax, eax
mov dword [0x4781dc], eax
pop esi
ret
mov eax, dword [0x4781dc]
ret

Function at 0x420647
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420686
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420686
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420686
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420686
cmp dword [ecx + 0x74], 0xe
jbe 0x420686
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44c10b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044bd03

Function at 0x44c116
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044be8d

Function at 0x44ecde
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044ebb2

Function at 0x4519d8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004513a0

Function at 0x462600
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46262d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46262d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4061c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x40a170]
cmp ax, 0xcb
je 0x4062bc
cmp ax, 0xcc
je 0x4062bc
mov edx, dword [0x40dcb0]
test edx, edx
je 0x4061f2
mov eax, dword [0x40db50]
call edx
mov ebx, eax
jmp 0x4061f7
mov ebx, 0x40db54
cmp word [0x40db40], 0
jle 0x40621a
mov eax, 0x40db20
call fcn.00406430
mov eax, ebx
call fcn.00405da0
mov eax, ebx
call fcn.00405e10
mov edi, dword [ebx]
jmp 0x40623a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x406235
mov edx, edi
mov eax, ebx
call fcn.00405270
jmp 0x406238
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x406220
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x40db40], 0
jle 0x4062bc
mov edx, 0x40da60
mov eax, ebx
call fcn.004053a0
mov edi, eax
test edi, edi
je 0x40628f
mov eax, dword [0x40daf4]
mov dword [edi + 0xc], eax
cmp dword [0x40daf4], 0
je 0x406284
mov eax, dword [0x40daf4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x40daf4], eax
sub word [0x40db40], 1
cmp word [0x40db40], 0
sete bl
mov eax, 0x40db20
call fcn.00406440
test bl, bl
je 0x4062bc
mov eax, 0x40db20
call fcn.00406420
pop edi
pop esi
pop ebx
ret
Function at 0x4084f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x40d960], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.004086d0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x40d960]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402570
call sub.kernel32.dll_GetCommandLineA
mov dword [0x40a1e0], eax
mov esi, dword [0x40a1e0]
jmp 0x408690
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x408580
cmp byte [esi], 0
je 0x408699
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x4085f5
mov al, byte [esi]
cmp al, 1
jb 0x4085eb
sub al, 0x20
jbe 0x4085bc
sub al, 2
je 0x4085cf
jmp 0x4085eb
mov al, byte [ebp - 0x10c]
test al, al
je 0x4085fa
add dword [ebp - 0x110], 1
jmp 0x4085f2
cmp byte [esi + 1], 0x22
je 0x4085e6
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x4085f2
add esi, 1
jmp 0x4085f2
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x4085ac
test dword [ebp - 0x114], 0xffffffff
je 0x408689
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.004086d0
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x40d960]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x408681
mov al, byte [esi]
cmp al, 1
jb 0x408677
sub al, 0x20
jbe 0x408648
sub al, 2
je 0x40865b
jmp 0x408677
mov al, byte [ebp - 0x10c]
test al, al
je 0x408686
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x40867e
cmp byte [esi + 1], 0x22
je 0x408672
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40867e
add esi, 1
jmp 0x40867e
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x408638
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x408583
mov ebx, dword [ebp - 0x114]
mov dword [0x40d950], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x40d960
call fcn.00406020
mov eax, dword [0x40d960]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4117d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x4117f5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x411868
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x41182a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x41185d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x41185b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x411821
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4117ec
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10005680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x10025a88
call fcn.100252dc
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x424], edi
push 0x60
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x100056e2
push 2
push edi
push dword [ebp + 8]
call ebx
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
jne 0x100056e2
call fcn.100041b9
mov edi, eax
jmp 0x100057cf
push dword [ebp + 0x10]
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x100056fe
call fcn.100041b9
jmp 0x100057c2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x100056f4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000572b
mov edi, 0x8007000e
jmp 0x100057c4
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, edi
ja 0x100057fb
jb 0x10005746
cmp eax, 0xffffffff
ja 0x100057fb
cmp eax, 0x400
jbe 0x1000575b
push eax
lea ecx, [ebp - 0x424]
call fcn.10004197
jmp 0x10005777
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x10005777
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x10005721
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp + 0x10]
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100056f4
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.10005554
mov edi, eax
test esi, esi
je 0x100057cf
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x100057e8
lea ecx, [ebp - 0x424]
call fcn.10004182
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
push 0x80070216
call fcn.10004b8e
int3

Function at 0x10006cbb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10006d0f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006d0f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10006d01
cmp esi, ecx
jae 0x10006d0f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10006cef
cmp esi, ecx
jae 0x10006d0f
cmp word [esi], 0
je 0x10006d0f
mov eax, esi
jmp 0x10006d11
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100080ae
Capabilities:
Set registry value

Disassembly:
mov eax, 0x10025d26
call fcn.100252dc
mov eax, dword [0x100364d4]
sub esp, 0x10
cmp dword [0x100364d8], 0
push esi
mov esi, ecx
jne 0x100080db
cmp eax, 2
jne 0x100080db
call fcn.10009152
mov eax, dword [0x100364d4]
cmp eax, 1
je 0x100080e9
cmp eax, 4
jne 0x1000816b
push edi
call fcn.10002f60
push eax
lea ecx, [ebp - 0x10]
call fcn.10001cd2
xor edi, edi
lea ecx, [ebp - 0x10]
push 0x66
mov dword [ebp - 4], edi
call fcn.100066f4
push str.none
push dword [ebp - 0x10]
call fcn.10014358
pop ecx
pop ecx
test eax, eax
jne 0x10008162
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push 0x2001f
push dword [esi + 8]
lea ecx, [ebp - 0x1c]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10004cc2
mov esi, 0x1002cf6c
push esi
call fcn.100139ae
pop ecx
inc eax
add eax, eax
push eax
push esi
push 1
push edi
push str.CurrentUI
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x1c]
call fcn.10004e0a
lea ecx, [ebp - 0x10]
call fcn.10001cb7
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1000a485
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x4b4
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [0x100364d0]
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x24]
mov dword [0x100364d0], 2
push eax
mov esi, ebp
push ebp
jmp 0x1000a529
lea eax, [esp + 0x10]
push 0x1002ef94
push eax
call fcn.10014675
push dword [esp + 0x4cc]
lea eax, [esp + 0x1c]
push eax
call fcn.10014675
add esp, 0x10
lea eax, [esp + 0x10]
push ebp
push eax
push SysStringLen
call fcn.1000a39e
lea eax, [esp + 0x10]
push eax
call fcn.100139ae
pop ecx
dec eax
jmp 0x1000a4fb
cmp word [esp + eax*2 + 0x10], 0x5c
je 0x1000a502
sub eax, 1
jne 0x1000a4f3
jmp 0x1000a509
xor ecx, ecx
mov word [esp + eax*2 + 0x10], cx
lea eax, [esp + 0x10]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
inc esi
push eax
lea eax, [esp + 0x24]
push eax
push esi
push SysStringLen
mov dword [esp + 0x2c], 0x258
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000a4b2
mov dword [0x100364d0], edi
pop edi
pop esi
pop ebp
add esp, 0x4b4
ret 4

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x1000a564
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000a582
test eax, eax
jne 0x1000a582
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret
Function at 0x1000a584
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x100260a7
call fcn.100252dc
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
push ebx
push str.GetResource__d_
push 0x100364fc
mov edi, edx
call fcn.100097c8
add esp, 0xc
movzx eax, bx
xor esi, esi
mov dword [ebp - 4], esi
push 0xa
push eax
push dword [0x100359b8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x1000a5fd
call ebx
push eax
push str.FindResource_::__d
push 0x100364fc
call fcn.100097c8
add esp, 0xc
mov ecx, 0x100364d0
push str.FindResource
push 0xc
push 2
call fcn.1000939c
mov eax, dword [ebp - 0x18]
push eax
push dword [0x100359b8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push dword [0x100359b8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x1000a658
call ebx
push eax
push str.LockResource_::__d
push 0x100364fc
call fcn.100097c8
add esp, 0xc
mov ecx, 0x100364d0
push 0x1002f034
push 0xc
push 2
call fcn.1000939c
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 8], esi
jne 0x1000a681
mov edx, dword [ebp - 0x1c]
mov ecx, eax
push edi
call fcn.1000cb80
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov ebx, dword [ebp - 0x1c]
mov dword [edi + 8], esi
cmp esi, ebx
jge 0x1000a669
mov al, byte [esi + eax]
mov ecx, edi
push dword [edi + 8]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push eax
call fcn.1000b16c
mov eax, dword [ebp - 0x18]
inc esi
jmp 0x1000a687