joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c78b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x41c7b7
xor eax, eax
jmp 0x41c867
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x41c85c
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
mov edi, dword [esi + 0xa8]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x41c851
mov ecx, dword [ebp - 4]
push esi
push str..debug
call fcn.0041c86c
cmp eax, ebx
je 0x41c807
cmp dword [eax + 0xc], edi
jne 0x41c807
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x41c838
mov ecx, dword [ebp - 4]
push esi
push str..rdata
call fcn.0041c86c
mov edi, eax
cmp edi, ebx
je 0x41c851
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x41c851
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x41c84c
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x41c842
jmp 0x41c84f
mov edx, dword [ebp - 8]
mov ebx, edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x41cdfe
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
mov esi, 0x43ce60
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
push dword [ebp + 0xc]
call fcn.00423950
push esi
push dword [ebp + 0x10]
call fcn.00423950
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x41cf89
push edi
push esi
call fcn.004243e9
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x10], edi
call fcn.00424670
add esp, 0x10
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41cf7f
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00424670
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x438d4c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41cec1
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_wsprintfA]
add esp, 0x18
push 0x34
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00424670
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41cf7f
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
mov byte [ebp - 0x144], bl
mov esi, dword [ebp - 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
cmp esi, ebx
mov dword [ebp + 0xc], eax
jle 0x41cf7f
cmp edi, ebx
mov dword [ebp - 8], ebx
jle 0x41cf20
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
call fcn.00424840
movzx eax, word [ebp - 8]
add esp, 0xc
cmp edi, ebx
push eax
jne 0x41cf51
lea eax, [ebp - 0x144]
push 0x4392c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x41cf69
push dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call fcn.00423950
inc edi
pop ecx
cmp edi, esi
pop ecx
jl 0x41cf15
push dword [ebp - 0x10]
call fcn.00424300
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cfd1
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.KERNEL32
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x41d0d4
push edi
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x41d063
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.0041d4e7
test eax, eax
je 0x41d03b
lea eax, [ebp - 0x82c]
push eax
call fcn.0041d2d8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x41d0ca
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x41d0c1
mov eax, SysReAllocString
jmp 0x41d0c1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x41d0ca
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x41d128
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push dword [0x4395e4]
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push eax
call fcn.0041d431
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x400]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41d16d
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
leave
ret

Function at 0x41d186
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x41d1df
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.0041cf8d
pop ecx
test eax, eax
pop ecx
je 0x41d1df
push esi
call fcn.0041d128
test eax, eax
pop ecx
jne 0x41d1ec
inc ebx
cmp ebx, 0x1a
jl 0x41d1aa
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x41d1e8
Function at 0x41d3cd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.0041d3a3
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
pop edi
je 0x41d42b
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x41d426
cmp eax, 5
jne 0x41d42b
push 1
pop eax
jmp 0x41d42d
xor eax, eax
leave
ret 4

Function at 0x41d549
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_lstrlenA]
mov dword [esp + 0x14], 1
call edi
inc eax
inc eax
push eax
call fcn.00423e37
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x438d4c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x41d5c3
cmp byte [ebx], 0x5c
jne 0x41d5b6
and byte [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41d5b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d5be
mov byte [ebx], 0x5c
inc ebx
inc ebp
cmp ebp, edi
jb 0x41d591
jmp 0x41d5c3
and dword [esp + 0x10], 0
push esi
call fcn.00423468
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

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

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

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

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

Function at 0x41d610
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.0041d5f3
test eax, eax
je 0x41d644
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x41d63f
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x41d64a
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0041d5d6
test eax, eax
jne 0x41d65e
push 1
pop eax
jmp 0x41d69b
push ebx
push esi
xor ebx, ebx
call fcn.0041d69f
test eax, eax
jne 0x41d698
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41d693
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x41d7ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00424670
push 0x44
lea eax, [ebp - 0x74]
pop edi
push edi
push esi
push eax
call fcn.00424670
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x74], edi
mov word [ebp - 0x44], si
push 1
pop edi
mov dword [ebp - 0x48], edi
je 0x41d831
mov word [ebp - 0x44], di
push dword [ebp + 8]
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 0x20
push esi
push esi
lea eax, [ebp - 0x474]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41d8c0
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x41d89d
cmp eax, edi
jne 0x41d89d
push esi
push esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x2c], 0x11
je 0x41d89d
cmp dword [ebp - 0x2c], 0x10
je 0x41d89d
cmp dword [ebp - 0x2c], 0x12
jne 0x41d862
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
mov dword [0x43fe44], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x41d8c5
mov eax, 0xcccccccc
pop edi
pop esi
leave
ret 8

Function at 0x41d8cb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push edi
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00424670
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.00424670
add esp, 0x18
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x24], si
push 1
pop edi
mov dword [ebp - 0x28], edi
je 0x41d90b
mov word [ebp - 0x24], di
push dword [ebp + 8]
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push edi
push esi
lea eax, [ebp - 0x454]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x41d94c
push 0x3e8
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x41d954
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0041d9fb
test eax, eax
je 0x41d9b9
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 0x41d9b9
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
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 0x41da29
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 0x41da8c
call esi
cmp eax, 0x3f0
jne 0x41da83
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 0x41dafb
cmp eax, ebx
je 0x41dafb
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 0x41dafb
call esi
cmp eax, 0x7a
jne 0x41dafb
push dword [ebp - 4]
call fcn.00423e37
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 0x41daef
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 0x41daff
cmp byte [ebp - 0x24], bl
je 0x41dafb
push esi
call fcn.00423468
pop ecx
xor eax, eax
jmp 0x41db4a
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x41db32
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 0x41db2b
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x41db0e
jmp 0x41db32
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x41db47
push esi
call fcn.00423468
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41db4f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
cmp dword [0x43fe54], ecx
jne 0x41db6a
mov eax, dword [0x4395e8]
cmp eax, 0xffffffff
jne 0x41dbaa
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x41dba4
lea eax, [ebp - 0x14]
push eax
call fcn.00425191
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x41dba4
movsx eax, word [ebp - 0x34]
mov dword [0x4395e8], eax
mov ax, word [0x4395e8]
leave
ret
Function at 0x41e35c
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x430ecb
call fcn.00423e18
sub esp, 0x45c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x33b]
mov byte [ebp - 0x33c], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x33c]
push esi
push eax
push dword [0x43fe50]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x33c]
lea ecx, [ebp - 0x468]
push eax
call fcn.0041c0e3
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], bl
push dword [0x4392f0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x468]
mov dword [ebp - 4], ebx
push eax
call fcn.0041e4d2
pop ecx
test eax, eax
pop ecx
je 0x41e440
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x237]
mov byte [ebp - 0x238], bl
mov byte [ebp - 0xd], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x134]
push eax
push ebx
lea eax, [ebp - 0x238]
push 0x439700
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x134]
push ebx
push eax
lea ecx, [ebp - 0x468]
push dword [0x4392f0]
call fcn.0041c345
jmp 0x41e455
lea eax, [ebp - 0x134]
push 0x43eb70
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0x30]
call fcn.0040213f
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00402187
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x43ce60
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402386
cmp byte [ebp - 0xd], bl
je 0x41e49b
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00404274
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0040334f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.0041c228
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e672
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x430ee0
call fcn.00423e18
sub esp, 0x210
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edi, [eax + 0x4024]
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
xor ebx, ebx
push eax
push ebx
mov ecx, edi
push dword [0x432ed0]
push dword [ebp + 8]
call fcn.0040729d
lea eax, [ebp - 0x118]
push eax
call fcn.0042521c
cmp eax, 4
pop ecx
jne 0x41e6e9
mov eax, dword [ebp + 0xc]
push str.1.20.1827.0
add eax, 0xac
push eax
call fcn.0041d6e4
pop ecx
test eax, eax
pop ecx
jl 0x41e6e0
mov esi, 0x300
jmp 0x41e708
push esi
lea eax, [ebp - 0x21c]
jmp 0x41e6f0
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [0x432ee4]
mov ecx, edi
push dword [ebp + 8]
call fcn.0040729d
mov esi, eax
cmp esi, ebx
je 0x41e776
mov dword [ebp + 8], ebx
push 0x20019
push str.SystemCurrentControlSetControlWindows
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040f7b6
test eax, eax
jne 0x41e768
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.CSDVersion
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 0xc], esi
jae 0x41e768
cmp dword [ebp + 8], ebx
je 0x41e764
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41e779
cmp dword [ebp + 8], ebx
je 0x41e776
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e941
Capabilities:
Create directory

Disassembly:
mov eax, 0x430f44
call fcn.00423e18
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.00403a08
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00401da9
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00401d2a
lea eax, [ebp - 0x6c]
lea ecx, [ebp + 8]
push eax
call fcn.00405362
lea ecx, [ebp - 0x6c]
call fcn.00401d2a
lea ecx, [ebp + 8]
mov dword [0x43fe84], ebx
call fcn.00404b9f
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xe]
mov edi, 0x4324bc
mov esi, 0x4324b4
push ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x24], esi
call fcn.004025fd
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 1
push 1
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], 0x5c
push eax
call fcn.0040373f
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x41ea5d
sub eax, dword [ebp - 0x14]
lea ecx, [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x6c]
push dword [ebp - 0x14]
push eax
call fcn.00403941
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.0041ef01
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401d2a
mov eax, dword [ebp - 0x1c]
inc eax
cmp dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
jle 0x41ea5d
cmp dword [ebp - 0x18], 2
jg 0x41ea31
cmp byte [ebp - 0xd], bl
jne 0x41ea5d
push ebx
lea ecx, [ebp - 0x44]
call fcn.00403e77
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41ea5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x43fe84], eax
jne 0x41ea97
mov dword [0x43fe84], ebx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x41e9cc
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401d2a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401d2a
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.0040293c
call fcn.0041eabb
add esp, 0x28
mov byte [ebp - 0xd], bl
jmp 0x41ea6e
Function at 0x41fb90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0041fd2c
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x41fc44
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41fc36
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x41fbfa
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x41fc23
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x41fc30
cmp byte [ebp - 0x838], bl
je 0x41fc36
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x41fc44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041f804
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x41fc69
cmp dword [ebp + 0xc], 4
jne 0x41fc95
cmp dword [ebp - 0x14], ebx
jne 0x41fc95
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x41fc81
mov ecx, edi
call fcn.00420247
jmp 0x41fc95
cmp ax, 4
mov ecx, edi
jne 0x41fc90
call fcn.00420428
jmp 0x41fc95
call fcn.004207fc
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14