joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ccca
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov esi, 0x45d464
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x42ce51
push esi
call fcn.00431847
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.00431ad0
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42ce48
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00431ad0
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x457bbc
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42cd8c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00431ad0
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42ce48
push 0x7f
mov word [ebp - 0x244], di
mov esi, dword [ebp - 4]
pop ecx
xor eax, eax
lea edi, [ebp - 0x242]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x42ce48
and dword [ebp - 0xc], 0
test edi, edi
jle 0x42cdee
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.00431d90
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x42ce1f
lea eax, [ebp - 0x244]
push 0x458d78
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x42ce37
push dword [ebp + 0x10]
lea eax, [ebp - 0x244]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x10]
call ebx
inc edi
cmp edi, esi
jl 0x42cde2
push dword [ebp - 8]
call fcn.0043175e
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42cffc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [0x45985c]
lea eax, [ebp - 0x800]
push dword [ebp + 8]
push eax
call fcn.0042d32b
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x800]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42d041
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
pop eax
leave
ret
Function at 0x42d2c5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
call fcn.0042d291
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
pop edi
je 0x42d325
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x42d320
cmp eax, 5
jne 0x42d325
push 1
pop eax
jmp 0x42d327
xor eax, eax
leave
ret 4

Function at 0x42d45f
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], 1
call edi
lea eax, [eax + eax + 4]
push eax
call fcn.004312e7
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x457bbc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x42d4e0
cmp word [ebx], 0x5c
jne 0x42d4d2
and word [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42d4cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42d4db
mov word [ebx], 0x5c
inc ebx
inc ebx
inc ebp
cmp ebp, edi
jb 0x42d4a9
jmp 0x42d4e0
and dword [esp + 0x10], 0
push esi
call fcn.004305fc
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42d50b
test al, 0x10
jne 0x42d50b
push 1
pop eax
jmp 0x42d50d
xor eax, eax
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42d528
test al, 0x10
je 0x42d528
push 1
pop eax
jmp 0x42d52a
xor eax, eax
ret 4

Function at 0x42d52d
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.0042d510
test eax, eax
je 0x42d561
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x42d55c
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x42d567
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0042d4f3
test eax, eax
jne 0x42d57b
push 1
pop eax
jmp 0x42d5b8
push ebx
push esi
xor ebx, ebx
call fcn.0042d5bc
test eax, eax
jne 0x42d5b5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42d5b0
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x42d70d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x448814
call fcn.004312c8
sub esp, 0xb4
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x7c], 0x4494c4
mov dword [ebp - 0x5c], 0x4494bc
jne 0x42d73f
mov eax, 0x45d464
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040856d
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00431ad0
push 0x44
lea eax, [ebp - 0xc0]
pop esi
push esi
push ebx
push eax
call fcn.00431ad0
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc0], esi
mov word [ebp - 0x90], bx
push 1
pop eax
mov dword [ebp - 0x94], eax
je 0x42d792
mov word [ebp - 0x90], ax
mov edi, dword [ebp - 0x74]
cmp edi, ebx
jne 0x42d79e
mov edi, 0x4494dc
push eax
lea eax, [ebp + 0xf]
mov esi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401504
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x42d7c1
mov eax, 0x4494dc
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x18]
push str.Attempting_to_launch:__s
push eax
mov dword [ebp - 0x14], 0x50d
call fcn.00407c61
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401929
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.0040865e
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00408609
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x1c]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.0040868b
cmp edi, ebx
je 0x42d8e2
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x42d874
cmp eax, 1
jne 0x42d874
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x44], 0x11
je 0x42d874
cmp dword [ebp - 0x44], 0x10
je 0x42d874
cmp dword [ebp - 0x44], 0x12
jne 0x42d837
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov dword [0x4623d8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
lea eax, [ebp + 0xf]
push 1
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401504
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x42d8b3
mov eax, 0x4494dc
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x52e
push edi
push str.Launch_result__d__exit_code__d
push eax
call fcn.00407c61
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401929
mov esi, dword [ebp - 0x10]
jmp 0x42d8e7
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401929
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42d906
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x44883e
call fcn.004312c8
sub esp, 0x8e0
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00431ad0
push 0x44
lea eax, [ebp - 0x9c]
pop esi
push esi
push ebx
push eax
call fcn.00431ad0
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x9c], esi
mov word [ebp - 0x6c], bx
push 1
pop edi
mov dword [ebp - 0x70], edi
je 0x42d954
mov word [ebp - 0x6c], di
push dword [ebp + 8]
lea eax, [ebp - 0x8ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x8ec]
mov dword [ebp - 0x58], 0x4494c4
test eax, eax
mov dword [ebp - 0x38], 0x4494bc
lea eax, [ebp - 0x8ec]
jne 0x42d987
mov eax, 0x45d464
lea ecx, [ebp + 0xf]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.0040856d
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0x14], 0x4494dc
je 0x42d9a9
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xb]
push edi
mov esi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
push esi
lea ecx, [ebp - 0xec]
call fcn.00401504
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x42d9cf
mov eax, 0x4494dc
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x54f
push str.Attempting_to_launch__no_wait_:__s
push eax
call fcn.00407c61
add esp, 0xc
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], bl
call fcn.00401929
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401929
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x9c]
push eax
push ebx
push ebx
push 0x20
push edi
push ebx
lea eax, [ebp - 0x8ec]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xd]
push edi
push eax
push esi
lea ecx, [ebp - 0xc4]
call fcn.00401504
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
cmp eax, ebx
jne 0x42da4e
mov eax, 0x4494dc
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x554
push str.Launch_result__d
push eax
call fcn.00407c61
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00401929
cmp dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebx
je 0x42da91
push 0x3e8
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42daa2
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0042db49
test eax, eax
je 0x42db07
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42db07
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret

Function at 0x42db77
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42dbda
call esi
cmp eax, 0x3f0
jne 0x42dbd1
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x42dc49
cmp eax, ebx
je 0x42dc49
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x42dc49
call esi
cmp eax, 0x7a
jne 0x42dc49
push dword [ebp - 4]
call fcn.004312e7
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x42dc3d
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x42dc4d
cmp byte [ebp - 0x24], bl
je 0x42dc49
push esi
call fcn.004305fc
pop ecx
xor eax, eax
jmp 0x42dc98
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x42dc80
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42dc79
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x42dc5c
jmp 0x42dc80
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x42dc95
push esi
call fcn.004305fc
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42dc9d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
cmp dword [0x4623f0], ecx
jne 0x42dcb8
mov eax, dword [0x459860]
cmp eax, 0xffffffff
jne 0x42dcf8
lea eax, [ebp - 0x48]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x42dcf2
lea eax, [ebp - 0x48]
push eax
call fcn.00432233
pop ecx
lea ecx, [ebp - 0x20]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x42dcf2
movsx eax, word [ebp - 0x20]
mov dword [0x459860], eax
mov ax, word [0x459860]
leave
ret
Function at 0x42e597
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4488c3
call fcn.004312c8
sub esp, 0x870
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x646]
mov word [ebp - 0x648], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x648]
push eax
push dword [0x4623e4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x648]
lea ecx, [ebp - 0x87c]
push eax
call fcn.0042b660
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov ebx, 0x4613a8
mov ecx, ebx
stosw word es:[edi], ax
call fcn.004016f5
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.0042e770
pop ecx
test eax, eax
pop ecx
je 0x42e68c
and word [ebp - 0x440], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x43e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x440]
mov byte [ebp - 0xd], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x238]
push eax
push 0
lea eax, [ebp - 0x440]
push 0x459b3c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x238]
push 0
push eax
mov ecx, ebx
call fcn.004016f5
push eax
lea ecx, [ebp - 0x87c]
call fcn.0042bee8
jmp 0x42e6f1
mov eax, 0x45fdc8
mov ecx, eax
test ecx, ecx
je 0x42e6b1
cmp word [0x45fdc8], 0
je 0x42e6b1
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x42e6ed
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.0042d0d3
mov eax, dword [0x4613b0]
test eax, eax
jne 0x42e6d9
mov eax, 0x4494dc
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0042d32b
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x30]
call fcn.0040226e
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.004022b6
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x45d464
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004024b5
cmp byte [ebp - 0xd], 0
pop edi
pop esi
pop ebx
je 0x42e73b
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402c37
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040368e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x87c]
call fcn.0042bca0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x437f2a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x45c320
cmp edx, dword [eax]
je 0x437f4c
add eax, 8
inc ecx
cmp eax, 0x45c3b0
jl 0x437f3d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x45c320]
jne 0x43807a
mov eax, dword [0x462470]
cmp eax, 1
je 0x438054
test eax, eax
jne 0x437f7d
cmp dword [0x459ca4], 1
je 0x438054
cmp edx, 0xfc
je 0x43807a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x437fb4
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00430e00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00431620
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x437ff7
lea eax, [ebp - 0x1a4]
push eax
call fcn.00431620
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44a554
push edi
call fcn.00431520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00430e00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00430e10
lea eax, [ebp - 0xa0]
push 0x44a534
push eax
call fcn.00430e10
push dword [esi + 0x45c324]
lea eax, [ebp - 0xa0]
push eax
call fcn.00430e10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00439e2b
add esp, 0x2c
pop edi
jmp 0x43807a
lea eax, [ebp + 8]
lea esi, [esi + 0x45c324]
push 0
push eax
push dword [esi]
call fcn.00431620
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x43c2ad
Capabilities:
Create directory

Disassembly:
mov eax, 0x448b48
call fcn.004312c8
sub esp, 0x60
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040293e
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00401d48
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00401cce
lea eax, [ebp - 0x6c]
lea ecx, [ebp + 8]
push eax
call fcn.004048ac
lea ecx, [ebp - 0x6c]
call fcn.00401cce
lea ecx, [ebp + 8]
mov dword [0x4628fc], ebx
call fcn.00403d20
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xe]
mov edi, 0x4494fc
push ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x449504
mov dword [ebp - 0x24], edi
call fcn.004026fa
mov byte [ebp - 4], 2
xor esi, esi
mov dword [ebp - 0x14], 1
push 1
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], 0x5c
call fcn.004027c4
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x43c3fa
sub eax, esi
lea ecx, [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0040290a
lea esi, [ebp - 0x6c]
lea eax, [ebp - 0x68]
neg esi
sbb esi, esi
push 0x457bbc
and esi, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0040938a
test eax, eax
je 0x43c397
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00413260
jmp 0x43c3a7
push dword [0x44950c]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.0040e572
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 1
lea esi, [eax + 1]
jle 0x43c3ee
cmp dword [ebp - 0x14], 4
jg 0x43c3be
cmp byte [ebp - 0xd], bl
jne 0x43c3ee
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x43c3ca
mov eax, 0x44952c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43c3ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x4628fc], eax
jne 0x43c42f
mov dword [0x4628fc], ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401cce
inc dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x43c336
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401cce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401cce
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x449504
mov dword [ecx + 0x20], edi
call fcn.0040387f
call fcn.0043be87
add esp, 0x28
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401cce
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401cce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401cce
xor al, al
jmp 0x43c420
Function at 0x43cffa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.0040a5db
xor ebx, ebx
cmp eax, 1
jne 0x43d097
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x43d084
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x43d05b
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x43d084
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x43d097
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x43d097
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043cc42
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14