joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ba10
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x48dc49
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
test byte [0x4b3028], 1
jne 0x42ba6c
or dword [0x4b3028], 1
push 0x493630
mov dword [0x4b3024], 0xf
mov dword [0x4b3020], 0
mov byte [0x4b3010], 0
call fcn.00474f76
add esp, 4
cmp dword [0x4b3020], 0
jne 0x42baee
push 0x208
push 0
mov dword [esp + 0x14], 0x104
call fcn.00473d56
mov esi, eax
add esp, 8
mov dword [esp + 8], esi
push 0
push 0x26
push esi
push 0
mov dword [esp + 0x44], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42bae1
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0042a950
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4b300c
mov byte [esp + 0x40], 1
call fcn.0040b380
cmp dword [esp + 0x28], 0x10
jb 0x42bae1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00473948
add esp, 4
test esi, esi
je 0x42baee
push esi
call fcn.00473f71
add esp, 4
mov eax, 0x4b300c
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x30
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x48dc74
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
test byte [0x4b3048], 1
jne 0x42bb6c
or dword [0x4b3048], 1
push 0x493660
mov dword [0x4b3044], 0xf
mov dword [0x4b3040], 0
mov byte [0x4b3030], 0
call fcn.00474f76
add esp, 4
cmp dword [0x4b3040], 0
jne 0x42bbee
push 0x208
push 0
mov dword [esp + 0x14], 0x104
call fcn.00473d56
mov esi, eax
add esp, 8
mov dword [esp + 8], esi
push 0
push 0x2a
push esi
push 0
mov dword [esp + 0x44], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42bbe1
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0042a950
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4b302c
mov byte [esp + 0x40], 1
call fcn.0040b380
cmp dword [esp + 0x28], 0x10
jb 0x42bbe1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00473948
add esp, 4
test esi, esi
je 0x42bbee
push esi
call fcn.00473f71
add esp, 4
mov eax, 0x4b302c
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x30
ret
Function at 0x42bc10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48dc9f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
test byte [0x4b3068], 1
jne 0x42bc6c
or dword [0x4b3068], 1
push 0x493690
mov dword [0x4b3064], 0xf
mov dword [0x4b3060], 0
mov byte [0x4b3050], 0
call fcn.00474f76
add esp, 4
cmp dword [0x4b3060], 0
jne 0x42bcee
push 0x208
push 0
mov dword [esp + 0x14], 0x104
call fcn.00473d56
mov esi, eax
add esp, 8
mov dword [esp + 8], esi
push 0
push 0x24
push esi
push 0
mov dword [esp + 0x44], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42bce1
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0042a950
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4b304c
mov byte [esp + 0x40], 1
call fcn.0040b380
cmp dword [esp + 0x28], 0x10
jb 0x42bce1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00473948
add esp, 4
test esi, esi
je 0x42bcee
push esi
call fcn.00473f71
add esp, 4
mov eax, 0x4b304c
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x30
ret

Function at 0x42bd10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48dcc5
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4b1ae0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, 1
xor ebx, ebx
mov esi, 0xf
test byte [0x4b3088], al
jne 0x42bd82
or dword [0x4b3088], eax
push 0x4936c0
mov dword [0x4b3084], esi
mov dword [0x4b3080], ebx
mov byte [0x4b3070], bl
call fcn.00474f76
add esp, 4
cmp dword [0x4b3080], ebx
jne 0x42be59
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0042a950
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4b306c
mov dword [esp + 0x248], ebx
call fcn.0040b380
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x23c], 0xffffffff
jb 0x42bde4
mov eax, dword [esp + 0x10]
push eax
call fcn.00473948
add esp, 4
mov ecx, dword [0x4b3080]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
cmp ecx, ebx
jbe 0x42be59
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x42be0c
call fcn.004746d2
mov ecx, dword [0x4b3080]
cmp dword [0x4b3084], 0x10
mov eax, dword [0x4b3070]
jae 0x42be1f
mov eax, 0x4b3070
cmp byte [eax + esi], 0x2f
je 0x42be59
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x42be31
call fcn.004746d2
cmp dword [0x4b3084], 0x10
mov eax, dword [0x4b3070]
jae 0x42be44
mov eax, 0x4b3070
cmp byte [eax + esi], 0x5c
je 0x42be59
push 0x497080
mov ecx, 0x4b306c
call fcn.0040b680
mov eax, 0x4b306c
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00474468
add esp, 0x234
ret
Function at 0x42be90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48dcfe
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4b1ae0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, 1
xor ebx, ebx
mov esi, 0xf
test byte [0x4b30a8], al
jne 0x42bf02
or dword [0x4b30a8], eax
push 0x4936f0
mov dword [0x4b30a4], esi
mov dword [0x4b30a0], ebx
mov byte [0x4b3090], bl
call fcn.00474f76
add esp, 4
cmp dword [0x4b30a0], ebx
jne 0x42bfea
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0042a950
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4b308c
mov dword [esp + 0x248], ebx
call fcn.0040b380
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x23c], 0xffffffff
jb 0x42bf64
mov eax, dword [esp + 0x10]
push eax
call fcn.00473948
add esp, 4
mov ecx, dword [0x4b30a0]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
cmp ecx, ebx
jbe 0x42bfd9
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x42bf8c
call fcn.004746d2
mov ecx, dword [0x4b30a0]
cmp dword [0x4b30a4], 0x10
mov eax, dword [0x4b3090]
jae 0x42bf9f
mov eax, 0x4b3090
cmp byte [eax + esi], 0x2f
je 0x42bfd9
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x42bfb1
call fcn.004746d2
cmp dword [0x4b30a4], 0x10
mov eax, dword [0x4b3090]
jae 0x42bfc4
mov eax, 0x4b3090
cmp byte [eax + esi], 0x5c
je 0x42bfd9
push 0x497080
mov ecx, 0x4b308c
call fcn.0040b680
push 0x17
push str.mediaget_installer_tmp_
mov ecx, 0x4b308c
call fcn.0040b460
mov eax, 0x4b308c
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00474468
add esp, 0x234
ret

Function at 0x42c9f0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x198
mov eax, dword [0x4b1ae0]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
mov esi, dword [esp + 0x1a0]
push edi
mov edi, dword [esp + 0x1a8]
lea eax, [esp + 0xc]
push eax
push 0x202
mov dword [esp + 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42ca68
cmp dword [edi + 0x18], 0x10
jb 0x42ca3b
mov edi, dword [edi + 4]
jmp 0x42ca3e
add edi, 4
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42ca68
cmp word [eax + 8], 2
jne 0x42ca68
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, esi
call fcn.0040b8c0
jmp 0x42ca88
push 0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push 0x494729
mov ecx, esi
mov byte [esi + 4], 0
call fcn.0040b5a0
mov ecx, dword [esp + 0x19c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00474468
add esp, 0x198
ret
Function at 0x42d220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48dfbe
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push esi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
push 1
push 2
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 0
call fcn.0041b540
mov esi, dword [esp + 0xc0]
push 0x49496c
push esi
lea eax, [esp + 0x34]
push str.Error_code:
push eax
mov dword [esp + 0xc4], 1
call fcn.0041b660
add esp, 8
mov ecx, eax
call fcn.004282a0
push eax
call fcn.0041b660
add esp, 8
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x800
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
jne 0x42d2db
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea edx, [esp + 0x30]
push str.FormatMessage_error___code
push edx
call fcn.0041b660
add esp, 8
mov ecx, eax
call fcn.004282a0
jmp 0x42d327
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0042a950
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xc4], 2
call fcn.0041bab0
add esp, 0x10
cmp dword [esp + 0x28], 0x10
mov byte [esp + 0xb4], 1
jb 0x42d31c
mov eax, dword [esp + 0x14]
push eax
call fcn.00473948
add esp, 4
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov esi, dword [esp + 0xbc]
push esi
lea ecx, [esp + 0x30]
call fcn.0041ab10
lea ecx, [esp + 0x78]
mov dword [esp + 0xc], 1
mov byte [esp + 0xb4], 0
call fcn.00419a90
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.00473659
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xb0
ret
Function at 0x42d530
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e007
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x74], 2
call fcn.00429c40
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00429c40
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00429c40
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
add esp, 0x18
push 5
push esi
push edi
push ebp
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x42d60b
cmp esi, ebx
je 0x42d5db
push esi
call fcn.00473f71
add esp, 4
cmp edi, ebx
je 0x42d5e8
push edi
call fcn.00473f71
add esp, 4
cmp ebp, ebx
je 0x42d5f5
push ebp
call fcn.00473f71
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0042d380
push eax
lea ecx, [esp + 0x38]
push str.ShellExecute_error:
push ecx
mov byte [esp + 0x80], 3
call fcn.0040bcc0
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4b0810
mov byte [esp + 0x78], 4
call fcn.0040b380
mov ebp, 0x10
cmp dword [esp + 0x44], ebp
jb 0x42d65c
mov edx, dword [esp + 0x30]
push edx
call fcn.00473948
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
cmp dword [esp + 0x60], ebp
jb 0x42d67f
mov eax, dword [esp + 0x4c]
push eax
call fcn.00473948
add esp, 4
cmp esi, ebx
je 0x42d68c
push esi
call fcn.00473f71
add esp, 4
cmp edi, ebx
je 0x42d699
push edi
call fcn.00473f71
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42d6aa
push eax
call fcn.00473f71
add esp, 4
xor al, al
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x42ddb0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e137
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4b1ae0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
push edi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0042a950
add esp, 8
push 1
push 0xffffffffffffffff
push 0x497080
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], 0
call fcn.0042fa20
cmp eax, 0xffffffff
jne 0x42de2c
push 1
push eax
push 0x495a30
lea ecx, [esp + 0x20]
call fcn.0042fa20
cmp eax, 0xffffffff
je 0x42de63
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.00419f10
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x5c], 1
call fcn.0042dae0
add esp, 4
cmp dword [esp + 0x48], 0x10
jb 0x42de63
mov eax, dword [esp + 0x34]
push eax
call fcn.00473948
add esp, 4
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42de9b
cmp dword [esp + 0x2c], 0x10
jb 0x42de97
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00473948
add esp, 4
xor al, al
jmp 0x42dedc
mov ebx, dword [esp + 0x68]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x42debd
cmp dword [esp + 0x10], ebx
jne 0x42debd
mov bl, 1
jmp 0x42debf
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x2c], 0x10
jb 0x42deda
mov eax, dword [esp + 0x18]
push eax
call fcn.00473948
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00474468
add esp, 0x4c
ret

Function at 0x42df00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48e167
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.00429c40
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
push edx
push eax
push esi
call fcn.0042ddb0
add esp, 0x14
mov bl, al
test esi, esi
je 0x42df72
push esi
call fcn.00473f71
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x42df90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x48e192
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x34], 1
call fcn.00429c40
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00429c40
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
add esp, 0x10
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
cmp esi, ebp
jne 0x42e01e
cmp edi, ebp
je 0x42e017
push edi
call fcn.00473f71
add esp, 4
cmp ebx, ebp
je 0x42e068
push ebx
jmp 0x42e060
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebp
je 0x42e04a
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
push ecx
call fcn.0042df00
add esp, 0xc
cmp edi, ebp
je 0x42e057
push edi
call fcn.00473f71
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x42e068
push eax
call fcn.00473f71
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x42eab0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e395
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42eb7d
lea ecx, [esp + 0x38]
push ecx
call fcn.004316e0
push eax
lea edx, [esp + 0x24]
push str.CreateFile_error:
push edx
mov dword [esp + 0xa4], ebx
call fcn.0040bcc0
add esp, 0x10
push edi
push ebx
push eax
mov ecx, 0x4b0810
mov byte [esp + 0xa0], 1
call fcn.0040b380
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x42eb51
mov eax, dword [esp + 0x20]
push eax
call fcn.00473948
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], esi
jb 0x42ecde
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00473948
add esp, 4
jmp 0x42ecde
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x42ec5e
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x18]
cdq
cmp ecx, edx
jg 0x42ec5e
mov ecx, dword [esp + 0x14]
jl 0x42ebb3
cmp ecx, eax
ja 0x42ec5e
mov esi, dword [esp + 0xa0]
mov edx, dword [esi]
lea eax, [ecx + 1]
push eax
push edx
mov dword [esi + 4], eax
call fcn.00473d56
mov edx, dword [esp + 0x1c]
add esp, 8
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42ec0c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, ecx
jne 0x42ec0c
cmp edx, dword [esp + 0x18]
jne 0x42ec0c
mov eax, dword [esi]
push edi
mov byte [ecx + eax], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x42ece0
lea ecx, [esp + 0x70]
push ecx
call fcn.004316e0
push eax
lea edx, [esp + 0x5c]
push str.ReadFile_error:
push edx
mov dword [esp + 0xa4], 4
call fcn.0040bcc0
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4b0810
mov byte [esp + 0xa0], 5
call fcn.0040b380
lea ecx, [esp + 0x54]
call fcn.0040ae00
lea ecx, [esp + 0x70]
call fcn.0040ae00
jmp 0x42ecd7
lea eax, [esp + 0x38]
push eax
call fcn.004316e0
push eax
lea ecx, [esp + 0x24]
push str.GetFileSizeEx_error:
push ecx
mov dword [esp + 0xa4], 2
call fcn.0040bcc0
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x4b0810
mov byte [esp + 0xa0], 3
call fcn.0040b380
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x42ecb4
mov edx, dword [esp + 0x20]
push edx
call fcn.00473948
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], esi
jb 0x42ecd7
mov eax, dword [esp + 0x3c]
push eax
call fcn.00473948
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x88
ret
Function at 0x42ed00
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x48e3e7
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x1c]
push eax
mov esi, 1
push ecx
mov dword [esp + 0x58], esi
call fcn.00429c40
mov ebx, dword [esp + 0x60]
add esp, 8
mov ecx, ebx
call fcn.00430f70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
push 8
push edi
push eax
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ee17
push 0x7d0
push edi
mov dword [esp + 0x30], 0x3e8
call fcn.00473d56
mov esi, eax
add esp, 8
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x3e8
push esi
push edi
push edx
mov byte [esp + 0x60], 2
call ebp
test eax, eax
jne 0x42edff
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.0042a950
add esp, 8
push eax
mov ecx, ebx
mov byte [esp + 0x54], 3
call fcn.00431710
cmp dword [esp + 0x44], 0x10
mov byte [esp + 0x50], 2
jb 0x42edec
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00473948
add esp, 4
mov edx, dword [esp + 0x14]
push 0x3e8
push esi
inc edi
push edi
push edx
call ebp
test eax, eax
je 0x42edb8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42ee17
push esi
call fcn.00473f71
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42ee28
push eax
call fcn.00473f71
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x42f5d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48e4da
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x24], 0
call fcn.00429c40
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
push edx
push eax
push esi
call fcn.0042eab0
add esp, 0x14
mov bl, al
test esi, esi
je 0x42f642
push esi
call fcn.00473f71
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x431910
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4b1ae0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004747b0
add esp, 0xc
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x431987
push edi
mov edi, dword [esp + 0x240]
cmp dword [esp + 0x14], edi
jne 0x431973
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x431984
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x431965
jmp 0x431986
mov ebx, eax
pop edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00474468
add esp, 0x230
ret

Function at 0x4319b0
Capabilities:
Get process image filename

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
xor edi, edi
push edi
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x4319f3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x4319e7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.DLL_GetLastError]