joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x40e61c]
mov dword [ebp - 0x448], 5
mov dword [esp + 4], str.Interface_
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x434], 0x100
mov dword [ebp - 0x44c], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x40248c
mov ebx, 0xffffffff
lea edi, [ebp - 0x40c]
lea esi, [esi]
mov eax, dword [ebp - 0x45c]
inc ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x402450
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x402310
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x454], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x458]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x4023ae
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], 0
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 0xa
mov edx, eax
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x4023e8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x402400
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x402310
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40e61c]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402700
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0x40e600
xor eax, eax
mov ecx, 8
mov ebp, esp
push edi
mov edi, edx
rep stosd dword es:[edi], eax
call sym._AddComponentCategories
mov edi, dword [ebp - 4]
leave
jmp sym._AddCOMandAll

Function at 0x402730
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
call sym._AddBaseEntries
call sym._AddComponentCategories
call sym._AddCOMandAll
call sym._AddApplicationID
call sym._AddTypeLib
pop ebp
jmp sym._AddInterfaces
Function at 0x10016a80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10016c58
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
lea eax, [edi + 0x10e18]
push dword [eax]
mov dword [eax], 0xdf8df8d0
push eax
push edi
jmp 0x10016aba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10016ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10016ab0
mov eax, 1
add ebx, ebx
jne 0x10016ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10016ac8
jne 0x10016ae4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10016ac8
xor ecx, ecx
sub eax, 3
jb 0x10016af8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10016b6a
mov ebp, eax
add ebx, ebx
jne 0x10016b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10016b10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10016b34
inc ecx
add ebx, ebx
jne 0x10016b20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10016b15
jne 0x10016b31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10016b15
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10016b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10016b45
jmp 0x10016ab6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10016b54
add edi, ecx
jmp 0x10016ab6
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x369
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10016b76
cmp byte [edi], 4
jne 0x10016b76
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10016b7b
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x10016bea
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x161dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x162e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10016ba8
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x162ec]
or eax, eax
je 0x10016be4
mov dword [ebx], eax
add ebx, 4
jmp 0x10016bc5
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10016c1b
cmp al, 0xef
ja 0x10016c0e
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10016bf0
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10016bfd
mov ebp, dword [esi + 0x162f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10016c4f
sub esp, 0xffffff80
jmp 0x1000c857
Function at 0x4010bc
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x100]
sub esp, 0x180
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp + 0xfc], eax
mov eax, dword [ebp + 0x108]
push ebx
mov ebx, dword [ebp + 0x10c]
push esi
push edi
mov edi, ecx
push dword [edi + 0x20]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x4011cb
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push 0x60
push esi
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x4011c2
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4011c2
mov esi, 0xa0000000
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x6c]
push edx
push 1
mov dword [ebp - 0x74], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test dword [ebp - 0x74], esi
je 0x401184
test dword [ebp - 0x74], 0x20000000
je 0x401184
push dword [ebp - 0x7c]
mov ecx, edi
push 0
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call fcn.0040103f
test eax, eax
jne 0x40119d
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x40114a
jmp 0x4011c2
push 0x4008
push 0x160
lea eax, [ebp - 0x64]
push eax
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x60]
mov dword [ebx], eax
mov dword [ebp - 0x78], 1
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0xfc]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c0da
add ebp, 0x100
leave
ret 8

Function at 0x4011e8
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp + 0xe4], eax
and dword [ebp - 0x80], 0
push esi
mov esi, dword [ebp + 0xf4]
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xf0]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x80], 0
je 0x401260
push 0x309
push 0x160
lea eax, [ebp - 0x7c]
push eax
push 0x80
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x401260
lea eax, [ebp - 0x70]
push eax
push esi
call fcn.0045c0f0
pop ecx
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x78]
jmp 0x401262
xor eax, eax
mov ecx, dword [ebp + 0xe4]
xor ecx, ebp
pop esi
call fcn.0045c0da
add ebp, 0xe8
leave
ret 8
Function at 0x40191f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp + 0xed]
push ebx
push eax
mov esi, ecx
mov byte [ebp + 0xec], bl
call fcn.0045c060
add esp, 0xc
call fcn.004443e4
mov eax, dword [eax + 4]
push 0x92
mov ecx, eax
call fcn.00401375
mov dword [ebp - 0x80], eax
push 0x104
lea eax, [ebp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x4001
push 0x160
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp + 0xec]
push eax
call edi
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x120], eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x11
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x401a05
push 0x4009
push 0x160
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x78]
call edi
cmp eax, ebx
je 0x4019f9
push eax
call fcn.004447a6
push dword [ebp - 0x80]
mov edi, eax
push dword [esi + 0x120]
push dword [edi + 4]
call fcn.004017f7
push ebx
push edi
mov ecx, esi
call fcn.0040141d
push dword [ebp - 0x78]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x78], ebx
cmp byte [ebp + 0x1fc], bl
je 0x401a14
mov ecx, esi
call fcn.00401407
lea edi, [esi + 0x11c]
lea eax, [esi + 0x238]
push edi
push eax
mov ecx, esi
call fcn.004010bc
test eax, eax
jne 0x401a40
lea eax, [esi + 0x238]
push str.My_Computer
push eax
call fcn.0045c0f0
pop ecx
pop ecx
mov eax, dword [edi]
push eax
push eax
push 1
mov edi, 0xffff0000
push edi
lea eax, [esi + 0x238]
push eax
mov ecx, esi
call fcn.0040161c
mov dword [esi + 0x33c], eax
lea eax, [esi + 0x134]
push eax
push ebx
mov ecx, esi
call fcn.004011e8
push eax
push eax
push 1
push edi
lea edi, [esi + 0x134]
push edi
mov ecx, esi
mov dword [esi + 0x118], eax
call fcn.0040161c
push dword [esi + 0x33c]
mov dword [esi + 0x130], eax
push 2
push 0x1102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp + 0x1f0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c0da
add ebp, 0x1f4
leave
ret 4
Function at 0x401ad6
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x301
push 0x160
lea eax, [ebp - 0x268]
push eax
push 0
push esi
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x26c], eax
je 0x401b2d
push eax
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x25c]
jmp 0x401b62
push 0x5c
push esi
call fcn.0045c8a0
pop ecx
pop ecx
test eax, eax
je 0x401b3f
inc eax
push eax
jmp 0x401b40
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0045c0f0
pop ecx
pop ecx
push dword [ebp - 0x26c]
lea eax, [ebp - 0x108]
push dword [ebp - 0x26c]
push 0
push edi
push eax
mov ecx, ebx
call fcn.0040161c
push dword [ebp - 0x268]
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c0da
leave
ret 0x14
Function at 0x404ab9
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x406134
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x1a0
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp + 0x11c], eax
mov eax, dword [ebp + 0x12c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x128]
push 0x40
mov dword [ebp + 0x14], eax
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0045c060
push 0x3c
pop ebx
push 0x38
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x3c], ebx
call fcn.0045c060
mov eax, dword [ebp + 0x130]
add esp, 0x18
sub eax, esi
je 0x406277
dec eax
je 0x406262
dec eax
je 0x4061f3
dec eax
jne 0x40629c
lea eax, [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x134]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40629c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40629c
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push edi
push str._s__s
push eax
call fcn.0045d7ab
mov ax, word [ebp + 0x134]
add esp, 0x10
mov word [ebp - 0x50], ax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x10
push esi
push esi
push esi
lea eax, [ebp + 0x18]
push eax
push esi
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40629f
push 0xffffffffffffffff
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 4]
call esi
jmp 0x40629c
push dword [ebp + 0x134]
push esi
push dword [ebp + 0x14]
push edi
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40629c
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push edi
push str._s__s
push eax
call fcn.0045d7ab
add esp, 0x10
push dword [ebp + 0x134]
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x11c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c0da
add ebp, 0x120
leave
ret 0x10
Function at 0x406655
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp + 0x118], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x124]
push 0x40
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x80], 0x44
call fcn.0045c060
push 0x3c
pop ebx
push 0x38
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], ebx
call fcn.0045c060
mov eax, dword [ebp + 0x128]
add esp, 0x18
sub eax, esi
je 0x40670c
dec eax
je 0x406742
dec eax
je 0x4066f9
dec eax
jne 0x406725
mov eax, dword [ebp + 0x12c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x406725
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406725
push dword [ebp + 0x12c]
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004062d5
test eax, eax
jne 0x406725
push dword [ebp + 0x12c]
push esi
push edi
push str.explorer
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp + 0x118]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0045c0da
add ebp, 0x11c
leave
ret 0xc
push edi
lea eax, [ebp + 0x14]
push str.explorer.exe__s
push eax
call fcn.0045d7ab
mov ax, word [ebp + 0x12c]
add esp, 0xc
mov word [ebp - 0x50], ax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x10
push esi
push esi
push esi
lea eax, [ebp + 0x14]
push eax
push esi
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406725
push dword [ebp]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 4]
call esi
jmp 0x406725
Function at 0x409f3f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x409f4a
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x40a005
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x47a1e8]
inc edx
sub edi, 8
dec esi
jne 0x409f6a
pop ebx
test edi, edi
je 0x40a01e
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x47a1e8]
inc edx
dec edi
jne 0x40a009
pop edi
not eax
pop esi
ret
Function at 0x40a548
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
sub esp, 0x514
lea ebp, [esp - 4]
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp + 0x514], eax
push 0x28
mov eax, 0x47251b
call fcn.0045ccb3
xor ebx, ebx
push 0x207
lea eax, [ebp + 0x105]
push ebx
push eax
mov byte [ebp + 0x104], bl
call fcn.0045c060
push 0x103
lea eax, [ebp + 0x411]
push ebx
push eax
mov byte [ebp + 0x410], bl
call fcn.0045c060
add esp, 0x18
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.00406124
call dword [sym.imp.USER32.dll_GetInputState]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp + 0x30c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x30c]
push eax
push ebx
push 0x47a864
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp + 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x30c]
push str..bat
push eax
call fcn.0045c100
pop ecx
pop ecx
push esi
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp]
push eax
call edi
lea eax, [ebp + 0x410]
push eax
push eax
push dword [0x4965bc]
lea eax, [ebp + 0x104]
push eax
call fcn.0045d7ab
add esp, 0x10
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
lea eax, [ebp + 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x40a6ab
or ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040612d
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x514]
xor ecx, ebp
call fcn.0045c0da
add ebp, 0x518
leave
ret
push ebx
lea ecx, [ebp - 0x14]
push ecx
push 0x208
lea ecx, [ebp + 0x104]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x30c]
push eax
call edi
push ebx
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40a67a

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x40cb64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
inc eax
cmp dword [ecx + 0x6c8], 0
je 0x40cb78
mov eax, 0x101
lea ecx, [ebp + 0xc]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cb93
xor eax, eax
jmp 0x40cbc0
push edi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
pop ebp
ret 0x18

Function at 0x40cbc4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push 2
pop eax
mov edi, 0x20006
cmp dword [ecx + 0x6c8], esi
je 0x40cbe7
mov eax, 0x102
mov edi, 0x20106
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cc1e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40cc1e
xor eax, eax
jmp 0x40cc4e
push dword [ebp + 0x14]
call fcn.0045c620
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret 0x14
Function at 0x416fa3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x416fb1
and dword [esi], 0
xor eax, eax
inc eax
cmp dword [ebp + 0x10], 0
jbe 0x416ff3
mov eax, 0x8000
cmp dword [ebp + 0x10], eax
jae 0x416fc7
mov eax, dword [ebp + 0x10]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], 0
test esi, esi
je 0x416ff3
add dword [esi], edx
test eax, eax
setne al
movzx eax, al
push eax
call fcn.004169ad
pop ecx
pop esi
pop ebp
ret 0x10