joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10145e1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1036a44]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov di, word [ebx]
cmp di, 0x41
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ebx
jb 0x1014735
cmp di, 0x5a
ja 0x1014735
mov ecx, dword [ecx]
movzx eax, di
sub eax, 0x41
lea eax, [eax + eax*4]
push esi
lea esi, [ecx + eax*8]
call fcn.01004490
cmp dword [ebp + 8], 0x20
je 0x1014679
cmp dword [ebp + 8], 0x400
jne 0x101472f
cmp byte [esi + 0x10], 0
je 0x101472f
push dword [esi + 0xc]
xor edi, edi
mov byte [esi + 0x10], 0
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
call fcn.0102ec42
push 2
call fcn.0102ec4e
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101472f
mov word [eax], di
jmp 0x101471e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x101472f
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.01013df5
cmp byte [esi + 0x10], 0
mov edi, eax
mov ebx, edx
je 0x10146b4
cmp edi, dword [esi]
jne 0x10146b4
cmp ebx, dword [esi + 4]
je 0x101472f
push dword [ebp - 0x210]
push ebx
push edi
call fcn.01013fdb
test al, al
jne 0x101472f
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
mov byte [esi + 0x10], 1
mov dword [esi], edi
mov dword [esi + 4], ebx
call fcn.01003bed
test al, al
je 0x10146ea
and dword [esi + 0x20], 0
jmp 0x10146ee
or dword [esi + 0x20], 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call fcn.0102ec4e
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101472f
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
or eax, 0xffffffff
push eax
push eax
push eax
push eax
push 3
push 0xa
push esi
call fcn.01011c24
call fcn.010044a1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0102e95a
leave
ret 8
Function at 0x10147ad
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
call fcn.01004490
push ebx
push esi
mov dword [ebp - 0x418], 0x41
push edi
movzx eax, word [ebp - 0x418]
mov edx, dword [ebp - 0x41c]
mov edx, dword [edx]
push eax
lea ecx, [eax + eax*4 - 0x145]
lea eax, [ebp - 0x414]
push 0x1001a6c
push eax
lea esi, [edx + ecx*8]
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x101485e
cmp byte [esi + 0x10], al
je 0x101491a
push dword [esi + 0xc]
xor edi, edi
mov byte [esi + 0x10], al
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
call fcn.0102ec42
push 2
call fcn.0102ec4e
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101492e
mov word [eax], di
jmp 0x1014906
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call fcn.01013df5
cmp byte [esi + 0x10], 0
mov edi, eax
mov ebx, edx
je 0x101489a
cmp edi, dword [esi]
jne 0x101489a
cmp ebx, dword [esi + 4]
jne 0x101489a
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0xc]
call fcn.0101e05d
test eax, eax
je 0x101491a
lea eax, [ebp - 0x414]
push eax
push ebx
push edi
call fcn.01013fdb
test al, al
jne 0x101491a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
mov byte [esi + 0x10], 1
call fcn.01003bed
test al, al
je 0x10148cd
and dword [esi + 0x20], 0
jmp 0x10148d1
or dword [esi + 0x20], 1
lea eax, [ebp - 0x20c]
push eax
mov dword [esi], edi
mov dword [esi + 4], ebx
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call fcn.0102ec4e
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101492e
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 3
push 0xa
push esi
call fcn.01011c24
inc dword [ebp - 0x418]
cmp word [ebp - 0x418], 0x5a
jbe 0x10147d8
call fcn.010044a1
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102e95a
leave
ret 8
Function at 0x1014a8f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1036a44]
push esi
push 0xffffffffffffffff
mov esi, ecx
push 0x1a
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], esi
call fcn.01014947
cmp dword [esi + 4], 0x1a
je 0x1014ac1
xor al, al
jmp 0x1014b99
push ebx
push edi
push 0x41
pop edi
xor ebx, ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], ebx
jmp 0x1014adc
mov esi, dword [ebp - 0x420]
mov esi, dword [esi]
add esi, dword [ebp - 0x418]
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0x1001a6c
push eax
mov word [esi + 8], di
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x10], bl
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1014b6b
lea eax, [ebp - 0x20c]
push eax
mov byte [esi + 0x10], 1
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call fcn.0102ec4e
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x1014b7d
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1014b7d
push 2
call fcn.0102ec4e
cmp eax, ebx
pop ecx
mov dword [esi + 0xc], eax
je 0x1014b7d
mov word [eax], bx
add dword [ebp - 0x418], 0x28
inc edi
inc dword [ebp - 0x41c]
cmp di, 0x5a
jbe 0x1014ad6
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret
Function at 0x1017938
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push 0x1002298
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1017971
xor eax, eax
jmp 0x1017a18
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push esi
mov ebx, 0x1002280
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x10179f6
push dword [ebp - 8]
call fcn.01003305
mov esi, eax
test esi, esi
jne 0x10179ac
mov dword [ebp - 0x10], 0x8007000e
jmp 0x10179f6
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10179ef
cmp dword [ebp - 0x14], 7
jne 0x10179ef
xor edi, edi
mov dword [ebp - 0xc], esi
jmp 0x10179e8
push edi
push esi
call fcn.01017735
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10179da
sub eax, ecx
lea esi, [esi + eax + 1]
inc edi
cmp byte [esi], 0
jne 0x10179ce
jmp 0x10179f6
mov dword [ebp - 0x10], 0x8000ffff
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x1017a07
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x1017a15
push dword [ebp - 0xc]
call fcn.01003336
mov eax, dword [ebp - 0x10]
pop esi
leave
ret

Function at 0x101949a
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov eax, dword [0x1036c04]
test eax, eax
je 0x1019514
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1019501
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov esi, eax
lea eax, [ebp - 0x204]
push eax
push 0x6a
push dword [0x1036b20]
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
lea eax, [ebp - 0x204]
push eax
push 0x1002398
push 0xc1000002
call fcn.010152d4
add esp, 0x10
pop esi
push dword [0x1036c04]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x1036c04], 0
mov ecx, dword [ebp - 4]
call fcn.0102e95a
leave
ret

Function at 0x101def7
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.CLUSAPI.dll_GetNodeClusterState
test byte [ebp - 0x28], 2
je 0x101df37
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
call fcn.0102e95a
leave
ret
Function at 0x101df97
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002660
push 0x80000002
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101e002
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1002620
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x101e002
cmp dword [ebp - 0x10], 4
jne 0x101e002
cmp byte [ebp - 8], 0
setne al
leave
ret
xor al, al
leave
ret

Function at 0x101e0ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1036a44]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
push eax
push 1
push 0
push 0x10025a8
push 0x80000002
mov dword [ebp - 0x70], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101e18d
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x6c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x101e18d
cmp dword [ebp - 0x74], 1
jne 0x101e18d
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x101e18d
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
jmp 0x101e18f
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0102e95a
leave
ret 8
Function at 0x101e35d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
xor ebx, ebx
cmp edi, ebx
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
je 0x101e479
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x101e479
mov dword [edi], ebx
mov dword [eax], ebx
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
push 0x1002750
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x101e461
cmp eax, ebx
je 0x101e3cc
jle 0x101e47e
and eax, 0xffff
or eax, 0x80070000
jmp 0x101e47e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x1002728
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
je 0x101e3fa
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jmp 0x101e43b
cmp dword [ebp - 4], 4
jne 0x101e46e
cmp dword [ebp - 8], 4
jne 0x101e46e
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov dword [edi], eax
je 0x101e46e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x1002700
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x101e44d
mov dword [edi], ebx
jle 0x101e449
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x101e47e
cmp dword [ebp - 4], 4
jne 0x101e465
cmp dword [ebp - 8], 4
jne 0x101e465
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x101e47e
mov dword [edi], ebx
mov eax, 0x80004005
jmp 0x101e47e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101e467
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101e4a2
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x10027e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x101e4cc
xor eax, eax
leave
ret
test eax, eax
je 0x101e4de
jle 0x101e511
and eax, 0xffff
or eax, 0x80070000
leave
ret
push esi
push 0x10027bc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x101e50e
jle 0x101e50a
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x101e510
xor eax, eax
pop esi
leave
ret
Function at 0x101e518
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x100289c
mov dword [ebp - 0x18], 0xa
call fcn.0101e0ff
test al, al
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
je 0x101e56a
push 0x1002890
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x101e5db
push 0x1002884
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x101e5d7
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x1002854
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101e5db
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x1002848
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x101e5db
cmp dword [ebp - 0x1c], 1
jne 0x101e5db
push 0x100283c
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x101e5d7
push 0x1002830
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
jne 0x101e5db
mov al, 1
jmp 0x101e5dd
xor al, al
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret

Function at 0x101e9fe
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
xor esi, esi
cmp ecx, 0x2000
mov dword [ebp - 0x290], esi
je 0x101ea54
cmp ecx, 0x4000
jne 0x101eb44
add eax, 0x14
cmp eax, esi
je 0x101eb44
push eax
mov ecx, 0x1036b40
mov word [eax + 2], 0x3f
call fcn.0101e856
jmp 0x101eb44
push edi
lea edi, [eax + 0x14]
cmp edi, esi
je 0x101eb43
lea eax, [ebp - 0x28c]
push eax
push esi
push edi
mov word [edi + 2], 0x3f
call fcn.0101ee58
test eax, eax
jl 0x101eb43
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
push 0x202
lea eax, [ebp - 0x288]
push eax
push esi
push esi
push 0x4d0008
lea eax, [ebp - 0x298]
push eax
push esi
push esi
push esi
push dword [ebp - 0x28c]
call ebx
test eax, eax
jge 0x101eabd
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x101eb42
movzx eax, word [ebp - 0x288]
push 0xc
shr eax, 1
mov word [ebp + eax*2 - 0x286], si
lea eax, [ebp - 0x2a4]
push eax
push esi
push esi
push 0x2d1080
lea eax, [ebp - 0x298]
push eax
push esi
push esi
push esi
push dword [ebp - 0x28c]
call ebx
test eax, eax
jl 0x101eb1d
push dword [ebp - 0x29c]
lea eax, [ebp - 0x84]
push dword [ebp - 0x2a0]
push 0x10028b8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea esi, [ebp - 0x84]
jmp 0x101eb23
mov esi, dword [ebp - 0x290]
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp - 0x286]
push eax
push edi
mov ecx, 0x1036b40
call fcn.0101e900
pop ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret 4
Function at 0x1023902
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1036a44]
push esi
push dword [0x1036cbc]
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], esi
call fcn.01012bc8
push dword [0x1036cb8]
call fcn.01012bc8
mov eax, dword [0x1036cc8]
cmp eax, esi
je 0x102394a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1036cc8], esi
mov eax, dword [0x1036cd4]
cmp eax, esi
mov byte [0x1036cb4], 0
je 0x1023acc
cmp dword [0x1036cc0], esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x1001b60
je 0x1023a78
and dword [ebp - 0x20c], 0
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x214]
push ecx
call dword [eax + 0x14]
test eax, eax
je 0x10239c5
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x6b
push dword [0x1036b20]
call esi
push 0x8007000e
lea eax, [ebp - 0x204]
push eax
push 0x1002398
jmp 0x1023abd
xor eax, eax
cmp dword [ebp - 0x20c], eax
je 0x1023a15
mov dword [ebp - 0x208], eax
jbe 0x1023a15
mov dword [ebp - 0x210], eax
jmp 0x10239e5
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
push dword [eax + ecx + 4]
push dword [eax + ecx]
mov eax, dword [0x1036cd4]
call dword [eax + 0xc]
inc dword [ebp - 0x208]
mov eax, dword [ebp - 0x208]
add dword [ebp - 0x210], 0x40
cmp eax, dword [ebp - 0x20c]
jb 0x10239df
push 0
push dword [0x1036cc0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1023a60
call edi
push 0x100
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push eax
push 0x6b
push dword [0x1036b20]
call esi
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
push ebx
push 0xc1000002
call fcn.010152d4
add esp, 0x10
push dword [0x1036cc0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x1036cc0], 0
mov eax, dword [0x1036cd4]
test eax, eax
je 0x1023a8a
push eax
call fcn.0102ec42
and dword [0x1036cd4], 0
pop ecx
push dword [0x1036cd0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x1023aca
call edi
push 0x100
mov edi, eax
lea eax, [ebp - 0x204]
push eax
push 0x6b
push dword [0x1036b20]
call esi
push edi
lea eax, [ebp - 0x204]
push eax
push ebx
push 0xc1000002
call fcn.010152d4
add esp, 0x10
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret
Function at 0x102ea72
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
nop
push edx
nop
push ebx
push esp
push ebp
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x40], 0xd
mov dword [ebp - 0x34], 0xd
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x48], 0x4961
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x17af
jmp 0x102ebc4
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0xc]
sub eax, 0xe
mov dword [ebp - 0x28], eax
add dword [ebp - 0x10], 0x7863
jmp 0x102eae3
add dword [ebp - 0x18], 0x6e1d
jmp 0x102eac5
add dword [ebp - 0x18], 0x1fc34
jmp 0x102eaf5
add dword [ebp - 0x10], 0x102c0fa
jmp 0x102eada
dec dword [ebp - 0x38]
mov ebx, 0x10386be
mov esi, 0x1061000
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov al, byte [edx + eax]
mov byte [ebp - 0x39], al
movzx edx, byte [ebp - 0x39]
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov edx, eax
shr edx, 1
add ecx, edx
mov edx, ecx
and edx, 0xff
mov ecx, dword [ebp - 0x74]
xor ecx, edx
mov edx, ecx
mov byte [ebp - 0x39], dl
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0x39]
mov byte [edx + eax], cl
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
jbe 0x102ebdb
jmp 0x102eb09
mov dword [ebp - 0x4c], 0x109a000
mov edi, dword [ebp - 0x30]
sub edi, 9
jmp 0x102eb6d
mov al, byte [ebx + edi]
mov byte [esi + edi], al
inc edi
cmp edi, 0x1d6ac
jb 0x102eb66
mov dword [ebp - 0x50], 0x1055ebe
mov dword [ebp - 0x54], 0x10000000
mov dword [ebp - 8], 0x105d4be
mov eax, dword [ebp - 0x34]
sub eax, 0xd
mov dword [ebp - 0x20], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov edx, eax
sub edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 4]
sub ecx, 3
sub eax, ecx
mov ecx, dword [ebp - 0x50]
mov al, byte [ecx + eax]
mov ecx, dword [ebp - 0x78]
mov byte [ecx + edx], al
mov eax, 0x7050
cmp eax, dword [ebp - 0x20]
jbe 0x102ebd0
jmp 0x102eb93
mov dword [ebp - 0x38], 0x34460b9
jmp 0x102eaec
inc dword [ebp - 0x28]
jmp 0x102ece7
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x30]
sub eax, 0xd
cmp eax, dword [ebp - 0x28]
jbe 0x102eb57
jmp 0x102eaf8

Function at 0x102f5be
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x80
push 3
push 0
push 7
push 0xc0000000
push 0x10030ec
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x102f5ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x102f5fb
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
inc eax
jmp 0x102f60e
xor eax, eax
jmp 0x102f60e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
mov dword [ecx], eax
pop ebp
ret 4
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00402767
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00402767
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00402767
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00402767
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00402767
mov dword [0x41203c], eax
call fcn.00402767
test eax, eax
jge 0x402550
push 8
call fcn.00402767
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00402767
pop ecx
push 1
call fcn.00402767
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00402767
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00402767
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00402767
jmp 0x402495

Function at 0x402767
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x402776
pop dword [ebp - 0x48]
mov eax, 0x5bd03d87
sub eax, 0x5b901611
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3857e
push 0
mov eax, 0x833a60e5
add eax, 0x7d067ff3
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4219
mov ebx, eax
mov esi, 0x9e575604
sub esi, 0x9e161a40
add esi, dword [ebp - 0x48]
mov edi, 0x60547153
add edi, 0x396ad763
mov dword [ebp - 0x14], 0x16524984
mov edx, dword [esi]
add dword [ebp - 0x24], 0x83b0aab4
add edx, edi
xor dword [ebp - 0x20], 0x49ac5b84
mov dword [ebx], edx
xor dword [ebp - 8], edi
add ebx, 4
add esi, 0x1eb77b7
sub esi, 0x1eb77b3
loop 0x4027cf
add eax, 0xfb37
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe5222232
add ecx, 0x1b1dddce
add ecx, dword [ebp - 0x48]
call ebx
leave
ret