joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403eef
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0x248
mov eax, 0x479e63
call fcn.0044ef10
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
xor esi, esi
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.0043fd80
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x48fbe4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
push 7
pop edi
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], esi
call fcn.0040315e
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], esi
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x254]
push eax
mov byte [ebp - 4], 1
call fcn.00403e45
lea ecx, [ebp - 0x238]
mov dword [esp], 0x48fb68
call fcn.0040309c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x238]
call fcn.00403461
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x238]
push eax
mov ecx, ebx
call fcn.004030c3
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x403fd4
lea eax, [ebp - 0x238]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push 1
lea ecx, [ebp - 0x254]
call fcn.00403211
push esi
push 1
lea ecx, [ebp - 0x238]
call fcn.00403211
call fcn.0044ef93
ret

Function at 0x404c2d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x830
mov eax, 0x478ffb
call fcn.0044ef10
mov eax, dword [ebp + 8]
mov esi, dword [ecx]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x838], eax
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor ebx, ebx
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.0043fd80
add esp, 0xc
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x834]
push eax
push ebx
push dword [ebp - 0x830]
mov dword [ebp - 0x834], 1
push esi
mov dword [ebp - 0x83c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x404cb0
push 2
pop eax
jmp 0x404d07
xor eax, eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], ebx
call fcn.0040315e
mov ecx, dword [ebp - 0x838]
lea eax, [ebp - 0x82c]
push eax
mov dword [ebp - 4], ebx
call fcn.004039b8
push ebx
push 1
lea ecx, [ebp - 0x82c]
call fcn.00403211
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.0044ef93
ret
Function at 0x404e39
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xb
mov esi, eax
call fcn.004043fd
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, 0xffffffff
je 0x404f26
test edi, edi
je 0x404f26
push 0xc
call fcn.004043fd
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x404f26
push 0xd
call fcn.004043fd
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x404f26
push 0xe
call fcn.004043fd
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
pop ecx
jb 0x404eb6
mov eax, dword [esi]
jmp 0x404eb8
mov eax, esi
push 0x48fcf8
push eax
lea eax, [ebp - 4]
push eax
call fcn.0043f114
add esp, 0xc
test eax, eax
jne 0x404f26
push 0xf
call fcn.004043fd
push dword [ebp - 4]
push edi
push 1
push ebx
call fcn.0043f2b2
add esp, 0x14
cmp eax, edi
jne 0x404efe
push 0x10
call fcn.004043fd
push dword [ebp - 4]
call fcn.0043f399
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x404f28
push 0x11
call fcn.004043fd
push dword [ebp - 4]
call fcn.0043f399
cmp dword [esi + 0x14], 8
pop ecx
pop ecx
jb 0x404f17
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x12
call fcn.004043fd
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409b53
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0x50
mov eax, 0x47b34c
call fcn.0044ef10
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax + 0x14], 8
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
jb 0x409b72
mov eax, dword [eax]
xor edi, edi
push edi
push 0x80
push 4
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
jne 0x409ba2
mov eax, ebx
call fcn.00409b2b
xor eax, eax
jmp 0x409ce5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp eax, 0x100000
jbe 0x409bd5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.00409b2b
push 0x4906dc
push 2
push 4
pop edi
call fcn.0040b067
pop ecx
pop ecx
jmp 0x409b9b
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.0043ea16
pop ecx
lea esi, [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call fcn.0040a653
mov dword [ebp - 4], edi
mov ebx, dword [ebx]
mov dword [ebp - 0x30], edi
jmp 0x409c8e
mov esi, dword [ebx]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, edx
add ecx, 0x15180
mov dword [ebp - 0x58], eax
adc eax, edi
cmp dword [ebp - 0x40], eax
jg 0x409c8b
jl 0x409c22
cmp dword [ebp - 0x44], ecx
jae 0x409c8b
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x54]
lea edi, [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
call fcn.00409368
test al, al
je 0x409c89
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x38]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call esi
push 0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x54]
push dword [ebp - 0x28]
call esi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x30]
lea eax, [ecx + eax + 0x10]
mov dword [ebp - 0x34], eax
cmp eax, 0x100000
ja 0x409c9c
xor edi, edi
add ebx, 4
mov eax, dword [ebp - 0x2c]
cmp ebx, dword [eax + 4]
jne 0x409c02
jmp 0x409cad
push 0x4906dc
push 2
push 4
pop edi
call fcn.0040b067
pop ecx
pop ecx
mov eax, dword [ebp - 0x2c]
call fcn.00409b2b
push dword [ebp - 0x30]
push 0x490710
push 2
push 4
pop edi
call fcn.0040b067
add esp, 0xc
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54], 0
je 0x409ce2
push dword [ebp - 0x54]
call fcn.0043e93a
pop ecx
xor eax, eax
inc eax
call fcn.0044ef93
ret 4
Function at 0x409ced
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0x44
mov eax, 0x47b31f
call fcn.0044ef10
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x34], edi
cmp eax, ebx
je 0x409d13
call fcn.00408f79
test eax, eax
je 0x409e63
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x409d1e
mov eax, dword [eax]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x409e63
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp eax, 0x100000
jbe 0x409d70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4906dc
push 2
push 4
pop edi
call fcn.0040b067
pop ecx
jmp 0x409e62
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esi, [ebp - 0x50]
call fcn.0040a653
push ebx
mov dword [ebp - 4], ebx
call fcn.0043ea16
mov dword [ebp - 0x40], eax
mov eax, dword [edi]
pop ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], ebx
jmp 0x409e28
mov edx, dword [esi]
mov edi, dword [esi + 4]
mov ecx, edx
add ecx, 0x15180
mov eax, edi
adc eax, ebx
cmp dword [ebp - 0x3c], eax
jg 0x409e15
jl 0x409dba
cmp dword [ebp - 0x40], ecx
jae 0x409e15
push dword [ebp - 0x50]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
lea edi, [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
call fcn.00409368
test al, al
je 0x409e15
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call edi
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x50]
push dword [ebp - 0x28]
call edi
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x24]
lea eax, [ecx + eax + 0x10]
mov dword [ebp - 0x2c], eax
call fcn.00408e15
cmp dword [ebp - 0x2c], 0x100000
ja 0x409e37
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
call fcn.00408f35
mov esi, eax
cmp esi, ebx
jne 0x409d9d
push dword [ebp - 0x24]
push 0x490740
push 2
push 4
pop edi
call fcn.0040b067
add esp, 0xc
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], ebx
je 0x409e63
push dword [ebp - 0x50]
call fcn.0043e93a
pop ecx
call fcn.0044ef93
ret
Function at 0x40a3e3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
cmp dword [ebx + 0x50], 0
push edi
mov esi, eax
je 0x40a4fb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 0x5000
push edi
mov dword [ebp - 8], eax
call fcn.0043ec7c
pop ecx
mov dword [ebp - 4], edi
push eax
lea edi, [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.00409368
mov eax, dword [esi + 0x14]
push dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x50]
push esi
push eax
call fcn.0040ae69
push esi
test al, al
jne 0x40a478
call fcn.0043ec87
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
push eax
push 0x490b20
push 2
push 4
pop edi
call fcn.0040b067
add esp, 0xc
push 0x1388
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40a4fb
push 6
jmp 0x40a4fd
mov al, byte [ebx + 0x4c]
test al, al
jne 0x40a487
call fcn.0043ec87
pop ecx
jmp 0x40a471
call fcn.0043ec87
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
call esi
mov dword [ebp - 0xc], eax
sub eax, dword [ebp - 8]
push eax
push 0x490b60
push 2
push 4
pop edi
call fcn.0040b067
add esp, 0xc
push 0x1388
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40a4f7
push dword [ebx + 0x54]
call esi
sub eax, dword [ebp - 0xc]
push eax
push 0x490b90
push 2
call fcn.0040b067
mov ebx, dword [ebx + 0x54]
add esp, 0x10
test ebx, ebx
jne 0x40a4e6
xor eax, eax
jmp 0x40a4fe
cmp ebx, 0x64
jb 0x40a4fb
cmp ebx, 0x100
jae 0x40a4fb
mov eax, edi
jmp 0x40a4fe
push 5
jmp 0x40a4fd
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b28f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a83e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [esi + 4], ebx
mov eax, 0x490f10
push edi
push eax
mov dword [esi], vtable.Utils::Config::CConfig.0
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x224], ebx
mov dword [esi + 0xc], eax
call fcn.00440730
mov dword [esi + 0x10], eax
mov dword [esp], 0x208
lea eax, [esi + 0x1c]
push ebx
push eax
call fcn.0043fd80
mov edi, 0x4b5980
push edi
call fcn.0044845a
add esp, 0x10
test eax, eax
jne 0x40b36d
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0043fd80
push 0x490f38
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0043f6eb
push 0x490f68
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00448318
add esp, 0x24
push 0x103
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call fcn.0044845a
add eax, eax
cmp word [eax + 0x4b597e], 0x5c
pop ecx
je 0x40b36d
push 0x5c
pop edx
xor ecx, ecx
mov word [eax + 0x4b5980], dx
mov word [eax + 0x4b5982], cx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0043e1a7
leave
ret
Function at 0x40b3b9
Capabilities:
Check if file exists
Check mutex on windows
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a83e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebx + 8], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0043fd80
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0043fd80
add esp, 0x18
push 0x103
test edi, edi
jne 0x40b434
push 0x4b5980
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044838d
add esp, 0x10
jmp 0x40b48f
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x414]
push eax
call fcn.0044845a
mov esi, eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044838d
lea eax, [esi + esi]
add esp, 0x14
cmp word [ebp + eax - 0x20e], 0x5c
je 0x40b48f
push 0x5c
pop ecx
mov word [ebp + eax - 0x20c], cx
xor ecx, ecx
mov word [ebp + eax - 0x20a], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b4a5
test al, 0x10
jne 0x40b4b0
lea edi, [ebp - 0x20c]
call fcn.0043296d
push dword [ebp + 8]
lea ecx, [ebp - 0x20c]
mov edx, ebx
call fcn.0040b6bc
push 0x490f78
push 0
call fcn.00432a3c
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x40b4e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40b4e9
xor eax, eax
jmp 0x40b4f2
xor eax, eax
inc eax
mov dword [ebx + 0x224], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e1a7
leave
ret 8
Function at 0x40b7ba
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13d0
call fcn.004405f0
mov eax, dword [0x4a83e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push 0xf9c
mov dword [ebp - 0x13d0], eax
lea eax, [ebp - 0x13b4]
push edi
push eax
mov dword [ebp - 0x13b8], edi
call fcn.0043fd80
xor eax, eax
push 0x206
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
mov dword [ebp - 0x13c4], edi
call fcn.0043fd80
add esp, 0x18
lea eax, [ebp - 0x13c4]
push eax
push 0xfa0
lea eax, [ebp - 0x13b8]
push eax
mov dword [ebp - 0x13c0], edi
mov dword [ebp - 0x13c8], edi
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40b927
mov eax, dword [ebp - 0x13c4]
cmp eax, edi
je 0x40b927
shr eax, 2
mov dword [ebp - 0x13cc], eax
mov dword [ebp - 0x13bc], edi
cmp eax, edi
jbe 0x40b927
mov esi, 0x208
mov eax, dword [ebp - 0x13bc]
push dword [ebp + eax*4 - 0x13b8]
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x40b90f
push esi
lea eax, [ebp - 0x418]
push edi
push eax
mov dword [ebp - 0x13c0], edi
call fcn.0043fd80
add esp, 0xc
lea eax, [ebp - 0x13c4]
push eax
push 4
lea eax, [ebp - 0x13c0]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40b908
push 0x104
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x13c0]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x40b908
push 0x4911f8
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b900
mov dword [ebp - 0x13c8], 1
cmp dword [ebp - 0x13c8], edi
jne 0x40b938
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x13bc]
mov eax, dword [ebp - 0x13bc]
cmp eax, dword [ebp - 0x13cc]
jb 0x40b872
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e1a7
leave
ret
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.0043fd80
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x13d0]
lea eax, [ebp - 0x210]
push eax
call fcn.0040315e
xor eax, eax
inc eax
jmp 0x40b929
Function at 0x40be16
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x258
mov eax, 0x47bb89
call fcn.0044ef10
xor eax, eax
push 0x208
xor ebx, ebx
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x25c], edi
call fcn.0043fd80
and dword [ebp - 0x258], ebx
xor eax, eax
inc eax
add esp, 0xc
mov esi, 0x104
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], eax
test edi, edi
je 0x40c00a
lea ecx, [ebp - 0x258]
push ecx
push eax
push ebx
push 0x491238
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bef8
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push ebx
push 0x48fc20
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bee4
cmp dword [ebp - 0x260], 1
jne 0x40bee4
lea eax, [ebp - 0x21c]
push eax
call fcn.0040bcb4
pop ecx
test eax, eax
je 0x40bee4
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
call fcn.0044838d
add esp, 0x10
inc ebx
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x40bff6
and dword [ebp - 0x228], 0
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x224], edi
mov word [ebp - 0x238], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x238]
call fcn.0040bc2e
test eax, eax
je 0x40bfdd
and dword [ebp - 0x244], 0
xor eax, eax
mov dword [ebp - 0x240], edi
mov word [ebp - 0x254], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x40bf56
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x254]
push eax
call fcn.0040bd11
pop ecx
test eax, eax
jne 0x40bf87
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x40bf7c
lea ecx, [ebp - 0x238]
lea edi, [ebp - 0x254]
call fcn.0040bdb1
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x40bf9c
lea ecx, [ebp - 0x238]
lea edi, [ebp - 0x254]
call fcn.0040bdb1
mov ebx, eax
test ebx, ebx
je 0x40bfce
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x40bfbe
mov eax, edi
push eax
push esi
push dword [ebp - 0x25c]
call fcn.0043f6eb
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.00403211
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.00403211
test ebx, ebx
je 0x40c006
mov edi, dword [ebp - 0x25c]
push edi
call fcn.0040bcb4
pop ecx
test eax, eax
jne 0x40c006
mov word [edi], ax
xor ebx, ebx
mov eax, ebx
jmp 0x40c00c
xor eax, eax
call fcn.0044ef93
ret

Function at 0x40c09b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a83e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0043fd80
add esp, 0xc
push 0x103
lea eax, [ebp - 0x20c]
push eax
push 0x490f38
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edi, [ebp - 0x20c]
call fcn.0043296d
mov esi, eax
test esi, esi
je 0x40c109
push 0xffffffffffffffff
mov eax, edi
push eax
push 0x104
push ebx
call fcn.0044838d
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043e1a7
leave
ret
Function at 0x40c119
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4a83e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
xor edi, edi
push 0x400
mov word [ebp - 0x614], ax
lea eax, [ebp - 0x612]
push edi
push eax
mov dword [ebp - 0x61c], edi
mov dword [ebp - 0x618], edi
call fcn.0043fd80
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x620], 0x400
call fcn.0043fd80
add esp, 0x18
call fcn.0040b77a
neg eax
sbb eax, eax
and eax, 0x200
lea ecx, [ebp - 0x618]
push ecx
inc eax
push eax
push edi
push 0x491238
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c213
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x614]
push eax
push edi
push edi
push 0x48fc30
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c207
push 0x104
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
mov dword [ebp - 0x61c], 1
call fcn.0044838d
lea eax, [ebp - 0x210]
push eax
call fcn.0043ed5b
add esp, 0x14
mov dword [ebx], eax
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x61c]
xor ecx, ebp
pop edi
call fcn.0043e1a7
leave
ret
Function at 0x40d080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x274
mov eax, 0x47bb4b
call fcn.0044ef46
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push 7
mov dword [ebp - 0x278], eax
xor esi, esi
pop edi
xor eax, eax
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], esi
mov word [ebp - 0x254], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x260], esi
mov word [ebp - 0x270], ax
mov byte [ebp - 4], 2
xor ecx, ecx
cmp ecx, 0x18
jae 0x40d20f
mov eax, ecx
imul eax, eax, 0x24
mov edx, dword [eax + 0x4ad780]
cmp edx, dword [ebp + 0xc]
jne 0x40d209
push 0xffffffffffffffff
push esi
lea eax, [eax + 0x4ad784]
push eax
lea ecx, [ebp - 0x270]
call fcn.004030c3
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.0043fd80
add esp, 0xc
lea ebx, [ebp - 0x21c]
call fcn.0040c09b
xor eax, eax
mov word [ebp - 0x238], ax
mov eax, ebx
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], esi
call fcn.0040315e
mov esi, 0x4adae0
lea ebx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.0040f8c0
lea esi, [ebp - 0x270]
call fcn.0040f8c0
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x40d18b
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d19b
test al, 0x10
jne 0x40d1b5
cmp dword [ebp - 0x224], 8
mov edi, dword [ebp - 0x238]
jae 0x40d1b0
lea edi, [ebp - 0x238]
call fcn.0043296d
mov esi, dword [ebp - 0x278]
lea ebx, [ebp - 0x238]
call fcn.0040f8c0
push 0xffffffffffffffff
xor esi, esi
push esi
mov eax, ebx
push eax
lea ecx, [ebp - 0x254]
call fcn.004030c3
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x254]
push eax
call fcn.00403afe
push esi
push 1
mov ecx, ebx
call fcn.00403211
push esi
push 1
lea ecx, [ebp - 0x270]
call fcn.00403211
push esi
jmp 0x40d299
inc ecx
jmp 0x40d0dd
push 0x4916dc
push 4
push 0xb
pop edi
call fcn.0040b067
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
push 0x4ad760
lea ecx, [ebp - 0x254]
call fcn.004030c3
lea eax, [ebp - 0x254]
push eax
mov ecx, ebx
call fcn.00403afe
push esi
push 1
lea ecx, [ebp - 0x270]
call fcn.00403211
push esi
push 1
lea ecx, [ebp - 0x254]
call fcn.00403211
mov eax, ebx
jmp 0x40d2ac
push 1
lea ecx, [ebp - 0x254]
call fcn.00403211
mov eax, dword [ebp - 0x274]
call fcn.0044efa2
ret 0xc