joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1006d090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
ja 0x10006ca9
lea eax, [ebp - 0x1c]
push eax
call fcn.100047d0
mov esi, eax
lea ebx, [edi + 4]
add esp, 4
cmp ebx, esi
je 0x10006c9e
mov ecx, ebx
call fcn.100027b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebx], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x1c]
call fcn.100027b0
mov ebx, dword [ebp - 0x30]
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x10006cb4
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push 0
push eax
push 0x80000003
call esi
test eax, eax
jne 0x10006cf3
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push 0
push str.SoftWare
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006d08
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015a09
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x28]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x10006d50
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015a09
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x10006d99
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015a09
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x38]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006da1
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015a09
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f408
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1006d090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x70]
push eax
call fcn.10008090
mov ecx, eax
call fcn.10005a30
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.10002df0
call fcn.10003ab0
mov ecx, eax
add esp, 0x18
or ecx, edx
jne 0x10007cd5
lea eax, [ebp - 0x58]
push eax
call fcn.10008090
mov ecx, eax
call fcn.10005360
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.10002df0
call fcn.10003ab0
push 0xa
push edx
push eax
call fcn.10012170
add esp, 0x24
lea ecx, [ebp - 0x58]
test eax, eax
je 0x10007db2
mov byte [ebp - 4], 0
call fcn.100027b0
jmp 0x10007cf3
test edx, edx
jl 0x10007cf3
jg 0x10007cdf
test eax, eax
je 0x10007cf3
push 3
push edx
push eax
call fcn.10012100
add esp, 0xc
test eax, eax
je 0x10007db7
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x74], esp
push 0
call fcn.10037e8e
push edx
push eax
push esi
call fcn.10003920
add esp, 0x10
mov byte [ebp - 4], 2
call fcn.10008090
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.10006360
lea eax, [ebp - 0x28]
push eax
call fcn.10008090
mov ecx, eax
call fcn.100050c0
push 0xa
push 0x10055a20
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10002630
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007daf
push 7
xor eax, eax
mov dword [ebp - 0x30], 0
push str._pxadik
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10002af0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x40]
push 0
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.10012010
add esp, 0x14
lea ecx, [ebp - 0x40]
call fcn.100027b0
lea ecx, [ebp - 0x28]
call fcn.100027b0
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x10007ded
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10007de3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007e07
push edx
push ecx
call fcn.1001544a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015a09
mov esp, ebp
pop ebp
ret
call fcn.10030c49
int3
Function at 0x1000d3e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f790
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1006d090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100157de
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d48b
push 1
mov dword [ebp - 4], 0
call fcn.100144fc
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10012010
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1006d090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001204d
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015a09
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10011d80
add esp, 8
mov dword [ebp - 0x50], 0
test ebx, ebx
mov dword [ebp - 0x20], 0
mov ecx, 0x10055708
mov dword [ebp - 0x58], 0x3c
mov eax, str.runas
mov dword [ebp - 0x48], esi
cmove eax, ecx
mov dword [ebp - 0x54], 0x40
cmp dword [ebp - 8], 8
xorps xmm0, xmm0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
mov esi, eax
test ecx, ecx
je 0x100120e2
cmp dword [ebp + 0x10], 0
je 0x100120e2
push dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.100027b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015a09
mov esp, ebp
pop ebp
ret
Function at 0x10017602
Capabilities:
Create thread

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

Function at 0x100429e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100426ab

Function at 0x100429f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004282c

Function at 0x10047d5d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10047a1d
Function at 0x40ca81
Capabilities:
Parse credit card information

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40cbd8
push 0x29
pop edi
mov ebp, 0x10000000
cmp eax, 0x7c
je 0x40cbd8
cmp eax, edi
jne 0x40cac3
cmp dword [esi + 0x10], 0
mov eax, edi
jne 0x40cbd8
cmp eax, edi
jne 0x40cac3
test dword [esi + 0x50], ebp
je 0x40cbe7
cmp eax, 0x2e
jne 0x40cade
push 5
lea ecx, [esi + 0x24]
call fcn.00410134
mov ecx, esi
call fcn.00410172
jmp 0x40cbc3
cmp eax, 0x5c
jne 0x40cb30
mov ecx, esi
call fcn.00410172
test byte [esi + 0x50], 0x80
je 0x40cb24
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x40cb0d
push 4
lea ecx, [esi + 0x24]
call fcn.00410134
mov ecx, esi
call fcn.00410172
jmp 0x40cbca
cmp al, 0x42
jne 0x40cb24
push 4
lea ecx, [esi + 0x24]
call fcn.00410134
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x40cb01
mov ecx, esi
call fcn.0040cc16
jmp 0x40cbc3
cmp eax, 0x5b
jne 0x40cb50
mov ecx, esi
call fcn.00410172
mov ecx, esi
call fcn.0040d483
cmp dword [esi + 0x4c], 0x5d
je 0x40cad2
push 4
jmp 0x40cbe9
cmp eax, 0x28
jne 0x40cb6c
mov ecx, esi
call fcn.00410172
mov ecx, esi
call fcn.00410cc3
mov bl, al
cmp dword [esi + 0x4c], edi
jne 0x40cbe7
jmp 0x40cbb8
cmp eax, 0x5e
jne 0x40cb75
push 2
jmp 0x40caf9
cmp eax, 0x24
jne 0x40cb81
push 3
jmp 0x40caf9
cmp eax, 0x2a
je 0x40cbe3
cmp eax, 0x2b
je 0x40cbe3
cmp eax, 0x3f
je 0x40cbe3
cmp eax, 0x7b
je 0x40cbe3
cmp eax, 0x7d
jne 0x40cb9f
test dword [esi + 0x50], ebp
je 0x40cbdf
cmp eax, 0x5d
jne 0x40cba9
test dword [esi + 0x50], ebp
je 0x40cb49
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040c411
mov bl, 1
mov ecx, esi
call fcn.00410172
test bl, bl
je 0x40cbca
mov ecx, esi
call fcn.004103e2
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40ca9d
pop edi
pop esi
pop ebp
mov al, cl
pop ebx
ret
push 6
jmp 0x40cbe9
push 0xa
jmp 0x40cbe9
push 5
mov ecx, esi
call fcn.0040e3fe
int3

Function at 0x40e325
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x56d4a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40e3a9
cmp byte [esi + 0x3d], 0
je 0x40e3a9
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40e37b
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40e37f
sub eax, 1
je 0x40e383
dec eax
sub eax, 1
je 0x40e3a9
xor al, al
jmp 0x40e3ab
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40e3a0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005052d8
add esp, 0x10
cmp edi, eax
jne 0x40e37b
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40e3ab
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004dcf35
leave
ret
Function at 0x412a22
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x56d4a4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x412a47
xor eax, eax
jmp 0x412b17
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x412a75
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x412a75
lea ecx, [ebp - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x412b16
cmp dword [esi + 0x4c], 0
je 0x412b14
mov ecx, esi
call fcn.0041055d
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x412aa1
push dword [esi + 0x4c]
push eax
call fcn.004075b8
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x412b14
mov byte [esp + 0x10], al
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x412b14
cmp eax, 1
jle 0x412ae5
cmp eax, 3
jne 0x412b14
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x412a93
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x412b04
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.005052d8
add esp, 0x10
cmp ebp, eax
jne 0x412b14
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x18], eax
mov eax, ebx
jne 0x412b16
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dcf35
add esp, 0x30
ret 4
Function at 0x4135f4
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x413615
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00405ce6
jmp 0x4136c7
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ecx, dword [eax]
mov dword [esp + 0x10], ebx
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
test ecx, ecx
je 0x413638
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41363a
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test ebx, ebx
jl 0x4136b8
jg 0x41364d
test esi, esi
je 0x4136b8
test eax, eax
jl 0x413689
jg 0x413657
test ebp, ebp
je 0x413689
cmp ebx, eax
jg 0x413667
jl 0x413661
cmp esi, ebp
jae 0x413667
mov ebp, esi
mov dword [esp + 0x20], ebx
push ebp
push ecx
push dword [esp + 0x24]
call fcn.004f3ea0
mov eax, dword [edi + 0x2c]
add esp, 0xc
add dword [esp + 0x1c], ebp
sub esi, ebp
sbb ebx, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [edi + 0x1c]
add dword [eax], ebp
mov ebp, dword [esp + 0x1c]
test ebx, ebx
jl 0x4136b8
jg 0x413697
test esi, esi
je 0x4136b8
cmp dword [edi + 0x4c], 0
je 0x4136b8
mov ecx, edi
call fcn.0041055d
push dword [edi + 0x4c]
push esi
push 1
push ebp
call fcn.00504cd2
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
pop esi
pop ebp
sbb edx, ebx
pop ebx
pop edi
pop ecx
pop ecx
ret 0xc

Function at 0x4136cd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4136ee
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00405dba
jmp 0x41379d
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x413711
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x413713
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x41378e
jg 0x413726
test esi, esi
je 0x41378e
test eax, eax
jl 0x413766
jg 0x413730
test ebp, ebp
je 0x413766
cmp edi, eax
jg 0x413740
jl 0x41373a
cmp esi, ebp
jae 0x413740
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call fcn.004f3ea0
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ebx + 0x30]
add ecx, ebp
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
jmp 0x41376a
mov ecx, dword [esp + 0x1c]
test edi, edi
jl 0x41378e
jg 0x413774
test esi, esi
je 0x41378e
cmp dword [ebx + 0x4c], 0
je 0x41378e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005052d8
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x41f0ec
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.rstrtmgr.dll
call esi
push str.Kernel32.dll
mov ebx, eax
call esi
mov ebp, eax
test ebx, ebx
je 0x41f167
test ebp, ebp
je 0x41f167
push edi
push 0x14
call fcn.004dcef2
mov edi, eax
pop ecx
test edi, edi
je 0x41f15c
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.RmStartSession
push ebx
call esi
push str.RmRegisterResources
push ebx
mov dword [edi], eax
call esi
push str.RmGetList
push ebx
mov dword [edi + 4], eax
call esi
push str.RmEndSession
push ebx
mov dword [edi + 8], eax
call esi
push str.QueryFullProcessImageNameW
push ebp
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x10], eax
jmp 0x41f15e
xor edi, edi
mov eax, dword [esp + 0x14]
mov dword [eax], edi
pop edi
jmp 0x41f16e
mov eax, dword [esp + 0x10]
and dword [eax], 0
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41f174
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x522252
call fcn.004dcfb1
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x5c], eax
push ecx
mov dword [ebp - 0x48], ecx
mov edi, dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
push ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x4c], eax
call edi
mov esi, eax
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x41]
push eax
push esi
call fcn.0041ee8d
push dword [ebp - 0x58]
mov dword [ebp - 4], 1
push esi
call edi
mov esi, dword [ebp - 0x4c]
mov ecx, esi
and dword [esi], 0
and dword [esi + 4], 0
call fcn.0040d014
mov dword [esi], eax
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x48], 1
cmp edi, dword [ebp - 0x54]
je 0x41f286
mov byte [ebp - 0x4c], 0
movsx ax, byte [edi]
xor ecx, ecx
and dword [ebp - 0x30], 0
mov word [ebp - 0x40], cx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
movzx eax, ax
push eax
push 1
call fcn.0041f601
push 0x5320c0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0041f5dc
push dword [ebp - 0x4c]
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push eax
call fcn.0040cbf1
or dword [ebp - 0x48], 2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00404579
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 2
ja 0x41f270
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041e8e5
push eax
add eax, 0x10
mov ecx, esi
push eax
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.004083e1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404579
inc edi
cmp edi, dword [ebp - 0x54]
jne 0x41f1e1
lea ecx, [ebp - 0x58]
call fcn.00410a38
mov eax, esi
call fcn.004dcf5b
ret 4
Function at 0x41fb07
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
mov dword [edi], eax
mov ecx, dword [ecx]
cmp ecx, dword [esp + 0x1c]
je 0x41fc61
mov eax, ecx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x28]
xor ebx, ebx
inc ebx
mov ebp, 0x3ff
mov ecx, eax
cmp dword [edi], edx
je 0x41fc61
mov edx, dword [esp + 0x14]
movzx ecx, word [eax]
mov eax, ecx
mov byte [esp + 0x2c], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x41fb8b
lea eax, [ecx + 0x2400]
cmp ax, bp
ja 0x41fc71
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [esp + 0x2c]
cmp ebx, 0x80
jae 0x41fba9
mov dl, bl
xor ebp, ebp
jmp 0x41fbd9
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, bp
ja 0x41fb79
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [esp + 0x2c], cl
jmp 0x41fb7d
mov edx, ebx
cmp ebx, 0x800
jae 0x41fbbe
shr edx, 6
xor ebp, ebp
or dl, 0xc0
inc ebp
jmp 0x41fbd9
cmp ebx, 0x10000
jae 0x41fbd0
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x41fbd8
shr edx, 0x12
or dl, 0xf0
push 3
pop ebp
mov eax, dword [esp + 0x28]
movzx esi, cl
mov ecx, dword [esp + 0x24]
xor esi, 1
add esi, esi
cmp ebp, 3
cmovb esi, ebp
sub eax, dword [edi]
inc esi
cmp eax, esi
jl 0x41fc61
mov eax, ecx
mov ecx, dword [esp + 0x20]
add eax, 2
cmp byte [esp + 0x2c], 0
mov dword [ecx], eax
jne 0x41fc0d
cmp ebp, 3
jae 0x41fc14
mov eax, dword [edi]
mov byte [eax], dl
inc dword [edi]
dec esi
test esi, esi
jle 0x41fc33
imul ecx, ebp, 6
mov eax, dword [edi]
sub ecx, 6
mov edx, ebx
dec esi
shr edx, cl
and dl, 0x3f
or dl, 0x80
mov byte [eax], dl
inc dword [edi]
test esi, esi
jg 0x41fc1b
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [esp + 0x2c], 0
cmovne ecx, eax
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x24], eax
cmp ecx, dword [esp + 0x1c]
jne 0x41fb31
xor eax, eax
cmp dword [esp + 0x18], ecx
sete al
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
push 2
pop eax
jmp 0x41fc6a

Function at 0x42097b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x4209eb
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x4209eb
push ebx
mov ebx, 0x103
push edi
mov dword [ebp - 4], ebx
xor edi, edi
cmp edi, 0x64
jge 0x4209da
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0xa
call fcn.0041edd5
pop ecx
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
inc edi
cmp dword [ebp - 4], ebx
je 0x4209af
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 4], ebx
pop edi
setne al
pop ebx
jmp 0x4209ed
xor al, al
pop esi
leave
ret