joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4603c1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x481d01
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x481d3c
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x481d23
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x481d34
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x481d3e
inc edi
add eax, 0x28
cmp edi, esi
jb 0x481d19
xor eax, eax
pop edi
pop esi
ret
Function at 0x4824d3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
clc
and byte [ebp - 0x354], 0
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00481cd1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00481c86
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00481cd1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00481c86
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.00481cd1
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00481c86
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00481cc1
hlt

Function at 0x482984
Capabilities:
Contain obfuscated stackstrings

Disassembly:
enter 0xfffffffffffffffa, 0xffffffffffffffff
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x4829b5
cmp dword [ebp - 0x398], 0
je 0x482b7f
cmp dword [ebp + 0xc], 1
je 0x482b7f
cmp dword [ebp + 0xc], 8
jne 0x482b47
and byte [ebp - 0x6b8], 0

Function at 0x488578
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048821f
Function at 0x405ee0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov ax, word [0x4013fc]
push ebx
push esi
push edi
mov word [ebp - 0x28c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x28a]
rep stosd dword es:[edi], eax
xor esi, esi
push esi
mov dword [ebp - 0xc], esi
stosw word es:[edi], ax
mov dword [ebp - 0x10], esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40613b
push 0x4013ec
push esi
call fcn.004092a5
push eax
call fcn.0040762e
jmp 0x40f470
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
sub edx, 0xd3790bf6
add dl, bh
cld
inc ecx
sub eax, 2
not ecx
lea edx, [ebx + 2]
mov edx, 0x7a69ccd1
mov dl, cl
xchg ecx, ecx
lea edx, [ecx]
mov edx, edi
cld
mov ecx, 0x1e02b692
cld
not edx
wait
jmp 0x40f76c
not edx
cmp dh, 0x6a
mov eax, 0x4e72
jmp 0x40f837
mov edx, esi
mov edx, ebp
mov ch, 0x7d
mov dh, 0x35
jg 0x40f837
or dh, 0x43
jmp loc.00414131
cld
lea edx, [edx + 0x51]
dec edx
xor dl, 0x1b
lea ecx, [eax + 0x50602413]
lea ecx, [ebx + ecx*2 - 0xc4f1306]
sub word [eax + 0x413ffe], 0xf27
cmp dl, 0xe0
jmp 0x40f983
cmp edx, ebx
mov ch, ch
test dl, 0xe3
not ecx
jmp 0x40f286

Function at 0x40618c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, ecx
push dword [esi + 4]
mov dword [esi], 0x401400
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406207
push 0xffffffffffffffeb
push dword [esi + 4]
call fcn.0040942a
cmp esi, eax
jne 0x406207
push 0
push 0xffffffffffffffeb
push dword [esi + 4]
call fcn.00409ca4
and byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push 0x100
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x10c]
push 1
mov dword [ebp - 8], ecx
pop eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
push ecx
push eax
push 0x4000000
push 0x30357864
call fcn.0040ac4a
add esp, 0x10
pop esi
leave
ret
Function at 0x406475
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d0
push ebx
push esi
push edi
push 0x410380
lea eax, [ebp - 0x78]
push 0x20
mov esi, 0x4013fc
push eax
push esi
mov ebx, 0x410178
xor edi, edi
push 0x40135c
push ebx
mov dword [ebp - 0x2c], 0x4014f8
mov dword [ebp - 0x24], edi
mov word [ebp - 0x28], di
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.00409db9
test eax, eax
jne 0x4064c7
push 1
pop eax
jmp 0x40670e
call fcn.0040a6a1
test eax, eax
push 1
jne 0x4064e3
push 0x17b
call fcn.00407dbb
xor eax, eax
jmp 0x40670e
push 0x93
call fcn.00407dbb
push edi
push 0x401390
call fcn.00409152
mov dword [ebp - 8], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x4c8]
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x4c8]
push 0x20
push 0x4014e0
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
cmp dword [ebp - 8], edi
je 0x406698
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x280]
push eax
push edi
push 0x4014c8
push 0x401410
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x38], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40657c
mov word [ebp - 0x280], di
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x20]
push edi
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push edi
push 0x42c
mov dword [ebp + 8], eax
push dword [ebp - 8]
call fcn.004095a1
cmp dword [ebp + 8], edi
je 0x40665a
push 0x7530
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40665a
cmp word [ebp - 0x280], di
je 0x406661
lea eax, [ebp - 0x280]
push eax
call fcn.0040a5cf
test eax, eax
jne 0x40665a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0040ac61
test eax, eax
je 0x40665a
jmp 0x41a000
mov dword [ebp - 4], 1
cmp dword [ebp + 8], edi
je 0x40666f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 1
push 0x91
lea ecx, [ebp - 0x2c]
call fcn.00406732
cmp dword [ebp - 4], edi
je 0x406693
push 1
push 0x90
call fcn.00407dbb
jmp 0x40670b
cmp dword [ebp - 0x10], edi
jne 0x40670b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x493e0
push 1
mov dword [ebp - 0x24], eax
pop esi
lea eax, [ebp - 0x4c8]
push esi
push eax
call fcn.004073ca
test eax, eax
jl 0x4066f1
push esi
push 0x92
mov dword [ebp - 0xc], esi
call fcn.00407dbb
mov eax, dword [ebp - 0x34]
cmp eax, edi
je 0x4066d2
mov word [eax], di
lea eax, [ebp - 0x4c8]
push eax
call fcn.0040903d
push 0x410380
push edi
push 0x40135c
push ebx
call fcn.00409d11
jmp 0x4066fc
push esi
push 0x94
call fcn.00407dbb
push esi
push esi
push 0x95
lea ecx, [ebp - 0x2c]
call fcn.00406732
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4071ad
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
and dword [esp + 8], 0
mov esi, 0x104
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push esi
push dword [esp + 0x18]
push ebp
call edi
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
mov dword [esp + 0x14], eax
je 0x407276
push ebx
mov ebx, 0x401eec
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40720c
push 0x401f44
push dword [esp + 0x1c]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x407212
and word [eax], 0
jmp 0x407219
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push esi
push ebp
push dword [esp + 0x24]
call edi
push esi
push ebx
push dword [esp + 0x24]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
call ebx
push esi
push ebp
push dword [esp + 0x28]
call edi
push esi
push 0x401f44
push dword [esp + 0x28]
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [esp + 0x1c]
call esi
test eax, eax
pop ebx
je 0x407259
push 1
pop edi
jmp 0x40725d
mov edi, dword [esp + 0xc]
push dword [esp + 0x1c]
call esi
test eax, eax
je 0x407268
inc edi
push ebp
call esi
test eax, eax
je 0x407270
inc edi
cmp edi, 2
sbb eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ecx
ret 0x10

Function at 0x4080d5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
push esi
push 1
pop edi
mov dword [ebp - 4], esi
push edi
push 0x30316f76
call fcn.0040ac4a
mov eax, dword [ebp + 8]
mov ecx, dword [0x4105e8]
add esp, 0xc
mov eax, dword [ecx + eax*4]
push esi
push 2
push 3
push esi
push edi
push 0x80010000
push eax
call fcn.00408f0e
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4081b8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0x40
mov dword [0x4108c8], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [0x4108cc], eax
je 0x4081b1
lea ecx, [ebp + 8]
push esi
push ecx
push dword [0x4108c8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40817c
mov eax, dword [0x4108c8]
cmp dword [ebp + 8], eax
jne 0x40817c
cmp eax, 0x68
jb 0x40817c
push 0x4108c8
push dword [0x4108cc]
call fcn.00408855
test al, al
je 0x40817c
mov dword [ebp - 4], edi
jmp 0x4081b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x30316f77
mov dword [ebp - 0x10], 3
call fcn.0040ac4a
add esp, 0x10
push dword [0x4108cc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x4108cc], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4081c2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
xor esi, esi
push edi
push esi
push 1
push 0x30317038
xor edi, edi
mov dword [ebp - 0xc], esi
call fcn.0040ac4a
add esp, 0xc
cmp dword [0x41009c], esi
je 0x4083b3
cmp dword [0x4108d4], esi
je 0x4083b3
cmp dword [0x410858], esi
je 0x4083b3
cmp byte [0x4108e0], 0
jne 0x4083b3
push 0x410838
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x410858]
mov ecx, 0x21f
test byte [eax], 1
je 0x408230
inc edi
add eax, 0xe
dec ecx
jne 0x40822a
mov eax, 0x4105fc
add edi, dword [eax]
add eax, 0xc
cmp eax, 0x410614
jb 0x40823b
push ebx
mov ebx, edi
imul ebx, ebx, 0xe
mov dword [ebp - 0x14], edi
lea eax, [ebx + 0x68]
push eax
mov dword [ebp - 0x18], eax
call fcn.004075af
cmp eax, esi
pop ecx
mov dword [ebp - 0x10], eax
je 0x40837a
lea ecx, [eax + 0x68]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov edx, dword [0x410858]
test byte [ecx + edx], 1
lea esi, [ecx + edx]
je 0x40828e
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xe
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x14]
add ecx, 0xe
cmp ecx, 0x1db2
jb 0x408270
mov ecx, 0x4105f8
mov edx, dword [ecx + 4]
test edx, edx
jle 0x4082c4
and dword [ebp - 8], 0
mov esi, dword [ecx]
mov edi, dword [ebp - 4]
add esi, dword [ebp - 8]
add dword [ebp - 4], 0xe
add dword [ebp - 8], 0xe
dec edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jne 0x4082a9
mov edi, dword [ebp - 0x14]
add ecx, 0xc
cmp ecx, 0x410610
jb 0x40829e
push 0x1a
mov dword [0x4108ac], edi
pop ecx
mov esi, 0x410860
mov edi, eax
mov dword [0x4108a8], ebx
or byte [ecx], al
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x68]
push ecx
push eax
call fcn.00408b46
mov edi, dword [ebp - 0x10]
push 1
xor esi, esi
pop ebx
mov dword [edi + 0x50], eax
cmp dword [0x4108d0], esi
lea eax, [ebp - 0x22c]
mov word [ebp - 0x22c], si
push eax
je 0x40831b
call fcn.004086a0
mov ebx, eax
jmp 0x408320
call fcn.00408635
cmp ebx, esi
je 0x408371
push esi
push 2
push 2
push esi
push 1
lea eax, [ebp - 0x22c]
push 0xc0000000
push eax
call fcn.00408f0e
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408371
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp - 0x18]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408367
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x10], eax
je 0x40836a
mov dword [ebp - 0xc], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004075bc
pop ecx
xor esi, esi
push 0x410838
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], esi
pop ebx
jne 0x4083b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x4000000
push 0x30316f79
mov dword [ebp - 0x24], 3
call fcn.0040ac4a
add esp, 0x10
pop edi
pop esi
leave
ret
Function at 0x408e5e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x4105c4], 0
je 0x408e7e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x408eac
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp + 0xc]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 8

Function at 0x40903d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x4105c4], 0
je 0x40905a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x409085
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 4

Function at 0x4091f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x4105c4], 0
je 0x40920d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x409238
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 4

Function at 0x4092f1
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x4105c4], 0
je 0x409311
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40933f
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp + 0xc]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00408c21
mov eax, esi
pop esi
leave
ret 8

Function at 0x40939e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
cmp dword [0x4105c4], 0
je 0x4093c4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x409426
push esi
lea ecx, [ebp - 0x52c]
push dword [ebp + 8]
call fcn.00408c4a
push dword [ebp + 0xc]
lea ecx, [ebp - 0x318]
call fcn.00408c4a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x104]
call fcn.00408d3f
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
jmp loc.0041a0c8
leave
ret 0x10
Function at 0x403970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x561da0], ecx
inc edx
cmp edx, 0x100
jb 0x403972
cmp edx, 0x800
jae 0x403a49
lea esp, [esp]
mov eax, dword [edx*4 + 0x5619a0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x561da0]
inc edx
mov dword [edx*4 + 0x561d9c], eax
cmp edx, 0x800
jb 0x403a20
mov dword [0x5614bc], 0x404490
call fcn.00404660
test eax, eax
jne 0x403a66
mov dword [0x5614bc], 0x404540
ret
Function at 0x406410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x406429
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x406450
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40646d
jmp 0x406460
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40646d
inc edi
cmp edi, edx
jb 0x406460
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x406582
cmp ecx, 3
jbe 0x4064a1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x4064db
cmp cl, 0xff
je 0x4064db
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x406450
dec ecx
shl ebp, cl
and ebp, 7
je 0x406486
movzx ecx, byte [ebp + 0x53a1b4]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x53a1ac], 0
mov cl, byte [ebx + 4]
je 0x4064c9
test cl, cl
je 0x4064c9
cmp cl, 0xff
jne 0x406486
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x406450
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40650e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x406514
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x406554
movzx esi, byte [ebp + 0x53a1b4]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x406539
cmp dl, 0xff
jne 0x406550
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x406500
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x406450
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x406595
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x40b690
Capabilities:
Delete registry value
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x40b7d7
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x40b7d7
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x40b6f4
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x40b7d2
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x40b7d2
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x40b7d2
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test eax, eax
je 0x40b7d2
push ebx
call edi
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
push str.SOFTWAREWow6432NodeMicrosoftWindows_NTCurrentVersionSvchost
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b7ba
push str.LocalWorkSvc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call fcn.0040b4a0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.00408700
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049be04
mov esp, ebp
pop ebp
ret 4
push esi
push 0x7e
jmp 0x40b7da
push esi
push 0x7d
call fcn.00424d3b
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0049be04
mov esp, ebp
pop ebp
ret 4