joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4502ec
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450303
add esp, 0xfffffff0
call fcn.00403654
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cfe8
mov eax, dword [0x488bbc]
cmp word [eax + 2], 0
jne 0x45032b
mov eax, dword [0x488bbc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451840
mov eax, dword [0x488cac]
cmp word [eax + 2], 0
jne 0x450345
mov eax, dword [0x488cac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451a38
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4152e0]
call fcn.00403300
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4152e0]
call fcn.00403300
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f584]
call fcn.00426e50
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4504cc
mov eax, dword [0x488aa4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427220
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451fd8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x488aa4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c748
test eax, eax
je 0x45043a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408964
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c770
test eax, eax
je 0x45044e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042f0
mov eax, dword [0x488910]
cmp byte [eax], 0
jne 0x450482
mov eax, ebx
call fcn.004505f4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004521b4
mov eax, ebx
call fcn.00452b78
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4504c2
call fcn.004036ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450874
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x489bb4]
cmp dword [eax + 0x30], 0
je 0x45091e
cmp dword [ebx + 0x94], 0
jne 0x450918
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450804
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450918
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4508de
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450918
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417648
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4508ed
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451480
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4514b5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404170
jmp 0x4514c2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452390
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4523d1
mov eax, esi
call fcn.00438e38
test al, al
je 0x4523d1
mov eax, dword [ebx + 0x84]
call fcn.00438b78
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4523d1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438b78
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4531e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4148dc]
call fcn.004049ec
xor eax, eax
push ebp
push 0x453324
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x480d44], 0
jne 0x453233
mov ecx, dword [0x488930]
mov dl, 1
mov eax, dword [0x407254]
call fcn.0040b980
call fcn.00403abc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d44
mov eax, ebx
call fcn.004048bc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x453334
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405970
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004048cc
test eax, eax
jle 0x4532cb
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x4532c4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404308
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004042f0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408030
test eax, eax
jne 0x4532c4
mov ebx, 0x15
jmp 0x4532d0
mov ebx, 0x10
jmp 0x4532d0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x480d44]
call fcn.00453138
mov eax, dword [ebp - 8]
call fcn.00453138
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45332b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004040a4
lea eax, [ebp - 0x10]
mov edx, dword [0x4148dc]
call fcn.00404abc
ret

Function at 0x47d15c
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x488658]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x47d198
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x47d1b0
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x47d1a9
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00402d44
xor edx, edx
mov eax, 0x488858
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x47d21a
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x47d1ce
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x47d458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x47d471
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x47d46a
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x47d483
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x47d47c
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0047d04c
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x47d49d
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0047d15c
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x47d522
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x47d53f
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0047d0dc
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x47d568
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47d580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x47d599
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x47d592
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x47d5ad
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0047cf44
test bl, bl
jne 0x47d680
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x489e60
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x47d5e4
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x47d5f8
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0047d458
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x47d62a
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x47d5d9
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x47d64d
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x47d65e
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x47d672
jmp 0x47d73b
cmp bl, 1
jne 0x47d73b
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x489eba
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x47d6a0
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x47d6b4
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0047d458
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x47d6e6
sub ebx, 6
inc dword [ebp - 8]
jne 0x47d695
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x47d70d
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x47d71e
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x47d732
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0047cfc8
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x47dfa8
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404530
mov eax, dword [ebp + 8]
call fcn.00404530
xor eax, eax
push ebp
push 0x47e0b8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
call fcn.00404540
push eax
push 1
push 3
push 2
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404540
mov ebx, eax
push ebx
push ebx
push esi
call sub.advapi32.dll_CreateServiceA
mov ebx, eax
test ebx, ebx
jne 0x47e066
call sub.KERNEL32.DLL_GetLastError
test eax, eax
jne 0x47e066
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, edi
call fcn.0047e4b4
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, edi
call fcn.0047e374
push 8
call sub.KERNEL32.DLL_Sleep_1
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
call fcn.00404540
push eax
push 1
push 3
push 0x12
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404540
mov ebx, eax
push ebx
push ebx
push esi
call sub.advapi32.dll_CreateServiceA
mov ebx, eax
test ebx, ebx
jne 0x47e08c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x431
jne 0x47e07c
mov byte [ebp - 5], 1
jmp 0x47e090
call sub.KERNEL32.DLL_GetLastError
mov dword [0x4888d8], eax
mov byte [ebp - 5], 0
jmp 0x47e090
mov byte [ebp - 5], 1
test ebx, ebx
je 0x47e09a
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e0bf
lea eax, [ebp - 4]
call fcn.00404080
lea eax, [ebp + 8]
call fcn.00404080
ret
Function at 0x47e0cc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x47e0d5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404530
xor eax, eax
push ebp
push 0x47e293
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
jne 0x47e11a
xor ebx, ebx
jmp 0x47e278
cmp bx, 1
jne 0x47e24a
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0047e550
mov eax, dword [ebp - 0xc]
mov edx, 0x47e2ac
call fcn.0040448c
jne 0x47e16e
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0040cebc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004087c4
push dword [ebp - 0x10]
push 0x47e2b8
push 0x47e2c8
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404400
jmp 0x47e19d
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.0040cebc
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004087c4
push dword [ebp - 0x18]
push 0x47e2d8
push 0x47e2c8
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404400
mov eax, dword [ebp - 8]
call fcn.0040871c
test al, al
jne 0x47e1d6
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040cebc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004087c4
push dword [ebp - 0x20]
push dword [ebp - 4]
push 0x47e2c8
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404400
mov eax, 0x489edc
mov edx, 0x47e2e8
call fcn.004040d4
push 0
mov eax, dword [0x489edc]
call fcn.00404540
push eax
mov eax, dword [ebp - 8]
call fcn.00404540
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
je 0x47e212
lea eax, [ebp - 8]
mov edx, dword [0x489edc]
call fcn.00404118
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.0047dfa8
test al, al
je 0x47e246
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.0047e408
mov ebx, eax
test bl, bl
jne 0x47e26e
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.0047e374
jmp 0x47e26e
xor ebx, ebx
jmp 0x47e26e
cmp bx, 2
jne 0x47e26c
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.0047e4b4
mov ecx, dword [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.0047e374
mov bl, 1
jmp 0x47e26e
mov bl, 1
test edi, edi
je 0x47e278
push edi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e29a
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.004040a4
ret
Function at 0x47e408
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, edx
mov eax, dword [ebp - 4]
call fcn.00404530
xor eax, eax
push ebp
push 0x47e4a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404540
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jne 0x47e453
call sub.KERNEL32.DLL_GetLastError
mov dword [0x4888d8], eax
xor ebx, ebx
jmp 0x47e48d
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x47e481
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x420
jne 0x47e478
mov bl, 1
jmp 0x47e483
xor ebx, ebx
mov dword [0x4888d8], eax
jmp 0x47e483
mov bl, 1
test esi, esi
je 0x47e48d
push esi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e4aa
lea eax, [ebp - 4]
call fcn.00404080
ret

Function at 0x47e4b4
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, edx
mov eax, dword [ebp - 4]
call fcn.00404530
xor eax, eax
push ebp
push 0x47e53f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404540
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jne 0x47e4ff
call sub.KERNEL32.DLL_GetLastError
mov dword [0x4888d8], eax
xor ebx, ebx
jmp 0x47e529
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x47e513
mov bl, 1
jmp 0x47e51f
call sub.KERNEL32.DLL_GetLastError
mov dword [0x4888d8], eax
xor ebx, ebx
test esi, esi
je 0x47e529
push esi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e546
lea eax, [ebp - 4]
call fcn.00404080
ret
Function at 0x401670
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
bswap edx
not edi
sub edx, 0x76
imul eax
bswap esi
sbb esi, 0xd5
sbb eax, 0xe5
not edi
dec esi
dec edx
not edi
sbb edi, 0xee
rcr eax, 0xda
inc eax
rcr edi, 0x50
neg ebx
inc edi
rcr edi, 0x73
bswap esi
not edi
or edi, 0xb6
neg esi
or edx, 0xf1
or esi, 0x23
ror eax, 0x61
or eax, 0xc7
inc edx
neg edi
dec edi
rol eax, 0x37
neg eax
sbb ebx, 0x35
bswap eax
dec esi
not esi
add edi, 0x14
bswap edx
imul esi
bswap ebx
rcr edx, 3
sub eax, 0xee
not edx
bswap edi
mov ebx, 0xcc
dec edx
inc esi
sbb esi, 0xa
neg ebx
and edi, 0x5d
bswap ebx
neg edx
bswap eax
inc esi
or ebx, 0xd4
bswap edx
imul edi
bswap edi
not edi
mov edx, 0x50
bswap eax
not esi
bswap eax
imul eax
imul esi
mov ebx, 0xa8
add esi, 0x9c
dec eax
neg eax
inc esi
sub eax, 0xbc
inc edx
sub eax, 0xf7
bswap esi
rol eax, 0x63
not esi
and eax, 0x30
not ebx
and ebx, 0xdf
or esi, 0x84
rol esi, 0x61
mov esi, 0x5d
neg edi
sub edx, 0x53
sbb eax, 0x4e
and esi, 0x1a
not edi
imul edi
rcr edi, 0x35
not esi
add esi, 9
add esi, 0x65
bswap ebx
sub eax, 0xfe
rcl edx, 0x9f
rcr edi, 0xd2
bswap esi
inc edi
or edx, 0x18
add edx, 0x65
imul edi
bswap eax
rol edi, 0x8f
bswap ebx
imul eax
dec ebx
bswap ebx
rcr edi, 0x3c
rcl edx, 0xae
rcl edx, 0xbc
sub edi, 0
dec edi
rcl edi, 0x7f
rol edi, 0x1e
ror eax, 2
imul esi
ror eax, 1
and eax, 0xd5
inc esi
rcl edx, 0xed
rol ebx, 0x24
sub esi, 0xb7
inc esi
add edx, 0xdb
rol edi, 0x40
dec edx
not ebx
add edx, 0xca
bswap eax
and esi, 0x6a
not edx
ror ebx, 0xf0
neg esi
inc edi
sbb eax, 0xc2
bswap eax
inc edi
and ebx, 0xf7
and esi, 0xbc
dec edx
sub ebx, 0x28
or edi, 0x6a
not eax
mov edi, 0xe0
neg esi
sub esi, 0xdd
inc ebx
bswap edi
sbb esi, 0xaa
imul esi
inc edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4046b0
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40a2e0
push ebx
push esi
call fcn.0040a20c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040a1a0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a28d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a2df
push edi
push eax
call fcn.0040ae60
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a2ad
call fcn.00408d01
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a2de
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a1a0
add esp, 0x20
test eax, eax
jne 0x40a2cc
push edi
call fcn.00408d01
jmp 0x40a2d4
push ebx
call fcn.00408d01
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40b5dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45d070
push 0x45d068
push str.FlsAlloc
push 0x1f
call fcn.0040b49c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b611
push dword [ebp + 8]
mov ecx, esi
call dword [0x411130]
call esi
jmp 0x40b617
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b65b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45d080
push 0x45d078
push str.FlsGetValue
push 0x21
call fcn.0040b49c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b692
push dword [ebp + 8]
mov ecx, esi
call dword [0x411130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b69a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45d088
push 0x45d080
push str.FlsSetValue
push 0x22
call fcn.0040b49c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b6d4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x411130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410b5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410b5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret