joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2c50
Capabilities:
Get http response content encoding
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
lea eax, [esi + 0x2c]
mov dword [ebp - 4], ebx
push eax
push 0x13
call fcn.004b2e80
lea ecx, [esi + 0x30]
push ecx
push 5
mov ecx, esi
call fcn.004b2f10
lea edx, [esi + 0x20]
mov ecx, esi
push edx
push 0x21
call fcn.004b2dd0
lea eax, [esi + 0x14]
mov ecx, esi
push eax
push 0x16
call fcn.004b2dd0
lea ecx, [esi + 0x18]
push ecx
push 1
mov ecx, esi
call fcn.004b2dd0
lea edx, [esi + 0x24]
mov ecx, esi
push edx
push 9
call fcn.004b2dd0
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0x1d
push ecx
mov dword [esi + 0x28], ebx
mov dword [ebp - 0x14], ebx
call edi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x4b2d3a
push eax
call fcn.004e5f76
add esp, 4
lea edx, [ebp - 0x14]
mov ebx, eax
mov eax, dword [esi + 8]
push 0
push edx
push ebx
push 0x1d
push eax
call edi
push str.gzip
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4b2d18
mov dword [esi + 0x28], 1
jmp 0x4b2d2f
push str.deflate
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4b2d2f
mov dword [esi + 0x28], 2
push ebx
call fcn.004e5f9f
add esp, 4
xor ebx, ebx
lea ecx, [esi + 0x1c]
push 0x906950
call fcn.004e63be
mov dword [ebp - 0x18], ebx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push edx
push ebx
push 0x2b
push eax
mov dword [ebp - 0x14], ebx
call edi
mov eax, dword [ebp - 0x14]
cmp eax, 1
jb 0x4b2db1
push eax
call fcn.004e5f76
add esp, 4
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ebx, eax
mov eax, dword [esi + 8]
push ecx
push edx
push ebx
push 0x2b
push eax
call edi
cmp dword [ebp - 0x18], 1
jbe 0x4b2d95
push 0x8b9450
lea ecx, [esi + 0x1c]
call fcn.004e6611
push ebx
lea ecx, [esi + 0x1c]
call fcn.004e6611
push ebx
call fcn.004e5f9f
add esp, 4
xor ebx, ebx
jmp 0x4b2d4a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2fb0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], esp
cmp eax, ebx
je 0x4b2fee
push eax
call fcn.004c0d7e
add esp, 4
mov dword [esi + 0xc], ebx
push 0x400
lea ecx, [ebp - 0x40]
mov dword [esi + 0x10], ebx
call fcn.004ede91
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x43f]
mov byte [ebp - 0x440], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x14], ebx
je 0x4b306d
mov edx, dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x440]
push 0x400
push ecx
push edx
call edi
cmp eax, ebx
je 0x4b302a
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jbe 0x4b302a
push eax
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x40]
call fcn.004ee0b4
jmp 0x4b302a
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.004e6d57
mov edi, eax
cmp edi, ebx
jbe 0x4b308c
lea ecx, [ebp - 0x40]
call fcn.004edf44
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp ecx, edi
lea ecx, [ebp - 0x40]
sbb esi, esi
neg esi
call fcn.004edf56
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c2a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c198a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c2a53
test byte [esp + 8], 2
je 0x4c2a53
call fcn.004c19fd
mov dword [eax], 0xd
call fcn.004c1a06
mov dword [eax], 5
jmp 0x4c2a2c
xor eax, eax
ret
Function at 0x4dbb80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f9380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004a3f70
mov eax, dword [0x8924dc]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004b4250
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004dc6b0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4dbc27
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4dbc1e
cmp al, 0xff
je 0x4dbc1e
dec al
mov byte [ecx], al
jmp 0x4dbc27
push ecx
call fcn.004e5f9f
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4dbc58
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4dbc4f
cmp al, 0xff
je 0x4dbc4f
dec al
mov byte [ecx], al
jmp 0x4dbc58
push ecx
call fcn.004e5f9f
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4e8704
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e873c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e66dc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e66b4
jmp 0x4e8748
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e9df2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e9e34
call fcn.004f0147
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e9e34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e9e2b
xor eax, eax
jmp 0x4e9e3c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e9e42
pop edi
pop esi
pop ebx
ret 4
Function at 0x4dde14
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.00484424
xor edx, edx
push ebp
push 0x4dde86
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x70]
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x14]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x1c]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax + 0x30], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dde90
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40b0c4], edx
jne 0x4013d5
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013aa
mov dword [edx*4 + 0x40b0c0], ecx
inc edx
cmp edx, 0x100
jl 0x4013a5
pop edi
pop ebx
not esi
jmp 0x4013f3
movzx ecx, byte [eax]
dec dword [esp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40b0c0]
inc eax
cmp dword [esp + 8], 0
ja 0x4013d9
mov eax, esi
not eax
pop esi
ret 4
Function at 0x401490
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
xor esi, esi
push edi
push edi
inc esi
push esi
push edi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapSetInformation]
push 4
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], esi
push eax
push 0x22
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x264]
mov eax, ecx
mov edx, 0x105
sub esi, eax
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x4014ff
movzx eax, word [esi + ecx]
test ax, ax
je 0x4014ff
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4014e1
test edx, edx
jne 0x401506
sub ecx, 2
xor eax, eax
mov word [ecx], ax
test edx, edx
je 0x4015e5
mov ax, word [ebp - 0x264]
lea ecx, [ebp - 0x264]
test ax, ax
je 0x401564
movzx edx, ax
lea esi, [ecx + 2]
cmp dx, 0x3a
je 0x40153f
mov ecx, esi
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x401528
jmp 0x401564
xor eax, eax
mov word [ecx], ax
movzx eax, word [esi]
test ax, ax
je 0x401564
lea eax, [ebp - 0x264]
push 0x401120
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40156a
lea esi, [ebp - 0x264]
lea ecx, [ebp - 0x58]
push 0x29
mov eax, ecx
pop edx
sub esi, eax
lea eax, [edx + 0x7fffffd5]
test eax, eax
je 0x401592
movzx eax, word [esi + ecx]
test ax, ax
je 0x401592
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x401574
test edx, edx
jne 0x401599
sub ecx, 2
xor eax, eax
mov word [ecx], ax
test edx, edx
je 0x4015e5
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_IIDFromString]
test eax, eax
js 0x4015e5
push edi
push edi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
test eax, eax
js 0x4015e5
push edi
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.api_ms_win_core_com_private_l1_1_0.dll_CoRegisterSurrogateEx]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004018c0
leave
ret 0x10
Function at 0x405700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f07d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1774
call fcn.005c3360
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e4]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xd0c]
mov dword [ebp - 0x14], esi
test eax, eax
mov dword [ebp - 4], 0
push 0x7cf
je 0x405788
mov ecx, dword [esi + 0xd08]
lea eax, [ebp - 0x1784]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40579c
lea edx, [ebp - 0x7e4]
push 0x7d0
lea eax, [ebp - 0x1784]
push edx
push eax
call fcn.00404bf0
add esp, 0xc
jmp 0x40579c
mov edx, dword [esi + 0xd08]
lea ecx, [ebp - 0x7e4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e4]
mov ecx, esi
push eax
call fcn.004053b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408d10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0dc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1770
call fcn.005c3360
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e0]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x4f8]
mov dword [ebp - 4], 0
test eax, eax
push 0x7cf
je 0x408d95
mov ecx, dword [esi + 0x4f4]
lea eax, [ebp - 0x1780]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x408da9
lea edx, [ebp - 0x7e0]
push 0x7d0
lea eax, [ebp - 0x1780]
push edx
push eax
call fcn.00404bf0
add esp, 0xc
jmp 0x408da9
mov edx, dword [esi + 0x4f4]
lea ecx, [ebp - 0x7e0]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e0]
lea ecx, [esi + 0x4d0]
push eax
push 0x69dfbc
push ecx
call fcn.005d838b
add esp, 0xc
mov ecx, esi
call fcn.00409400
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409b60
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x78]
push ebx
push ebx
push 0x1009
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x98]
cmp ebx, dword [eax + 0x1c]
jge 0x409cf7
mov ecx, dword [0x6c826c]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x18]
lea ebx, [ebx + ebx*8]
shl ebx, 2
mov byte [ebp - 4], 1
mov ecx, dword [edx + ebx + 4]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x69e40c
push eax
call fcn.005d838b
mov edx, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [esi + 0x5c]
push 0
push 0
push 0
push 0
push edx
push edi
push 1
call fcn.005d96f7
inc edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov ecx, 0xad
xor eax, eax
lea edi, [ebp - 0x324]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x98]
push 0x4411
lea edx, [ebp - 0x324]
push 0x160
mov ecx, dword [eax + 0x18]
push edx
push 0x80
mov eax, dword [ecx + ebx]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esi + 0x78]
mov eax, dword [ebp - 0x320]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0x1006
push edx
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + ebx + 8]
test eax, eax
mov eax, 0x6cd74c
jne 0x409c83
mov eax, 0x6cd748
mov eax, dword [eax]
lea ecx, [esi + 0x5c]
push eax
push 1
push edi
call fcn.005d97f2
mov edx, dword [esi + 0x98]
mov dword [ebp - 0x68], 2
lea ecx, [ebp - 0x70]
mov eax, dword [edx + 0x18]
mov edx, dword [esi + 0x78]
push ecx
push edi
mov ebx, dword [eax + ebx]
push 0x1074
push edx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x5c]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push edi
call fcn.005d9779
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005df556
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x409ba1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a020
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f0fbb
push eax
mov dword fs:[0], esp
sub esp, 0x220
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x40a138
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x40a138
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 4]
push edx
push edi
push 0xf003f
push edi
push 0x6cc7b8
push edi
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40a0ca
lea ecx, [esp + 0x20]
call fcn.0049c670
push 1
push str.Cannot_open__create__registry_subkey_during_CBrowsersIntegration::Save__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x240], edi
call fcn.0049c790
lea ecx, [esp + 0x20]
mov dword [esp + 0x238], 0xffffffff
call fcn.0049c780
jmp 0x40a110
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, dword [ecx + ebx]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push 0x69e768
push edx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 4
push edx
mov ecx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x18]
push 4
push 0
push 0x69e764
push eax
mov dword [esp + 0x30], ecx
call ebp
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40a067
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, edi
pop ebx
je 0x40a138
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x22c
ret
Function at 0x40c300
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp]
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 0x14]
push 1
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c355
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.found
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c355
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x40c364
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x40d1b0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ecx
push ebp
push esi
push edi
push str.shell32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [esp + 0x14]
mov esi, eax
test esi, esi
je 0x40d208
push ebx
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40d1fc
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push ebp
push edi
push edi
push 0x1c
push edi
call ebx
test eax, eax
jne 0x40d1f6
mov edi, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
pop ebx
jne 0x40d259
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d259
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push ebp
push eax
push eax
push str.Local_AppData
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d24e
mov edi, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x40feb0
Capabilities:
Shutdown system
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f14ac
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x12c
test eax, eax
je 0x40ff42
push 0
lea ecx, [esp + 0x18]
call fcn.004f9a00
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0
call fcn.005db556
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 3
call fcn.005e7065
lea ecx, [esp + 0xac]
mov byte [esp + 0x134], 2
call fcn.005d9d00
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 1
call fcn.005e709d
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.005db197
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ff94
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x410ce0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10c
add ecx, 4
push ebx
push ebp
push esi
push edi
push str.IEXPLORE
call fcn.0040c2a0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WS2_32.dll_accept
call ebp
test eax, eax
jne 0x410db3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.DownloadUI
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410d81
test ebx, ebx
je 0x410da8
mov esi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410d78
test cl, cl
je 0x410d74
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410d78
add eax, 2
add esi, 2
test cl, cl
jne 0x410d54
xor eax, eax
jmp 0x410d7d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410da8
mov edi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
push 1
push eax
mov eax, dword [esp + 0x20]
push str.DownloadUI
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x410e6d
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push str.DownloadUI
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410e3b
test ebx, ebx
je 0x410e62
mov esi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x410e32
test cl, cl
je 0x410e2e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x410e32
add eax, 2
add esi, 2
test cl, cl
jne 0x410e0a
xor eax, eax
jmp 0x410e37
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410e62
mov edi, str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.7D11E719_FF90_479C_B0D7_96EB43EE55D7
push 1
push eax
mov eax, dword [esp + 0x20]
push str.DownloadUI
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x412a50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
push esi
push edi
call fcn.004406e0
neg eax
sbb eax, eax
lea ecx, [esp + 8]
and eax, 0x100
push ecx
add eax, 0xf003f
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x412ab6
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0
push 0x69f6bc
push eax
mov dword [esp + 0x24], 1
call esi
mov ecx, dword [esp + 8]
push ecx
call edi
lea edx, [esp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x6cc7b8
push 0
push 0x69def0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x412b07
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.AdvIntDriverEnabled2
push ecx
mov dword [esp + 0x24], 1
call esi
mov edx, dword [esp + 8]
push edx
call edi
pop edi
pop esi
add esp, 8
ret