joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f8a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x47e5b0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x45f8c5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x45f90c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x45f910
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x45f96e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x45f933
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x45f9b1
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x475877
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x475878
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x45f980
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x462d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00462be0
movzx eax, al
test eax, eax
jne 0x462d2a
xor al, al
jmp 0x462d63
mov ecx, dword [ebp + 0xc]
call fcn.00403200
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004032a0
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004032a0
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x462d61
xor al, al
jmp 0x462d63
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x463050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468863
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x47d1a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x84]
call fcn.00462be0
movzx eax, al
test eax, eax
jne 0x4630b0
mov ecx, dword [ebp + 8]
call fcn.00403880
mov ecx, dword [ebp - 0x40]
or ecx, 1
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 8]
jmp 0x4631b4
lea edx, [ebp - 0x14]
push edx
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004032a0
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4630eb
cmp dword [ebp - 0x10], 1
je 0x463104
cmp dword [ebp - 0x10], 2
je 0x463104
cmp dword [ebp - 0x10], 6
je 0x463104
mov ecx, dword [ebp + 8]
call fcn.00403880
mov eax, dword [ebp - 0x40]
or eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
jmp 0x4631b4
cmp dword [ebp - 0x14], 0
jbe 0x4631a0
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040e400
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040e440
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004032a0
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040e450
mov byte [eax], 0
lea ecx, [ebp - 0x3c]
call fcn.0040e440
push eax
lea ecx, [ebp - 0x34]
call fcn.004030b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403080
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037d0
mov eax, dword [ebp + 8]
jmp 0x4631b4
mov ecx, dword [ebp + 8]
call fcn.00403880
mov eax, dword [ebp - 0x40]
or eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041233e
mov esp, ebp
pop ebp
ret 8
Function at 0x463580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4688d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x47d1a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x2c]
call fcn.00403880
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x463624
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040dce0
lea edx, [ebp + 0x18]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040dcc0
push eax
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.0040dcc0
push eax
mov ecx, dword [ebp + 8]
call fcn.004030b0
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004037d0
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.0041233e
mov esp, ebp
pop ebp
ret

Function at 0x463840
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46892d
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x47d1a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], 0
push 0x228
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.00416fc0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4638a4
xor al, al
jmp 0x46393f
mov dword [ebp - 0x244], 0x22c
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x463933
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.00463670
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.004032a0
push eax
lea ecx, [ebp - 0x260]
call fcn.004032a0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x46390d
lea edx, [ebp - 0x23c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040ddb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.004037d0
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4638c2
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041233e
mov esp, ebp
pop ebp
ret
Function at 0x463960
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468965
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x47d1a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.004032a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x463a5d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004637d0
add esp, 8
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0
push 0x476b8c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.004063a0
add esp, 0xc
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x8c]
push eax
lea esi, [ebp - 0x2c]
call fcn.00401990
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004037d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004037d0
lea ecx, [ebp - 0x2c]
call fcn.004032a0
push eax
mov ecx, dword [ebp + 8]
call fcn.004032a0
push eax
call fcn.0041890d
add esp, 8
push 5
push 0
lea ecx, [ebp - 0x2c]
call fcn.004032a0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x2c]
call fcn.004037d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041233e
mov esp, ebp
pop ebp
ret
Function at 0x463c60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468c1f
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x47d1a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2c]
call fcn.00403880
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x463d56
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.004030b0
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
mov byte [ebp - 4], 1
push 0x476bfc
mov edx, dword [ebp - 0xb8]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.004063a0
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.004063a0
add esp, 0xc
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.004037d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.004037d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004037d0
jmp 0x463d62
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004037a0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004032a0
push eax
push 0x476c00
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004037d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041233e
mov esp, ebp
pop ebp
ret

Function at 0x464f30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x466d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x47d1a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x54], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040be60
jmp 0x466d40
push 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 8]
call fcn.0040c4b0
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
call fcn.00409a90
push eax
lea ecx, [ebp - 8]
call fcn.00409eb0
movzx eax, al
test eax, eax
je 0x466dc0
lea ecx, [ebp - 8]
call fcn.00409e50
mov ecx, eax
call fcn.004032a0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
push ecx
call fcn.00463db0
add esp, 8
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x28]
push edx
call fcn.00407c00
add esp, 0x20
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x28]
call fcn.00409020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x466db3
mov byte [ebp - 0x3d], 0
lea esi, [ebp - 0x28]
call fcn.00409080
mov al, byte [ebp - 0x3d]
jmp 0x466dc2
lea esi, [ebp - 0x28]
call fcn.00409080
jmp 0x466d32
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041233e
mov esp, ebp
pop ebp
ret 4

Function at 0x466de0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x47d1a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x54], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040be60
jmp 0x466e10
push 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 8]
call fcn.0040c4b0
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
call fcn.00409a90
push eax
lea ecx, [ebp - 8]
call fcn.00409eb0
movzx eax, al
test eax, eax
je 0x466e90
lea ecx, [ebp - 8]
call fcn.00409e50
mov ecx, eax
call fcn.004032a0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
push ecx
call fcn.00463db0
add esp, 8
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x28]
push edx
call fcn.00407c00
add esp, 0x20
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x28]
call fcn.00409020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x466e83
mov byte [ebp - 0x3d], 0
lea esi, [ebp - 0x28]
call fcn.00409080
mov al, byte [ebp - 0x3d]
jmp 0x466e92
lea esi, [ebp - 0x28]
call fcn.00409080
jmp 0x466e02
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041233e
mov esp, ebp
pop ebp
ret 4
Function at 0x10001000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebx, ebx
mov dword [ebp - 8], ebx
call edi
push dword [ebp + 8]
mov esi, eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
lea eax, [eax + esi + 6]
push eax
push ebx
push dword [0x1002d128]
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100011a9
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
lea eax, [ecx + esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ecx
mov byte [eax], 0x5c
mov byte [eax + 1], bl
call esi
push 0x1002ee02
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
push ebx
push dword [0x1002d128]
call edi
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, ebx
je 0x10001199
mov ecx, dword [ebp + 8]
movsx ax, byte [ecx]
mov word [esi], ax
cmp ax, bx
je 0x100010ac
mov edx, esi
inc ecx
movsx ax, byte [ecx]
inc edx
inc edx
mov word [edx], ax
cmp ax, bx
jne 0x1000109d
push esi
push ebx
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x1000118b
mov edi, dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
push ebx
push eax
xor esi, esi
call edi
cmp eax, ebx
je 0x1000117e
push eax
push dword [ebp + 8]
inc esi
call edi
cmp eax, ebx
jne 0x100010d3
cmp esi, ebx
je 0x1000117e
push 4
xor eax, eax
push ebx
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
mov esi, 0x1002e884
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x1000117e
push dword [ebp - 0x14]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1000117e
push 4
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x1000116e
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000116e
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov esi, dword [ebp + 0xc]
push esi
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 4]
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10001585
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 8
pop ebp
mov esi, 0x104
push esi
xor ebx, ebx
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10001644
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000162e
push 0x3a
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov esi, eax
mov byte [esi + 1], bl
push edi
inc esi
inc esi
push 0x1002f89a
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000162e
push ebx
lea eax, [esp + 0x14]
push eax
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001614
xor ebp, ebp
jmp 0x1000161c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
jne 0x10001636
call fcn.1000154c
jmp 0x10001634
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push edi
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret

Function at 0x1000164c
Capabilities:
Access pe header
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 8
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x10001736
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor esi, esi
push esi
push esi
call edi
mov ebx, eax
lea eax, [ebx + 0x11]
push eax
push esi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000173d
push esi
inc ebx
push ebx
call edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esi + edi]
push 0x1002e176
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10012300
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10001726
cmp dword [ebp + 0x10], ebx
je 0x10001726
lea eax, [ebp + 8]
push eax
push 0x1002e2b8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10001726
movsx ax, byte [0x1002e261]
movzx eax, ax
push eax
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov edi, eax
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000173d
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10001905
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [0x1002d1f8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, eax
test edi, edi
jne 0x1000194e
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call esi
push dword [ebp + 8]
mov edi, eax
call fcn.10011743
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret 4

Function at 0x100019f9
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x20
mov esi, eax
mov dword [ebp - 4], edi
jb 0x10001b21
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea eax, [eax + ecx + 0x20]
cmp dword [ebp + 8], eax
jne 0x10001b21
mov eax, esi
cdq
add dword [esi], eax
adc dword [esi + 4], edx
add dword [esi + 8], eax
adc dword [esi + 0xc], edx
push dword [esi]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x10001b18
mov eax, dword [0x1002d228]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1002d224]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.100175cc
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x10001b28
cmp dword [esi + 0x18], edi
je 0x10001aee
push 0xd80
call fcn.1001071e
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, edi
je 0x10001aee
push dword [esi + 0x10]
lea ebx, [esi + 0x20]
push dword [esi]
xor eax, eax
push ebx
call fcn.10001955
test eax, eax
jne 0x10001ade
test byte [0x1002d230], 1
je 0x10001ade
push dword [esi + 0x14]
mov ecx, dword [ebp - 8]
push dword [esi + 8]
lea eax, [ebp - 4]
push ebx
call fcn.10001955
cmp dword [ebp - 4], edi
je 0x10001ade
push dword [ebp - 4]
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0xc], edi
je 0x10001b28
mov eax, dword [ebp - 0xc]
push edi
push 0x1002f16f
call fcn.100124ad
cmp eax, edi
je 0x10001b0f
push edi
push 0x1002cafc
call eax
jmp 0x10001b28
mov dword [ebp + 8], 0x7f
jmp 0x10001b28
mov dword [ebp + 8], 0xb
jmp 0x10001b28
mov dword [ebp + 8], 0x57
push 0x400
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
push 0x1002f1a2
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 0x10d
call fcn.1000be88
push esi
push edi
push dword [0x1002d128]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8