joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b780
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d4], 0
lea ecx, [ebp - 0x2e8]
call fcn.00405dc0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2ec], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x2cc], eax
push 0x22c
push 0
lea eax, [ebp - 0x2c0]
push eax
call fcn.0046fb60
add esp, 0xc
mov dword [ebp - 0x2c0], 0x22c
lea ecx, [ebp - 0x2c0]
push ecx
mov edx, dword [ebp - 0x2cc]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40b93e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2d0], eax
lea ecx, [ebp - 0x2c4]
push ecx
mov ecx, dword [ebp - 0x2d0]
call fcn.0040ab80
lea edx, [ebp - 0x2d8]
push edx
mov ecx, dword [ebp - 0x2d0]
call fcn.0040ac10
nop
jmp 0x40b857
lea ecx, [ebp - 0x2c4]
call fcn.00407bd0
nop
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.004079d0
movzx ecx, al
test ecx, ecx
je 0x40b923
lea ecx, [ebp - 0x2c4]
call fcn.00407b70
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x2c8]
call fcn.0040d140
mov dword [ebp - 0x2dc], eax
push 0
mov ecx, dword [ebp - 0x2dc]
call fcn.00407a60
push eax
lea edx, [ebp - 0x29c]
push edx
call fcn.00471c7f
add esp, 8
test eax, eax
jne 0x40b91e
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x2c8]
push ecx
lea ecx, [ebp - 0x90]
call fcn.00406090
mov byte [ebp - 4], 1
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x2e8]
call fcn.0040eb50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.004072b0
nop
mov ecx, dword [ebp - 0x2c8]
call fcn.0040cfd0
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
or ecx, dword [ebp - 0x2e0]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x40b923
jmp 0x40b84b
lea eax, [ebp - 0x2c0]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b81b
mov edx, dword [ebp - 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2e8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405d60
mov ecx, dword [ebp - 0x2d4]
or ecx, 1
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e8]
call fcn.00407190
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret
Function at 0x40cff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x414], reloc.WS2_32.dll_accept
mov dword [ebp - 0x410], str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov dword [ebp - 0x40c], 0
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
cmp dword [ebp - 0x40c], 0
jne 0x40d07b
push 0x49366c
mov ecx, dword [ebp + 8]
call fcn.00405690
mov eax, dword [ebp - 0x408]
or eax, 1
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 8]
jmp 0x40d126
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x418], 0x200
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x41c]
push eax
push 0
push str.ProgId
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x420], eax
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
push 0x493690
lea eax, [ebp - 0x404]
push eax
call fcn.00471b7f
add esp, 8
test eax, eax
jne 0x40d105
push str.not_found
mov ecx, dword [ebp + 8]
call fcn.00405690
mov ecx, dword [ebp - 0x408]
or ecx, 1
mov dword [ebp - 0x408], ecx
mov eax, dword [ebp + 8]
jmp 0x40d126
lea edx, [ebp - 0x404]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405690
mov eax, dword [ebp - 0x408]
or eax, 1
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret
Function at 0x40d2c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1b0]
call fcn.00405f10
mov byte [ebp - 4], 1
push 0x493e34
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00401d90
add esp, 0xc
mov byte [ebp - 4], 2
lea edx, [ebp - 0x198]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040b6c0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0xffffffff
je 0x40d3ed
mov eax, dword [ebp - 0x198]
and eax, 0x10
je 0x40d3c3
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004052b0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp + 0x10]
call fcn.00407f70
mov byte [ebp - 0x199], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004070c0
movzx eax, byte [ebp - 0x199]
test eax, eax
je 0x40d3c3
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004052b0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1b0]
call fcn.0040ebb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004070c0
nop
lea eax, [ebp - 0x198]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d34d
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
nop
lea eax, [ebp - 0x1b0]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405e40
mov ecx, dword [ebp - 0x1a4]
or ecx, 1
mov dword [ebp - 0x1a4], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004070c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b0]
call fcn.00407230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00407150
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret
Function at 0x40dd70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.00471bbf
add esp, 8
push 0x493948
lea edx, [ebp - 0x204]
push edx
call fcn.00471b4e
add esp, 8
mov eax, dword [str.fgimllnamdeacpaddbdafchhcmapebgj]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.00471b4e
add esp, 8
mov dword [ebp - 0x408], 0
push 0
lea edx, [ebp - 0x408]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40ddfe
mov eax, 2
jmp 0x40deb2
mov dword [ebp - 0x40c], 0
push str.https:__clients2.google.com_service_update2_crx
lea edx, [ebp - 0x404]
push edx
call fcn.00471bbf
add esp, 8
lea eax, [ebp - 0x404]
push eax
call fcn.00471be1
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov dword [ebp - 0x410], edx
cmp dword [ebp - 0x410], 0x200
jae 0x40de51
jmp 0x40de57
call fcn.0046c6d1
nop
xor eax, eax
mov ecx, dword [ebp - 0x410]
mov word [ebp + ecx - 0x404], ax
mov edx, dword [ebp - 0x40c]
push edx
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push str.update_url
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40dea3
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
jmp 0x40deb2
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret
Function at 0x40e6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c8d0
push eax
call fcn.0040c900
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40e6de
mov edx, dword [ebp + 8]
push edx
call fcn.0040e4c0
add esp, 4
jmp 0x40e870
mov ecx, dword [ebp - 0x2c]
call fcn.0040ea80
test eax, eax
je 0x40e724
mov ecx, dword [ebp - 0x2c]
call fcn.0040ea80
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.0040c8e0
cmp esi, eax
jae 0x40e724
mov eax, dword [ebp + 8]
push eax
call fcn.0040fdd0
add esp, 4
mov byte [ebp - 0x2f], al
mov ecx, dword [ebp - 0x2c]
call fcn.0040a060
mov cl, byte [ebp - 0x2f]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x40e870
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x40e737
call fcn.0040c8d0
jmp 0x40e870
mov ecx, dword [ebp - 0x2c]
call fcn.0040a100
nop
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x40e791
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040fdd0
add esp, 4
mov byte [ebp - 0x30], al
mov ecx, dword [ebp - 0x44]
push ecx
movzx edx, byte [ebp - 0x30]
push edx
call fcn.00403300
add esp, 8
movzx eax, al
test eax, eax
je 0x40e781
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
jmp 0x40e789
call fcn.0040c8d0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x40e870
mov dword [ebp - 0x54], 0x20
mov edx, dword [ebp + 8]
push edx
call fcn.0040fdd0
add esp, 4
mov byte [ebp - 0x2e], al
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x48]
call fcn.0040e660
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40e7ee
cmp dword [ebp - 0x34], 1
je 0x40e7ee
cmp dword [ebp - 0x34], 3
je 0x40e83b
jmp 0x40e86b
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x40e820
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call fcn.00472d99
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40e820
call fcn.0040c8d0
jmp 0x40e870
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x2e]
cmp dword [ebp - 0x50], ecx
je 0x40e834
mov eax, dword [ebp + 8]
jmp 0x40e870
call fcn.0040c8d0
jmp 0x40e870
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, byte [ebp - 0x2e]
push ecx
call fcn.00403300
add esp, 8
movzx edx, al
test edx, edx
je 0x40e85e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
jmp 0x40e866
call fcn.0040c8d0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x40e870
call fcn.0040c8d0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret 4
Function at 0x40f670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4920a0
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x138], ecx
push 0
push 0x1c
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx]
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
mov dword [ebp - 0x130], 0
jmp 0x40f6d7
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x138]
add ecx, 4
call fcn.0040fbc0
cmp dword [ebp - 0x130], eax
jae 0x40f7a0
mov ecx, dword [ebp - 0x138]
add ecx, 4
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x130]
push edx
mov ecx, dword [ebp - 0x13c]
call fcn.00407a80
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
call fcn.0040b9c0
movzx eax, al
test eax, eax
je 0x40f79b
mov ecx, dword [ebp - 0x134]
call fcn.0040b9e0
movzx ecx, al
test ecx, ecx
je 0x40f79b
mov ecx, dword [ebp - 0x134]
call fcn.0040d4f0
movzx edx, al
test edx, edx
je 0x40f79b
mov eax, dword [ebp - 0x134]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0040b1a0
add esp, 8
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x12c]
call fcn.00407a40
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.0040ec70
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.004070c0
nop
jmp 0x40f6c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret
Function at 0x410340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x410360
jl 0x410357
cmp dword [ebp + 0xc], 0
ja 0x410360
xor eax, eax
xor edx, edx
jmp 0x4104a2
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x410382
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.004104b0
jmp 0x4104a2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
call fcn.00409660
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x4103f2
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004048f0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040d4d0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040c3b0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040ccc0
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x410493
mov ecx, dword [ebp - 8]
call fcn.0040a100
mov dword [ebp - 0x20], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x410462
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00472705
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x410460
xor eax, eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
sbb edx, eax
mov eax, ecx
jmp 0x4104a2
jmp 0x41040e
cmp dword [ebp - 4], 0
jbe 0x410493
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00472705
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411aa0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0
push 3
push 0
push 3
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x411acf
xor al, al
jmp 0x411b69
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 0x10]
je 0x411aee
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x411b69
mov eax, dword [ebp + 0x10]
push eax
push 8
mov ecx, dword [0x6c0084]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0046e4cd
add esp, 0xc
test eax, eax
jne 0x411b47
mov dword [ebp - 0x10], 1
jmp 0x411b4e
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [0x6c0084]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x411cf0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x18]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x411d27
jmp 0x411d6f
mov edx, 0xc
imul eax, edx, 0
lea ecx, [ebp + eax - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x14], 1
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 8], 2
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret
Function at 0x411da0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00411ba0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x411eba
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x411eba
lea eax, [ebp - 0x204]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x5c
lea ecx, [ebp - 0x204]
push ecx
call fcn.00412450
add esp, 8
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x408]
xor eax, dword [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0x494718
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x411ea8
mov edx, dword [ebp - 0x408]
xor edx, dword [ebp - 0x40c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x49472c
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x411e8f
xor al, al
jmp 0x411ebc
push 4
push 0
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov al, 1
jmp 0x411ebc
push 4
push 0
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret

Function at 0x411ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411aa0
add esp, 0xc
movzx eax, al
cmp eax, 1
jne 0x411ef4
mov al, 1
jmp 0x411f55
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411da0
add esp, 4
movzx edx, al
test edx, edx
jne 0x411f0b
xor al, al
jmp 0x411f55
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x411f31
xor al, al
jmp 0x411f55
push 0
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x411f60
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa08]
push eax
push 3
push 0
push 0x494760
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x411f9c
mov eax, 1
jmp 0x412129
mov dword [ebp - 0xa10], 0x400
push 0x400
push 0
lea ecx, [ebp - 0xa04]
push ecx
call fcn.0046fb60
add esp, 0xc
push 0x400
push 0
lea edx, [ebp - 0x604]
push edx
call fcn.0046fb60
add esp, 0xc
lea eax, [ebp - 0xa10]
push eax
lea ecx, [ebp - 0xa04]
push ecx
push 0
push 0
push str.AppInit_DLLs
mov edx, dword [ebp - 0xa08]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412011
mov eax, dword [ebp - 0xa08]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
jmp 0x412129
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0xa04]
test eax, eax
je 0x41211b
lea ecx, [ebp - 0xa04]
mov dword [ebp - 0xa0c], ecx
cmp dword [ebp - 0xa0c], 0
je 0x4120c6
lea edx, [ebp - 0x204]
push edx
mov edx, 0x49475c
mov ecx, dword [ebp - 0xa0c]
call fcn.00411c00
mov dword [ebp - 0xa0c], eax
push 0x4947e8
lea eax, [ebp - 0x204]
push eax
call fcn.00414600
add esp, 8
test eax, eax
je 0x412079
jmp 0x4120c1
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x604]
test eax, eax
je 0x4120a6
push 0x4947f8
push 0x200
lea ecx, [ebp - 0x604]
push ecx
call fcn.00473306
add esp, 0xc
lea edx, [ebp - 0x204]
push edx
push 0x200
lea eax, [ebp - 0x604]
push eax
call fcn.00473306
add esp, 0xc
jmp 0x412035
lea ecx, [ebp - 0x604]
push ecx
call fcn.00471be1
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0xa10], edx
mov eax, dword [ebp - 0xa10]
push eax
lea ecx, [ebp - 0x604]
push ecx
push 1
push 0
push 0x4947fc
mov edx, dword [ebp - 0xa08]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41211b
mov eax, dword [ebp - 0xa08]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
jmp 0x412129
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411d80
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret

Function at 0x414650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x69e3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x208], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.00471bbf
add esp, 8
lea edx, [ebp - 0x204]
push edx
call fcn.00471be1
add esp, 4
lea eax, [eax + eax + 2]
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
shl ecx, 1
mov dword [ebp - 0x20c], ecx
cmp dword [ebp - 0x20c], 0x200
jae 0x4146b5
jmp 0x4146bb
call fcn.0046c6d1
nop
xor edx, edx
mov eax, dword [ebp - 0x20c]
mov word [ebp + eax - 0x204], dx
mov ecx, dword [ebp - 0x208]
push ecx
lea edx, [ebp - 0x204]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c7ae
mov esp, ebp
pop ebp
ret
Function at 0x414d30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 8], 0x67452301
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx + 8], 0xefcdab89
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 8], 0x98badcfe
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 8], 0x10325476
pop ebp
ret