joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x42bd19
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x42bd39
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x42bd26
ret
Function at 0x10003b73
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0xffffffff
push edi
mov esi, edx
add edx, eax
test esi, esi
je 0x10003ba6
movzx esi, byte [ecx]
movzx edi, ax
shr eax, 8
xor esi, edi
and esi, 0xff
inc ecx
mov esi, dword [esi*4 + 0x1000ebe0]
xor esi, eax
mov eax, esi
mov esi, edx
dec edx
test esi, esi
jne 0x10003b82
not eax
pop edi
pop esi
ret

Function at 0x10003bab
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
call dword [0x1000f4c8]
xor cx, cx
mov dl, al
sub dl, byte [ebp - 1]
dec dl
movzx ebx, dl
mov dl, byte [ebx + esi]
movzx ebx, byte [ebp - 1]
sub dl, cl
mov bl, byte [ebx + esi]
dec dl
mov byte [ebp - 8], bl
movzx ebx, cx
add byte [ebp - 8], cl
xor dl, byte [ebp - 8]
mov byte [ebx + edi], dl
movzx ebx, byte [ebp - 1]
movzx edx, ax
sub ebx, edx
cmp ebx, 0xffffffff
jne 0x10003c01
mov byte [ebp - 1], 0
jmp 0x10003c04
inc byte [ebp - 1]
inc cx
cmp cx, 0x100
jb 0x10003bc6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417b30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x417b52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417b59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417b48
mov eax, 1
add ebx, ebx
jne 0x417b6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417b60
jne 0x417b7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417b60
xor ecx, ecx
sub eax, 3
jb 0x417b90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417c02
mov ebp, eax
add ebx, ebx
jne 0x417b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417ba8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417bcc
inc ecx
add ebx, ebx
jne 0x417bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417bad
jne 0x417bc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417bad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x417bec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417bdd
jmp 0x417b4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417bec
add edi, ecx
jmp 0x417b4e
pop esi
mov edi, esi
mov ecx, 0xfc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x417c0a
cmp byte [edi], 5
jne 0x417c0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x417c0f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417c87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417c3c
mov ecx, edi
jns 0x417c6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1784c]
or eax, eax
je 0x417c81
mov dword [ebx], eax
add ebx, 4
jmp 0x417c59
call dword [esi + 0x17848]
mov ebp, dword [esi + 0x17850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x417cbb
sub esp, 0xffffff80
jmp 0x40a6e0
Function at 0x41a760
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508325
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov dword [ebp - 0x10], 0xcccccccc
mov eax, dword [0x54e8c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, esp
mov ecx, dword [ebp - 0x10]
call dword [0x51930c]
cmp esi, esp
call fcn.00506166
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov esi, esp
call dword [0x51930c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 8
mov esi, esp
call dword [0x51930c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
mov esi, esp
call dword [0x51930c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov esi, esp
call dword [0x51930c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
mov esi, esp
call dword [0x51930c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov esi, esp
call dword [0x51930c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
mov esi, esp
call dword [0x51930c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
mov esi, esp
call dword [0x51930c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 8
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.005052e4
mov byte [ebp - 4], 9
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.005052e4
mov byte [ebp - 4], 0xa
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.005052e4
mov byte [ebp - 4], 0xb
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.005052e4
mov byte [ebp - 4], 0xc
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.005052e4
mov byte [ebp - 4], 0xd
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.005052e4
mov byte [ebp - 4], 0xe
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.005052e4
mov byte [ebp - 4], 0xf
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.005052e4
mov byte [ebp - 4], 0x10
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.005052e4
mov byte [ebp - 4], 0x11
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x130
call fcn.0041b650
mov byte [ebp - 4], 0x12
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.0041b5e0
mov byte [ebp - 4], 0x13
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x168
call fcn.0041b500
mov byte [ebp - 4], 0x14
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x184
call fcn.0041b3b0
mov byte [ebp - 4], 0x15
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x1a0
call fcn.0041b570
mov byte [ebp - 4], 0x16
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x1bc
call fcn.0041b5e0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.00506166
mov esp, ebp
pop ebp
ret
Function at 0x41a9c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508325
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov dword [ebp - 0x10], 0xcccccccc
mov eax, dword [0x54e8c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0x16
mov ecx, dword [ebp - 0x10]
add ecx, 0x1bc
call fcn.0041c290
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x10]
add ecx, 0x1a0
call fcn.0041c1b0
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x10]
add ecx, 0x184
call fcn.0041bcd0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x10]
add ecx, 0x168
call fcn.0041c030
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.0041c290
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x130
call fcn.0041c220
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.005052d8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.005052d8
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.005052d8
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.005052d8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.005052d8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.005052d8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.005052d8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.005052d8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.005052d8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
mov esi, esp
call dword [0x51960c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
mov esi, esp
call dword [0x51960c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov esi, esp
call dword [0x51960c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
mov esi, esp
call dword [0x51960c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov esi, esp
call dword [0x51960c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
mov esi, esp
call dword [0x51960c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 8
mov esi, esp
call dword [0x51960c]
cmp esi, esp
call fcn.00506166
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov esi, esp
call dword [0x51960c]
cmp esi, esp
call fcn.00506166
mov dword [ebp - 4], 0xffffffff
mov esi, esp
mov ecx, dword [ebp - 0x10]
call dword [0x51960c]
cmp esi, esp
call fcn.00506166
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.00506166
mov esp, ebp
pop ebp
ret
Function at 0x4b24f0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5108a8
mov eax, dword fs:[0]
push eax
push ecx
mov dword [ebp - 0x10], 0xcccccccc
mov eax, dword [0x54e8c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
push 0x180
mov ecx, dword [ebp - 0x10]
call fcn.00505254
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], str.SELECT__FROM_Win32_DiskDrive
mov ecx, dword [ebp - 0x10]
call fcn.004b2d10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
cmp ebp, esp
call fcn.00506166
mov esp, ebp
pop ebp
ret 4

Function at 0x4b2570
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], str.SELECT__FROM_Win32_DiskDrive
mov ecx, dword [ebp - 4]
call fcn.00505272
add esp, 4
cmp ebp, esp
call fcn.00506166
mov esp, ebp
pop ebp
ret
Function at 0x469580
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x55b3ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6b2f30]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4696b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4695e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0054da72
xor eax, eax
jmp 0x46972f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0054dbfb
push esi
lea ecx, [esp + 0xc]
call fcn.0054de8a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x6a2e80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x46970d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00469510
test eax, eax
jne 0x46970d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.00469510
test eax, eax
jne 0x46970d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0052ae90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4696ec
lea ecx, [esp + 0x14]
push 0x6a2e58
push ecx
call fcn.0052ae10
mov esi, eax
add esp, 8
test esi, esi
jne 0x4696ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4696ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0054dbab
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4695fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0054da72
xor eax, eax
jmp 0x46972f
mov byte [esi], 0
push 0x6a2e54
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0054da72
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x487290
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 0x487428
cmp ebp, ebx
jle 0x487428
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 0x4872ee
dec eax
or eax, 0xfffffff8
inc eax
je 0x4872f5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x487304
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x48730b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0054d7b3
add esp, 4
cmp eax, ebx
je 0x48732c
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.0054d7b3
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 0x48741e
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 0x487405
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4873f1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4873e6
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 0x4873f4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4873f4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x487390
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 0x487381
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
Function at 0x4011e0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push 0
mov ecx, dword [0x4065f4]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [0x405020]
test eax, eax
jne 0x401222
call dword [0x405038]
push 1
call fcn.00401240
add esp, 4
ret
push eax
call dword [0x40501c]
push 1
call fcn.00401240
add esp, 4
ret
Function at 0x401240
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1214
call fcn.00401720
push ebx
push esi
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov ebx, 1
push str.SYSTEMCurrentControlSetControlUsbFlags
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x20], 0
mov byte [esp + 0x1b], bl
call dword [0x4050d0]
add esp, 8
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push ecx
push edx
push 0
push 0xf003f
push ebx
push 0x406600
push 0
push eax
push 0x80000002
call dword [0x40500c]
mov esi, dword [0x405010]
test eax, eax
jne 0x40131d
mov eax, dword [esp + 0x1224]
test eax, eax
je 0x40130b
mov edx, dword [0x4065fc]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x13]
push ebx
push ecx
push 3
push 0
push edx
push eax
call esi
mov edx, dword [0x4065f8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ebx
push eax
push str.usbmpid
push ecx
call esi
jmp 0x40131d
mov edx, dword [0x4065fc]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [0x405014]
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x405028]
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push 0x80000002
call dword [0x405024]
test eax, eax
jne 0x40143e
lea eax, [esp + 0x14]
lea ecx, [esp + 0x220]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.LowerFilters
push eax
call dword [section..rdata]
test eax, eax
je 0x401378
xor edx, edx
jmp 0x401385
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp eax, ebx
jne 0x401389
inc edx
mov dword [esp + 0x14], edx
mov ecx, 0x1001
xor eax, eax
sub ecx, edx
lea edi, [esp + edx + 0x21f]
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1224]
test eax, eax
je 0x4013e7
push 0
push edx
lea ecx, [esp + 0x228]
push 0x405138
push ecx
call fcn.004014e0
add esp, 0x10
lea edx, [esp + 0x220]
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x10]
push edx
push 7
push 0
push str.LowerFilters
push eax
jmp 0x401431
push 1
push edx
lea ecx, [esp + 0x228]
push 0x405138
push ecx
call fcn.004014e0
add esp, 0x10
cmp eax, 4
mov dword [esp + 0x14], eax
jae 0x40141a
mov edx, dword [esp + 0xc]
push str.LowerFilters
push edx
call dword [0x405014]
jmp 0x401433
mov ecx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x224]
push eax
push 7
push 0
push str.LowerFilters
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call dword [0x405028]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 1
push 0x406600
lea edx, [esp + 0x38]
push 0
push edx
push 0x80000002
call dword [0x40500c]
pop edi
pop esi
pop ebx
add esp, 0x1214
ret
Function at 0x401480
Capabilities:
Delete service

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4065f4]
push esi
push 0xf01ff
push eax
push ecx
call dword [0x405004]
mov esi, eax
test esi, esi
je 0x4014c2
push esi
call dword [0x405008]
test eax, eax
jne 0x4014af
call dword [0x405038]
push esi
call dword [0x40501c]
push 0
call fcn.00401240
add esp, 4
pop esi
ret
call dword [0x405038]
push 0
call fcn.00401240
add esp, 4
pop esi
ret
Function at 0x41a780
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret

Function at 0x41b0c0
Capabilities:
Write file on windows

Disassembly:
mov al, byte [esp + 4]
sub esp, 0x20
test al, al
push esi
je 0x41b14b
mov eax, dword [esp + 0x2c]
push 0x42a328
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x41b14b
lea ecx, [esp + 0x28]
push edi
push ecx
call dword [sym.imp.MSVCRT.dll_time]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCRT.dll_ctime]
add esp, 8
push eax
lea eax, [esp + 0xc]
push 0x429bec
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push 0x19
lea ecx, [esp + 0x1c]
push 1
push ecx
mov byte [esp + 0x3c], 0x20
mov byte [esp + 0x3d], 0
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.MSVCRT.dll_fputs]
push esi
push edx
call edi
push esi
push 0x42a324
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x30
pop edi
pop esi
add esp, 0x20
ret

Function at 0x41b1e0
Capabilities:
Create directory
Delete file

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
sub esp, 0x800
lea edx, [esp + 0x400]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
push esi
mov esi, dword [esp + 0x810]
push edi
push eax
push ecx
push str._s:_ld__
push edx
lea edi, [esi + 0x20c]
call ebx
mov ecx, dword [esi]
lea eax, [esp + 0x420]
push eax
push edi
mov dl, byte [ecx + 0xea4]
push edx
call fcn.0041b0c0
mov eax, dword [esp + 0x840]
mov ecx, dword [esp + 0x838]
push eax
push ecx
call fcn.004161e0
mov ebp, eax
add esp, 0x24
test ebp, ebp
jge 0x41b284
lea edx, [esp + 0x410]
push str.FAILED
push edx
call ebx
mov ecx, dword [esi]
lea eax, [esp + 0x418]
push eax
push edi
mov dl, byte [ecx + 0xea4]
push edx
call fcn.0041b0c0
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x800
ret 0x18
mov eax, dword [esi]
mov cl, byte [eax + 0xea4]
test cl, cl
je 0x41b331
mov al, byte [esp + 0x828]
test al, al
jne 0x41b331
lea edi, [esi + 0x28c]
lea ecx, [esp + 0x210]
push edi
push str._sdebug
push ecx
call ebx
push edi
call dword [sym.imp.MSVCRT.dll__chdir]
lea edx, [esp + 0x220]
push 0
push edx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
je 0x41b2e5
push str.debug
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
mov eax, dword [esp + 0x818]
mov ecx, dword [esi + 8]
push eax
lea edx, [esp + 0x214]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s_d__s.txt
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x824]
mov ecx, dword [esi]
push edx
lea eax, [esp + 0x14]
mov dl, byte [ecx + 0xea4]
push eax
push edx
call fcn.0041b0c0
add esp, 0xc
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x800
ret 0x18