joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450644
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x493a11
call fcn.0046862c
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00435346
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
mov dword [esi], 0x4af688
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
call fcn.0040c4d0
mov ecx, dword [esi + 8]
mov dword [esi + 0x30], ebx
mov eax, dword [ecx]
push 1
mov byte [ebp - 4], 1
call dword [eax + 0x30]
push eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
call fcn.0047e898
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x452390
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
push 0
push ebx
lea ecx, [esi + 0x18]
call fcn.004019d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edi, [esi + 8]
push edi
push ebx
call fcn.004521d0
add esp, 0x10
test al, al
mov byte [esi + 4], al
je 0x452402
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x4523cf
xor eax, eax
jmp 0x4523d4
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x40
mov ecx, dword [esi + 0xc]
jb 0x452402
cmp word [ecx], 0x5a4d
jne 0x452402
mov edx, dword [ecx + 0x3c]
lea edi, [edx + 0xf8]
cmp eax, edi
jb 0x452402
cmp dword [edx + ecx], 0x4550
jne 0x452402
push ecx
lea ecx, [esi + 0x34]
call fcn.00452110
mov al, byte [esi + 4]
pop edi
pop esi
pop ebx
ret 0xc

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

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor bl, bl
test eax, eax
je 0x45449b
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push ebp
push edx
call dword [eax + 0x14]
mov ebp, eax
test ebp, ebp
je 0x454490
mov ecx, dword [esi + 4]
mov dword [esp + 0xc], 0
mov eax, dword [ecx]
push edi
call dword [eax + 0x2c]
mov eax, dword [eax + 0x34]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jae 0x454420
mov ebx, eax
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x454484
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push ebx
push ebp
call dword [edx + 0x24]
push eax
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
test eax, eax
mov eax, dword [esi]
push edi
push eax
setne byte [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov al, byte [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 8
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret 8
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret 8
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret 8
Function at 0x454561
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x493f37
call fcn.0046862c
sub esp, 0x78
mov eax, dword [0x4d1260]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x68]
push eax
call fcn.004544a5
and dword [ebp - 4], 0
mov dword [esp], 0x4a9a24
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00409480
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00403f40
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401cb0
push 0
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401cb0
mov eax, dword [ebp - 0x28]
push 0x10
pop esi
cmp dword [ebp - 0x14], esi
jae 0x4545e4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x454647
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x84]
call fcn.00401660
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00434eef
push 0
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00401cb0
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x454627
lea ecx, [ebp - 0x28]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.00434c07
cmp eax, 0xffffffff
jne 0x454640
xor bl, bl
jmp 0x45468b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x454652
lea ecx, [ebp - 0x28]
cmp dword [edi + 0x18], esi
jb 0x45465c
mov edi, dword [edi + 4]
jmp 0x45465f
add edi, 4
cmp dword [ebx + 0x18], esi
jb 0x454669
mov ebx, dword [ebx + 4]
jmp 0x45466c
add ebx, 4
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x18], esi
jb 0x454679
mov eax, dword [eax + 4]
jmp 0x45467c
add eax, 4
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401cb0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0046521c
leave
ret
Function at 0x4546b2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x493f6d
call fcn.0046862c
sub esp, 0x48c
mov eax, dword [0x4d1260]
and dword [ebp - 0x454], 0
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x458], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x47c]
mov esi, 0x400
push eax
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x450], esi
call fcn.004544a5
and dword [ebp - 4], 0
mov dword [esp], 0x4a9a24
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.00409480
push edi
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 4], 1
call fcn.00403f40
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x498]
call fcn.00401cb0
push 0
push 1
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 3
call fcn.00401cb0
mov eax, dword [ebp - 0x428]
push 0x10
pop edx
cmp dword [ebp - 0x414], edx
jae 0x45477a
lea eax, [ebp - 0x428]
cmp dword [ebx + 0x18], edx
mov dword [ebp - 0x454], eax
jb 0x45478a
mov edi, dword [ebx + 4]
jmp 0x45478f
lea eax, [ebx + 4]
mov edi, eax
mov eax, dword [ebp - 0x458]
cmp dword [eax + 0x18], edx
jb 0x4547a1
add eax, 4
mov ecx, dword [eax]
jmp 0x4547a6
add eax, 4
mov ecx, eax
mov eax, dword [ebp - 0x45c]
cmp dword [eax + 0x18], edx
jb 0x4547b8
add eax, 4
mov eax, dword [eax]
jmp 0x4547bb
add eax, 4
push dword [ebp - 0x454]
lea edx, [ebp - 0x410]
push esi
push edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
push eax
call edi
lea ecx, [eax + 1]
cmp ecx, esi
jne 0x4548cd
push 0
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x430], 0xf
call fcn.00401b80
mov byte [ebp - 4], 5
jmp 0x454802
mov ebx, dword [ebp - 0x460]
mov eax, dword [ebp - 0x450]
add eax, eax
push eax
mov dword [ebp - 0x450], eax
call fcn.0047e898
mov esi, eax
mov byte [esi], 0
cmp dword [ebp - 0x414], 0x10
mov edx, dword [ebp - 0x428]
pop ecx
jae 0x454831
lea edx, [ebp - 0x428]
cmp dword [ebx + 0x18], 0x10
jb 0x45483e
add ebx, 4
mov ebx, dword [ebx]
jmp 0x454841
add ebx, 4
mov eax, dword [ebp - 0x458]
cmp dword [eax + 0x18], 0x10
jb 0x454854
add eax, 4
mov ecx, dword [eax]
jmp 0x454859
add eax, 4
mov ecx, eax
mov eax, dword [ebp - 0x45c]
cmp dword [eax + 0x18], 0x10
jb 0x45486c
add eax, 4
mov eax, dword [eax]
jmp 0x45486f
add eax, 4
push edx
push dword [ebp - 0x450]
push esi
push ebx
push ecx
push eax
call edi
push esi
lea ecx, [ebp - 0x448]
mov ebx, eax
call fcn.00401ab0
push esi
call fcn.0047e89d
cmp dword [ebp - 0x450], 0x989680
pop ecx
jg 0x4548aa
inc ebx
cmp ebx, dword [ebp - 0x450]
je 0x4547fc
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x448]
push eax
call fcn.00408e90
push 0
push 1
lea ecx, [ebp - 0x448]
call fcn.00401cb0
jmp 0x4548ea
test eax, eax
mov ecx, dword [ebp - 0x44c]
jbe 0x4548e0
lea eax, [ebp - 0x410]
push eax
jmp 0x4548e5
push 0x4a9a26
call fcn.00401820
push 0
lea ecx, [ebp - 0x42c]
push 1
call fcn.00401cb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x44c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046521c
leave
ret
Function at 0x455d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx + 0x14]
call fcn.00426a41
mov esi, 0x4b050c
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp dword [ebx + 0x14], edi
jbe 0x455dc1
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
push edi
mov ecx, ebx
add esi, edi
call fcn.00408f20
mov ecx, edi
and ecx, 0xf
mov cl, byte [ebp + ecx - 0x14]
xor cl, byte [eax]
inc edi
mov byte [esi], cl
cmp edi, dword [ebx + 0x14]
jb 0x455d9e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4569c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x4569ea
push 0x4d0080
lea ecx, [ebp - 0xc]
call fcn.00466afb
push 0x4c5548
lea eax, [ebp - 0xc]
push eax
call fcn.00465b2b
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x456a0c
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x4569fc
pop edi
pop esi
leave
ret 8
Function at 0x458675
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x4949c2
call fcn.0046862c
mov eax, 0x2960
call fcn.00465b70
mov al, byte [ebp + 8]
push ebx
xor ebx, ebx
cmp al, bl
mov byte [ebp - 0xd], bl
jne 0x45869b
call fcn.00458507
movsx eax, al
push eax
lea eax, [ebp - 0x25c]
push str.._c:
push eax
call fcn.00465bad
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4588a6
push esi
push 0xc
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.00464db0
mov esi, 0x2710
push esi
lea eax, [ebp - 0x296c]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00464db0
add esp, 0x18
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x296c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45889c
cmp dword [ebp - 0x2954], esi
jae 0x45889c
cmp dword [ebp - 0x295c], esi
jae 0x45889c
mov eax, esi
sub eax, dword [ebp - 0x2954]
push 0x64
pop ecx
cmp eax, ecx
jle 0x458752
mov eax, ecx
sub esi, dword [ebp - 0x295c]
dec eax
cmp esi, ecx
mov dword [ebp - 0x18], eax
jle 0x458762
mov esi, ecx
push edi
xor edi, edi
inc edi
dec esi
cmp eax, edi
jl 0x45889b
cmp esi, edi
jl 0x45889b
push ecx
lea eax, [ebp - 0xf8]
push ebx
push eax
call fcn.00464db0
push 0x64
lea eax, [ebp - 0x15c]
push ebx
push eax
call fcn.00464db0
mov eax, dword [ebp - 0x2954]
push dword [ebp - 0x18]
lea eax, [ebp + eax - 0x296c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004583bb
mov eax, dword [ebp - 0x295c]
lea eax, [ebp + eax - 0x296c]
push esi
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00467180
movsx eax, byte [ebp - 0xf8]
push eax
call fcn.00467520
add esp, 0x34
test eax, eax
jne 0x4587f6
movsx eax, byte [ebp - 0xe5]
push eax
call fcn.00467520
test eax, eax
pop ecx
je 0x45889b
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401820
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 4], ebx
call fcn.004585e3
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004019d0
push ebx
push edi
lea ecx, [ebp - 0x78]
call fcn.00401cb0
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00401cb0
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00401820
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 2
call fcn.004585e3
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.004019d0
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.00401cb0
push ebx
push edi
lea ecx, [ebp - 0x94]
call fcn.00401cb0
cmp dword [esi + 0x14], ebx
jne 0x458897
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], ebx
je 0x45889b
mov byte [ebp - 0xd], 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4588b6
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2904
call fcn.00465b70
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2904]
push eax
mov dword [ebp - 4], 0x2800
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x4588f4
mov ecx, dword [ebp + 8]
push 0x4a9a26
call fcn.00401820
jmp 0x4589a9
lea eax, [ebp - 0x2904]
xor ecx, ecx
push esi
movzx edx, byte [eax + 0x196]
movzx esi, byte [eax + 0x197]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x198]
shl edx, 8
add edx, esi
movzx esi, byte [eax + 0x199]
shl edx, 8
add edx, esi
je 0x45898b
cmp dword [ebp + 0xc], 0
jl 0x458935
cmp dword [ebp + 0xc], ecx
jne 0x458990
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X__02X__02X__02X__02X__02X
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0046a6d6
add esp, 0x24
lea eax, [ebp - 0x104]
mov byte [ebp - 5], 0
push eax
jmp 0x4589a0
cmp dword [ebp + 0xc], ecx
je 0x45899b
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x4588fd
push 0x4a9a26
mov ecx, dword [ebp + 8]
call fcn.00401820
pop esi
mov eax, dword [ebp + 8]
leave
ret

Function at 0x4589ae
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4949d4
call fcn.0046862c
sub esp, 0x120
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [edi], ebx
jne 0x4589d4
call fcn.00458507
mov byte [ebp + 8], al
push esi
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.00401b80
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 1
mov dword [ebp - 4], ebx
call fcn.004091a0
push 0x4b413c
lea ecx, [ebp - 0x28]
call fcn.004028e0
mov esi, 0x104
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.00464db0
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x458a24
lea eax, [ebp - 0x24]
push ebx
push ebx
push ebx
push ebx
push edi
push esi
lea ecx, [ebp - 0x12c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
pop esi
je 0x458a4c
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x12c]
push eax
call fcn.00401ab0
push ebx
lea ecx, [ebp - 0x28]
push 1
call fcn.00401cb0
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45a06f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
push esi
mov esi, dword [eax + 0x78]
add esi, ecx
cmp word [eax + 0x18], 0x10b
je 0x45a08e
xor eax, eax
jmp 0x45a0b0
mov eax, dword [esi + 0x24]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add eax, ecx
add ebx, ecx
add edi, ecx
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], eax
ja 0x45a0b6
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
push dword [ebp + 0xc]
add eax, ecx
push eax
call fcn.00465c10
test eax, eax
pop ecx
pop ecx
je 0x45a0da
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x45a0b3
jmp 0x45a0ac
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
jmp 0x45a0ae

Function at 0x45a0e9
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
add eax, edx
mov ecx, dword [eax + 0x78]
add ecx, edx
cmp word [eax + 0x18], 0x10b
je 0x45a107
xor eax, eax
leave
ret
mov eax, dword [ecx + 0x20]
push ebx
push esi
mov esi, dword [ecx + 0x1c]
push edi
mov edi, dword [ecx + 0x24]
xor ebx, ebx
add eax, edx
add esi, edx
add edi, edx
cmp dword [ecx + 0x18], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jbe 0x45a19b
jmp 0x45a12b
mov eax, dword [ebp - 8]
mov edx, dword [eax + ebx*4]
movzx eax, word [edi + ebx*2]
mov eax, dword [esi + eax*4]
add edx, dword [ebp + 8]
add eax, dword [ebp + 8]
cmp dword [0x4d5320], 0
jne 0x45a155
cmp byte [eax], 0xb8
jne 0x45a18f
cmp byte [eax + 9], 0xcd
jne 0x45a18f
cmp byte [eax + 0xa], 0x2e
jmp 0x45a17f
cmp dword [0x4d5320], 1
jne 0x45a18f
cmp byte [eax], 0xb8
jne 0x45a18f
cmp byte [eax + 5], 0xba
jne 0x45a18f
cmp byte [eax + 6], 0
jne 0x45a18f
cmp byte [eax + 7], 3
jne 0x45a18f
cmp byte [eax + 8], 0xfe
jne 0x45a18f
cmp byte [eax + 9], 0x7f
jne 0x45a18f
mov eax, dword [eax + 1]
cmp eax, dword [ebp + 0x10]
jae 0x45a18f
mov ebx, dword [ebp + 0xc]
mov dword [ebx + eax*4], edx
mov ebx, dword [ebp - 4]
inc ebx
cmp ebx, dword [ecx + 0x18]
mov dword [ebp - 4], ebx
jb 0x45a128
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x45a1a3
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.RtlAnsiStringToUnicodeString
push edi
call esi
push str.RtlInitAnsiString
push edi
mov dword [0x4d531c], eax
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x4d5318], eax
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [0x4d5314], eax
call esi
push str.NtOpenSection
push edi
mov dword [0x4d5310], eax
call esi
push str.NtMapViewOfSection
push edi
mov dword [0x4d530c], eax
call esi
push str.NtUnmapViewOfSection
push edi
mov dword [0x4d5308], eax
call esi
push str.ZwQuerySystemInformation
push edi
mov dword [0x4d5304], eax
call esi
xor ecx, ecx
cmp dword [0x4d531c], ecx
pop edi
mov dword [0x4d5300], eax
pop esi
je 0x45a264
cmp dword [0x4d5318], ecx
je 0x45a264
cmp dword [0x4d5314], ecx
je 0x45a264
cmp dword [0x4d5310], ecx
je 0x45a264
cmp dword [0x4d530c], ecx
je 0x45a264
cmp dword [0x4d5308], ecx
je 0x45a264
cmp dword [0x4d5304], ecx
je 0x45a264
cmp eax, ecx
je 0x45a264
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x45a4da
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x494c3d
call fcn.0046862c
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x30]
call fcn.004017f0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0045a49e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x45addd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45ae3f
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45ae3d
cmp esi, ebx
je 0x45ae36
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x45ae4e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x45aeb2
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x494ce6
call fcn.0046862c
sub esp, 0x124
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.00401b80
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
lea eax, [ebp - 0x130]
je 0x45af02
push eax
lea ecx, [ebp - 0x28]
call fcn.00401ab0
jmp 0x45af3e
push edi
mov edi, 0x104
push edi
push eax
call fcn.0045addd
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x130]
jne 0x45af2d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x45af30
lea eax, [ebp - 0x130]
push eax
jmp 0x45af35
push 0x4ab3e8
lea ecx, [ebp - 0x28]
call fcn.00401ab0
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00408e90
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401cb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x45b165
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x45b18e
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4d4e68]
inc edx
dec esi
jne 0x45b176
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8