joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bee9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
sub eax, eax
mov ax, word [edx + 2]
mov dword [ebp - 0x118], eax
add edx, 0x14
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x114], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0xc]
mov ebx, dword [ebp + 8]
push edx
push 4
push eax
push dword [ebp - 0x114]
call dword [ebx + 0x24]
test eax, eax
je 0x4befee
mov byte [ebp - 0x10c], 0x53
mov byte [ebp - 0x10b], 0x65
mov byte [ebp - 0x10a], 0x74
mov byte [ebp - 0x109], 0x20
mov byte [ebp - 0x108], 0x49
mov byte [ebp - 0x107], 0x6d
mov byte [ebp - 0x106], 0x61
mov byte [ebp - 0x105], 0x67
mov byte [ebp - 0x104], 0x65
mov byte [ebp - 0x103], 0x20
mov byte [ebp - 0x102], 0x77
mov byte [ebp - 0x101], 0x72
mov byte [ebp - 0x100], 0x69
mov byte [ebp - 0xff], 0x74
mov byte [ebp - 0xfe], 0x61
mov byte [ebp - 0xfd], 0x62
mov byte [ebp - 0xfc], 0x6c
mov byte [ebp - 0xfb], 0x65
mov byte [ebp - 0xfa], 0x3a
mov byte [ebp - 0xf9], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x4befee
mov edx, dword [ebp - 0x110]
lea ebx, [edx + 0x60]
mov eax, dword [edx + 0x5c]
mov edx, 8
mul edx
add eax, ebx
mov dword [ebp - 8], eax
mov eax, 0x28
mov edx, dword [ebp - 0x118]
mul edx
add eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
sub eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x114]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x118]
mov ebx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 0x114]
push ebx
push dword [ebp + 8]
call fcn.004beff8
test eax, eax
je 0x4befee
add ebx, 0x28
dec ecx
jne 0x4befc7
popal
mov eax, dword [ebp - 0x114]
leave
ret 0x10
popal
mov eax, 0
leave
ret 0x10

Function at 0x4bf09e
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
pushal
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x24]
and ebx, 0xe0000000
cmp ebx, 0xe0000000
jne 0x4bf0c9
mov eax, 0x40
mov dword [ebp - 0x108], eax
jmp 0x4bf12e
mov ebx, dword [edx + 0x24]
and ebx, 0x60000000
cmp ebx, 0x60000000
jne 0x4bf0e7
mov eax, 0x20
mov dword [ebp - 0x108], eax
jmp 0x4bf12e
mov ebx, dword [edx + 0x24]
and ebx, 0xc0000000
cmp ebx, 0xc0000000
jne 0x4bf105
mov eax, 4
mov dword [ebp - 0x108], eax
jmp 0x4bf12e
mov ebx, dword [edx + 0x24]
and ebx, 0x40000000
cmp ebx, 0x40000000
jne 0x4bf123
mov eax, 2
mov dword [ebp - 0x108], eax
jmp 0x4bf12e
mov eax, 1
mov dword [ebp - 0x108], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x4bf16b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov eax, 1
popal
mov eax, 1
leave
ret 0x10
popal
sub eax, eax
leave
ret 0x10
Function at 0x4bf172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x4bf1a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x4bf1a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x4bfdff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.004bff04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.004bff20
push edx
push dword [ebp + 0x10]
push eax
call fcn.004bfeec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.004bff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.004bfecb
push ecx
push dword [ebp + 8]
call fcn.004bff04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.004bff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.004bfecb
push ecx
push dword [ebp + 8]
call fcn.004bff04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.004bff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.004bfecb
push ecx
push dword [ebp + 8]
call fcn.004bff04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.004bff04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.004bfecb
cmp ecx, 0x2b
jne 0x4bfe0f
leave
ret 0xc

Function at 0x4c14b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x4c1544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0xb14c0
push 0
call dword [eax + 0x20]
test eax, eax
je 0x4c15d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0xb14c0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0xb14c0
call fcn.004c13fa
push 0xb14c0
push dword [ebp + 0xc]
call fcn.004bf1a8
test eax, eax
jne 0x4c15b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0xb14c0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.004c15dd
test eax, eax
je 0x4c15d6
jmp 0x4c1574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x4c15d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x4c160b
Capabilities:
Terminate process

Disassembly:
call fcn.004c1618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x1009840
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x100d0ac]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x434], eax
xor esi, esi
mov dword [ebp - 0x438], edi
call fcn.0100ae19
lea ecx, [ebp - 0x430]
call fcn.0100ab92
test eax, eax
je 0x10098ad
lea ecx, [ebp - 0x430]
call fcn.0100ab9e
cmp eax, 0x70002
ja 0x10098aa
lea ecx, [ebp - 0x430]
call fcn.0100abb6
cmp eax, 0x75e
jbe 0x10098ad
xor esi, esi
inc esi
lea eax, [ebp - 0x43c]
push eax
push 0x20019
push edi
push 0x1001278
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009974
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x440]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1009905
cmp dword [ebp - 0x440], edi
jbe 0x1009905
mov dword [ebp - 0x438], 1
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x438], edi
je 0x1009974
neg esi
push 0x208
lea eax, [ebp - 0x210]
sbb esi, esi
push eax
add esi, 0xe4
push esi
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x134
push dword [ebp - 0x434]
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x1009958
xor edi, edi
inc edi
lea ecx, [ebp - 0x430]
call fcn.0100ae9f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01009b9d
leave
ret 8
cmp esi, edi
je 0x1009955
push 0x208
lea eax, [ebp - 0x210]
push eax
push 0xe5
jmp 0x1009930
Function at 0x1009cb5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10020b0
call fcn.01009eb8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1009cf2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009cf2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1009d0a
cmp eax, 0x20b
je 0x1009cf7
mov dword [ebp - 0x1c], ebx
jmp 0x1009d1e
cmp dword [ecx + 0x84], 0xe
jbe 0x1009cf2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1009d18
cmp dword [ecx + 0x74], 0xe
jbe 0x1009cf2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100d220], 0xffffffff
or dword [0x100d224], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100d210]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100d20c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100d228], eax
call fcn.01009eae
cmp dword [0x100d0b0], ebx
jne 0x1009d79
push fcn.01009eae
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01009e97
push 0x100d010
push 0x100d00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100d208]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100d204]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100d008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1009e0f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1009de3
cmp al, 0x22
jne 0x1009dd5
cmp byte [esi], 0x22
jne 0x1009dec
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1009df6
cmp al, 0x20
jbe 0x1009de8
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1009e1a
movzx eax, word [ebp - 0x50]
jmp 0x1009e1d
cmp byte [esi], 0x20
jbe 0x1009dec
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1009e0f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1009e3a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1009e6f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01009ef3
ret
Function at 0x1009f21
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
cmp dword [0x100d0b4], 0xffffffff
mov eax, dword [0x100d0ac]
mov dword [ebp - 4], eax
jne 0x100a009
push edi
xor eax, eax
lea edi, [ebp - 0xc4]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc8]
push eax
push 0x20019
push 0
push 0x10012a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x1009fff
push 4
pop eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xd0]
push eax
push 0
push 0x10020c0
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1009fe7
lea ecx, [ebp - 0xc0]
call fcn.0100a525
lea ecx, [ebp - 0xc0]
call fcn.0100a60d
test eax, eax
je 0x1009fda
xor eax, eax
cmp dword [ebp - 0xc4], 2
setne al
mov dword [0x100d0b4], eax
jmp 0x1009ff1
xor eax, eax
cmp dword [ebp - 0xc4], eax
sete al
jmp 0x1009fd3
mov dword [0x100d0b4], 1
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100a009
mov dword [0x100d0b4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x100d0b4], eax
sete al
call fcn.01009b9d
leave
ret

Function at 0x100a1e6
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
ret 4

Function at 0x100a202
Capabilities:
Get common file path
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x100d0ac]
push ebx
push edi
mov edi, dword [ebp + 8]
push 0x80
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x51c], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x100a2da
push edi
lea ecx, [ebp - 0x518]
call fcn.0100a825
cmp byte [ebp - 0x413], bl
jne 0x100a2d0
cmp byte [ebp - 0x40f], bl
jne 0x100a2d0
cmp byte [ebp - 0x30e], bl
je 0x100a2d0
cmp byte [ebp - 0x20d], bl
je 0x100a2d0
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x100a2da
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x10c]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x20d]
push eax
call esi
add ebx, eax
lea eax, [ebp - 0x30e]
push eax
call esi
lea eax, [ebx + eax + 2]
cmp dword [ebp + 0xc], eax
pop esi
jbe 0x100a2da
lea eax, [ebp - 0x20d]
push eax
lea eax, [ebp - 0x30e]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x1001d60
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [ebp - 0x51c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x51c]
pop edi
pop ebx
call fcn.01009b9d
leave
ret 8
Function at 0x100a706
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100d0ac]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, esi
push edi
inc eax
xor edi, edi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100a729
push 2
sub ecx, edx
pop ebx
cmp ecx, ebx
jle 0x100a781
mov dl, byte [esi + 1]
cmp dl, 0x3a
jne 0x100a74f
xor eax, eax
cmp byte [esi + 2], 0x5c
sete al
inc eax
mov edi, eax
jmp 0x100a788
cmp byte [esi], 0x5c
jne 0x100a788
xor edi, edi
cmp dl, 0x5c
jne 0x100a77e
cmp ecx, ebx
mov edx, ebx
jle 0x100a811
cmp byte [edx + esi], 0x5c
jne 0x100a770
inc edi
cmp edi, ebx
je 0x100a77a
inc edx
cmp edx, ecx
jl 0x100a765
jmp 0x100a811
mov edi, edx
jmp 0x100a788
inc edi
jmp 0x100a788
cmp byte [esi], 0x5c
jne 0x100a788
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x10c]
sub eax, esi
dec ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ecx
cmp edi, dword [ebp - 0x218]
jge 0x100a7b2
inc edi
cmp byte [edi + esi], 0x5c
jne 0x100a7a3
lea eax, [ebp - 0x214]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, esi
mov cl, byte [eax]
mov edx, dword [ebp - 0x21c]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100a7c6
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp + edi - 0x10b], cl
call ebx
test eax, eax
jne 0x100a7fd
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
jne 0x100a811
lea eax, [ebp - 0x214]
push eax
call ebx
cmp edi, dword [ebp - 0x218]
jl 0x100a7ab
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009b9d
leave
ret 4
Function at 0x403930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x41833c]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.004032a0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.00406610
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403c20
lea ecx, [ebp - 0x438]
call fcn.00406610
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.004036d0
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4039ae
call fcn.00403300
mov dword [ebp - 0x444], eax
jmp 0x403b03
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x4039df
call fcn.00403300
mov dword [ebp - 0x444], eax
jmp 0x403b03
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x403a0f
call fcn.00403300
mov dword [ebp - 0x444], eax
jmp 0x403b03
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x403a5f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.004066a0
lea ecx, [ebp - 0x2c]
call fcn.00406370
mov eax, dword [ebp - 0x44c]
jmp 0x403b38
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.004066d0
lea ecx, [ebp - 0x438]
call fcn.004066c0
test eax, eax
jne 0x403a8c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x403b03
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.004066c0
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.004032a0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x403ace
call fcn.00403300
mov dword [ebp - 0x444], eax
jmp 0x403b03
lea ecx, [ebp - 0x438]
call fcn.004066c0
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.004066c0
push eax
lea ecx, [ebp - 0x18]
call fcn.00403c50
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x403b13
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.004066a0
lea ecx, [ebp - 0x2c]
call fcn.00406370
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00409c53
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405430
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x41833c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00405200
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004053d0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40549b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00405230
mov eax, dword [ebp - 0x224]
jmp 0x40552c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405501
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00405430
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4054f8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00405230
mov eax, dword [ebp - 0x228]
jmp 0x40552c
mov dword [ebp - 4], 0x100
jmp 0x4054a2
lea ecx, [ebp - 0x14]
call fcn.00405310
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004052b0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00405230
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00409c53
mov esp, ebp
pop ebp
ret 4
Function at 0x405a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x405a99
xor ecx, ecx
jne 0x405a99
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x405aba
mov eax, 0xd
jmp 0x405b15
xor eax, eax
jne 0x405aa1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x405acb
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x406aa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41833c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push 0x208
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00409850
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.LogComputerZ4.log
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b32
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
call fcn.00407120
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409c53
mov esp, ebp
pop ebp
ret
Function at 0x406e80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.00409e70
mov eax, dword [0x41833c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [0x414858]
mov word [ebp - 0x4008], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x4006]
push ecx
call fcn.00409850
add esp, 0xc
mov dword [ebp - 0x400c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x406ed7
cmp dword [ebp + 0x10], 0
jne 0x406ede
xor eax, eax
jmp 0x406fdc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x400c], eax
cmp dword [ebp - 0x400c], 0
je 0x406f06
cmp dword [ebp - 0x400c], 0x3fff
jbe 0x406f0d
xor eax, eax
jmp 0x406fdc
lea ecx, [ebp - 0x4008]
push ecx
mov edx, dword [ebp - 0x400c]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x406fda
lea ecx, [ebp - 0x4014]
push ecx
lea edx, [ebp - 0x4010]
push edx
push 0x41485c
lea eax, [ebp - 0x4008]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x406fda
mov ecx, dword [ebp + 0x14]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.00409850
add esp, 0xc
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x4010]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x414860
mov eax, dword [ebp + 0x14]
sub eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040a0e8
add esp, 0x1c
mov eax, 1
jmp 0x406fdc
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409c53
mov esp, ebp
pop ebp
ret 0x10