joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100322b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100322d4
xor eax, eax
jmp 0x1003240c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100322f2
xor eax, eax
jmp 0x1003240c
push 1
lea eax, [ebp - 8]
push eax
push 0x23ae
push 0x3ad6
lea eax, [ebp - 0xc]
push eax
call fcn.10032177
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x1003231b
xor eax, eax
jmp 0x1003240c
push 0x28f1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 1
push 0x7443
call fcn.10031ff8
add esp, 0x20
push dword [ebp + 8]
push 0x2c3c
push 0
push dword [ebp - 8]
push 0x6e14
push dword [ebp - 4]
call fcn.1002c2d9
add esp, 0x18
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1003220a
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x10032394
push 0x762c
push dword [ebp - 0x14]
push 1
push 0x7c90
push dword [ebp - 4]
call fcn.1002d660
add esp, 0x14
push dword [ebp - 4]
call fcn.10031d47
pop ecx
test eax, eax
jne 0x100323a5
xor eax, eax
jmp 0x1003240c
push 1
lea eax, [ebp - 4]
push eax
call fcn.10032261
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x100323f4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x100323d1
xor eax, eax
jmp 0x1003240c
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100323ea
xor eax, eax
jmp 0x1003240c
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10032405
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10032409
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x100809f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008b38c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10072f74
mov dword [ebp - 0x14], eax
cmp dword [0x10677d64], esi
jne 0x10080ae8
push 0x800
push esi
push 0x100078ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10080a75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10080bc8
push esi
push esi
push 0x100078ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10080bc8
push 0x100078c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10080bc8
push eax
call ebx
push 0x100078d0
push edi
mov dword [0x10677d64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100078e0
push edi
mov dword [0x10677d68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100078f4
push edi
mov dword [0x10677d6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10677d74], eax
test eax, eax
je 0x10080ae5
push 0x10007910
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10677d70], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10080b0d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10080b00
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10080b22
push 4
pop eax
jmp 0x10080bca
cmp dword [ebp - 0x14], esi
je 0x10080b22
push dword [0x10677d64]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10080b07
mov eax, dword [0x10677d70]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10080b80
cmp dword [0x10677d74], edi
je 0x10080b80
push eax
call ebx
push dword [0x10677d74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10080b80
test eax, eax
je 0x10080b80
call ecx
test eax, eax
je 0x10080b75
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10080b75
test byte [ebp - 8], 1
jne 0x10080b80
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10080bb0
mov eax, dword [0x10677d68]
cmp eax, edi
je 0x10080bad
push eax
call ebx
test eax, eax
je 0x10080bad
call eax
mov esi, eax
test esi, esi
je 0x10080bad
mov eax, dword [0x10677d6c]
cmp eax, edi
je 0x10080bad
push eax
call ebx
test eax, eax
je 0x10080bad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10677d64]
call ebx
test eax, eax
je 0x10080bc8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10080bca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x4251e5
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.0041e15f
and dword [ebp - 4], 0
cmp dword [0x44f6a8], 0
mov ebx, eax
jne 0x425296
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425347
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425347
push eax
call fcn.0041e0ed
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f6a8], eax
call esi
push eax
call fcn.0041e0ed
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f6ac], eax
call esi
push eax
call fcn.0041e0ed
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f6b0], eax
call esi
push eax
call fcn.0041e0ed
pop ecx
mov dword [0x44f6b8], eax
test eax, eax
je 0x425296
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e0ed
pop ecx
mov dword [0x44f6b4], eax
mov eax, dword [0x44f6b4]
cmp eax, ebx
je 0x4252ee
cmp dword [0x44f6b8], ebx
je 0x4252ee
push eax
call fcn.0041e168
push dword [0x44f6b8]
mov esi, eax
call fcn.0041e168
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4252ee
test edi, edi
je 0x4252ee
call esi
test eax, eax
je 0x4252e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4252e5
test byte [ebp - 0xc], 1
jne 0x4252ee
or dword [ebp + 0x10], 0x200000
jmp 0x425327
mov eax, dword [0x44f6ac]
cmp eax, ebx
je 0x425327
push eax
call fcn.0041e168
pop ecx
test eax, eax
je 0x425327
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425327
mov eax, dword [0x44f6b0]
cmp eax, ebx
je 0x425327
push eax
call fcn.0041e168
pop ecx
test eax, eax
je 0x425327
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f6a8]
call fcn.0041e168
pop ecx
test eax, eax
je 0x425347
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425349
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x54846e
Capabilities:
Encode data using xor

Disassembly:
call fcn.00549414
call fcn.00542c4a
stosd dword es:[edi], eax
xor al, byte [ecx + 0x37]
daa
ror byte [edx + edi*2], 1
cmp al, 0xd5
invalid
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x406688
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406b30
mov byte [esp], al
cmp byte [esp], 0
jne 0x406811
test edi, edi
je 0x406811
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406751
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40672c
cmp edi, 0xffffffff
je 0x4066ed
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4066ed
mov byte [esp], 0
jmp 0x406811
cmp dword [esi], 1
jg 0x40672c
cmp dword [esi], 0
jne 0x40671e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40671e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406811
lea eax, [esp + 0xc]
call fcn.00406368
dec ebp
test ebp, ebp
jg 0x4066d2
cmp edi, 0xffffffff
je 0x406751
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40674f
mov byte [esp], 0
jmp 0x406811
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406696
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406751
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040688c
mov edx, eax
mov ebx, dword [0x4bb8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4067b5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4067b3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4067b5
xor edi, edi
cmp byte [esp], 0
je 0x4067db
mov ebx, dword [esi]
test bl, 1
jne 0x4067f1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067bb
mov byte [esp + 1], 1
jmp 0x4067f1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4067db
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406768
cmp byte [esp], 0
je 0x406811
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4076b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bb058], 0
je 0x40771f
cmp word [0x4bb344], 0xd7b2
jne 0x4076e1
cmp dword [0x4bb34c], 0
jbe 0x4076e1
mov eax, 0x4bb340
call dword [0x4bb35c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40774c
call fcn.00408240
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b7032], 0
jne 0x40773b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call fcn.00403780
pop edx
ret
Function at 0x401560
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x40871c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x367c]
mov dword [esp + 0x18], 0x24
call fcn.00404700
lea ecx, [esi + 0xb68]
mov byte [esp + 0x18], 0x23
call fcn.00403d60
lea ecx, [esi + 0xb14]
mov byte [esp + 0x18], 0x22
call fcn.00403d60
lea ecx, [esi + 0xac0]
mov byte [esp + 0x18], 0x21
call fcn.00403d60
lea ecx, [esi + 0xa6c]
mov byte [esp + 0x18], 0x20
call fcn.00403d60
lea ecx, [esi + 0xa18]
mov byte [esp + 0x18], 0x1f
call fcn.004033a0
lea ecx, [esi + 0x9c4]
mov byte [esp + 0x18], 0x1e
call fcn.00403d60
lea ecx, [esi + 0x970]
mov byte [esp + 0x18], 0x1d
call fcn.00403d60
lea ecx, [esi + 0x91c]
mov byte [esp + 0x18], 0x1c
call fcn.00403d60
lea ecx, [esi + 0x8c8]
mov byte [esp + 0x18], 0x1b
call fcn.00403d60
lea ecx, [esi + 0x870]
mov byte [esp + 0x18], 0x1a
call fcn.00403f30
lea ecx, [esi + 0x81c]
mov byte [esp + 0x18], 0x19
call fcn.00403d60
lea ecx, [esi + 0x7c8]
mov byte [esp + 0x18], 0x18
call fcn.00403d60
mov byte [esp + 0x18], 0x17
lea ecx, [esi + 0x774]
call fcn.004033a0
lea ecx, [esi + 0x720]
mov byte [esp + 0x18], 0x16
call fcn.00403d60
lea ecx, [esi + 0x6cc]
mov byte [esp + 0x18], 0x15
call fcn.004033a0
lea ecx, [esi + 0x674]
mov byte [esp + 0x18], 0x14
call fcn.004030a0
lea ecx, [esi + 0x61c]
mov byte [esp + 0x18], 0x13
call fcn.004030a0
lea ecx, [esi + 0x5c4]
mov byte [esp + 0x18], 0x12
call fcn.00403f30
lea ecx, [esi + 0x56c]
mov byte [esp + 0x18], 0x11
call fcn.00403f30
lea ecx, [esi + 0x514]
mov byte [esp + 0x18], 0x10
call fcn.004030a0
lea ecx, [esi + 0x4c0]
mov byte [esp + 0x18], 0xf
call fcn.00403d60
lea ecx, [esi + 0x46c]
mov byte [esp + 0x18], 0xe
call fcn.00403d60
lea ecx, [esi + 0x414]
mov byte [esp + 0x18], 0xd
call fcn.004030a0
lea ecx, [esi + 0x3b4]
mov byte [esp + 0x18], 0xc
call fcn.004036d0
lea ecx, [esi + 0x354]
mov byte [esp + 0x18], 0xb
call fcn.004036d0
lea ecx, [esi + 0x2f4]
mov byte [esp + 0x18], 0xa
call fcn.004036d0
lea ecx, [esi + 0x294]
mov byte [esp + 0x18], 9
call fcn.004036d0
lea ecx, [esi + 0x234]
mov byte [esp + 0x18], 8
call fcn.004036d0
lea ecx, [esi + 0x1e0]
mov byte [esp + 0x18], 7
call fcn.00403d60
lea ecx, [esi + 0x188]
mov byte [esp + 0x18], 6
call fcn.004030a0
lea ecx, [esi + 0x134]
mov byte [esp + 0x18], 5
call fcn.00403d60
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 4
call fcn.00403f30
lea ecx, [esi + 0x7c]
mov byte [esp + 0x18], 3
call fcn.004036d0
lea edi, [esi + 0x6c]
mov dword [esp + 0xc], edi
mov dword [edi], 0x4094c0
mov ecx, edi
mov byte [esp + 0x18], 0x25
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0x68]
mov dword [edi], 0x4094ac
mov byte [esp + 0x18], 1
call fcn.004042aa
lea ecx, [esi + 0x60]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CImageList::CImageList
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401578
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x40871c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x367c]
mov dword [esp + 0x18], 0x24
call fcn.00404700
lea ecx, [esi + 0xb68]
mov byte [esp + 0x18], 0x23
call fcn.00403d60
lea ecx, [esi + 0xb14]
mov byte [esp + 0x18], 0x22
call fcn.00403d60
lea ecx, [esi + 0xac0]
mov byte [esp + 0x18], 0x21
call fcn.00403d60
lea ecx, [esi + 0xa6c]
mov byte [esp + 0x18], 0x20
call fcn.00403d60
lea ecx, [esi + 0xa18]
mov byte [esp + 0x18], 0x1f
call fcn.004033a0
lea ecx, [esi + 0x9c4]
mov byte [esp + 0x18], 0x1e
call fcn.00403d60
lea ecx, [esi + 0x970]
mov byte [esp + 0x18], 0x1d
call fcn.00403d60
lea ecx, [esi + 0x91c]
mov byte [esp + 0x18], 0x1c
call fcn.00403d60
lea ecx, [esi + 0x8c8]
mov byte [esp + 0x18], 0x1b
call fcn.00403d60
lea ecx, [esi + 0x870]
mov byte [esp + 0x18], 0x1a
call fcn.00403f30
lea ecx, [esi + 0x81c]
mov byte [esp + 0x18], 0x19
call fcn.00403d60
lea ecx, [esi + 0x7c8]
mov byte [esp + 0x18], 0x18
call fcn.00403d60
mov byte [esp + 0x18], 0x17
lea ecx, [esi + 0x774]
call fcn.004033a0
lea ecx, [esi + 0x720]
mov byte [esp + 0x18], 0x16
call fcn.00403d60
lea ecx, [esi + 0x6cc]
mov byte [esp + 0x18], 0x15
call fcn.004033a0
lea ecx, [esi + 0x674]
mov byte [esp + 0x18], 0x14
call fcn.004030a0
lea ecx, [esi + 0x61c]
mov byte [esp + 0x18], 0x13
call fcn.004030a0
lea ecx, [esi + 0x5c4]
mov byte [esp + 0x18], 0x12
call fcn.00403f30
lea ecx, [esi + 0x56c]
mov byte [esp + 0x18], 0x11
call fcn.00403f30
lea ecx, [esi + 0x514]
mov byte [esp + 0x18], 0x10
call fcn.004030a0
lea ecx, [esi + 0x4c0]
mov byte [esp + 0x18], 0xf
call fcn.00403d60
lea ecx, [esi + 0x46c]
mov byte [esp + 0x18], 0xe
call fcn.00403d60
lea ecx, [esi + 0x414]
mov byte [esp + 0x18], 0xd
call fcn.004030a0
lea ecx, [esi + 0x3b4]
mov byte [esp + 0x18], 0xc
call fcn.004036d0
lea ecx, [esi + 0x354]
mov byte [esp + 0x18], 0xb
call fcn.004036d0
lea ecx, [esi + 0x2f4]
mov byte [esp + 0x18], 0xa
call fcn.004036d0
lea ecx, [esi + 0x294]
mov byte [esp + 0x18], 9
call fcn.004036d0
lea ecx, [esi + 0x234]
mov byte [esp + 0x18], 8
call fcn.004036d0
lea ecx, [esi + 0x1e0]
mov byte [esp + 0x18], 7
call fcn.00403d60
lea ecx, [esi + 0x188]
mov byte [esp + 0x18], 6
call fcn.004030a0
lea ecx, [esi + 0x134]
mov byte [esp + 0x18], 5
call fcn.00403d60
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 4
call fcn.00403f30
lea ecx, [esi + 0x7c]
mov byte [esp + 0x18], 3
call fcn.004036d0
lea edi, [esi + 0x6c]
mov dword [esp + 0xc], edi
mov dword [edi], 0x4094c0
mov ecx, edi
mov byte [esp + 0x18], 0x25
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0x68]
mov dword [edi], 0x4094ac
mov byte [esp + 0x18], 1
call fcn.004042aa
lea ecx, [esi + 0x60]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CImageList::CImageList
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x403b30
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x408bc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x409794
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
push ecx
push 1
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 8], 0x4094c0
lea ecx, [esp + 8]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x18
Function at 0x405140
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
push edi
xor edi, edi
sub eax, edi
mov dword [esp + 8], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edi
je 0x4052a1
dec eax
je 0x40520b
dec eax
je 0x405175
pop edi
xor al, al
pop esi
add esp, 0x10
ret
lea eax, [esp + 8]
push eax
push str.Software_farstone_virtualdrive0100
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x405196
pop edi
xor al, al
pop esi
add esp, 0x10
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push str.client
push ecx
call esi
cmp dword [esp + 0xc], 4
jbe 0x4051d2
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
add esp, 0x10
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.client
push eax
call esi
mov ecx, dword [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x405333
pop edi
xor al, al
pop esi
add esp, 0x10
ret
lea edx, [esp + 8]
push edx
push str.Software_farstone_virtualdrive0100
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40522c
pop edi
xor al, al
pop esi
add esp, 0x10
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push edi
push str.admin
push eax
call esi
cmp dword [esp + 0xc], 4
jbe 0x405268
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
add esp, 0x10
ret
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
push str.admin
push edx
call esi
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x405333
pop edi
xor al, al
pop esi
add esp, 0x10
ret
lea ecx, [esp + 8]
push ecx
push str.Software_farstone_virtualdrive0100
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4052c2
pop edi
xor al, al
pop esi
add esp, 0x10
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
push str.retail
push edx
call esi
cmp dword [esp + 0xc], 4
jbe 0x4052fe
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
add esp, 0x10
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push str.retail
push ecx
call esi
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x405333
pop edi
xor al, al
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
cmp eax, 1
pop esi
sete al
add esp, 0x10
ret
Function at 0x4081ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408257
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x40c428
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40824a
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x408259
xor eax, eax
pop esi
leave
ret 4

Function at 0x408d0a
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
mov dword [0x408d01], ebp
xor ebx, ebx
push Ordinal_1
push 0x4000
push 0x8000
push Ordinal_1
push 0x20
push Ordinal_1
push ebx
push ebx
push 0x400
push 0x4000
push Ordinal_1
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
push ebx
push Ordinal_1
push ebx
push 0x200
push ebx
push 0x100
push ebx
push 0x10
push 0x10000
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub edx, edx
sub ecx, ecx
mov cl, 0x52
inc edx
loop 0x408d7e
call fcn.00408db7
add ecx, 0x527a
push ecx
mov ebx, 0x296d
stc
mov al, byte [ecx]
xor ax, dx
stc
cld
xchg byte [ecx], al
cld
add ecx, 1
dec ebx
or ebx, ebx
jne 0x408d93
pop ecx
mov edx, dword [ebp - 8]
mov dword fs:[0], edx
leave
mov dword [esp + 0x18], ecx
popal
jmp ecx