joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b6e4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x1000b736
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000b72e
push 0x4f
push 0x401828d
push 6
call fcn.10018eb6
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x1000b76f
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000b76c
push 0x7d
push 0x401828d
push 6
call fcn.10018eb6
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000b783
mov eax, 0
jmp 0x1000b7eb
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000b7b4
push 0x10b
push 0x401828d
push 6
call fcn.10018eb6
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000b7e3
push 0x12f
push 0x401828d
push 6
call fcn.10018eb6
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x1000b7eb
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b81c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [0x1002aa93], 0x4d29ac2
push 0
mov ebx, 0x108
call fcn.1001ab70
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 4
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1000b86a
mov eax, 0x10029570
push eax
push 2
mov ebx, 0x138
call fcn.1001a250
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000b890
push ebx
call fcn.10018eb0
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x1000b8a3
mov eax, 0x10029570
push eax
push 1
mov ebx, 0x154
call fcn.1001ac00
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1000b8c9
push ebx
call fcn.10018eb0
add esp, 4
push str..tmp
push dword [ebp - 0x10]
call fcn.10001528
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000b8f7
push ebx
call fcn.10018eb0
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x1000ba1e
push 0x80000004
push 0
push str.Super_EC
push 1
mov ebx, 0x158
call fcn.1001ac60
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push 6
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000b958
push 0x147
push 0x4020c0d
push 6
call fcn.10018eb6
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000b96b
push ebx
call fcn.10018eb0
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push 0
push 6
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000b9b1
push 0x19c
push 0x4020c0d
push 6
call fcn.10018eb6
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 3
mov eax, 0x10029873
test eax, eax
je 0x1000b9c8
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000b9f2
push 0x19c
push 0x4020c0d
push 6
call fcn.10018eb6
add esp, 0xc
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x1000ba1e
push 0x201
push 0x4020c0d
push 6
call fcn.10018eb6
add esp, 0xc
call fcn.1000ba31
mov eax, 0
jmp 0x1000ba2d
mov esp, ebp
pop ebp
ret
Function at 0x100197b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10019819
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10019240
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x10019da0
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x10019dad
xor eax, eax
pop esi
ret
push esi
call dword [0x1002b0d8]
add esp, 4
test eax, eax
jne 0x10019dbd
pop esi
ret
cmp eax, 1
jne 0x10019dcb
cmp byte [esi], 0x5c
jne 0x10019dcb
xor eax, eax
pop esi
ret
push esi
call fcn.10019b50
add esp, 4
test eax, eax
je 0x10019ddf
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x1001a920
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x1001a9a0
push edi
call dword [0x1002b0d8]
add esp, 4
test eax, eax
jbe 0x1001a9a0
test esi, esi
je 0x1001a95e
cmp esi, 0xffffffff
je 0x1001a95e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x1001a9e2
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x1001a98c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x1001a9a0
jmp 0x1001a99b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x1001a9a0
mov ebp, 1
test esi, esi
je 0x1001a9e2
cmp esi, 0xffffffff
je 0x1001a9e2
test ebp, ebp
jne 0x1001aa19
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x1001a9ef
call edi
test eax, eax
je 0x1001a9e2
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x1001aa19
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x1001a9ca
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x1001a9e2
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x1001aa19
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x1001a9fc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x1002b0d8]
inc eax
push eax
call fcn.10019240
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x1001ab50
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1001ab6e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x1001ab63
pop esi
ret
Function at 0x1001ae80
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x294
lea eax, [esp + 0x104]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1001aed2
lea ecx, [esp + 4]
push 0x104
push ecx
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x1001aecd
lea edx, [esp + 4]
push edx
call dword [0x1002b0d8]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.1001c830
add esp, 0xc
mov esi, eax
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x294
ret

Function at 0x1001c040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x1001c061
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1001c0bb
inc edi
cmp edi, esi
jl 0x1001c055
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x1001c0f0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1001c0aa
cmp byte [eax], bl
je 0x1001c0c5
cmp byte [eax + 1], bl
je 0x1001c0ce
cmp byte [eax + 2], bl
je 0x1001c0d8
cmp byte [eax + 3], bl
je 0x1001c0e4
add eax, 4
cmp eax, edi
jb 0x1001c081
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x40276f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x402803
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push esi
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x4027fa
test esi, esi
je 0x4027fa
mov ecx, dword [edi]
test ecx, ecx
je 0x4027f5
mov eax, dword [ebp - 4]
test eax, eax
je 0x4027eb
cmp eax, 2
jbe 0x4027dd
cmp eax, 7
jne 0x4027eb
test cl, 1
jne 0x4027eb
shr ecx, 1
cmp ecx, 1
jb 0x4027eb
cmp word [esi + ecx*2 - 2], bx
jne 0x4027eb
cmp ecx, 1
jbe 0x4027fa
cmp word [esi + ecx*2 - 4], bx
jne 0x4027eb
jmp 0x4027fa
test cl, 1
jne 0x4027eb
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x4027fa
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x4027fc
xor eax, eax
mov word [esi], ax
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0x80004005
call fcn.0040191f
int3

Function at 0x406cd4
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x406d0d
push 0xe801
push dword [edi - 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x406cfd
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x406d14
cmp dword [esp + 0xc], 0
jne 0x406d0d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x406d2a
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, edi
push eax
call fcn.00406d8c
xor eax, eax
pop edi
ret 0x10

Function at 0x406d30
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x406d69
push 0xe801
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x406d59
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x406d70
cmp dword [esp + 0xc], 0
jne 0x406d69
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x406d86
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, edi
push eax
call fcn.00406faf
xor eax, eax
pop edi
ret 0x10
Function at 0x408c1a
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4e8008]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x130]
xor ebp, ebp
push 0x30
pop esi
push esi
mov ebx, ecx
push ebp
push ebx
call fcn.00415710
push 0x110
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x114
push ebp
push eax
call fcn.00415710
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408c79
cmp dword [esp + 0x14], 6
jae 0x408c7c
push 0x2c
pop esi
mov dword [ebx], esi
mov esi, dword [esp + 0x138]
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], 1
test esi, esi
je 0x408c9d
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4e99a8]
mov eax, ebx
pop edi
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x138]
pop esi
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x24], ecx
mov ecx, dword [esp + 0x11c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00413912
add esp, 0x118
ret 0x18

Function at 0x408d19
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aac55
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408da1
cmp dword [ebp - 0x10], 1
je 0x408d76
cmp dword [ebp - 0x10], 2
jne 0x408d91
mov ecx, dword [ebp - 0x14]
test esi, esi
je 0x408d9b
test ecx, ecx
je 0x408d96
test cl, 1
jne 0x408d91
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x408d9b
push 0xd
pop eax
jmp 0x408da1
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4096c7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov byte [ebp - 1], 1
push esi
mov ecx, dword [ebx + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x40971c
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [ebx + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40977a
shr ecx, 2
test cl, 1
je 0x40974c
push edi
mov edi, dword [ebx + 4]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [ebx + 4]
movzx esi, ax
call dword [sym.imp.USER32.dll_GetParent]
push edi
push esi
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
jmp 0x40977a
push 1
xor esi, esi
push esi
push esi
push dword [ebx + 0x28]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
jbe 0x40977a
or byte [ebx + 0x58], 2
push 1
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x409f26
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e8008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
movsx edx, ax
push esi
push edi
shr eax, 0x10
lea edi, [ebp - 0x14]
mov esi, ecx
mov ebx, dword [ebp + 0x14]
movsx ecx, ax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x1012
push dword [esi + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x409f8f
cmp dword [ebp - 0x10], 8
jne 0x409f8f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x409f8f
push dword [ebp - 0xc]
mov ecx, esi
call fcn.0040a025
mov ecx, dword [ebp - 4]
xor eax, eax
and dword [ebx], 0
xor ecx, ebp
pop edi
pop esi
inc eax
pop ebx
call fcn.00413912
leave
ret 0x10
Function at 0x40beec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aac55
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40bf21
push 0xd
pop eax
jmp 0x40bf61
xor eax, eax
mov edi, edx
mov dword [ebp - 0x10], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x10]
jne 0x40bf32
sub ecx, dword [ebp - 0x14]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40bf2a
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c472
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4ab28a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4e8008]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0x20c]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x18]
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.0040287d
jmp 0x40c4e3
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c472
mov esi, eax
test esi, esi
jne 0x40c52b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40c4d7
cmp dword [ebp - 0x18], esi
je 0x40c51e
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], esi
push ebx
mov ecx, edi
mov dword [ebp - 0x14], esi
call fcn.0040c5fe
mov esi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x40c542
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
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 + 0x200]
xor ecx, ebp
call fcn.00413912
add ebp, 0x204
leave
ret 4
Function at 0x40cfb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4ab312
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e8008]
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 edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
push 0x60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40d04b
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x40d04b
call fcn.0040b8b8
mov edi, eax
jmp 0x40d132
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40d068
call fcn.0040b8b8
jmp 0x40d125
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d05e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x18], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40d095
mov edi, 0x8007000e
jmp 0x40d127
push 2
pop ecx
mov byte [ebp - 4], cl
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp edx, ebx
ja 0x40d170
cmp eax, 0xffffffff
ja 0x40d170
cmp eax, 0x400
jbe 0x40d0c6
push eax
lea ecx, [ebp]
call fcn.0040b896
jmp 0x40d0cc
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x40d0ea
cmp dword [ebp], 0
je 0x40d08b
push edi
push dword [ebp]
push edi
push dword [ebp - 0x14]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40d05e
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.0040ce64
mov edi, eax
test esi, esi
je 0x40d132
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40d145
lea ecx, [ebp]
call fcn.0040b853
or dword [ebp - 4], 0xffffffff
mov eax, edi
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.00413912
add ebp, 0x408
leave
ret 0x10
push 0x80070216
call fcn.0040191f
int3
Function at 0x40deca
Capabilities:
Check os version

Disassembly:
push 0x120
mov eax, 0x4ab461
call fcn.004353be
mov esi, ecx
mov dword [ebp - 0x128], esi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x12c], esi
call fcn.0040a9b0
and dword [ebp - 4], 0
lea eax, [esi + 0x20]
push 0x58
push 0
push eax
call fcn.00415710
xor eax, eax
mov dword [esi + 0x20], 0x58
and dword [esi + 0x78], eax
lea edi, [esi + 0x27c]
xor ecx, ecx
mov word [edi], ax
push 0x110
push ecx
lea eax, [ebp - 0x120]
mov word [esi + 0x7c], cx
push eax
mov dword [ebp - 0x124], 0x114
call fcn.00415710
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40df66
cmp dword [ebp - 0x120], 5
jae 0x40df6d
cmp dword [ebp - 0x120], 4
jne 0x40df66
cmp dword [ebp - 0x11c], 0x5a
jae 0x40df6d
mov dword [esi + 0x20], 0x4c
mov dword [esi + 0x3c], edi
lea eax, [esi + 0x7c]
mov dword [esi + 0x44], eax
mov ecx, 0x104
mov dword [esi + 0x40], ecx
mov dword [esi + 0x5c], str..zip
mov dword [esi + 0x48], 0x100
mov dword [esi + 0x54], 0x880822
mov dword [esi + 0x2c], str.ZIP_Files__.zip_
mov eax, dword [0x4e99a8]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x64], 0x40a3e0
mov dword [esi + 0x24], eax
test ebx, ebx
je 0x40dfc6
push 0xffffffffffffffff
push ebx
push ecx
push edi
call fcn.0041ceef
push eax
call fcn.0040193c
add esp, 0x14
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00435368
ret 0x18

Function at 0x40e787
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x40e7c0
push 0xe801
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x40e7b0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e7c7
cmp dword [esp + 0xc], 0
jne 0x40e7c0
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x40e7dd
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, edi
push eax
call fcn.0040e7e3
xor eax, eax
pop edi
ret 0x10