joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x811c9dc5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x401049
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
imul eax, dword [ebp - 4], 0x1000193
mov dword [ebp - 4], eax
jmp 0x401013
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x41c040]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Kode__tak__n_
call fcn.00401220
add esp, 4
push 0
call fcn.00404168
add esp, 4
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.00404345
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
call fcn.00406230
add esp, 4
sub eax, 1
cmp eax, 0x2c
je 0x4010b1
push 0x41c010
call fcn.00404613
add esp, 4
xor eax, eax
jmp 0x4011ca
mov dword [ebp - 0x9c], 0x35e678d6
mov dword [ebp - 0x98], 0x4eeff7bb
mov dword [ebp - 0x94], 0x643af04e
mov dword [ebp - 0x90], 0x722e3a65
mov dword [ebp - 0x8c], 0x944ee69
mov dword [ebp - 0x88], 0x4d0b6de4
mov dword [ebp - 0x84], 0x475f9380
mov dword [ebp - 0x80], 0x46efeb23
mov dword [ebp - 0x7c], 0x9b0be8ae
mov dword [ebp - 0x78], 0x32229cb2
mov dword [ebp - 0x74], 0xb2020b6
mov dword [ebp - 0x70], 0x5a366362
mov dword [ebp - 0x6c], 0x41efe344
mov dword [ebp - 0x68], 0x590b80c8
mov dword [ebp - 0x64], 0x47e320c3
mov dword [ebp - 0x60], 0x410b5b00
mov dword [ebp - 0x5c], 0x46edac8c
mov dword [ebp - 0x58], 0x490b6798
mov dword [ebp - 0x54], 0x5fedd3e7
mov dword [ebp - 0x50], 0x430b5e26
mov dword [ebp - 0x4c], 0x67eba1e8
mov dword [ebp - 0x48], 0x54e573d1
mov dword [ebp - 0xa0], 0
jmp 0x40117b
mov edx, dword [ebp - 0xa0]
add edx, 1
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0x16
jge 0x4011bb
push 2
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp + eax*2 - 0x44]
push ecx
call section..text
add esp, 8
mov edx, dword [ebp - 0xa0]
cmp eax, dword [ebp + edx*4 - 0x9c]
je 0x4011b9
push str.Smut_
call fcn.00404613
add esp, 4
xor eax, eax
jmp 0x4011ca
jmp 0x40116c
push str.Hurraaa__velkommen_ind_
call fcn.00404613
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040125a
mov esp, ebp
pop ebp
ret

Function at 0x401a59
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a98
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a98
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a98
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a98
cmp dword [ecx + 0x74], 0xe
jbe 0x401a98
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407c66
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4165f8
push 0x4165f0
push str.FlsAlloc
push 0x1f
call fcn.00407b25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407c9a
push dword [ebp + 8]
mov ecx, esi
call dword [0x415118]
call esi
jmp 0x407ca0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407ce4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416608
push 0x416600
push str.FlsGetValue
push 0x21
call fcn.00407b25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x415118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407d23
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416610
push 0x416608
push str.FlsSetValue
push 0x22
call fcn.00407b25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d5d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b496
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b533
push ebx
push esi
call fcn.0040b45f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b3f3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b4e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b532
push edi
push eax
call fcn.00408da7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b500
call fcn.004079b8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b531
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b3f3
add esp, 0x20
test eax, eax
jne 0x40b51f
push edi
call fcn.004079b8
jmp 0x40b527
push ebx
call fcn.004079b8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x410ed7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41d000]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410f17
cmp byte [ebx], 0xa
jne 0x410f17
or byte [edi + eax + 0x28], 4
jmp 0x410f1c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41101b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x410ffe
inc eax
cmp dl, 0xd
je 0x410f48
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x410f6e
cmp eax, ecx
jae 0x410f7c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x410f30
jmp 0x41101b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410ff9
cmp dword [ebp - 0x10], 0
je 0x410ff9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41d000]
test byte [eax + edi + 0x28], 0x48
je 0x410fd3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x410fbe
mov byte [esi], dl
jmp 0x410fcf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41d000]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41101b
cmp byte [ebp - 1], 0xa
jne 0x410fe2
cmp esi, ebx
jne 0x410fe2
mov byte [esi], 0xa
jmp 0x41101a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00410e47
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41101b
mov byte [esi], 0xd
jmp 0x41101a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41d000]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411018
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41101b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411024
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x41d000]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41106a
cmp word [ebx], dx
jne 0x41106a
or byte [eax + edi + 0x28], 4
jmp 0x41106f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4111d2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4111b2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4110b0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4110e6
cmp eax, edx
jae 0x4110f4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41108b
jmp 0x4111d2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4111ad
cmp dword [ebp - 0x18], 0
je 0x4111ad
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41d000]
test byte [eax + edi + 0x28], 0x48
je 0x411183
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x411147
mov word [esi], cx
jmp 0x41117e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41d000]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x41d000]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41d000]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4111d2
pop eax
cmp word [ebp - 4], ax
jne 0x411193
cmp esi, ebx
jne 0x411193
mov word [esi], ax
jmp 0x4111cf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00410e47
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4111d2
push 0xd
pop eax
jmp 0x41118e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41d000]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4111cc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4111d2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40579a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x40579a
lcall 0x5de5, 0x8b10c483
jmp loc.0078207c

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7ebf0995
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x338c3ae1
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10afd01f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10af9110]
jne 0x10afd029
repz ret
jmp fcn.10afd2ab

Function at 0x10b00e11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10af9110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10afd3b1
and dword [ebp - 0x14], 0
cmp dword [0x10afc224], 0
mov dword [ebp - 0x18], eax
jne 0x10b00ec4
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10b00f6c
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10b00f6c
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10afc224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10afc228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10afc22c], eax
call edi
push eax
call esi
mov dword [0x10afc234], eax
test eax, eax
je 0x10b00ec4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10afc230], eax
mov eax, dword [0x10afc230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x10b00f1d
cmp dword [0x10afc234], ecx
je 0x10b00f1d
push eax
call esi
push dword [0x10afc234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10b00f1d
test ebx, ebx
je 0x10b00f1d
call edi
test eax, eax
je 0x10b00f14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10b00f14
test byte [ebp - 8], 1
jne 0x10b00f1d
or dword [ebp + 0x10], 0x200000
jmp 0x10b00f50
mov eax, dword [0x10afc228]
cmp eax, dword [ebp - 0x18]
je 0x10b00f50
push eax
call esi
test eax, eax
je 0x10b00f50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10b00f50
mov eax, dword [0x10afc22c]
cmp eax, dword [ebp - 0x18]
je 0x10b00f50
push eax
call esi
test eax, eax
je 0x10b00f50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10afc224]
call esi
test eax, eax
je 0x10b00f6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10b00f6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10afd01f
leave
ret
Function at 0x1003518
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10035e3
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.01002a1f
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10035e2
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10035cd
cmp dword [esp + 0x10], edi
jne 0x10035cd
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10035e0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10035e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003661
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002b42
lea eax, [ebp - 0x280]
push eax
call fcn.0125c000
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002baa
test esi, esi
jne 0x100366b
inc esi
cmp dword [0x100a060], 0
je 0x1003686
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x211d637c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x63af160d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401a93
Capabilities:
Modify service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x34
mov ebx, str.RemoteRegistry
push ebx
push dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], esi
call edi
cmp eax, esi
mov dword [ebp - 8], eax
je 0x401b93
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401b8a
cmp dword [ebp + 8], esi
je 0x401b3d
cmp dword [ebp - 0x20], 4
je 0x401b8a
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x401b8a
push 0x36
push ebx
push dword [ebp + 0x10]
call edi
mov edi, eax
cmp edi, esi
je 0x401b8a
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x401b2f
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 4], eax
jmp 0x401b83
cmp dword [ebp - 0x20], 4
jne 0x401b8a
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
je 0x401b8a
cmp dword [ebp - 4], esi
je 0x401b8a
push 0x36
push ebx
push dword [ebp + 0x10]
call edi
mov edi, eax
cmp edi, esi
je 0x401b8a
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ba4
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov esi, str.X:_autorun.inf
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0x104
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x21f]
push ebx
push eax
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x220], bl
call sub.msvcrt.dll_memset
mov al, byte [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0xc
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x10]
push eax
push 0xfa
lea eax, [ebp - 0x220]
push eax
push 0x4144fe
push str.open
mov edi, str.autorun
push edi
call esi
cmp byte [ebp - 0x220], bl
je 0x401c6c
push 0x104
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 0x115], bl
call sub.msvcrt.dll_strcat
add esp, 0x1c
push 5
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
inc eax
jmp 0x401cf3
lea eax, [ebp - 0x10]
push eax
push 0xfa
lea eax, [ebp - 0x220]
push eax
push 0x4144fe
push str.shellexecute
push edi
call esi
cmp byte [ebp - 0x220], bl
je 0x401cf1
push 0x104
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 0x115], bl
call sub.msvcrt.dll_strcat
add esp, 0x1c
push 5
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401c64
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4043da
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push 0xf0000000
mov esi, eax
xor ebx, ebx
push 1
lea eax, [esi + 0x4028]
push ebx
mov dword [ebp - 0x10], eax
mov byte [eax], bl
push ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp dword [ebp - 8], ebx
je 0x4044bd
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp dword [ebp - 4], ebx
je 0x4044b3
push edi
add esi, 0x3028
push ebx
push esi
call sub.msvcrt.dll_strlen
pop ecx
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push 2
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
xor eax, eax
mov byte [ebp - 0x1c], bl
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
movzx eax, byte [ebp + esi - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push str._2.2x
push eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll_strcat
add esp, 0x14
inc esi
cmp esi, 0x10
jl 0x404475
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
pop ebx
leave
ret