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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448358
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4600a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00412de5
mov edi, eax
add esp, 4
test edi, edi
je 0x41fc5d
push 1
mov dword [ebp - 4], 0
call fcn.0040cbc9
add esp, 4
mov dword [edi + 4], eax
jmp 0x41fc5f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.0040d726
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x41fcc1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x41fcc1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x41fce4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x41fd07
cmp byte [ebp + 0xc], 0
je 0x41fcf3
push esi
call fcn.0040d12e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x41fd13
mov esi, str.ios_base::badbit_set
jmp 0x41fd23
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00407360
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00402430
push 0x45bc68
lea eax, [ebp - 0x30]
push eax
call fcn.00424099
int3
Function at 0x43ed0e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e9ce
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x6d922fe4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x475f1cd4
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x42cb75
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.0042cb1e
test eax, eax
je 0x42ccce
lea ecx, [esp + 0x18]
call fcn.0042cb1e
lea ecx, [esp + 0x18]
test eax, eax
je 0x42cc3d
call fcn.0042cb1e
test eax, eax
je 0x42cbff
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.0042cb1e
lea edi, [eax + edi*2]
dec ebx
jne 0x42cbd5
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x42cbf6
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x42cbf9
mov byte [edx], 0
inc edx
jmp 0x42cce0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x42cc35
test ecx, ecx
je 0x42ccc9
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42cc27
jmp 0x42ccc5
xor ebp, ebp
inc ebp
jmp 0x42ccc9
call fcn.0042cb54
test edi, edi
jne 0x42cc72
cmp eax, 2
jne 0x42cc6d
lea ecx, [esp + 0x18]
call fcn.0042cb54
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x42ccc9
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x42cc62
jmp 0x42ccc5
sub eax, 3
jmp 0x42cc75
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.0042cb54
mov ecx, eax
cmp esi, 0x7d00
jb 0x42cc9c
inc ecx
cmp esi, 0x500
jb 0x42cca5
inc ecx
cmp esi, 0x80
jae 0x42ccb0
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x42ccc9
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x42ccbc
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x42cce6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x42cba5
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ce6b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x42ce9d
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x42ce7e
jmp 0x42cea1
mov eax, dword [esp + 0x10]
test edi, edi
je 0x42ceab
xor byte [esi], al
inc esi
dec edi
jne 0x42cea5
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x401000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push edi
cmp dword [0x41c968], 0
jne 0x401018
jmp 0x40111f
mov byte [ebp - 0x200], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x404], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x404]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x204]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x1ff
lea eax, [ebp - 0x200]
push eax
call fcn.004028a2
add esp, 0x10
mov dword [ebp - 0x204], 0
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0x200]
push edx
push str._H:_M:_S
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040d8c2
mov ecx, eax
call fcn.0040d8d5
mov dword [ebp - 0x420], eax
mov edx, dword [ebp - 0x420]
mov eax, dword [edx]
push eax
push str._s__s_n
lea ecx, [ebp - 0x404]
push ecx
call fcn.00402850
add esp, 0x10
lea ecx, [ebp - 0x41c]
call fcn.0040e027
cmp dword [0x41c968], 0
je 0x401102
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x41c96c], 0
je 0x40111f
lea eax, [ebp - 0x404]
push eax
push 0x4190a0
call fcn.0040280f
add esp, 8
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401140
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413de9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e1d2
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x9001
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040e247
test eax, eax
je 0x401235
mov byte [ebp - 0x238], 0
mov ecx, 0x85
xor eax, eax
lea edi, [ebp - 0x237]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x218
div ecx
mov dword [ebp - 0x240], eax
push 4
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x20]
call fcn.0040e387
mov dword [ebp - 0x23c], 0
jmp 0x4011eb
mov eax, dword [ebp - 0x23c]
add eax, 1
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
cmp ecx, dword [ebp - 0x240]
jge 0x40122d
mov edx, dword [ebp - 0x23c]
imul edx, edx, 0x218
mov esi, dword [ebp + 0xc]
add esi, edx
mov ecx, 0x86
lea edi, [ebp - 0x238]
rep movsd dword es:[edi], dword [esi]
push 0x218
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e31b
jmp 0x4011dc
lea ecx, [ebp - 0x20]
call fcn.0040e577
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040e204
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401790
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413e39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4191f8
push 0x65
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4018fc
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4018e0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4018c4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4018a8
lea ecx, [ebp - 0x34]
call fcn.0040e5e2
mov dword [ebp - 4], 0
push 0
push 0x1001
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040e6f4
test eax, eax
je 0x40187d
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x34]
call dword [edx + 0x38]
lea ecx, [ebp - 0x34]
call fcn.0040e90f
mov dword [ebp - 0x18], 1
jmp 0x401897
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
push 0x4191e4
call section..text
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040e637
jmp 0x4018c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 0x4191d0
call section..text
add esp, 8
jmp 0x4018de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
push edx
push 0x4191c0
call section..text
add esp, 8
jmp 0x4018fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
push 0x4191b0
call section..text
add esp, 8
jmp 0x401916
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
push 0x4191a0
call section..text
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401bd0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
push esi
push edi
mov byte [ebp - 0x368], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x367]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x41c974
push str._s_restart.exe
lea eax, [ebp - 0x368]
push eax
call fcn.00402850
add esp, 0xc
lea ecx, [ebp - 0x368]
push ecx
call fcn.00401790
add esp, 4
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 0
mov dword [ebp - 0x264], 0
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x258], edx
mov byte [ebp - 0x150], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x14f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.http:__UpdateHelp.afdvr.com_download_cloudhelper_version.dll
lea edx, [ebp - 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x254], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x253]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x150]
push ecx
push 0x41c974
push str.__s_restart.exe___s
lea edx, [ebp - 0x254]
push edx
call fcn.00402850
add esp, 0x10
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x254]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x254]
push edx
push str.Restart__s__d__d_
call section..text
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xea60
div ecx
mov dword [ebp - 4], eax
cmp dword [0x429dec], 0
jne 0x401d5a
mov edx, dword [ebp - 4]
mov dword [0x429dec], edx
mov eax, dword [ebp - 4]
sub eax, dword [0x429dec]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xf
jb 0x401d85
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xea60
div ecx
mov dword [0x429dec], eax
call fcn.00401bd0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401d90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
cmp dword [0x429df0], 0
jne 0x401db3
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [0x429df0]
cmp ecx, 0x7530
jb 0x401ee2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x429df0], eax
cmp dword [0x41c968], 0
je 0x401ee2
mov dword [ebp - 8], 0xd160
lea edx, [ebp - 8]
push edx
mov eax, dword [0x41cc80]
push eax
call sub.JvClient.dll_JVC_GetHelpYSTNO
cmp eax, 1
jne 0x401ee2
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x218
div ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x401ed5
push 0x419314
call section..text
add esp, 4
cmp dword [ebp - 0xc], 0x64
jle 0x401e32
mov dword [ebp - 0xc], 0x64
mov edx, dword [ebp - 0xc]
mov dword [0x429de8], edx
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x218
mov esi, dword [0x41cc80]
mov edi, 0x41cc88
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x10], 0
jmp 0x401e6f
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jge 0x401ed3
mov byte [ebp - 0x228], 0
mov ecx, 0x85
xor eax, eax
lea edi, [ebp - 0x227]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x218
mov esi, dword [0x41cc80]
add esi, eax
mov ecx, 0x86
lea edi, [ebp - 0x228]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.__d___s_d___d
call section..text
add esp, 0x14
jmp 0x401e66
jmp 0x401ee2
push 0x4192c0
call section..text
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401ef0
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push edi
push 0x4016d0
push str.CloudHelper
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
mov dword [0x41c860], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401930
add esp, 8
mov byte [ebp - 0x400], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [0x41c844], 4
push 0x41c840
mov edx, dword [0x41c85c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push str.Service_CloudHelper_start......
call section..text
add esp, 4
cmp dword [0x41c844], 4
jne 0x401fd0
push 0x41ca78
push 0
push str.DebugMode
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x41c968], eax
mov eax, dword [0x41c968]
push eax
push 0x41936c
lea ecx, [ebp - 0x400]
push ecx
call fcn.00402850
add esp, 0xc
push 0x41ca78
lea edx, [ebp - 0x400]
push edx
push str.DebugMode
push str.Debug
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401d90
call fcn.00401d30
jmp 0x401f61
mov eax, dword [0x41cc80]
mov dword [ebp - 0x404], eax
mov ecx, dword [ebp - 0x404]
push ecx
call fcn.0040ec4f
add esp, 4
mov dword [0x41c844], 1
push 0x41c840
mov edx, dword [0x41c85c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push str.Service_main_thread_end.
call section..text
add esp, 4
push 0
call fcn.00402d2c
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x44203a
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x415d23
call fcn.004322fc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0043cfeb
mov eax, dword [0x41c4b8]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], 0x417744
mov ecx, 0x41fc70
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00441eda
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.0043ce63
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00430cfe
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0043ce13
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0043cd26
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
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 0x10
Function at 0x10025e70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100ff908]
xor edx, edx
cmp eax, edx
jne 0x10025e96
xor eax, eax
mov byte [eax + 0x100ff808], al
inc eax
cmp eax, 0x100
jl 0x10025e7e
mov dword [0x100ff908], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100ff808
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10025f27
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x10025efa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10025ec8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10025fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10025ff3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x10025fda
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002ca30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x1002cbc8
cmp ebp, ebx
jle 0x1002cbc8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x1002ca8e
dec eax
or eax, 0xfffffff8
inc eax
je 0x1002ca95
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x1002caa4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x1002caab
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.10063474
add esp, 4
cmp eax, ebx
je 0x1002cacc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.10063474
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x1002cbbe
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x1002cba5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x1002cb91
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x1002cb86
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x1002cb94
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x1002cb94
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x1002cb30
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x1002cb21
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret