joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43350f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43356d
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 0x43356d
cmp esi, ebx
je 0x433566
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x43357e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

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

Disassembly:
mov eax, 0x47b9e8
call fcn.0045378c
sub esp, 0x124
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.00401b50
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
jne 0x43376d
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.0043350f
test eax, eax
lea eax, [ebp - 0x130]
jne 0x433773
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x433776
lea eax, [ebp - 0x130]
push eax
jmp 0x43377b
push 0x4933c8
lea ecx, [ebp - 0x28]
call fcn.00401a80
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00408e30
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401c80
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x433983
Capabilities:
Create directory

Disassembly:
mov eax, 0x47b9e8
call fcn.0045378c
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4339a3
call fcn.00433920
test al, al
je 0x4339a7
mov al, 1
jmp 0x4339f9
push ebx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00401660
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x14]
jne 0x4339c9
cmp dword [esi + 0x18], 0x10
jb 0x4339d9
mov esi, dword [esi + 4]
jmp 0x4339dc
lea ecx, [ebp - 0x28]
call fcn.00433983
test al, al
jne 0x4339be
xor bl, bl
jmp 0x4339ea
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401c80
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4396eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x4396f6
mov ecx, dword [ecx + 4]
jmp 0x4396f9
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43970c
test al, 0x10
je 0x43970c
mov al, 1
ret
xor al, al
ret
Function at 0x43d0c0
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.004019a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edi, [esi + 8]
push edi
push ebx
call fcn.0043cf00
add esp, 0x10
test al, al
mov byte [esi + 4], al
je 0x43d132
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x43d0ff
xor eax, eax
jmp 0x43d104
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x40
mov ecx, dword [esi + 0xc]
jb 0x43d132
cmp word [ecx], 0x5a4d
jne 0x43d132
mov edx, dword [ecx + 0x3c]
lea edi, [edx + 0xf8]
cmp eax, edi
jb 0x43d132
cmp dword [edx + ecx], 0x4550
jne 0x43d132
push ecx
lea ecx, [esi + 0x34]
call fcn.0043ce40
mov al, byte [esi + 4]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x43f104
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 0x43f1cb
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 0x43f1c0
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 0x43f150
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 0x43f1b4
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 0x43f291
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x47cb47
call fcn.0045378c
sub esp, 0x78
mov eax, dword [0x4b0b90]
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.0043f1d5
and dword [ebp - 4], 0
mov dword [esp], 0x491b44
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00409540
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00403ed0
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401c80
push 0
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401c80
mov eax, dword [ebp - 0x28]
push 0x10
pop esi
cmp dword [ebp - 0x14], esi
jae 0x43f314
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43f377
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x84]
call fcn.00401660
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00433983
push 0
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00401c80
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x43f357
lea ecx, [ebp - 0x28]
push 0x20
push 1
push 3
mov edx, 0xc0000000
call fcn.0043369b
cmp eax, 0xffffffff
jne 0x43f370
xor bl, bl
jmp 0x43f3bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x28]
jae 0x43f382
lea ecx, [ebp - 0x28]
cmp dword [edi + 0x18], esi
jb 0x43f38c
mov edi, dword [edi + 4]
jmp 0x43f38f
add edi, 4
cmp dword [ebx + 0x18], esi
jb 0x43f399
mov ebx, dword [ebx + 4]
jmp 0x43f39c
add ebx, 4
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x18], esi
jb 0x43f3a9
mov eax, dword [eax + 4]
jmp 0x43f3ac
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.00401c80
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.0045040c
leave
ret
Function at 0x43f3e2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x47cb7d
call fcn.0045378c
sub esp, 0x48c
mov eax, dword [0x4b0b90]
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.0043f1d5
and dword [ebp - 4], 0
mov dword [esp], 0x491b44
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.00409540
push edi
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 4], 1
call fcn.00403ed0
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x498]
call fcn.00401c80
push 0
push 1
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 3
call fcn.00401c80
mov eax, dword [ebp - 0x428]
push 0x10
pop edx
cmp dword [ebp - 0x414], edx
jae 0x43f4aa
lea eax, [ebp - 0x428]
cmp dword [ebx + 0x18], edx
mov dword [ebp - 0x454], eax
jb 0x43f4ba
mov edi, dword [ebx + 4]
jmp 0x43f4bf
lea eax, [ebx + 4]
mov edi, eax
mov eax, dword [ebp - 0x458]
cmp dword [eax + 0x18], edx
jb 0x43f4d1
add eax, 4
mov ecx, dword [eax]
jmp 0x43f4d6
add eax, 4
mov ecx, eax
mov eax, dword [ebp - 0x45c]
cmp dword [eax + 0x18], edx
jb 0x43f4e8
add eax, 4
mov eax, dword [eax]
jmp 0x43f4eb
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 0x43f5fd
push 0
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x430], 0xf
call fcn.00401b50
mov byte [ebp - 4], 5
jmp 0x43f532
mov ebx, dword [ebp - 0x460]
mov eax, dword [ebp - 0x450]
add eax, eax
push eax
mov dword [ebp - 0x450], eax
call fcn.00469548
mov esi, eax
mov byte [esi], 0
cmp dword [ebp - 0x414], 0x10
mov edx, dword [ebp - 0x428]
pop ecx
jae 0x43f561
lea edx, [ebp - 0x428]
cmp dword [ebx + 0x18], 0x10
jb 0x43f56e
add ebx, 4
mov ebx, dword [ebx]
jmp 0x43f571
add ebx, 4
mov eax, dword [ebp - 0x458]
cmp dword [eax + 0x18], 0x10
jb 0x43f584
add eax, 4
mov ecx, dword [eax]
jmp 0x43f589
add eax, 4
mov ecx, eax
mov eax, dword [ebp - 0x45c]
cmp dword [eax + 0x18], 0x10
jb 0x43f59c
add eax, 4
mov eax, dword [eax]
jmp 0x43f59f
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.00401a80
push esi
call fcn.0046954d
cmp dword [ebp - 0x450], 0x989680
pop ecx
jg 0x43f5da
inc ebx
cmp ebx, dword [ebp - 0x450]
je 0x43f52c
mov ecx, dword [ebp - 0x44c]
lea eax, [ebp - 0x448]
push eax
call fcn.00408e30
push 0
push 1
lea ecx, [ebp - 0x448]
call fcn.00401c80
jmp 0x43f61a
test eax, eax
mov ecx, dword [ebp - 0x44c]
jbe 0x43f610
lea eax, [ebp - 0x410]
push eax
jmp 0x43f615
push 0x491b46
call fcn.00401790
push 0
lea ecx, [ebp - 0x42c]
push 1
call fcn.00401c80
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.0045040c
leave
ret
Function at 0x440a78
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.00414b90
mov esi, 0x494b0c
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 0x440ac9
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
push edi
mov ecx, ebx
add esi, edi
call fcn.00408ec0
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 0x440aa6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4416cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x4416f2
push 0x4af9b0
lea ecx, [ebp - 0xc]
call fcn.00451c5d
push 0x4a97a8
lea eax, [ebp - 0xc]
push eax
call fcn.00450d1b
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x441714
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 0x441704
pop edi
pop esi
leave
ret 8
Function at 0x4433df
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2904
call fcn.00450d60
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 0x44341d
mov ecx, dword [ebp + 8]
push 0x491b46
call fcn.00401790
jmp 0x4434d2
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 0x4434b4
cmp dword [ebp + 0xc], 0
jl 0x44345e
cmp dword [ebp + 0xc], ecx
jne 0x4434b9
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.004557d5
add esp, 0x24
lea eax, [ebp - 0x104]
mov byte [ebp - 5], 0
push eax
jmp 0x4434c9
cmp dword [ebp + 0xc], ecx
je 0x4434c4
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x443426
push 0x491b46
mov ecx, dword [ebp + 8]
call fcn.00401790
pop esi
mov eax, dword [ebp + 8]
leave
ret

Function at 0x4434d7
Capabilities:
Get disk information

Disassembly:
mov eax, 0x47d5dc
call fcn.0045378c
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 0x4434fd
call fcn.004432f6
mov byte [ebp + 8], al
push esi
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
call fcn.00401b50
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 1
mov dword [ebp - 4], ebx
call fcn.00409140
push 0x498734
lea ecx, [ebp - 0x28]
call fcn.00402880
mov esi, 0x104
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.0044ffa0
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x44354d
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 0x443575
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x12c]
push eax
call fcn.00401a80
push ebx
lea ecx, [ebp - 0x28]
push 1
call fcn.00401c80
mov ecx, dword [ebp - 0xc]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x443a2b
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x47d6ba
call fcn.0045378c
mov eax, 0x2960
call fcn.00450d60
mov al, byte [ebp + 8]
push ebx
xor ebx, ebx
cmp al, bl
mov byte [ebp - 0xd], bl
jne 0x443a51
call fcn.004432f6
movsx eax, al
push eax
lea eax, [ebp - 0x25c]
push str.._c:
push eax
call fcn.00450d9d
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 0x443c5c
push esi
push 0xc
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0044ffa0
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.0044ffa0
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 0x443c52
cmp dword [ebp - 0x2954], esi
jae 0x443c52
cmp dword [ebp - 0x295c], esi
jae 0x443c52
mov eax, esi
sub eax, dword [ebp - 0x2954]
push 0x64
pop ecx
cmp eax, ecx
jle 0x443b08
mov eax, ecx
sub esi, dword [ebp - 0x295c]
dec eax
cmp esi, ecx
mov dword [ebp - 0x18], eax
jle 0x443b18
mov esi, ecx
push edi
xor edi, edi
inc edi
dec esi
cmp eax, edi
jl 0x443c51
cmp esi, edi
jl 0x443c51
push ecx
lea eax, [ebp - 0xf8]
push ebx
push eax
call fcn.0044ffa0
push 0x64
lea eax, [ebp - 0x15c]
push ebx
push eax
call fcn.0044ffa0
mov eax, dword [ebp - 0x2954]
push dword [ebp - 0x18]
lea eax, [ebp + eax - 0x296c]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004431aa
mov eax, dword [ebp - 0x295c]
lea eax, [ebp + eax - 0x296c]
push esi
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.004522e0
movsx eax, byte [ebp - 0xf8]
push eax
call fcn.00452680
add esp, 0x34
test eax, eax
jne 0x443bac
movsx eax, byte [ebp - 0xe5]
push eax
call fcn.00452680
test eax, eax
pop ecx
je 0x443c51
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401790
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 4], ebx
call fcn.00443999
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.004019a0
push ebx
push edi
lea ecx, [ebp - 0x78]
call fcn.00401c80
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00401c80
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00401790
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 2
call fcn.00443999
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.004019a0
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.00401c80
push ebx
push edi
lea ecx, [ebp - 0x94]
call fcn.00401c80
cmp dword [esi + 0x14], ebx
jne 0x443c4d
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], ebx
je 0x443c51
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 0x445006
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 0x445025
xor eax, eax
jmp 0x445047
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 0x44504d
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.00450e00
test eax, eax
pop ecx
pop ecx
je 0x445071
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x44504a
jmp 0x445043
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
jmp 0x445045

Function at 0x445080
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 0x44509e
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 0x445132
jmp 0x4450c2
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 [0x4b4650], 0
jne 0x4450ec
cmp byte [eax], 0xb8
jne 0x445126
cmp byte [eax + 9], 0xcd
jne 0x445126
cmp byte [eax + 0xa], 0x2e
jmp 0x445116
cmp dword [0x4b4650], 1
jne 0x445126
cmp byte [eax], 0xb8
jne 0x445126
cmp byte [eax + 5], 0xba
jne 0x445126
cmp byte [eax + 6], 0
jne 0x445126
cmp byte [eax + 7], 3
jne 0x445126
cmp byte [eax + 8], 0xfe
jne 0x445126
cmp byte [eax + 9], 0x7f
jne 0x445126
mov eax, dword [eax + 1]
cmp eax, dword [ebp + 0x10]
jae 0x445126
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 0x4450bf
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x44513a
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 [0x4b464c], eax
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x4b4648], eax
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [0x4b4644], eax
call esi
push str.NtOpenSection
push edi
mov dword [0x4b4640], eax
call esi
push str.NtMapViewOfSection
push edi
mov dword [0x4b463c], eax
call esi
push str.NtUnmapViewOfSection
push edi
mov dword [0x4b4638], eax
call esi
push str.ZwQuerySystemInformation
push edi
mov dword [0x4b4634], eax
call esi
xor ecx, ecx
cmp dword [0x4b464c], ecx
pop edi
mov dword [0x4b4630], eax
pop esi
je 0x4451fb
cmp dword [0x4b4648], ecx
je 0x4451fb
cmp dword [0x4b4644], ecx
je 0x4451fb
cmp dword [0x4b4640], ecx
je 0x4451fb
cmp dword [0x4b463c], ecx
je 0x4451fb
cmp dword [0x4b4638], ecx
je 0x4451fb
cmp dword [0x4b4634], ecx
je 0x4451fb
cmp eax, ecx
je 0x4451fb
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x4456b6
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47d88e
call fcn.0045378c
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.00401760
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0044567a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x445fe9
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 0x44604b
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 0x446049
cmp esi, ebx
je 0x446042
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x44605a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

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

Disassembly:
mov eax, 0x47d98b
call fcn.0045378c
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.00401b50
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 0x44610e
push eax
lea ecx, [ebp - 0x28]
call fcn.00401a80
jmp 0x44614a
push edi
mov edi, 0x104
push edi
push eax
call fcn.00445fe9
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x130]
jne 0x446139
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x44613c
lea eax, [ebp - 0x130]
push eax
jmp 0x446141
push 0x4933c8
lea ecx, [ebp - 0x28]
call fcn.00401a80
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00408e30
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401c80
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x446371
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 0x44639a
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4b4198]
inc edx
dec esi
jne 0x446382
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8