joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472063
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4720a0
cmp dword [ebp + 0x14], edi
je 0x4720a0
cmp ecx, edi
jne 0x4720a7
call fcn.00471c23
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00471ab1
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4720bb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4720dc
cmp ebx, 0xffffffff
je 0x4720cb
push ebx
push edi
push ecx
call fcn.00475320
add esp, 0xc
cmp esi, edi
je 0x472088
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x472088
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4720f8
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4720ff
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4721f0
test word [esi + 0xc], 0x10c
je 0x472153
mov eax, dword [esi + 4]
test eax, eax
je 0x472153
jl 0x472251
cmp ebx, eax
mov edi, ebx
jb 0x472124
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4721f8
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00471930
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4721e8
cmp ebx, dword [ebp - 0xc]
jb 0x4721c0
cmp dword [ebp - 0xc], 0
je 0x47217d
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x472172
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x472179
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x472188
mov eax, closesocket
cmp ebx, eax
ja 0x472188
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x472224
push eax
push dword [ebp - 8]
push esi
call fcn.0047ca3b
pop ecx
push eax
call fcn.0047c93e
add esp, 0xc
test eax, eax
je 0x472263
cmp eax, 0xffffffff
je 0x472251
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4721e8
push esi
call fcn.0047c25d
cmp eax, 0xffffffff
pop ecx
je 0x472255
cmp dword [ebp - 4], 0
je 0x472224
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x472107
mov eax, dword [ebp + 0x14]
jmp 0x4720a2
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x47220f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00475320
add esp, 0xc
call fcn.00471c23
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x472098
cmp dword [ebp + 0xc], 0xffffffff
je 0x47223a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00475320
add esp, 0xc
call fcn.00471c23
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x472098
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4720a2
or dword [esi + 0xc], 0x10
jmp 0x472255
Function at 0x47abaf
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4cb0f8]
je 0x47abca
inc edi
cmp edi, 0x17
jb 0x47abbb
cmp edi, 0x17
jae 0x47ad4a
push ebp
push 3
call fcn.00486ad6
cmp eax, 1
pop ecx
je 0x47ad16
push 3
call fcn.00486ad6
test eax, eax
pop ecx
jne 0x47abfe
cmp dword [0x4cadb0], 1
je 0x47ad16
cmp ebx, 0xfc
je 0x47ad49
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4d2220
push ebp
call fcn.0047447d
add esp, 0xc
test eax, eax
je 0x47ac34
push esi
push esi
push esi
push esi
push esi
call fcn.004719b5
add esp, 0x14
push 0x104
mov esi, 0x4d2239
push esi
push 0
mov byte [0x4d233d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47ac78
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047447d
add esp, 0xc
test eax, eax
je 0x47ac78
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004719b5
add esp, 0x14
push esi
call fcn.00475db0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47acbd
push esi
call fcn.00475db0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d2534
push 0x4a99b4
sub ecx, eax
push ecx
push eax
call fcn.0047c1aa
add esp, 0x14
test eax, eax
je 0x47acbd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004719b5
add esp, 0x14
jmp 0x47acbf
xor esi, esi
push 0x4a99b0
push ebx
push ebp
call fcn.00483f2e
add esp, 0xc
test eax, eax
je 0x47acdf
push esi
push esi
push esi
push esi
push esi
call fcn.004719b5
add esp, 0x14
push dword [edi*8 + 0x4cb0fc]
push ebx
push ebp
call fcn.00483f2e
add esp, 0xc
test eax, eax
je 0x47ad01
push esi
push esi
push esi
push esi
push esi
call fcn.004719b5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00486919
add esp, 0xc
jmp 0x47ad49
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47ad49
cmp ebp, 0xffffffff
je 0x47ad49
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4cb0fc]
push dword [esi]
call fcn.00475db0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x486919
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004797a0
xor ebx, ebx
cmp dword [0x4d2908], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4869ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x486acf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4aafb8
push edi
call esi
cmp eax, ebx
je 0x486acf
push eax
call fcn.00479732
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d2908], eax
call esi
push eax
call fcn.00479732
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d290c], eax
call esi
push eax
call fcn.00479732
mov dword [0x4d2910], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00479e6b
test eax, eax
pop ecx
pop ecx
je 0x4869bd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004719b5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4869ef
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00479732
cmp eax, ebx
pop ecx
mov dword [0x4d2918], eax
je 0x4869ef
push 0x4aaf60
push edi
call esi
push eax
call fcn.00479732
pop ecx
mov dword [0x4d2914], eax
mov eax, dword [0x4d2914]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x486a74
cmp dword [0x4d2918], ecx
je 0x486a74
push eax
call fcn.004797a9
push dword [0x4d2918]
mov esi, eax
call fcn.004797a9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x486a74
cmp edi, ebx
je 0x486a74
call esi
cmp eax, ebx
je 0x486a41
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x486a41
test byte [ebp - 0x18], 1
jne 0x486a74
lea eax, [ebp - 0x10]
push eax
call fcn.00479ea2
test eax, eax
pop ecx
je 0x486a5c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004719b5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x486a6b
or dword [ebp + 0x10], 0x200000
jmp 0x486aaf
or dword [ebp + 0x10], 0x40000
jmp 0x486aaf
mov eax, dword [0x4d290c]
cmp eax, dword [ebp - 8]
je 0x486aaf
push eax
call fcn.004797a9
cmp eax, ebx
pop ecx
je 0x486aaf
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x486aaf
mov eax, dword [0x4d2910]
cmp eax, dword [ebp - 8]
je 0x486aaf
push eax
call fcn.004797a9
cmp eax, ebx
pop ecx
je 0x486aaf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d2908]
call fcn.004797a9
cmp eax, ebx
pop ecx
je 0x486acf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x486ad1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100187f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
push edi
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.01001777
cmp dword [ebp + 8], 0x800006a4
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
jb 0x1001904
call fcn.01001735
test eax, eax
jne 0x10018c6
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
jmp 0x1001917
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call fcn.01001735
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageW]
push eax
push 0x900
call edi
mov ebx, eax
cmp ebx, esi
jne 0x1001927
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call edi
jmp 0x100191d
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push esi
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ebx, eax
cmp ebx, esi
je 0x10019de
cmp dword [ebp - 4], esi
je 0x10019de
cmp dword [0x100cdb4], esi
je 0x1001952
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 4]
push dword [0x100cdc4]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov dword [ebp - 8], eax
jmp 0x10019c5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
mov ebx, eax
lea eax, [ebx + 1]
push eax
push dword [ebp - 4]
push esi
push 1
call edi
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x10019cf
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x10019cf
push esi
push esi
push dword [ebp - 0x18]
push eax
lea eax, [ebx + 1]
push eax
push dword [ebp - 4]
push esi
push 1
call edi
mov edi, eax
cmp edi, esi
je 0x10019bc
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x14]
push dword [0x100cdc4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
mov ebx, edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], esi
je 0x10019cf
cmp dword [ebp - 0xc], ebx
je 0x10019d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002c76
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100c02c]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
xor esi, esi
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1002d60
lea eax, [ebp - 0x28]
push eax
push 0x80000000
push esi
push 0x1001358
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002d60
push edi
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x1001334
push edi
push dword [ebp - 0x28]
call esi
test eax, eax
jne 0x1002d56
push ebx
push dword [ebp - 0x2c]
mov ebx, dword [sym.imp.msvcrt.dll_malloc]
call ebx
test eax, eax
pop ecx
mov dword [ebp - 0x30], eax
je 0x1002d55
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push edi
push dword [ebp - 0x28]
call esi
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_free]
jne 0x1002d4f
mov eax, dword [ebp - 0x2c]
inc eax
shr eax, 1
lea eax, [eax + eax*4]
lea eax, [eax + eax + 2]
push eax
call ebx
mov esi, eax
test esi, esi
pop ecx
je 0x1002d4f
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.01002b7b
push esi
lea eax, [ebp - 0x24]
push eax
push 0x1f
call fcn.0100187f
push esi
call edi
add esp, 0x10
push dword [ebp - 0x30]
call edi
pop ecx
pop ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.010058ab
leave
ret

Function at 0x1002d70
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100c02c]
and dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
movzx edi, word [ebp - 0x210]
mov eax, dword [ebx + edi*4]
test eax, eax
je 0x1002dec
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002e0d
and word [esi + 0x60], 0
lea edi, [ebx + edi*4 + 0x68]
cmp dword [edi], 0
je 0x1002dec
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1002dec
push dword [edi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002e0d
inc dword [ebp - 0x210]
cmp word [ebp - 0x210], 0x1a
jb 0x1002d93
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010058ab
leave
ret 8
push 0x10013d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ax, word [ebp - 0x210]
add word [esi], ax
xor eax, eax
inc eax
jmp 0x1002dfe
Function at 0x10040d7
Capabilities:
Get volume information via ioctl
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x100c02c]
push edi
xor edi, edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x60
lea eax, [ebp - 0x78]
push eax
push edi
push edi
push 0x90064
push dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1004117
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100423d
push ebx
push edi
push dword [ebp - 0x48]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.01005ca0
cmp edx, edi
mov ebx, eax
jl 0x100413f
jg 0x1004137
cmp ebx, 0x3fffffff
jbe 0x100413f
push 0x57
pop eax
jmp 0x100423c
push esi
mov esi, ebx
shl esi, 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
cmp edx, edi
mov dword [ebp - 0x10], edx
jne 0x1004165
push 8
pop eax
jmp 0x100423b
and dword [ebp - 8], 0
mov ecx, esi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
test ebx, ebx
rep stosb byte es:[edi], al
jbe 0x1004205
mov esi, edx
push dword [ebp + 8]
call fcn.01003f71
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x10041f3
xor edi, edi
test dword [ebp - 0x48], 0xfffffff8
jbe 0x10041c4
push 0
lea eax, [ebp - 0x14]
push eax
push 8
push dword [0x100cda0]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10041c4
mov eax, dword [ebp - 0x48]
inc edi
shr eax, 3
cmp edi, eax
jb 0x100419f
cmp dword [ebp - 8], 0
je 0x10041e6
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0xc8
div ecx
test edx, edx
jne 0x10041e6
push 0x1001504
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
inc dword [ebp - 8]
add esi, 4
cmp dword [ebp - 8], ebx
jb 0x1004185
jmp 0x1004205
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
mov dword [ebp - 0xc], eax
jne 0x1004205
and dword [ebp - 0xc], 0
xor esi, esi
test ebx, ebx
jbe 0x1004226
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
cmp eax, 0xffffffff
je 0x1004221
test eax, eax
je 0x1004221
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jb 0x100420b
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.010058ab
leave
ret 8
Function at 0x10059c3
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10015a8
call fcn.01005c38
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10059fe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10059fe
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005a16
cmp eax, 0x20b
je 0x1005a03
mov dword [ebp - 0x1c], edi
jmp 0x1005a2a
cmp dword [ecx + 0x84], 0xe
jbe 0x10059fe
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1005a24
cmp dword [ecx + 0x74], 0xe
jbe 0x10059fe
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100cdc8], 0xffffffff
or dword [0x100cdcc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100c024]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100c084]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100cdd0], eax
call fcn.0100582e
cmp dword [0x100c030], edi
jne 0x1005a85
push 0x1005e7e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005e67
push 0x100c010
push 0x100c00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100c080]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100c07c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100c008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01004ffe
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1005afc
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1005b31
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005c73
ret
Function at 0x1005f95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [0x100c22c], 0
mov eax, dword [0x100c02c]
mov dword [ebp - 4], eax
jne 0x1006083
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1006078
xor eax, eax
cmp dword [ebp - 0x88], 2
push esi
sete al
test eax, eax
mov dword [0x100c038], eax
je 0x1006046
push 0x1001620
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1006077
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001604
push edi
call esi
test eax, eax
mov dword [0x100c218], eax
je 0x100602a
mov dword [0x100c034], 0x4000
push 0x10015f8
push edi
call esi
push 0x10015e0
push edi
mov dword [0x100c21c], eax
call esi
mov dword [0x100c220], eax
jmp 0x1006077
push 0x10015d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1006077
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10015c4
push edi
call esi
push 0x10015b4
push edi
mov dword [0x100c210], eax
call esi
mov dword [0x100c214], eax
pop esi
mov dword [0x100c22c], 1
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x100c038]
call fcn.010058ab
leave
ret
Function at 0x1006c02
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
call fcn.01006b81
test eax, eax
je 0x1006c43
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push 0x1001678
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8

Function at 0x1007130
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x100726b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x1007240
test eax, eax
jne 0x1007240
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x1007180
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x100726b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x1007240
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x1007660
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x10011fcb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0xc
push ebp
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10011fee
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x10011fee
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x10011ff8
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x20], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebx
cmp ecx, ebx
ja 0x1001203a
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0xc
ret 8
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x1001209c
mov ecx, ebx
lea ebx, [ebx]
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x10012097
mov eax, dword [esp + 0x24]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10012082
test dl, dl
je 0x1001207e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10012082
add ecx, 2
add eax, 2
test dl, dl
jne 0x10012062
xor eax, eax
jmp 0x10012087
sbb eax, eax
or eax, 1
test eax, eax
je 0x100120a8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, eax
jb 0x1001204f
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret 8
mov eax, dword [esp + 0x18]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0xc
ret 8