joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004770
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
push esi
push edi
mov eax, dword [ebp]
mov edi, dword [ebp + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10004873
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x100047f6
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x10004856
mov eax, dword [ebp + 0x34]
mov edx, dword [ebx - 4]
push eax
mov ecx, edi
push 4
push 0x1000
add ecx, edx
push esi
push ecx
call dword [ebp + 0x1c]
add esp, 0x14
test eax, eax
je 0x1000487e
mov eax, dword [ebx - 4]
mov ecx, esi
mov edx, ecx
add edi, eax
xor eax, eax
mov dword [ebx - 8], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x10004852
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
add ecx, eax
push ecx
push edx
call fcn.10004760
add esp, 8
test eax, eax
je 0x1000487e
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebx]
push eax
mov eax, dword [ebx - 4]
mov edx, edi
push 4
push 0x1000
add edx, eax
push ecx
push edx
call dword [ebp + 0x1c]
add esp, 0x14
test eax, eax
je 0x1000487e
mov ecx, dword [ebx - 4]
mov esi, dword [ebx + 4]
mov eax, edi
mov edi, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [ebx]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov edi, dword [esp + 0x24]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add ebx, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x100047a3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10004890
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [edi]
mov edx, dword [edi + 0x3c]
push edx
mov cx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov eax, dword [ecx + eax + 0x20]
push eax
mov dword [esp + 0x1c], eax
call fcn.100049e0
push esi
push edi
mov dword [esp + 0x28], eax
call fcn.10004a10
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x24]
add esp, 0x10
mov dword [esp + 0x20], eax
mov eax, 1
mov dword [esp + 0x24], 0
add esi, 0x28
cmp word [ecx + 6], ax
mov dword [esp + 0x10], eax
jbe 0x100049ac
mov edx, dword [edi + 0x3c]
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x34], eax
call fcn.100049e0
push esi
push edi
mov ebx, eax
call fcn.10004a10
mov edx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x10004956
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, ebx
ja 0x10004956
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.10004a40
add esp, 8
test eax, eax
je 0x100049cc
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], eax
jmp 0x1000498b
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x20]
test eax, 0x2000000
je 0x10004974
test ecx, 0x2000000
je 0x10004974
or ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x1000497f
or eax, ecx
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
sub ebp, edx
add ebp, eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x100048f2
mov eax, 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.10004a40
add esp, 8
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x10006310
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1003fcd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
push edi
mov byte [esp + 0xc], 0x5c
mov byte [esp + 0xd], bl
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x28], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.1000a3e0
mov esi, dword [esp + 0x30]
mov dl, byte [esp + 0x10]
lea ecx, [esp + 0x10]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x10043ac4]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.1000a1e0
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x100063cd
mov al, byte [ecx - 1]
cmp al, bl
je 0x100063c3
cmp al, 0xff
je 0x100063c3
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.10037b50
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x1000dd37
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x1000dd75
call fcn.1003d082
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000dd75
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000dd8c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x1000dd8c
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x10032f10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.100152c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x10032fdb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x10032fdb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x10032f8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x10032f99
or bh, 8
and edi, 0x8000000
je 0x10032fb4
mov eax, dword [0x1005a4bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x10032fdb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100333b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100333db
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100333ff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x1003341a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x10036c3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10036c80
call fcn.1003d082
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10036c80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10036c77
xor eax, eax
jmp 0x10036c88
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10036c8e
pop edi
pop esi
pop ebx
ret 4
Function at 0x4036f0
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4210f0
mov eax, dword fs:[0]
push eax
sub esp, 0x7f4
mov eax, dword [0x431080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
push 0x7d0
lea eax, [ebp - 0x7e0]
push 0
push eax
call fcn.0040b3c0
add esp, 0xc
lea eax, [ebp - 0x7e0]
push eax
push 0x384
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
lea eax, [ebp - 0x7fc]
mov dword [ebp - 0x7fc], 0
push eax
push 0
push 2
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403795
push 0x40000
push str.Attention_
push str.RegCreateKeyEx_cannot_create_a_key_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4038ea
lea eax, [ebp - 0x7e0]
push eax
lea ecx, [ebp - 0x7f8]
call fcn.00406230
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x7e4]
test bl, bl
je 0x40381f
mov edi, dword [ebp - 0x7e8]
mov eax, ecx
sub eax, edi
cmp eax, 0x12
jb 0x4037fc
cmp ecx, 7
lea esi, [ebp - 0x7f8]
lea eax, [edi + 0x12]
cmova esi, dword [ebp - 0x7f8]
push 0x24
mov dword [ebp - 0x7e8], eax
push str.RunCollection.exe
lea eax, [esi + edi*2]
push eax
call fcn.0040ae30
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x24], ax
jmp 0x403865
push 0x12
push str.RunCollection.exe
mov byte [ebp - 0x800], 0
lea ecx, [ebp - 0x7f8]
push dword [ebp - 0x800]
push 0x12
call fcn.00407af0
jmp 0x403865
cmp ecx, 1
jb 0x403846
cmp ecx, 7
mov dword [ebp - 0x7e8], 1
lea eax, [ebp - 0x7f8]
cmova eax, dword [ebp - 0x7f8]
mov dword [eax], 0x20
jmp 0x403865
push 0x42d63c
mov byte [ebp - 0x800], 0
lea ecx, [ebp - 0x7f8]
push dword [ebp - 0x800]
push 1
call fcn.004079c0
mov edx, dword [ebp - 0x7fc]
test edx, edx
je 0x4038ae
mov eax, dword [ebp - 0x7e8]
lea ecx, [ebp - 0x7f8]
cmp dword [ebp - 0x7e4], 7
cmova ecx, dword [ebp - 0x7f8]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.MBURTOOLS
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x7fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x7e4]
cmp ecx, 7
jbe 0x4038ea
mov edx, dword [ebp - 0x7f8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4038e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403906
push ecx
push edx
call fcn.00409c9b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409a0c
mov esp, ebp
pop ebp
ret
call fcn.004105f0
int3
Function at 0x403910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42112d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x431080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x2d], cl
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 2
push 0
push 0
push 0
push 0x42d640
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403982
push 0x40000
push str.Attention_
push str.RegCreateKeyEx_cannot_create_a_key_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403a08
xorps xmm0, xmm0
mov eax, 7
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x2d], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x28], 0x31
jne 0x4039af
mov dword [ebp - 0x28], 0x30
test ecx, ecx
je 0x4039d5
push 4
lea eax, [ebp - 0x28]
push eax
push 1
push 0
push 0x42d67c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x403a08
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4039fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a21
push ecx
push edx
call fcn.00409c9b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409a0c
mov esp, ebp
pop ebp
ret
call fcn.004105f0
int3

Function at 0x403a30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42112d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x431080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x2d], cl
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 2
push 0
push 0
push 0
push 0x42d640
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403aa2
push 0x40000
push str.Attention_
push str.RegCreateKeyEx_cannot_create_a_key_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403b28
xorps xmm0, xmm0
mov eax, 7
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x2d], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x28], 0x31
jne 0x403acf
mov dword [ebp - 0x28], 0x30
test ecx, ecx
je 0x403af5
push 4
lea eax, [ebp - 0x28]
push eax
push 1
push 0
push str.trey
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x403b28
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b41
push ecx
push edx
call fcn.00409c9b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409a0c
mov esp, ebp
pop ebp
ret
call fcn.004105f0
int3
Function at 0x403b50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42112d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x431080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x2d], cl
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 2
push 0
push 0
push 0
push 0x42d640
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403bc2
push 0x40000
push str.Attention_
push str.RegCreateKeyEx_cannot_create_a_key_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403c7d
xorps xmm0, xmm0
mov eax, 7
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 1
je 0x403c16
mov dword [ebp - 0x28], 0x31
test ecx, ecx
je 0x403c4a
push 4
lea eax, [ebp - 0x28]
push eax
push 1
push 0
push str.autorun
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, 1
jmp 0x403c42
mov dword [ebp - 0x28], 0x30
test ecx, ecx
je 0x403c4a
push 4
lea eax, [ebp - 0x28]
push eax
push 1
push 0
push str.autorun
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor cl, cl
call fcn.004036f0
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x403c7d
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403c73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c96
push ecx
push edx
call fcn.00409c9b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409a0c
mov esp, ebp
pop ebp
ret
call fcn.004105f0
int3
Function at 0x406960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421350
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x431080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x14], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.00409a1a
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004092e7
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.00406b00
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], esi
mov esi, eax
mov dword [eax + 0x1c], ecx
mov dword [eax], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3e], 0
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov edx, dword [0x433418]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x433414]
mov dword [ebx], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a515
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a554
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a554
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a554
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a554
cmp dword [ecx + 0x74], 0xe
jbe 0x40a554
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x416609
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4253e0
push 0x4253d8
push str.FlsAlloc
push 0x1f
call fcn.004164f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41663d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4221ec]
call esi
jmp 0x416643
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416687
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4253f0
push 0x4253e8
push str.FlsGetValue
push 0x21
call fcn.004164f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4166be
push dword [ebp + 8]
mov ecx, esi
call dword [0x4221ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4166c6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4253f8
push 0x4253f0
push str.FlsSetValue
push 0x22
call fcn.004164f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416700
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4221ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x416f2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a780
mov eax, dword [0x431080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004145af
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416f6e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4170ca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420d00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x432a08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00417351
mov ecx, dword [esi*4 + 0x432a08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4170c3
cmp eax, dword [ecx + edi + 0x24]
jne 0x4170c3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4170c3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417351
add esp, 0x14
test edx, edx
jl 0x4170c3
jg 0x417039
test eax, eax
jb 0x4170c3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4170c3
jl 0x417053
cmp dword [ebp - 0x1008], eax
ja 0x4170c3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417071
test ebx, ebx
je 0x4170aa
cmp ecx, edi
jae 0x4170aa
mov al, byte [ecx]
cmp al, 0xd
jne 0x41708b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417097
cmp byte [ecx + 1], 0xa
jne 0x417097
inc ecx
jmp 0x417097
movzx eax, al
movsx eax, byte [eax + 0x431a00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417071
cmp edx, ebx
jne 0x417071
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4170c8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a0c
leave
ret