joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c7c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov ebx, ecx
test esi, esi
je 0x49c7f6
test ebx, ebx
je 0x49c7f6
mov dl, byte [esi + edi]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
inc eax
inc ecx
inc esi
dec ebx
and esi, 0xf
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
jne 0x49c7d6
cmp ebx, 0x10
jb 0x49c87f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, ecx
sub eax, edi
mov dword [ebp - 4], eax
mov eax, edx
sub eax, edi
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], eax
shl eax, 4
add ecx, eax
add edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.00497d90
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.0049c7a0
cmp esi, 0x10
jae 0x49c86a
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + eax]
xor edx, dword [eax]
mov esi, dword [ebp - 4]
mov dword [esi + eax], edx
add eax, 4
sub ecx, 1
jne 0x49c854
mov eax, 0x10
add dword [ebp - 4], eax
add dword [ebp - 8], eax
sub ebx, eax
xor esi, esi
sub dword [ebp - 0xc], 1
jne 0x49c828
test ebx, ebx
je 0x49c8cd
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.00497d90
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.0049c7a0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub edx, edi
lea eax, [esi + edi]
sub ecx, edi
mov dword [ebp - 0xc], edx
add esi, ebx
mov edi, edi
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov edi, dword [ebp - 0xc]
dec ebx
mov byte [eax + edi], dl
inc eax
test ebx, ebx
jne 0x49c8b0
mov eax, dword [ebp + 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a085e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4a0882
cmp dword [edi + 0x54], 0
jne 0x4a0882
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004a1255
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004a081f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4a6a43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4a6a8a
call fcn.004a1255
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a6a8a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4a6aa6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004a65bb
mov esi, eax
test edi, edi
je 0x4a6aa4
test ebx, ebx
je 0x4a6aa4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4acc76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x512f18]
jne 0x4acc80
repz ret
jmp fcn.004b54dd

Function at 0x4c0599
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004b4e41
and dword [ebp - 4], 0
cmp dword [0x5184ec], 0
mov ebx, eax
jne 0x4c064a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c06fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4db1f8
push edi
call esi
test eax, eax
je 0x4c06fb
push eax
call fcn.004b4dcf
mov dword [esp], 0x4db1e8
push edi
mov dword [0x5184ec], eax
call esi
push eax
call fcn.004b4dcf
mov dword [esp], 0x4db1d4
push edi
mov dword [0x5184f0], eax
call esi
push eax
call fcn.004b4dcf
mov dword [esp], 0x4db1b8
push edi
mov dword [0x5184f4], eax
call esi
push eax
call fcn.004b4dcf
pop ecx
mov dword [0x5184fc], eax
test eax, eax
je 0x4c064a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b4dcf
pop ecx
mov dword [0x5184f8], eax
mov eax, dword [0x5184f8]
cmp eax, ebx
je 0x4c06a2
cmp dword [0x5184fc], ebx
je 0x4c06a2
push eax
call fcn.004b4e4a
push dword [0x5184fc]
mov esi, eax
call fcn.004b4e4a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4c06a2
test edi, edi
je 0x4c06a2
call esi
test eax, eax
je 0x4c0699
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c0699
test byte [ebp - 0xc], 1
jne 0x4c06a2
or dword [ebp + 0x10], 0x200000
jmp 0x4c06db
mov eax, dword [0x5184f0]
cmp eax, ebx
je 0x4c06db
push eax
call fcn.004b4e4a
pop ecx
test eax, eax
je 0x4c06db
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c06db
mov eax, dword [0x5184f4]
cmp eax, ebx
je 0x4c06db
push eax
call fcn.004b4e4a
pop ecx
test eax, eax
je 0x4c06db
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5184ec]
call fcn.004b4e4a
pop ecx
test eax, eax
je 0x4c06fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c06fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4eff1da0
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7fc6111
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4a377289
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x3020dac
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10085a6
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
push dword [0x101c020]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x44], eax
pop esi
jne 0x10085c6
mov al, 1
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
sete al
ret

Function at 0x10085f8
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101c20c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x18], ebx
xor esi, esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10086f3
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10086f3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call edi
test eax, eax
jne 0x1008695
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10086f2
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
je 0x10086f2
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x10086f2
xor edi, edi
cmp dword [esi], ebx
jbe 0x10086e8
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10086e1
add dword [ebp - 0x10], 8
inc edi
cmp edi, dword [esi]
jb 0x10086c4
jmp 0x10086e8
mov dword [ebp - 0x20], 1
xor eax, eax
cmp edi, dword [esi]
setne al
mov dword [ebp - 0x10], eax
pop edi
cmp dword [ebp - 0x18], ebx
je 0x1008701
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
je 0x100870d
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x14], ebx
pop esi
pop ebx
je 0x100871d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01013069
leave
ret

Function at 0x10087c5
Capabilities:
Create process on windows

Disassembly:
push 5
push 0
push 0x1001f68
push 0x1001f50
push 0x1001f44
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret
Function at 0x1008976
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10089d0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10089c1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10089bd
cmp esi, eax
jae 0x10089c1
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10089af
cmp esi, eax
jb 0x10089c5
xor eax, eax
jmp 0x10089cf
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x100b0f9
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x1017c55
call fcn.01013191
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
push 1
push 0x100225c
push SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.01008bf2
test eax, eax
jne 0x100b1da
push esi
push esi
push esi
push esi
push 0x1002240
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b1da
push 0x100221c
lea ecx, [ebp - 0x10]
call fcn.0100abd2
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
mov byte [ebp - 4], 1
jle 0x100b185
mov edi, 0x1002218
push edi
lea ecx, [ebp - 0x10]
call fcn.0100aaea
mov eax, dword [ebx]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0100a5ca
push edi
lea ecx, [ebp - 0x10]
call fcn.0100aaea
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x50]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x4c], 0x2000100
mov dword [ebp - 0x40], eax
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x44], 0x1001f44
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x50], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.01008d5a
jmp 0x100b1f0
push esi
push esi
push 0x10000
push 0x30000001
push dword [ebp + 8]
mov ecx, edi
call fcn.01009905
lea ecx, [ebp - 0x14]
call fcn.01008bd4
call fcn.0101327d
ret 4

Function at 0x100cbbc
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0100c2f2
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x100cba6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
mov dword [esi + 0x58], eax
setne cl
mov al, cl
pop esi
leave
ret
Function at 0x100d815
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x101c20c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x18c], eax
push 0xa
lea eax, [ebp - 0x188]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__itow]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x1a4], ecx
lea edi, [ebp - 0x1a0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x14
lea eax, [ebp - 0x5c]
push eax
push 0xe
mov esi, 0x400
push esi
mov word [ebp - 0x60], cx
mov word [ebp - 0x34], cx
mov word [ebp - 8], cx
call edi
lea eax, [ebp - 0x5c]
push 0x14
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x88]
push eax
push 0xf
push esi
call edi
lea eax, [ebp - 0x88]
push 0x14
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x30]
push eax
push 0x12
push esi
call edi
mov ebx, dword [sym.imp.msvcrt.dll__wtoi]
lea eax, [ebp - 0x30]
push eax
call ebx
pop ecx
push 0x14
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x30]
push eax
push 0x10
push esi
call edi
lea eax, [ebp - 0x30]
push eax
call ebx
pop ecx
push 0x14
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x30]
push eax
push 0x1010
push esi
call edi
lea eax, [ebp - 0x30]
push eax
call ebx
and dword [ebp - 0x1a4], 0
pop ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x190], eax
push dword [ebp - 0x18c]
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x188]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01013069
leave
ret 0xc

Function at 0x100db40
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x100db7d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp dword [ebp - 4], 0
je 0x100db8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x100db9c
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
leave
ret 0x18
Function at 0x100dba8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp + 0xc]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
jne 0x100dbf0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp dword [ebp - 4], edi
je 0x100dbfe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x100dc0e
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
leave
ret 0x18

Function at 0x100ec09
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0100e54c
test eax, eax
jl 0x100ec1f
mov ecx, esi
pop esi
jmp fcn.0100ebc2
pop esi
ret
Function at 0x1011b4f
Capabilities:
Get disk information

Disassembly:
push 0xc
mov eax, 0x10184c7
call fcn.01013191
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
jne 0x1011b7f
mov esi, 0x80004003
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.01008d5a
mov eax, esi
call fcn.0101327d
ret 8
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], 3
call fcn.0100abd2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.01011738
push 0x101d174
lea ecx, [ebp - 0x10]
call fcn.01009374
mov esi, 0x105
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.01009b61
push esi
push eax
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1011c24
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.01009321
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x1002a50
push dword [ebp - 0x10]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1011bfb
mov dword [ebp - 0x14], 1
jmp 0x1011c3e
push 0x1002a48
push dword [ebp - 0x10]
call esi
test eax, eax
pop ecx
pop ecx
je 0x1011c1b
push 0x1002a3c
push dword [ebp - 0x10]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1011c3e
mov dword [ebp - 0x14], 2
jmp 0x1011c3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1011c38
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x1011c46
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.01008d5a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.01008d5a
mov esi, ebx
jmp 0x1011b6a
Function at 0x101275f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x101c20c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.010126a0
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x10127d2
cmp dword [ebp - 0x94], 5
jb 0x10127f3
jmp 0x10127ef
cmp dword [ebp - 0x88], 1
jne 0x10127f3
cmp dword [ebp - 0x94], 4
ja 0x10127ef
jne 0x10127f3
cmp dword [ebp - 0x90], 0
jbe 0x10127f3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002d14
call fcn.01008926
test eax, eax
jge 0x1012814
mov byte [0x101c55c], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01013069
leave
ret
Function at 0x1012f91
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10197c0
call fcn.010130b0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x101d5b0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1012d43
cmp eax, esi
jne 0x1012d36
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1012d46
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1012d1d
xor esi, esi
inc esi
mov eax, dword [0x101d5ac]
cmp eax, esi
jne 0x1012d59
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1012d88
mov eax, dword [0x101d5ac]
test eax, eax
jne 0x1012d82
mov dword [0x101d5ac], esi
push 0x10014a4
push 0x1001498
call fcn.01012c7f
pop ecx
pop ecx
test eax, eax
je 0x1012d88
jmp 0x1012eac
mov dword [0x101d21c], esi
mov eax, dword [0x101d5ac]
cmp eax, esi
jne 0x1012dac
push 0x1001494
push 0x1001468
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101d5ac], 2
cmp dword [ebp - 0x20], ebx
jne 0x1012db9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101d5c0], ebx
je 0x1012dda
push 0x101d5c0
call fcn.01013a0b
pop ecx
test eax, eax
je 0x1012dda
push ebx
push 2
push ebx
call dword [0x101d5c0]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1012eac
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1012e44
cmp cx, bx
je 0x1012dff
cmp dword [ebp - 0x1c], ebx
jne 0x1012e44
movzx ecx, word [eax]
cmp cx, bx
je 0x1012e14
cmp cx, 0x20
ja 0x1012e14
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1012dff
test byte [ebp - 0x40], 1
je 0x1012e20
movzx ecx, word [ebp - 0x3c]
jmp 0x1012e23
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x101d218], eax
cmp dword [0x101d20c], ebx
jne 0x1012e89
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1012e55
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1012de9
cmp dword [0x101d21c], ebx
jne 0x1012e97
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x101d218]
jmp 0x1012eb8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010130f5
ret
call fcn.01013b55
jmp 0x1012ce0

Function at 0x1013980
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1013993
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101398f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret