joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491d80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f97e3
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x55b090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x274], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x278], esi
push 0x51a9b8
mov dword [ebp - 0x270], 0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
push 0x208
lea eax, [ebp - 0x26c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x270], 1
call sub.VCRUNTIME140.dll_memset
mov eax, 0x64
mov dword [ebp - 0x56], 0x2e0032
mov word [ebp - 0x52], ax
add esp, 0xc
mov eax, 0x4b
mov dword [ebp - 0x5e], 0x65006e
mov word [ebp - 0x64], ax
xor eax, eax
mov word [ebp - 0x4c], ax
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x62], 0x720065
push eax
mov dword [ebp - 0x50], 0x6c006c
mov dword [ebp - 0x5a], 0x33006c
mov word [ebp - 0x1f], 0x7564
mov word [ebp - 0x24], 0x6547
mov word [ebp - 0x1c], 0x4665
mov word [ebp - 0x19], 0x656c
mov word [ebp - 0x21], 0x6f4d
mov dword [ebp - 0x16], 0x57656d61
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x17], 0x4e
mov byte [ebp - 0x22], 0x74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x491e9a
push 0x104
lea ecx, [ebp - 0x26c]
push ecx
push 0
call eax
mov eax, 0x64
mov dword [ebp - 0x48], 0x680053
mov word [ebp - 0x38], ax
xor eax, eax
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x3c], 0x2e0069
mov dword [ebp - 0x40], 0x700061
mov dword [ebp - 0x44], 0x77006c
mov dword [ebp - 0x36], 0x6c006c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x491f52
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1b], 0x4e656c69
push eax
push edi
mov dword [ebp - 0x24], 0x68746150
mov dword [ebp - 0x20], 0x646e6946
mov word [ebp - 0x14], 0x57
mov word [ebp - 0x17], 0x6d61
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x1c], 0x46
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x491f4b
lea ecx, [ebp - 0x26c]
push ecx
call eax
push eax
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
xor eax, eax
mov dword [ebp - 0x2c], 0x650078
mov word [ebp - 0x28], ax
mov ecx, esi
push 0x51a9b8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x65002e
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cc46
mov esp, ebp
pop ebp
ret
Function at 0x49b980
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea208
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x55b090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x70], ebx
push 0
push dword [ebp + 8]
mov dword [ebp - 0x70], ebx
push edi
call dword [sym.imp.mfc140u.dll_AfxIsValidAddress]
push 0x40
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], vtable.CMD5Checksum.0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x67452301
mov dword [ebp - 0x1c], 0xefcdab89
mov dword [ebp - 0x18], 0x98badcfe
mov dword [ebp - 0x14], 0x10325476
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0
push edi
call fcn.00505000
push ebx
lea ecx, [ebp - 0x6c]
call fcn.004d7c70
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cc46
mov esp, ebp
pop ebp
ret

Function at 0x4a1120
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov bl, byte [esp + 8]
mov eax, 5
push ebp
push esi
xor esi, esi
mov ebp, ecx
test bl, bl
push edi
mov edi, dword [sym.imp.mfc140u.dll_CWnd::ShowWindow]
cmovne esi, eax
push esi
lea ecx, [ebp + 0xc70]
call edi
push esi
push dword [ebp + 0x680]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
lea ecx, [ebp + 0x4198]
call edi
push esi
lea ecx, [ebp + 0x36a0]
call edi
xor eax, eax
mov ecx, 5
test bl, bl
cmove eax, ecx
lea ecx, [ebp + 0x3568]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push dword [ebp + 0x680]
call esi
push 1
push 0
push dword [ebp + 0x41b8]
call esi
push 1
push 0
push dword [ebp + 0xc90]
call esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4a1cd0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1094
call fcn.0048fb00
mov eax, dword [0x55b090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x1000
mov dword [ebp - 0x1094], eax
lea eax, [ebp - 0x1008]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1008]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push 0x800
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x1008]
push edi
push 0x800
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov dword [ebp - 0x1088], 0
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1044], 0x6a09e667
xorps xmm0, xmm0
mov dword [ebp - 0x1040], 0xbb67ae85
movlpd qword [ebp - 0x1090], xmm0
push 0x800
push eax
mov dword [ebp - 0x103c], 0x3c6ef372
mov dword [ebp - 0x1038], 0xa54ff53a
mov dword [ebp - 0x1034], 0x510e527f
mov dword [ebp - 0x1030], 0x9b05688c
mov dword [ebp - 0x102c], 0x1f83d9ab
mov dword [ebp - 0x1028], 0x5be0cd19
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
lea ecx, [ebp - 0x1090]
add eax, eax
push eax
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1020]
push eax
call fcn.00442c80
cmp dword [ebp - 0x100c], 0x10
lea edi, [ebp - 0x1020]
jb 0x4a1dec
mov edi, dword [ebp - 0x1020]
test edi, edi
je 0x4a1e3a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a1df1
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4a1e3a
lea eax, [ebx + ebx]
call fcn.0048fad0
mov esi, esp
test esi, esi
je 0x4a1e34
push ebx
push esi
push 0xffffffffffffffff
xor eax, eax
push edi
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x4a1e3c
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor eax, eax
push eax
push 0x100
push dword [ebp - 0x1094]
call esi
mov edx, dword [ebp - 0x100c]
add esp, 0xc
cmp edx, 0x10
jb 0x4a1e89
mov ecx, dword [ebp - 0x1020]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a1e7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4a1e7f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0048cc81
add esp, 8
lea esp, [ebp - 0x10a0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048cc46
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4baac0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e75c0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x55b090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
push 0x40
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x84]
push 0
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x88], vtable.CMD5Checksum.0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0x67452301
mov dword [ebp - 0x38], 0xefcdab89
mov dword [ebp - 0x34], 0x98badcfe
mov dword [ebp - 0x30], 0x10325476
push 0x51a9b8
mov ecx, ebx
mov dword [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 1
call fcn.0049b280
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0050c5a0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Append]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, eax
test ebx, ebx
je 0x4babe9
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4baba2
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x4babe9
lea edi, [ecx + ecx]
mov eax, edi
call fcn.0048fad0
mov esi, esp
test esi, esi
je 0x4babe9
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x4babeb
xor esi, esi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4babf0
sub esi, ecx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, eax
test ebx, ebx
je 0x4bac5a
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bac10
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x4bac5a
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], eax
call fcn.0048fad0
mov edi, esp
test edi, edi
je 0x4bac5a
push 0
push 0
push dword [ebp - 0x18]
mov byte [edi], 0
push edi
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove edi, ecx
jmp 0x4bac5c
xor edi, edi
push esi
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.0049b980
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cc46
mov esp, ebp
pop ebp
ret
Function at 0x4d37f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
mov edx, ecx
xor eax, eax
mov dword [esp], edx
nop word [eax + eax]
mov byte [eax + edx], al
inc eax
cmp eax, 0x100
jl 0x4d3800
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
movzx eax, al
xor edi, edi
xor bh, bh
mov dword [esp + 0x14], eax
mov esi, 0xff
xor ebp, ebp
lea ecx, [ebp + 1]
cmp esi, ecx
jbe 0x4d3844
nop dword [eax]
lea ecx, [ecx*2 + 1]
cmp ecx, esi
jb 0x4d3830
jmp 0x4d3844
mov edx, dword [esp + 0x10]
movzx eax, bh
mov bh, byte [eax + edx]
lea eax, [edi + 1]
add bh, byte [edi + str.vncclxxogkycprpw]
mov edx, dword [esp + 0x14]
cmp eax, edx
jb 0x4d3861
add bh, byte [esp + 0x20]
cmp eax, edx
sbb edi, edi
movzx edx, bh
inc ebp
and edi, eax
and edx, ecx
cmp ebp, 0xb
jbe 0x4d3876
mov eax, edx
xor edx, edx
div esi
cmp edx, esi
ja 0x4d3840
mov eax, dword [esp + 0x10]
movzx ecx, dl
mov edx, eax
mov bl, byte [esi + eax]
mov al, byte [ecx + edx]
mov byte [esi + edx], al
mov byte [ecx + edx], bl
sub esi, 1
jne 0x4d3823
movzx eax, byte [edx + 1]
mov byte [edx + 0x100], al
movzx eax, byte [edx + 3]
mov byte [edx + 0x101], al
movzx eax, byte [edx + 5]
mov byte [edx + 0x102], al
movzx eax, byte [edx + 7]
mov byte [edx + 0x103], al
movzx eax, bh
pop edi
pop esi
pop ebp
movzx eax, byte [eax + edx]
mov byte [edx + 0x104], al
mov eax, edx
pop ebx
add esp, 8
ret 8
Function at 0x401000
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x44b9b2
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x461978]
xor eax, esp
mov dword [esp + 0x88], eax
push edi
mov eax, dword [0x461978]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov dword [esp + 0x9c], 0
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.004027b0
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0xa0], 0
push eax
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4010b6
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
jne 0x40109d
xor ecx, ecx
jmp 0x4010ad
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4010a2
sub ecx, edi
push ecx
push eax
mov ecx, esi
call fcn.00402be0
mov eax, esi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004306d1
add esp, 0x98
ret
Function at 0x4010e0
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x44c1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461978]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
push 0x4541d4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.00403410
lea esi, [esp + 0x24]
mov dword [esp + 0x30], ebx
call section..text
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
jg 0x40114b
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004036f0
add esp, 4
jmp 0x40128e
push 0x288
mov dword [esp + 0x1c], 0x288
call fcn.0043072f
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x401278
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x401196
push edi
call fcn.00430928
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043072f
add esp, 8
mov dword [esp + 0x1c], eax
mov edi, eax
cmp edi, ebx
je 0x401278
lea eax, [esp + 0x18]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
jne 0x401278
mov ebp, edi
lea eax, [ebp + 0x1b0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4011c0
sub eax, edx
jne 0x4011d9
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x4011b3
jmp 0x401278
lea ecx, [esp + 0x20]
call fcn.00403760
mov byte [esp + 0x30], 2
mov eax, dword [ebp + 0x190]
xor esi, esi
cmp eax, ebx
jbe 0x401253
movzx edx, byte [esi + ebp + 0x194]
add eax, 0xffffffff
mov ecx, esi
sub ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0xd
add ecx, 0x20
push ecx
push edx
lea eax, [esp + 0x28]
push str._02X_c
push eax
call fcn.004033f0
add esp, 0x10
lea ebx, [esp + 0x20]
call fcn.004028c0
mov edi, eax
call fcn.00402940
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402a80
mov eax, dword [ebp + 0x190]
add esi, 1
cmp esi, eax
jb 0x4011f3
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401278
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.00430928
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.004036f0
add esp, 8
mov esi, dword [esp + 0x38]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401d00
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 0x210
mov eax, dword [0x461978]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.00432680
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp]
push edx
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d79
mov eax, dword [esp]
push 0x453f4c
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
xor ecx, esp
xor eax, eax
call fcn.004306d1
add esp, 0x210
ret
Function at 0x402350
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x44bdd8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461978]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov ebx, dword [esp + 0x28]
push ecx
lea esi, [ebx - 0x10]
mov dword [esp + 0x18], esp
mov edi, esp
push esi
call fcn.004036f0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004022f0
add esp, 4
test eax, eax
jne 0x4023d0
mov dword [esp + 0x20], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4023c6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, 1
jmp 0x40245b
push ecx
mov dword [esp + 0x18], esp
mov edi, esp
push esi
call fcn.004036f0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004024c0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x402422
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402459
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x402459
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x402471
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov dword [esp + 0x20], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402459
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call ebx
push edi
call ebx
test ebp, ebp
je 0x40243c
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024ab
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
jmp 0x40245b
Function at 0x4024c0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x20
push edi
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
mov dword [esp + 4], edi
jne 0x402506
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
add esp, 0x20
ret 4
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push 0x34
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402535
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x402561
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x402578
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40256d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x20
ret 4
cmp dword [esp + 0x14], 4
push ebp
jne 0x40261d
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4025b7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x34]
call fcn.00402870
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x20
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
lea edx, [esp + 0x14]
push edx
push esi
mov edi, eax
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x402615
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], 1
je 0x402654
call ebx
sub eax, edi
add ebp, eax
cmp ebp, 0x4e20
ja 0x40267c
call ebx
push 1
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x4025d4
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402645
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x20
ret 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
lea ecx, [esp + 0x34]
call fcn.00402870
pop ebp
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x20
ret 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x34]
call fcn.00402870
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x20
ret 4
Function at 0x402e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402e49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e84
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402e80
lea ebx, [ebx]
cmp esi, eax
jae 0x402e84
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402e70
cmp esi, eax
jb 0x402e8a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403840
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44c458
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x461978]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x20]
je 0x403889
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4038aa
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4038aa
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.004036f0
mov ecx, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004038f0
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc