joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4045b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b7df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x423694]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], 1
cmp eax, 6
ja case.default.0x4045ee
jmp dword [eax*4 + 0x404680]
push str.7581817d32404e323f53323f53717c7c7a7d403b7b7281323f537e6f797c74323f53
jmp 0x404624
push str.605c5361644e5f523242503242505a76707f7c807c738132425032425064767b717c848032425032425050827f7f727b8163727f80767c7b3242503242505f827b
jmp 0x404624
push str.5a76707f7c807c7381
jmp 0x404624
push str.706c767b76813b7d757d3240537d6c76713240517c7d727b323f437a6e70324051
jmp 0x404624
push str.706c796e80813b7d757d3240537d6c76713240517c7d727b323f437a6e70324051
jmp 0x404624
push str.706c7c7d727b3b7d757d
jmp 0x404624
push str.7c7d727b3b7d757d3240537a324051
lea ecx, [esp + 0xc]
call fcn.0041207b
push 0xd
push 1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00411cb3
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 0xc4]
push esi
call fcn.00401170
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.00411f3e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410851
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004077d7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x410874
test byte [esp + 8], 2
je 0x410874
call fcn.0040784a
mov dword [eax], 0xd
call fcn.00407853
mov dword [eax], 5
jmp 0x41084d
xor eax, eax
ret

Function at 0x418590
Capabilities:
Create http request

Disassembly:
mov eax, 0x41ba48
call fcn.00406d38
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4185c8
call fcn.0041a51a
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4185ed
push eax
push dword [esi + 4]
call fcn.004191ec
jmp 0x4185f9
push esi
push eax
mov ecx, 0x426fe0
call fcn.0041860a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4188bb
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x41baa7
call fcn.00406d38
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00413e96
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x423694]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.0041207b
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0041207b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x41a08e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41a0bc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a0da
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419ff4
jmp 0x41a0da
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a0da
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00419ff4
test edi, edi
mov eax, edi
jne 0x41a0c4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x255a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x255a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x255a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x255a06a
add dl, dl
jne 0x255a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x255a0dc
xor eax, eax
add dl, dl
jne 0x255a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x255a17d
add dl, dl
jne 0x255a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x255a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x255a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x255a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x255a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x255a075
mov eax, 1
add dl, dl
jne 0x255a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x255a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x255a0e1
sub eax, ebx
mov ebx, 1
jne 0x255a128
mov ecx, 1
add dl, dl
jne 0x255a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x255a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x255a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x255a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x255a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x255a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x255a136
cmp eax, 0x7d00
jae 0x255a16d
cmp eax, 0x500
jb 0x255a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x255a075
cmp eax, 0x7f
ja 0x255a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x255a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x255a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x255a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x34a02a04
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x37c37e97
nop
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x408b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push str.AppID
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408be3
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x408bb1
cmp eax, 2
jne 0x408bcd
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x408bdd
test ecx, ecx
je 0x408bd8
test cl, 1
jne 0x408bcd
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x408bdd
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4059d6
Capabilities:
Access peb ldr_data
Delete file
Get kernel32 base address
Get number of processors

Disassembly:
sub esp, 0xd0
mov eax, dword [0x481640]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x24
mov dword [esp + 0x14], ebx
call fcn.00406b09
pop ecx
mov esi, eax
push 0x64
pop ebp
test esi, esi
je 0x405a3c
push str.Window1
lea ecx, [esp + 0xc8]
call fcn.004022bb
lea eax, [esp + 0xc4]
push eax
push ebp
push ecx
push ecx
mov dword [esp + 4], 0x40000000
mov ecx, esi
mov dword [esp], 0x40400000
call fcn.00402314
mov esi, eax
inc ebx
jmp 0x405a3e
xor esi, esi
test bl, 1
je 0x405a4f
lea ecx, [esp + 0xc4]
call fcn.00403eb0
test esi, esi
je 0x405a70
mov ecx, esi
call fcn.004031f4
test esi, esi
je 0x405a70
lea ecx, [esi + 0xc]
call fcn.00403eb0
push 0x24
push esi
call fcn.00406b39
pop ecx
pop ecx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4825d8], eax
push 0x27
push 0x481030
push 0x547
mov edi, 0x481058
push edi
call fcn.00402f88
push 1
push 0x424478
call fcn.00405be2
push 0x8aafdc01
push dword [0x4825d8]
call fcn.00402ee9
add esp, 0x20
lea ecx, [esp + 0x14]
mov ebx, str.static.lib
mov esi, eax
push 1
push 0x40
push 2
push ebx
call fcn.00402107
lea eax, [esp + 0x14]
push 0x424488
push eax
call fcn.004010ef
push eax
call fcn.00401ea3
add esp, 0xc
sub ebp, 1
jne 0x405ad6
lea ecx, [esp + 0x14]
call fcn.004040ed
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x4e4
push edi
call esi
test eax, eax
je 0x405b65
call fcn.0040511c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x400
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x405b65
push 0x42448c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
push eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x14]
call fcn.00402c98
mov ecx, dword [esp + 0xdc]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406b4c
add esp, 0xd0
ret 0x10

Function at 0x4078ca
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407909
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407909
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407909
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407909
cmp dword [ecx + 0x74], 0xe
jbe 0x407909
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4158c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4283d0
push 0x4283c8
push str.FlsAlloc
push 0x1e
call fcn.00415791
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4158fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x424148]
call esi
jmp 0x415901
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40381a
Capabilities:
Get common file path
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x403831
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
push 0x2d0
mov ecx, esi
call fcn.0043d3ea
test edi, edi
jg 0x4038bc
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebp
mov ebp, 0x208
push ebp
push eax
push 0x4a3cc4
call ebx
mov edi, eax
test edi, edi
jg 0x4038aa
mov eax, dword [esi]
push ebp
push eax
push 0x4a3cb8
call ebx
mov edi, eax
test edi, edi
jg 0x4038aa
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
test edi, edi
jle 0x4038ba
mov eax, dword [esi]
push 0x4a3cac
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
add edi, 5
test edi, edi
jle 0x4038ba
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
pop ebp
pop ebx
push dword [esi]
call fcn.0041baa3
test edi, edi
pop ecx
jle 0x4038d4
push dword [esi]
call fcn.0048eec0
test eax, eax
pop ecx
jne 0x403901
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.TEMP_
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push dword [esi]
call fcn.0041baa3
pop ecx
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x403cb6
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.LC_ALL
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x403cec
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x403cfb
mov eax, 0x4a3ebc
push eax
mov ecx, 0x4bdc28
call fcn.0044580a
push dword [0x4bdc28]
call fcn.0043de9a
cmp eax, 1
pop ecx
jle 0x403d1d
mov word [0x4c1010], ax
leave
ret

Function at 0x403e3e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4bdbf0]
test ecx, ecx
jle 0x403e71
mov dword [0x4bdbf0], eax
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [0x4bdbf0], eax
jmp 0x403ea9
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x403ea1
sub eax, dword [0x4bdbf0]
cmp eax, dword [ebp + 8]
jae 0x403eb1
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4bc2c0], bl
jg 0x403e81
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x4bdbf0]
pop esi
test ecx, ecx
jle 0x403ec6
mov dword [0x4bdbf0], eax
xor eax, eax
cmp byte [0x4bc2c0], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x40409b
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4bc2c0], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x14
pop esi
je 0x4040b2
push esi
call edi
cmp dword [0x4bdc00], 0
je 0x4040cd
push 0x1e
pop esi
jmp 0x4040cd
cmp dword [0x4bdbf4], 0
je 0x4040d0
push 0xa
call edi
dec esi
jns 0x4040c0
mov eax, dword [0x4bdbf4]
test eax, eax
pop edi
pop esi
je 0x4040ee
push 0
push eax
mov dword [0x4bdbf4], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov byte [0x4bc2c0], 0xff
ret
Function at 0x4040f6
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x404137
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x404148
mov byte [ebp - 1], bl
jmp 0x404148
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x404184
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push edi
mov dword [0x4bdc08], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4bdc08]
cmp eax, ebx
je 0x404184
cmp byte [ebp - 1], bl
je 0x40417f
push 0x64
push ebx
push eax
call fcn.0048f710
mov eax, dword [0x4bdc08]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405461
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jne 0x40547d
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
jne 0x40549b
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x405626
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x26c
mov ecx, ebx
call fcn.0043d3ea
push esi
call fcn.0040381a
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
push dword [ebx]
call fcn.00405049
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
jmp 0x4054de
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 8], 0
je 0x405589
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x4a40d8
mov dword [ebp - 0x1c], eax
call fcn.00439b48
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s_
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebx]
add esp, 0x18
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x405548
push edi
push edi
push 5
mov ecx, 0x4bdfa0
call fcn.004137db
dec dword [ebp - 8]
jns 0x4054db
jmp 0x405602
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x405626
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [ebx]
mov dword [ebp + 8], eax
push dword [esi]
call fcn.00405049
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0xc
and word [ecx + eax*2], 0
jmp 0x40558b
mov eax, edi
and dword [ebp + 8], 0
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 8]
add edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x18
xor edi, edi
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.004050ca
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x4055fd
push edi
push edi
push 5
mov ecx, 0x4bdfa0
call fcn.004137db
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x405594
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], edi
jne 0x405607
mov eax, dword [ebx]
mov word [eax], di
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x405615
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x405623
cmp dword [ebp - 4], edi
je 0x405623
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.00437884
lea ecx, [ebp - 0x14]
call fcn.00437884
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40563d
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push str.PECMD:MSGSVR:HWND
xor ebx, ebx
push ebx
call fcn.004040f6
pop ecx
pop ecx
call fcn.00403cb6
mov byte [0x4bdbe6], 1
call fcn.0048fdcb
call fcn.0043946b
push ebx
push 0x24
pop edi
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.System32Kernel32.dll
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4a4144
push eax
mov dword [ebp - 4], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push str.GetNativeSystemInfo
push dword [ebp - 4]
mov dword [0x4bdb9c], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x4056e0
lea ecx, [ebp - 0x28]
push ecx
call eax
cmp word [ebp - 0x28], bx
je 0x40571d
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 4]
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebp - 4]
mov dword [0x4bdbe0], eax
call esi
cmp dword [0x4bdbe0], ebx
mov dword [0x4bdbdc], eax
jne 0x405712
mov dword [0x4bdbdc], ebx
mov bl, 1
mov word [0x4bdbc8], 0x100
movsx eax, bl
push str.bX64
push eax
push 0x4bdfa0
mov byte [0x4bdbe5], bl
call fcn.0043f71c
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40573e
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 8], eax
lea ecx, [eax + 8]
push ebx
mov bx, word [eax]
mov dword [ebp - 8], ecx
mov ax, word [ecx]
call fcn.004820ac
test al, al
jne 0x405762
inc ecx
inc ecx
mov dword [ebp - 8], ecx
push 0x63
lea eax, [ebp - 0x78]
push eax
push str.DEBUGMDG
mov byte [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
cmp byte [ebp - 0x78], 0x31
jne 0x405784
mov byte [0x4bdbec], 1
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push dword [ebp - 8]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
mov dword [0x4bdbf0], eax
call fcn.00445746
lea ecx, [ebp - 0xc]
call fcn.0043d3a5
push 1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
mov ecx, 0x4bdfa0
call fcn.0044b25d
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0044580a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.00437884
lea ecx, [ebp - 0x14]
call fcn.00437884
mov ecx, dword [ebp - 8]
call fcn.00403ed5
push str._InstallService
mov edi, eax
push 0xf
pop esi
mov dword [ebp - 8], edi
call fcn.00402c37
test al, al
pop ecx
pop edi
pop esi
je 0x405825
push 0x1e
push str._Service
push dword [ebp - 8]
mov byte [ebp - 1], 0x49
call fcn.0041255f
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, 0x1e
call fcn.00403ed5
mov dword [ebp - 8], eax
jmp 0x405840
push 8
lea eax, [ebp - 8]
push eax
push 0x4a4194
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x40589f
mov byte [ebp - 1], 0x53
cmp bx, 0x22
jne 0x40587a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, dword [ebp - 8]
lea ecx, [edx + eax*2 - 2]
cmp ecx, edx
jbe 0x40587a
mov ax, word [ecx]
call fcn.004820ac
test al, al
je 0x40586c
dec ecx
dec ecx
cmp ecx, edx
ja 0x40585a
cmp ecx, edx
jbe 0x40587a
cmp word [ecx], 0x22
jne 0x40587a
and word [ecx], 0
sub dword [ebp - 8], 2
movsx ax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
mov word [ecx], ax
sub dword [ebp - 8], 2
mov eax, dword [ebp - 8]
mov word [eax], 0x7e
push dword [ebp - 8]
call fcn.0040dc86
jmp 0x4058bf
push 0xe
lea eax, [ebp - 8]
push eax
push str._RemoveService
call fcn.0043f0e5
add esp, 0xc
test al, al
pop ebx
je 0x4058c8
push dword [ebp - 8]
call fcn.00405b5b
pop ecx
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea ecx, [ebp - 0x10]
call fcn.00437884
xor eax, eax
leave
ret