joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401220
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Terminate process
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x520
push ebx
push ebp
push esi
push edi
push 0x100000
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0x40000
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCRT.DLL___p___argv]
add esp, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
push esi
call fcn.00401140
mov al, byte [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0xc
cmp al, 0x4d
je 0x40128d
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
push esi
call fcn.00401140
add esp, 0xc
push 0x64
call ebx
cmp byte [esi], 0x4d
jne 0x40126f
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x19], eax
push 5
mov dword [esp + 0x21], eax
push ecx
mov dword [esp + 0x29], eax
mov byte [esp + 0x20], 0
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
call fcn.004010c0
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea edx, [esp + 0x18]
mov edi, eax
push edx
lea eax, [esp + 0x30]
push 0x407064
push eax
and edi, 0x1ff
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push edi
mov ebp, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
push 0x64
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push 0
push edx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0x64
call ebx
lea ecx, [esp + 0x28]
push 0
push ecx
push edi
mov edi, dword [esp + 0x20]
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.DLL___p___argv]
mov edx, dword [eax]
lea ecx, [esp + 0x34]
mov eax, dword [edx]
push eax
push ecx
lea edx, [esp + 0x140]
push 0x40703c
push edx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x18
lea eax, [esp + 0x130]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x1f4
call ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x415e87
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00415f06
jae 0x415e93
xor ecx, ecx
call fcn.00415f06
jae 0x415ebd
xor eax, eax
call fcn.00415f06
jae 0x415ece
mov al, 0x10
call fcn.00415f06
adc al, al
jae 0x415eaf
jne 0x415efb
stosb byte es:[edi], al
jmp 0x415e94
call fcn.00415f12
dec ecx
loop 0x415eda
mov eax, ebp
call fcn.00415f10
jmp 0x415efc
lodsb al, byte [esi]
shr eax, 1
je 0x415f22
adc ecx, 2
mov ebp, eax
jmp 0x415efc
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00415f10
cmp eax, 0x7d00
jae 0x415efa
cmp eax, 0x500
jae 0x415efb
cmp eax, 0x7f
ja 0x415efc
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x415e94
pop ebp
ret 8
Function at 0x4010b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ecx, ecx
push edi
mov eax, 0x12
mov ebx, 0xd7
xor esi, esi
mov edx, 0x41a1
mov dword [ebp - 4], 0xf7
cmp eax, 0xf7
cmovl eax, dword [ebp - 4]
dec edx
jne 0x4010d1
mov eax, dword [ebp + 8]
test eax, eax
je 0x401190
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x401190
cmp eax, edx
jae 0x401190
sub edx, eax
mov dword [ebp + 0xc], edx
mov ebx, 0x265e
mov eax, 0x3e0f83e1
imul ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401105
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor ecx, ecx
test edx, edx
je 0x401132
mov al, byte [ecx + ebx + 1]
sub al, 3
xor byte [ecx + ebx], al
inc ecx
cmp ecx, edx
jb 0x401124
mov edi, 0xa89
jmp 0x401140
mov eax, 0x473c1ab7
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401140
mov edi, 0x5051
inc esi
mov eax, esi
and eax, 0x80000007
jns 0x401167
dec eax
or eax, 0xfffffff8
inc eax
jne 0x40116c
add esi, 2
cmp esi, 0x239a
jl 0x401158
mov eax, 0x8ca29c05
imul edi
add edx, edi
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x401174
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x3db1
mov eax, 0x63e7063f
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401195
mov eax, 0x6938
mov edx, 0x7f
cmp ebx, edx
cmovg ebx, edx
dec eax
jne 0x4011b2
lea ebx, [ebx]
inc ecx
mov eax, ecx
and eax, 0x80000007
jns 0x4011cf
dec eax
or eax, 0xfffffff8
inc eax
jne 0x4011d4
add ecx, 2
cmp ecx, 0x239a
jl 0x4011c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor eax, eax
push edi
mov esi, 0x6847
lea edi, [eax + 0x2c]
inc eax
mov ecx, eax
and ecx, 0x80000007
jns 0x402c60
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x402c65
add eax, 2
cmp eax, 0x3fc2
jl 0x402c50
mov ebx, dword [ebp + 8]
nop
mov eax, 0xea0ea0eb
imul esi
add edx, esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402c70
inc byte [ebx + 0x139]
movzx edx, byte [ebx + 0x139]
movzx ecx, byte [edx + ebx + 0x13]
movzx eax, byte [ebx + 0x122]
add edx, ebx
add eax, ecx
movzx ecx, al
mov byte [ebx + 0x122], al
mov ah, byte [edx + 0x13]
mov al, byte [ecx + ebx + 0x13]
mov byte [edx + 0x13], al
mov byte [ebp + 0xb], ah
mov byte [ecx + ebx + 0x13], ah
mov eax, 0x5078
dec eax
jne 0x402cc1
mov eax, 0x3768
mov ecx, 0x6a
mov edi, edi
cmp edi, ecx
cmovl edi, ecx
dec eax
jne 0x402cd0
mov al, byte [edx + 0x13]
add al, byte [ebp + 0xb]
movzx ecx, byte [ebp + 0xc]
movzx eax, al
pop edi
mov al, byte [eax + ebx + 0x13]
movzx eax, al
pop esi
xor eax, ecx
pop ebx
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x100167a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001af0
call fcn.01001804
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001435
cmp eax, esi
jne 0x1001428
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001438
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100140f
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100144b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100147a
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001474
mov dword [0x100236c], esi
push 0x10010d0
push 0x10010c4
call fcn.01001371
pop ecx
pop ecx
test eax, eax
je 0x100147a
jmp 0x100159e
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100149e
push 0x10010c0
push 0x10010b8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10014ab
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x10014cc
push 0x1002374
call fcn.01001779
pop ecx
test eax, eax
je 0x10014cc
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100159e
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1001536
cmp cx, bx
je 0x10014f1
cmp dword [ebp - 0x1c], ebx
jne 0x1001536
movzx ecx, word [eax]
cmp cx, bx
je 0x1001506
cmp cx, 0x20
ja 0x1001506
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10014f1
test byte [ebp - 0x40], 1
je 0x1001512
movzx ecx, word [ebp - 0x3c]
jmp 0x1001515
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x100157b
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001547
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10014db
cmp dword [0x1002034], ebx
jne 0x1001589
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x10015aa
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001849
ret
call fcn.01001951
jmp 0x10013d2
Function at 0x100250e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1002529
push 0x80004005
call fcn.010021ce
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x100252b
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1002bef
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10090b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0100246c
mov edi, eax
cmp edi, esi
je 0x1002c61
lea ecx, [ebp - 0x214]
call fcn.010023f9
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010069d0
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1002c7f
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.01002bef
cmp eax, esi
jne 0x1002cca
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1002c69
lea ecx, [ebp - 0x214]
call fcn.010023f9
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01002373
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.010023f9
mov eax, esi
jmp 0x1002c51
Function at 0x1004b74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10078c2
call fcn.01006ad9
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x1004bcd
call fcn.010022d4
mov esi, eax
jmp 0x1004cd6
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x1004be6
call fcn.010022d4
jmp 0x1004cc8
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x1004bdc
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x1004c4c
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1004c32
lea ecx, [ebp - 0x418]
call fcn.01002b3e
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.01002a33
mov eax, esi
call fcn.01006b44
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0100325d
mov dword [ebp - 4], 1
jmp 0x1004c7a
cmp dword [ebp - 0x418], esi
jne 0x1004c89
mov esi, 0x8007000e
jmp 0x1004cca
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1004bdc
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.010047d0
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1004c37
lea ecx, [ebp - 0x418]
call fcn.01002b3e
jmp 0x1004c37

Function at 0x1005663
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x1005684
xor eax, eax
jmp 0x10056aa
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x1005387
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x10056a7
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1006307
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10090b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100629c
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100637a
cmp dword [ebp - 0x94], 5
jb 0x100639b
jmp 0x1006397
cmp dword [ebp - 0x88], 1
jne 0x100639b
cmp dword [ebp - 0x94], 4
ja 0x1006397
jne 0x100639b
cmp dword [ebp - 0x90], 0
jbe 0x100639b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001978
call fcn.0100226b
test eax, eax
jge 0x10063bc
mov byte [0x10090f4], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010069d0
leave
ret
Function at 0x10068e3
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1007f18
call fcn.01006948
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10095c4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100669e
cmp eax, esi
jne 0x1006691
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10066a1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006678
xor esi, esi
inc esi
mov eax, dword [0x10095c0]
cmp eax, esi
jne 0x10066b4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10066e3
mov eax, dword [0x10095c0]
test eax, eax
jne 0x10066dd
mov dword [0x10095c0], esi
push 0x1001240
push 0x1001234
call fcn.010065da
pop ecx
pop ecx
test eax, eax
je 0x10066e3
jmp 0x1006807
mov dword [0x100927c], esi
mov eax, dword [0x10095c0]
cmp eax, esi
jne 0x1006707
push 0x1001230
push 0x1001218
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10095c0], 2
cmp dword [ebp - 0x20], ebx
jne 0x1006714
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10095d0], ebx
je 0x1006735
push 0x10095d0
call fcn.01006f79
pop ecx
test eax, eax
je 0x1006735
push ebx
push 2
push ebx
call dword [0x10095d0]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1006807
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100679f
cmp cx, bx
je 0x100675a
cmp dword [ebp - 0x1c], ebx
jne 0x100679f
movzx ecx, word [eax]
cmp cx, bx
je 0x100676f
cmp cx, 0x20
ja 0x100676f
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100675a
test byte [ebp - 0x40], 1
je 0x100677b
movzx ecx, word [ebp - 0x3c]
jmp 0x100677e
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1009278], eax
cmp dword [0x100926c], ebx
jne 0x10067e4
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10067b0
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1006744
cmp dword [0x100927c], ebx
jne 0x10067f2
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009278]
jmp 0x1006813
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100698d
ret
call fcn.010070c6
jmp 0x100663b
Function at 0x1007343
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x1007370
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1007404
push edi
push 0x14
push 0x1001a58
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x100738d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10073e6
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10073ac
call esi
mov ebx, eax
cmp ebx, 0x420
jne 0x10073f1
mov ebx, 0x5b4
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10073e4
cmp dword [ebp - 0x20], 4
je 0x10073ea
cmp dword [ebp - 0x20], 1
je 0x10073ee
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jbe 0x10073b1
jmp 0x10073f1
call esi
mov ebx, eax
jmp 0x10073f1
xor ebx, ebx
jmp 0x10073f1
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x10073fe
push edi
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x401b00
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x401b32
jmp dword [edx*4 + 0x401c5c]
mov edi, 0xa
cmp ebx, edi
jle case.0x401b32.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x401b43
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret
Function at 0x405e10
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.0055e3d0
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x405e70
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.0055e3d0
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret

Function at 0x4062b0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, 0x74
call fcn.0055e710
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x70], eax
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x80]
test esi, esi
jne 0x4062de
mov esi, 0x619504
push 0x70
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0055e3d0
mov ecx, dword [esp + 0x90]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x8c], 0x20
call fcn.00405ed0
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00405fd0
lea ecx, [esp + 0x28]
push 0x70
push ecx
call fcn.004cd710
mov ecx, dword [esp + 0xa0]
add esp, 0x28
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0055dcfd
add esp, 0x74
ret

Function at 0x406f60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x406fb0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x406faa
shr eax, 8
cmp al, 2
jne 0x406faa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret