joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c563
Capabilities:
Create process on windows

Disassembly:
push 0x20
mov eax, 0x46aac0
call fcn.0045f3fe
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
sub ecx, 0x100
je 0x42c5ab
sub ecx, 0x11
je 0x42c597
sub ecx, 0xf1
jne 0x42c62e
mov eax, dword [esi + 0x2b4]
jmp 0x42c5bb
mov ecx, edi
shr ecx, 0x10
cmp cx, 1
jne 0x42c5a7
movzx eax, di
jmp 0x42c5bb
mov dword [edx], ebx
jmp 0x42c5bb
cmp edi, 0xd
je 0x42c5b5
cmp edi, 0x20
jne 0x42c62e
mov eax, dword [esi + 0x2b0]
cmp eax, ebx
je 0x42c62e
cmp eax, 0x26b
jne 0x42c62e
lea ecx, [ebp - 0x2c]
call fcn.00411d68
mov dword [ebp - 4], ebx
mov ecx, dword [0x481204]
lea eax, [ebp - 0x2c]
push eax
push 8
pop eax
call fcn.0041badf
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42c5ef
lea eax, [ebp - 0x28]
mov esi, dword [0x481200]
push eax
push 0x40e93c
call fcn.0042d7c5
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x42c60e
lea eax, [ebp - 0x28]
push 1
push ebx
push ebx
push eax
push 0x40deb4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00411dad
xor eax, eax
call fcn.0045f490
ret 4
Function at 0x42c6b4
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x18], 8
lea ebx, [edi + 4]
jb 0x42c6db
mov eax, dword [ebx]
jmp 0x42c6dd
mov eax, ebx
mov esi, dword [0x481200]
push eax
push 0x40e970
call fcn.0042d7c5
xor esi, esi
cmp dword [edi + 0x18], 8
pop ecx
pop ecx
mov dword [ebp - 0x210], esi
jb 0x42c700
mov ebx, dword [ebx]
lea eax, [ebp - 0x210]
push eax
push 1
push esi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42c72f
mov ecx, dword [0x481200]
push 0x40e9c0
call fcn.0042d4e5
jmp 0x42c836
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x103
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42c799
mov ecx, dword [0x481200]
push 0x40e9dc
call fcn.0042d4e5
jmp 0x42c82a
push 0x44
pop edi
push edi
lea eax, [ebp - 0x26c]
push esi
push eax
call fcn.004433d0
mov dword [ebp - 0x26c], edi
xor eax, eax
lea edi, [ebp - 0x228]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x26c]
push eax
push esi
push esi
push 0x10
push 1
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
je 0x42c818
mov esi, dword [0x481200]
push 0x40ea00
call fcn.0042d7c5
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
push dword [ebp - 0x228]
call esi
push dword [ebp - 0x224]
call esi
jmp 0x42c82a
mov ecx, dword [0x481200]
push 0x40ea50
call fcn.0042d831
pop ecx
pop ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dff7
leave
ret
Function at 0x42d41b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 4], 0xffffffff
je 0x42d43a
mov al, 1
jmp 0x42d4d4
cmp dword [esi + 0x20], 8
jb 0x42d445
mov eax, dword [esi + 0xc]
jmp 0x42d448
lea eax, [esi + 0xc]
push ebx
xor ebx, ebx
push ebx
push 0x80000080
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x42d46e
xor al, al
jmp 0x42d4d3
cmp dword [esi + 0x2c], ebx
jne 0x42d4ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d4ac
push 6
pop eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
mov byte [ebp - 0xc], 0xff
mov byte [ebp - 0xb], 0xfe
mov byte [ebp - 0xa], 0xd
mov byte [ebp - 9], bl
mov byte [ebp - 8], 0xa
mov byte [ebp - 7], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x40ece0
mov ecx, esi
call fcn.0042d4e5
push 0x40ec90
mov ecx, esi
call fcn.0042d4e5
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dff7
leave
ret

Function at 0x42d652
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ebx, [edi + 0x30]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 4], 0xffffffff
jne 0x42d685
mov esi, edi
call fcn.0042d41b
cmp dword [edi + 4], 0xffffffff
jne 0x42d685
push ebx
jmp 0x42d717
mov eax, dword [ebp + 0xc]
xor ebx, ebx
xor esi, esi
lea edx, [eax + 2]
cmp dword [edi + 0x2c], ebx
je 0x42d6df
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x42d694
sub eax, edx
sar eax, 1
lea edi, [eax + eax + 2]
push edi
call fcn.0043e603
push edi
mov esi, eax
push ebx
push esi
call fcn.004433d0
add esp, 0x10
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42d6cf
sub eax, edi
mov edi, dword [ebp + 8]
mov ecx, esi
jmp 0x42d6f2
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x42d6df
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
add eax, eax
cmp eax, ebx
je 0x42d709
push ebx
lea edx, [ebp - 8]
push edx
push eax
push ecx
push dword [edi + 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x42d714
push esi
call fcn.0043e687
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42dea9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46e01f
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x47c144]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x47c144]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x47dfb0], ebx
je 0x42df14
cmp dword [0x47dfcc], ebx
je 0x42df14
mov al, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0043dff7
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], ebx
mov dword [esp + 0x68], 1
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jge 0x42df42
or dword [esp + 0x68], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00429e44
xor al, al
jmp 0x42def6
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x8000
cmp dword [0x47dfb0], ebx
jne 0x42dfa5
lea eax, [esp + 0x18]
push eax
push 0x11
push ebx
call edi
test eax, eax
jl 0x42df2f
push 1
push ebx
push dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push dword [esp + 0x20]
call fcn.0042ddfb
mov byte [esp + 0x68], 2
push 1
push esi
push 0x47df9c
lea ecx, [esp + 0x2c]
call fcn.0042e56f
lea ecx, [esp + 0x20]
call fcn.0042e08a
mov byte [esp + 0x68], 1
lea eax, [esp + 0x20]
push eax
call fcn.0042e043
cmp dword [0x47dfcc], ebx
jne 0x42e03a
lea eax, [esp + 0x18]
push eax
push 0x12
push ebx
call edi
test eax, eax
jge 0x42dfd5
or dword [esp + 0x68], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00429e44
mov al, bl
jmp 0x42def6
push 1
push ebx
push dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push dword [esp + 0x20]
call fcn.0042ddfb
mov byte [esp + 0x68], 3
push 1
push esi
push 0x47dfb8
lea ecx, [esp + 0x2c]
call fcn.0042e56f
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0042e0d1
mov byte [esp + 0x68], 4
lea ecx, [esp + 0x20]
call fcn.0042e08a
mov byte [esp + 0x68], 3
lea eax, [esp + 0x1c]
push eax
call fcn.00429e44
mov byte [esp + 0x68], 1
lea eax, [esp + 0x20]
push eax
call fcn.0042e043
mov bl, 1
jmp 0x42dfbf
Function at 0x4309b0
Capabilities:
Get graphical window text

Disassembly:
push 0x108
mov eax, 0x46c72b
call fcn.0045f3fe
mov esi, ecx
cmp dword [esi + 0x514], 0
jne 0x430bc7
push 0x141
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x430a28
push 0x104
lea edi, [esi + 0x2fe]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push 0x2e
push edi
call fcn.0043ef4e
pop ecx
pop ecx
test eax, eax
je 0x430a28
jmp 0x430a24
cmp word [eax], 0x2e
jne 0x430a28
cmp word [eax + 2], 0
jne 0x430a28
push eax
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.USER32.dll_CharPrevW]
cmp eax, edi
jne 0x430a0a
lea edx, [esi + 0x2fe]
mov eax, edx
push 2
lea edi, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x430a36
sub eax, edi
mov edi, dword [esi + 0x548]
sar eax, 1
cmp eax, edi
jb 0x430b0d
xor eax, eax
push 0xc6
mov word [ebp - 0xd8], ax
xor ebx, ebx
lea eax, [ebp - 0xd6]
push ebx
push eax
call fcn.004433d0
push edi
push 0x40eeec
push 0xffffffffffffffff
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.0043f069
add esp, 0x20
cmp dword [esi + 0x54c], ebx
je 0x430bc7
lea eax, [ebp - 0xd8]
push eax
push 0x1268
lea eax, [ebp - 0x114]
push eax
call fcn.0044be36
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], 8
jb 0x430aba
mov eax, dword [eax + 4]
jmp 0x430abd
add eax, 4
push eax
lea ecx, [ebp - 0xf8]
call fcn.004132cd
mov byte [ebp - 4], 1
mov esi, dword [esi + 0x54c]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
push 0x10
lea edx, [ebp - 0xf8]
push edx
call dword [eax + 0xc]
mov byte [ebp - 4], 0
push ebx
push 1
lea ecx, [ebp - 0xf8]
call fcn.00411dad
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x114]
call fcn.00411dad
jmp 0x430bc7
push edx
lea ecx, [ebp - 0xdc]
call fcn.0042a235
mov dword [ebp - 4], ebx
mov edi, eax
call fcn.004304a5
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0xdc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x430bb2
xor edi, edi
cmp dword [esi + 0x54c], edi
je 0x430bc7
push 0x12c9
lea eax, [ebp - 0x114]
push eax
call fcn.0044bdfb
mov dword [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x430b6c
mov eax, dword [eax + 4]
jmp 0x430b6f
add eax, 4
push eax
lea ecx, [ebp - 0xf8]
call fcn.004132cd
mov byte [ebp - 4], 4
mov esi, dword [esi + 0x54c]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
push 0x10
lea edx, [ebp - 0xf8]
push edx
call dword [eax + 0xc]
mov byte [ebp - 4], 3
push edi
push 1
lea ecx, [ebp - 0xf8]
call fcn.00411dad
or dword [ebp - 4], 0xffffffff
push edi
jmp 0x430afb
movzx eax, word [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov edi, esi
call fcn.0043086d
xor eax, eax
call fcn.0045f490
ret 4
Function at 0x430d35
Capabilities:
Terminate thread

Disassembly:
push 0
mov eax, 0x46f373
call fcn.0045f38b
mov esi, dword [ebp + 8]
mov dword [esi], 0x40ef58
mov dword [ebp - 4], 6
mov eax, dword [esi + 0x514]
test eax, eax
je 0x430d8c
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x430d79
push 0
push dword [esi + 0x514]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x514]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x514], 0
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [esi + 0x528]
call fcn.00411dad
mov byte [ebp - 4], 4
push dword [esi + 0x510]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 3
lea eax, [esi + 0xc8]
push eax
call fcn.00430632
mov byte [ebp - 4], 2
lea eax, [esi + 0xb0]
push eax
call fcn.00430632
mov byte [ebp - 4], 1
lea eax, [esi + 0x98]
push eax
call fcn.00430632
mov byte [ebp - 4], 0
lea eax, [esi + 0x20]
push eax
call fcn.0042ed5b
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00430d10
call fcn.0045f477
ret 4

Function at 0x431d86
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x141
push dword [edi + 4]
call esi
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x431e00
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004433d0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x210], 0
je 0x431dfe
push 1
push dword [edi + 4]
call esi
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dff7
leave
ret

Function at 0x4320bd
Capabilities:
Create thread

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetCapture]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [esi + 0x518]
push eax
push 0
push esi
push 0x4320ff
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x514], eax
ret
Function at 0x43606c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x43607c
push 0xd
pop eax
jmp 0x4360af
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x436083
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4370fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x46d0c7
call fcn.0045f439
mov eax, dword [ebp + 8]
mov esi, edx
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, ebx
jne 0x437156
call fcn.00429728
mov esi, eax
jmp 0x437276
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x43716f
call fcn.00429728
jmp 0x437268
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x437165
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4371cf
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4371be
lea eax, [ebp - 0x418]
call fcn.00435b29
mov eax, 0x8007000e
or dword [ebp - 4], 0xffffffff
call fcn.0045f4a4
ret 0xc
mov byte [ebp - 4], 2
push 2
call fcn.004360b8
cmp eax, 0x400
jbe 0x4371f0
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00435b49
jmp 0x4371fc
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x43721a
cmp dword [ebp - 0x418], ebx
jne 0x437229
mov esi, 0x8007000e
jmp 0x43726a
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x437165
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.00436faf
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x437292
lea eax, [ebp - 0x418]
call fcn.00435b29
mov eax, esi
jmp 0x4371c3
Function at 0x437dba
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x46a90f
call fcn.0045f38b
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x14], ebx
jae 0x437ddd
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ecx
push esi
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x437e18
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00411dad
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00411dad
xor al, al
call fcn.0045f477
ret 0x38
cmp dword [ebp + 0x3c], 8
push 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], ebx
jae 0x437e30
lea eax, [ebp + 0x28]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
test eax, eax
je 0x437e77
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], bl
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00411dad
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp + 0x24]
call fcn.00411dad
mov al, byte [ebp - 0xd]
jmp 0x437e10
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
mov byte [ebp - 0xd], 1
jmp 0x437e57

Function at 0x437e8d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x114
xor ebx, ebx
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x437ef4
cmp dword [ebp - 0x108], 2
jne 0x437ef4
cmp dword [ebp - 0x114], 5
jne 0x437ef4
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebp + 8]
jne 0x437ef4
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043dff7
leave
ret 4

Function at 0x43dff7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47c144]
jne 0x43e001
repz ret
jmp fcn.0044174c
Function at 0x446765
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00440e61
and dword [ebp - 4], 0
cmp dword [0x47ec58], 0
mov ebx, eax
jne 0x446816
push 0x401d30
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4468c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d24
push edi
call esi
test eax, eax
je 0x4468c7
push eax
call fcn.00440dea
mov dword [esp], 0x401d14
push edi
mov dword [0x47ec58], eax
call esi
push eax
call fcn.00440dea
mov dword [esp], 0x401d00
push edi
mov dword [0x47ec5c], eax
call esi
push eax
call fcn.00440dea
mov dword [esp], 0x401ce4
push edi
mov dword [0x47ec60], eax
call esi
push eax
call fcn.00440dea
pop ecx
mov dword [0x47ec68], eax
test eax, eax
je 0x446816
push 0x401ccc
push edi
call esi
push eax
call fcn.00440dea
pop ecx
mov dword [0x47ec64], eax
mov eax, dword [0x47ec64]
cmp eax, ebx
je 0x44686e
cmp dword [0x47ec68], ebx
je 0x44686e
push eax
call fcn.00440e6f
push dword [0x47ec68]
mov esi, eax
call fcn.00440e6f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44686e
test edi, edi
je 0x44686e
call esi
test eax, eax
je 0x446865
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x446865
test byte [ebp - 0xc], 1
jne 0x44686e
or dword [ebp + 0x10], 0x200000
jmp 0x4468a7
mov eax, dword [0x47ec5c]
cmp eax, ebx
je 0x4468a7
push eax
call fcn.00440e6f
pop ecx
test eax, eax
je 0x4468a7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4468a7
mov eax, dword [0x47ec60]
cmp eax, ebx
je 0x4468a7
push eax
call fcn.00440e6f
pop ecx
test eax, eax
je 0x4468a7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47ec58]
call fcn.00440e6f
pop ecx
test eax, eax
je 0x4468c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4468c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44b57b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x47edbc], 0
push esi
jne 0x44b4e9
call fcn.0044b405
test eax, eax
je 0x44b52c
mov eax, dword [0x47edbc]
cmp eax, 1
jne 0x44b50a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x44b52c
pop esi
ret
push eax
call dword [0x47edc4]
test eax, eax
jne 0x44b574
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44b530
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x47edbc]
call dword [0x47edc4]
mov edi, eax
test edi, edi
je 0x44b555
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x44b571
mov edi, esi
add esi, 0xff0
push edi
push dword [0x47edbc]
call dword [0x47edc0]
add edi, 0x10
cmp edi, esi
jb 0x44b55d
mov eax, edi
pop edi
pop esi
ret
jmp 0x44b4d6
Function at 0x44bff3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44c059
cmp dword [ebp - 4], eax
je 0x44c059
mov eax, dword [ebp + 0x14]
push esi
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
push 0
push 0x403018
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x44c059
cmp dword [ebp + 8], 1
jne 0x44c059
xor eax, eax
inc eax
jmp 0x44c05b
xor eax, eax
leave
ret 0x10
Function at 0x451200
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x14
pop ecx
mov esi, 0x40fcc0
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push 5
pop ecx
movsw word es:[edi], word [esi]
mov esi, 0x40fca8
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x74]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x70]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x451257
xor eax, eax
jmp 0x45128c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x451253
movzx eax, word [ebp - 0x78]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043dff7
leave
ret

Function at 0x45129f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.004511e8
test al, al
je 0x45132e
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0xff
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push 0x404098
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x47e084]
test eax, eax
jne 0x45132e
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x40406c
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x451325
cmp dword [ebp - 0x50], 3
jne 0x451325
cmp dword [ebp - 0x4c], 8
jb 0x451325
cmp dword [ebp - 0x40], eax
je 0x451325
mov byte [esi + 0x35], 1
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043dff7
leave
ret