joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101eb3ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1028797c], 0
mov dword [0x10287980], 0
mov dword [0x1028798c], 0
mov dword [0x10287974], 0x53e
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x101eb547
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x10287978], 0xb88
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1028797c], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10287980], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x10287984], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov edx, dword [0x10287974]
add edx, 0x20cc
mov dword [0x10287974], edx
mov cl, byte [0x10287984]
mov edx, dword [0x10287980]
mov byte [edi + edx], cl
mov edx, dword [0x1028797c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10287980]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1028798c], ebx
mov dword [0x10287974], 0x395
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
je 0x101eb547
mov eax, dword [0x1028797c]
mov ecx, dword [0x10287980]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x101eb44f
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101eb643
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x10287978]
mov edi, esi
add edi, 0xffffdf43
mov dword [0x10287974], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edx
jmp 0x101eb719
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
call fcn.101eb54f
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x10287974], 0x21cb
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x2c], ecx
add ecx, 0x1d3d
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x101eb706
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov cl, byte [eax + 0x101ec644]
mov dl, byte [eax + 0x101ec615]
sub dl, cl
mov byte [ebp + eax - 0x28], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x38], eax
jne 0x101eb719
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
add ecx, 0xffffe336
mov dword [0x10287978], ecx
mov dword [ebp - 0x4c], eax
call fcn.101eb093
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
call fcn.101eb99b
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x101eb710
jmp 0x101eb678
Function at 0x402973
Capabilities:
Terminate process

Disassembly:
jmp 0x4515a2
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4515b3
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00404115
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402a18
Capabilities:
Query environment variable

Disassembly:
jmp 0x45ed2d
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45ed3e
pop esi
ret
push ebx
push edi
push esi
call fcn.0045ec14
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402fef
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45ed66
push ebx
push esi
push edi
call fcn.00403f99
add esp, 0xc
push 0
call fcn.00404723
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x404025
Capabilities:
Parse pe header

Disassembly:
jmp 0x40b088
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b0c7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b0c7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b0c7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b0c7
cmp dword [ecx + 0x74], 0xe
jbe 0x40b0c7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44a229
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44a268
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a268
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a268
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44a268
cmp dword [ecx + 0x74], 0xe
jbe 0x44a268
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x45cd37
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x48c340]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x45cd82
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045d238
test al, al
jne 0x45cd7c
sub edx, 2
cmp edx, edi
jne 0x45cd62
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x45cda4
lea eax, [edi + 2]
cmp edx, eax
je 0x45cda4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045c930
add esp, 0x10
jmp 0x45ce9e
push esi
lea ecx, [ebp - 0x255]
call fcn.0045d238
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45cde7
push dword [ebp - 0x25c]
jmp 0x45cd94
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x45ce24
cmp word [ebp - 0x226], 0
je 0x45ce45
cmp word [ebp - 0x226], ax
jne 0x45ce24
cmp word [ebp - 0x224], 0
je 0x45ce45
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045c930
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45ce91
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x45cdfe
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45ce79
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45ce9e
push 0x45c216
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403e5e
add esp, 0x10
jmp 0x45ce6e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402595
leave
ret

Function at 0x463325
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00403210
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x463394
cmp esi, dword [ebp - 4]
je 0x46338f
cmp dword [ebp + 0xc], 0
je 0x46338f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46336c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00462d4d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x463396
xor eax, eax
inc eax
jmp 0x463396
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4705e8
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 + 0x48e438]
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 0x470628
cmp byte [ebx], 0xa
jne 0x470628
or byte [edi + eax + 0x28], 4
jmp 0x47062d
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 0x47072c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47070f
inc eax
cmp dl, 0xd
je 0x470659
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47067f
cmp eax, ecx
jae 0x47068d
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 0x470641
jmp 0x47072c
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 0x47070a
cmp dword [ebp - 0x10], 0
je 0x47070a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x48e438]
test byte [eax + edi + 0x28], 0x48
je 0x4706e4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4706cf
mov byte [esi], dl
jmp 0x4706e0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48e438]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47072c
cmp byte [ebp - 1], 0xa
jne 0x4706f3
cmp esi, ebx
jne 0x4706f3
mov byte [esi], 0xa
jmp 0x47072b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401627
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47072c
mov byte [esi], 0xd
jmp 0x47072b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x48e438]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x470729
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47072c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x470788
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 + 0x48e438]
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 0x4707ce
cmp word [ebx], dx
jne 0x4707ce
or byte [eax + edi + 0x28], 4
jmp 0x4707d3
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 0x470936
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 0x470916
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x470814
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47084a
cmp eax, edx
jae 0x470858
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 0x4707ef
jmp 0x470936
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 0x470911
cmp dword [ebp - 0x18], 0
je 0x470911
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x48e438]
test byte [eax + edi + 0x28], 0x48
je 0x4708e7
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 0x4708ab
mov word [esi], cx
jmp 0x4708e2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x48e438]
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 + 0x48e438]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x48e438]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x470936
pop eax
cmp word [ebp - 4], ax
jne 0x4708f7
cmp esi, ebx
jne 0x4708f7
mov word [esi], ax
jmp 0x470933
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401627
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x470936
push 0xd
pop eax
jmp 0x4708f2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x48e438]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x470930
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x470936
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 0x408a2c
Capabilities:
Get session user name

Disassembly:
push 0x11c
mov eax, 0x421e55
call fcn.004214b2
mov esi, ecx
and dword [ebp - 0x124], 0
mov dword [ebp - 4], 1
xor eax, eax
lea edi, [ebp - 0x120]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
call dword [0x42c1c4]
lea eax, [ebp - 0x128]
mov ebx, 0x80
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x128], ebx
push eax
push 2
call dword [sym.imp.SspiCli.dll_GetUserNameExW]
test al, al
je 0x408b37
mov eax, dword [esi]
lea edx, [ebp - 0x124]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x42c30c]
call esi
mov edi, eax
test edi, edi
js 0x408b3f
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x110]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x42c30c]
call esi
mov edi, eax
test edi, edi
js 0x408b3f
movzx eax, word [ebp - 0x114]
push eax
movzx eax, word [ebp - 0x116]
push eax
movzx eax, word [ebp - 0x118]
push eax
movzx eax, word [ebp - 0x11a]
push eax
movzx eax, word [ebp - 0x11e]
push eax
movzx eax, word [ebp - 0x120]
push eax
push 0x4023b0
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.0040719d
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x110]
add esp, 0x24
mov ecx, dword [eax]
push edx
push eax
mov esi, dword [ecx + 0x38]
mov ecx, esi
call dword [0x42c30c]
call esi
jmp 0x408b3d
call dword [0x42c08c]
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x408b5d
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42c30c]
call esi
mov eax, edi
call fcn.00421470
ret
Function at 0x412661
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x425124]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x404]
and dword [ebp - 0x42c], edi
mov ebx, edx
push 0x3f8
push edi
push eax
mov dword [ebp - 0x428], ebx
mov esi, ecx
call fcn.004215e1
add esp, 0xc
mov ecx, esi
call fcn.0041e67a
test eax, eax
jne 0x41271f
push 0x1fc
mov edx, 0x402890
lea ecx, [ebp - 0x404]
call fcn.0041bee7
test esi, esi
je 0x41271f
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x41270d
push 2
mov edx, eax
pop ebx
cmp dx, 0x5c
jne 0x4126e6
add ecx, ebx
inc edi
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4126d3
mov ebx, dword [ebp - 0x428]
push 2
pop eax
cmp di, ax
jne 0x412708
push 0x1fc
mov edx, esi
lea ecx, [ebp - 0x404]
call fcn.0041bee7
jmp 0x41271f
test di, di
jne 0x41271f
push 0x1fc
mov edx, esi
lea ecx, [ebp - 0x404]
call fcn.0041bf47
xor edi, edi
lea eax, [ebp - 0x404]
inc edi
push edi
push 0
push eax
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x412747
mov dword [ebx], edi
xor eax, eax
jmp 0x412848
push 0x14
push 0x402924
push esi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x41276c
mov eax, dword [ebp - 0x428]
push esi
mov dword [eax], edi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
jmp 0x412740
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x41282e
cmp dword [ebp - 0x41c], 4
je 0x412836
cmp dword [ebp + 8], 0
je 0x412838
mov ecx, 0xce
call fcn.0041b556
push edi
mov esi, eax
call fcn.00420b3b
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0041c015
lea ecx, [ebp - 0x42c]
call fcn.0040af24
cmp eax, edi
jne 0x4127df
mov eax, dword [ebp - 0x428]
mov dword [eax], 2
push dword [ebp - 0x424]
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
push ebx
jmp 0x412764
cmp dword [ebp - 0x42c], 0
je 0x4127f6
mov eax, dword [ebp - 0x428]
mov dword [eax], 3
jmp 0x4127d0
push 0
push 0
push ebx
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
test eax, eax
je 0x412828
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x412828
cmp dword [ebp - 0x41c], 4
jne 0x412805
mov esi, dword [ebp - 0x424]
jmp 0x412838
mov esi, dword [ebp - 0x424]
mov eax, dword [ebp - 0x428]
mov dword [eax], edi
xor edi, edi
push esi
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420460
leave
ret 4
Function at 0x41e934
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa14
mov eax, dword [0x425124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x9e8], ecx
lea edi, [ebp - 0xa10]
push 8
xor eax, eax
mov esi, edx
mov edx, dword [ebp + 8]
xor ebx, ebx
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x9e8]
mov dword [ebp - 0x9f0], esi
mov dword [ebp - 0x9ec], edx
mov dword [ebp - 0x9e4], ebx
mov word [ebp - 0x4e], ax
test edi, edi
je 0x41ea97
test edx, edx
je 0x41ea97
cmp dword [edx], eax
je 0x41e9a7
cmp dword [edx], 2
jb 0x41ea97
test esi, esi
je 0x41ea97
cmp dword [0x42b284], eax
jne 0x41e9db
lea eax, [ebp - 0x9e0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41e9d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x41eaa3
mov dword [0x42b284], 1
lea eax, [ebp - 0x9e4]
push eax
lea eax, [ebp - 0xa10]
push eax
push ebx
push edi
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x41eaa9
mov esi, dword [ebp - 0x9e4]
jmp 0x41ea41
push 4
xor eax, eax
mov word [ebp - 0x850], ax
lea eax, [ebp - 0x48]
push 0x20
push eax
push 0x401
lea eax, [ebp - 0x850]
push eax
push dword [esi + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_GetNameInfoW]
test eax, eax
je 0x41ea47
cmp eax, 0x2afc
jne 0x41ea3e
cmp word [ebp - 0x850], bx
jne 0x41ea47
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x41ea01
jmp 0x41ea87
lea eax, [ebp - 0x850]
push 0x40345c
push eax
call dword [0x42c204]
pop ecx
pop ecx
mov esi, eax
mov ecx, esi
call fcn.0041bf7c
mov ecx, dword [ebp - 0x9ec]
inc eax
cmp dword [ecx], eax
jae 0x41ea76
xor ebx, ebx
mov dword [ecx], eax
inc ebx
jmp 0x41ea87
push dword [ecx]
mov ecx, dword [ebp - 0x9f0]
mov edx, esi
call fcn.0041bee7
mov ebx, eax
push dword [ebp - 0x9e4]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, ebx
jmp 0x41eaab
call dword [0x42c08c]
test eax, eax
jne 0x41eaa9
push 0x57
call dword [0x42c084]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420460
leave
ret 8
Function at 0x41eb77
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x41ecc4
call fcn.0041e67a
cmp eax, 1
je 0x41ecc4
mov ecx, esi
call fcn.0041e638
cmp eax, 1
jne 0x41ebab
add esi, 4
mov ecx, esi
call fcn.0041e7d7
test eax, eax
jne 0x41ebc6
call fcn.0041b266
call dword [0x42c08c]
jmp 0x41ecf6
mov ebx, 0x40346c
push ebx
call dword [0x42c198]
test eax, eax
je 0x41ec00
push ebx
push esi
push 0x403478
push 2
call fcn.0041b1dd
add esp, 0x10
test eax, eax
je 0x41ec22
call fcn.0041b15e
xor ebx, ebx
test eax, eax
jne 0x41ec12
push 0x12
pop ecx
call fcn.0041afc9
jmp 0x41ec1e
push esi
push 0x403460
push 1
call fcn.0041b1dd
add esp, 0xc
jmp 0x41ebe7
push ebx
push ebx
push 0x12
mov edx, eax
pop ecx
call fcn.0041b015
test eax, eax
jne 0x41ec41
call dword [0x42c08c]
test eax, eax
jne 0x41ec34
push 8
call dword [0x42c084]
call fcn.0041b266
push 8
pop eax
jmp 0x41ecf6
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test edi, edi
je 0x41ec8b
cmp edi, 0x4b8
je 0x41ec84
push edi
call dword [0x42c084]
call fcn.0041b266
jmp 0x41ecc0
call fcn.0041b2eb
jmp 0x41ecc0
push ebx
mov edi, ebx
call dword [0x42c084]
mov ecx, esi
call fcn.0041eabc
cmp eax, 0x1388
jae 0x41ecc0
push ecx
mov ecx, esi
call fcn.0041ecfd
mov ecx, 0x1580
call fcn.0041b556
mov ecx, eax
call fcn.0041b17e
mov edi, 0x4b8
mov eax, edi
jmp 0x41ecf6
test edi, edi
je 0x41ecf4
push edi
call dword [0x42c198]
test eax, eax
je 0x41ecf4
mov ecx, 0x157e
call fcn.0041b556
mov ecx, eax
call fcn.0041b17e
mov esi, 0xa0010001
push esi
call dword [0x42c084]
mov eax, esi
jmp 0x41ecf6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8