joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4212d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x4212ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4212f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4212e0
mov eax, 1
add ebx, ebx
jne 0x421303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4212f8
jne 0x421314
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4212f8
xor ecx, ecx
sub eax, 3
jb 0x421328
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42139a
mov ebp, eax
add ebx, ebx
jne 0x421333
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421340
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421364
inc ecx
add ebx, ebx
jne 0x421350
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421345
jne 0x421361
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421345
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421384
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421375
jmp 0x4212e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421384
add edi, ecx
jmp 0x4212e6
pop esi
mov edi, esi
mov ecx, 0x6d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4213a2
cmp byte [edi], 2
jne 0x4213a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4213a7
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x42141f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x27264]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x272a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4213d4
mov ecx, edi
jns 0x421403
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x272a8]
or eax, eax
je 0x421419
mov dword [ebx], eax
add ebx, 4
jmp 0x4213f1
call dword [esi + 0x272a4]
mov ebp, dword [esi + 0x272ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x421453
sub esp, 0xffffff80
jmp 0x4016b4
Function at 0x402ed0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x18
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x18]
push eax
call fcn.0042b505
cmp eax, 1
pop ecx
pop edi
jle 0x402f11
mov word [0x493010], ax
leave
ret

Function at 0x402f35
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 [0x48fba8]
test ecx, ecx
jle 0x402f68
mov dword [0x48fba8], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x48fba8], eax
jmp 0x402fa0
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 0x402f98
sub eax, dword [0x48fba8]
cmp eax, dword [ebp + 8]
jae 0x402fa8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x48e2ac], bl
jg 0x402f78
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x48fba8]
pop esi
test ecx, ecx
jle 0x402fbd
mov dword [0x48fba8], eax
xor eax, eax
cmp byte [0x48e2ac], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x403192
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf
xor eax, eax
cmp byte [ebp + 0x10], bl
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
rep stosd dword es:[edi], eax
je 0x4031c8
or dword [ebp - 0x28], 1
mov word [ebp - 0x24], bx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403207
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [ebp + 0xc], bl
je 0x403201
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call esi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40320b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x3ff
lea eax, [ebp - 0x400]
push eax
push str.SHOWEWFMSG
mov byte [ebp - 0x400], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x400], 0x31
jne 0x40324d
push 0
push 0x47ab54
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret
Function at 0x40324f
Capabilities:
Terminate process

Disassembly:
cmp byte [0x48e2ac], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
pop esi
je 0x403266
push esi
call edi
cmp dword [0x48fbb4], 0
je 0x403281
push 0x1e
pop esi
jmp 0x403281
cmp dword [0x48fbac], 0
je 0x403284
push 0xa
call edi
dec esi
jns 0x403274
mov eax, dword [0x48fbac]
test eax, eax
pop edi
pop esi
je 0x4032a2
push 0
push eax
mov dword [0x48fbac], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x48e2ac], 0xff
ret

Function at 0x4032aa
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 0x4032eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4032fc
mov byte [ebp - 1], bl
jmp 0x4032fc
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x403338
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [0x48fbbc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x48fbbc]
cmp eax, ebx
je 0x403338
cmp byte [ebp - 1], bl
je 0x403333
push 0x64
push ebx
push eax
call fcn.00466780
mov eax, dword [0x48fbbc]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403551
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 0x169
lea ecx, [ebp - 4]
call fcn.0042aed6
mov ebx, dword [ebp - 4]
push 0x104
push dword [ebp + 0xc]
add ebx, 0xc8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 8]
push eax
xor esi, esi
push ebx
mov dword [ebp - 8], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x40360f
push edi
push eax
push 2
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 8]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x47ab8c
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov di, word [eax + 0x16]
movzx eax, word [eax + 0x14]
push eax
movzx eax, di
push eax
movzx eax, dx
push eax
movzx eax, cx
push eax
push 0x47ab74
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
mov dword [esi], eax
call fcn.0042602e
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403c03
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x403c1e
lea esi, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x403c28
lea eax, [ebp - 0x10]
push 0x26c
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0042aeff
mov ecx, dword [ebp - 4]
push 0x2d0
call fcn.0042aeff
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, 0x208
push ebx
push dword [esi]
push 0x47acf8
call edi
test eax, eax
jg 0x403c67
push ebx
push dword [esi]
push str.TEMP
call edi
and dword [ebp + 8], 0
add eax, eax
mov dword [ebp - 0xc], 0xc7
mov dword [ebp - 8], eax
mov edi, dword [esi]
add edi, dword [ebp - 8]
call fcn.00427c6b
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu.tmp
push edi
call ebx
mov eax, dword [esi]
add esp, 0x14
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403ce2
push 5
mov ecx, 0x48feb8
call fcn.0040b352
dec dword [ebp - 0xc]
jns 0x403c77
mov eax, dword [esi]
mov word [eax], di
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x403d7f
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x403d8e
cmp dword [ebp + 0xc], edi
jne 0x403cee
xor esi, esi
jmp 0x403d91
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 4]
mov dword [ebp + 8], eax
inc eax
push eax
push dword [esi]
push dword [edi]
call fcn.00403ac3
mov eax, dword [ebp + 8]
and dword [ebp + 0xc], 0
add esp, 0xc
add eax, eax
mov dword [ebp - 8], eax
mov esi, dword [edi]
push dword [ebp + 0xc]
add esi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu.tmp
push esi
call ebx
mov eax, dword [edi]
add esp, 0x14
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
call fcn.00403b3c
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x403ccd
push 5
mov ecx, 0x48feb8
call fcn.0040b352
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xc8
jl 0x403d16
mov eax, dword [edi]
and word [eax], si
jmp 0x403ccd
cmp dword [ebp + 8], 0
je 0x403d8e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0042602e
lea ecx, [ebp - 0x14]
call fcn.0042602e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403e70
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 4], eax
push ebx
lea ecx, [eax + 8]
push edi
mov di, word [eax]
mov dword [ebp - 4], ecx
mov ax, word [ecx]
call fcn.00426083
test al, al
jne 0x403e95
inc ecx
inc ecx
mov dword [ebp - 4], ecx
push 0x63
lea eax, [ebp - 0x74]
push eax
xor ebx, ebx
push str.DEBUGMDG
mov byte [ebp - 0x74], bl
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x74], 0x31
jne 0x403eb8
mov byte [0x48fba7], 1
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
mov dword [0x48fba8], eax
mov dword [ebp - 0xc], ebx
call fcn.00434695
lea ecx, [ebp - 8]
call fcn.0042aeb8
push 1
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
mov ecx, 0x48feb8
call fcn.00439f58
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.00426075
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
call fcn.0042602e
lea ecx, [ebp - 0x10]
call fcn.0042602e
mov ecx, dword [ebp - 4]
call fcn.00402fcc
push 0x1e
push eax
push str._InstallService
mov dword [ebp - 4], eax
mov esi, eax
call fcn.004667f0
add esp, 0xc
test eax, eax
jne 0x403f66
movzx esi, word [esi + 0x1e]
mov eax, esi
call fcn.00426083
test al, al
jne 0x403f44
cmp si, bx
jne 0x403f66
push 0x1e
push 0x47ada0
push dword [ebp - 4]
call fcn.004669c0
mov ecx, dword [ebp - 4]
add esp, 0xc
add ecx, 0x1e
call fcn.00402fcc
mov dword [ebp - 4], eax
jmp 0x403f7d
push 8
lea eax, [ebp - 4]
push eax
push 0x47ad94
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x403fc0
cmp di, 0x22
jne 0x403fb6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax*2 - 2]
cmp ecx, edx
jbe 0x403fb6
mov ax, word [ecx]
call fcn.00426083
test al, al
je 0x403fa9
dec ecx
dec ecx
cmp ecx, edx
ja 0x403f97
cmp ecx, edx
jbe 0x403fb6
cmp word [ecx], 0x22
jne 0x403fb6
mov word [ecx], bx
push dword [ebp - 4]
call fcn.0040995a
jmp 0x403fe0
push 0xe
lea eax, [ebp - 4]
push eax
push 0x47ad84
call fcn.0042c7e8
add esp, 0xc
test al, al
pop esi
je 0x403fe8
push dword [ebp - 4]
call fcn.00404a60
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0xc]
call fcn.0042602e
pop edi
xor eax, eax
pop ebx
leave
ret

Function at 0x403ff6
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x48fbac], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x404035
mov eax, dword [edi]
test eax, eax
je 0x404035
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push dword [edi]
call ebx
and dword [edi], 0
cmp byte [esp + 0x10], 0
je 0x40404d
push 1
push 0
push str.shutdown__a
call fcn.00403192
add esp, 0xc
push dword [0x48fbf4]
call fcn.00403111
cmp byte [esp + 0x10], 0
pop ecx
je 0x404079
push 3
pop esi
push 0
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
jne 0x404063
pop esi
pop ebx
ret
Function at 0x4048b3
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [0x48fbb0], ecx
mov dword [ebp - 0xc], edi
xor ebx, ebx
jmp 0x4048db
call fcn.00426083
test al, al
jne 0x4048e3
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x4048d0
sub ecx, edi
sar ecx, 1
mov eax, 0x400
cmp ecx, eax
jle 0x4048f2
mov ecx, eax
lea esi, [ecx + ecx]
push esi
lea eax, [ebp - 0x820]
push edi
push eax
call fcn.004669c0
add esp, 0xc
push edi
mov word [ebp + esi - 0x820], bx
mov byte [0x493003], bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea eax, [edi + 0x226]
push eax
lea ecx, [ebp - 4]
call fcn.0042aed6
mov eax, dword [ebp - 4]
push 0x1cc
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
cmp ecx, ebx
jle 0x404a53
mov eax, dword [ebp - 4]
mov word [eax + ecx*2 + 2], bx
mov eax, dword [ebp - 4]
lea esi, [eax + ecx*2 + 2]
mov dword [ebp - 8], esi
lea edx, [eax + 2]
xor esi, esi
mov word [eax], 0x22
jmp 0x404979
mov ax, word [edx]
call fcn.00426083
test al, al
je 0x404977
xor esi, esi
inc esi
inc edx
inc edx
cmp edx, dword [ebp - 8]
jb 0x404968
cmp si, bx
mov edx, dword [ebp - 4]
lea eax, [edx + 2]
mov dword [ebp - 8], eax
je 0x40499a
dec eax
dec eax
mov word [edx + ecx*2 + 2], 0x22
inc ecx
mov dword [ebp - 8], eax
inc ecx
push 0x1e
lea esi, [eax + ecx*2]
push 0x47af34
push esi
call fcn.004669c0
push edi
push dword [ebp - 0xc]
add esi, 0x1e
push esi
call fcn.00403ac3
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x404a45
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x820]
push ebx
push 2
push 0x110
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
je 0x404a45
push eax
call esi
push 0x20000000
lea eax, [ebp - 0x820]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x404a3e
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x404a2c
push 0x47af28
jmp 0x404a31
push 0x47af1c
call fcn.0040320b
pop ecx
push dword [ebp - 0xc]
call esi
jmp 0x404a50
push 0x47af10
jmp 0x404a4a
push 0x47af04
call fcn.0040320b
pop ecx
push edi
call esi
lea ecx, [ebp - 4]
call fcn.0042602e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a60
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edx, esi
xor ebx, ebx
jmp 0x404a82
call fcn.00426083
test al, al
jne 0x404a8a
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x404a77
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x404a9b
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.004669c0
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x404abb
inc esi
inc esi
mov ax, word [esi]
call fcn.00426083
test al, al
jne 0x404ab9
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
je 0x404b4e
push 0x10020
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp + 8], eax
je 0x404b4e
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x404b17
push 0x47af84
call fcn.0040320b
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0xc8
push edi
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x404b39
push 0x47af78
jmp 0x404b3e
push 0x47af6c
call fcn.0040320b
pop ecx
push dword [ebp + 8]
call ebx
push edi
call esi
jmp 0x404b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x404b62
push 0x47af60
jmp 0x404b67
push 0x47af54
call fcn.0040320b
pop ecx
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404c5d
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
push ebx
push esi
push edi
mov esi, 0x47af90
lea edi, [ebp - 0x7f8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x1f9
lea edi, [ebp - 0x7e6]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
call fcn.00402fcc
mov edx, eax
mov ecx, edx
call fcn.00403093
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x404cab
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.00403ac3
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
push 0x64
xor edi, edi
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov word [ebp + esi*2 - 0x7e8], di
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
je 0x404d20
push edi
push edi
push edi
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x404d20
push 0x64
push edi
push esi
call fcn.00402fdf
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x48e0f4], eax
mov dword [0x48fbb4], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409c5b
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x48fc40
mov dword [0x48fc40], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x48fc44], 5
je 0x409c83
xor eax, eax
leave
ret
mov eax, dword [0x48fc48]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x409c9e
dec eax
jne 0x409d1f
mov ebx, 0x39000
jmp 0x409ca3
mov ebx, 0x30000
push esi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [0x48fd54]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x48fd64
push esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [0x48fc08]
cmp eax, 0xc0000022
jne 0x409d1a
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [0x48fc08]
push dword [0x48fd64]
call fcn.00409b8d
pop ecx
push dword [0x48fd64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [0x48fc08]
cmp eax, edi
pop esi
jge 0x409d23
xor eax, eax
jmp 0x409d47
push 0x1000
push ebx
push edi
push 6
push dword [0x48fd64]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x48fd60], eax
neg eax
sbb eax, eax
and eax, dword [0x48fd64]
pop edi
pop ebx
leave
ret

Function at 0x409d4b
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x409d64
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x409d77
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x409dbf
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x48fd64]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3ff
mov ecx, dword [eax + ecx*4]
test ecx, 1
jne 0x409dac
xor eax, eax
jmp 0x409dc1
mov esi, ecx
xor esi, edi
and esi, 0xfff
push eax
xor esi, ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
pop edi
ret

Function at 0x409dc4
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x48fd60]
call fcn.00409d4b
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x48fd64]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x409df9
pop esi
ret
shr esi, 2
and esi, 0x3ff
mov esi, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
ret