joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426453
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x426492
call fcn.0042c28c
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x426492
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42649a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0042c43b
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x426e91
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x426f1d
cmp dword [esi + 0x20], 0
je 0x426f1d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x426f1d
cmp dword [ebp + 8], 0
je 0x426f1d
xor edi, edi
mov ebx, edi
call fcn.0042c28c
push 0x586228
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x426f01
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x426f1d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004c7d89
mov edi, eax
add esp, 0xc
test edi, edi
je 0x426f19
mov ecx, esi
call fcn.00426c2f
mov eax, edi
jmp 0x426f1f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42b860
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x573044
call fcn.00555fab
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x42b886
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42b8e0
lea ecx, [ebp - 0x10]
call fcn.004028a0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5829ec]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0055c58e
push eax
call fcn.004029c0
add esp, 0x14
test esi, esi
je 0x42b8d3
push esi
call fcn.0055c36a
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402c70
mov eax, ebx
call fcn.00555f79
ret 8
Function at 0x441513
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x44152c
call fcn.0042c28c
mov esi, dword [eax + 0xc]
push 0x5870e8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x44156e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44156e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x44156e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00441577
jmp 0x441570
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4c97df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4c9835
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c980e
call fcn.00420c92
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4c9823
call fcn.00420c92
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4c9835
call fcn.00420c92
call fcn.0042c28c
cmp dword [eax + 0x3c], 0
je 0x4c984a
push edi
mov ecx, ebx
call fcn.004c8f02
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004c9a30
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c9873
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c987f
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4ca89c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0042b43d
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4ca8d8
call fcn.004caab9
mov dword [esi + 0xc], 1
jmp 0x4ca8dd
call fcn.004caab9
cmp dword [esi], 0
je 0x4ca928
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x4ca903
push edi
call fcn.00402850
lea ecx, [edi + 1]
push ecx
jmp 0x4ca912
push 0xff
call fcn.00402e00
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00402800
pop edi
jmp 0x4ca94c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4ca94c
push dword [esi]
push dword [ebp - 4]
call fcn.0042e9c1
pop esi
leave
ret 0xc
Function at 0x4caa10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004caab9
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4caa58
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00402850
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00402800
jmp 0x4caa63
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042e9c1
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x51c142
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0055117f
call fcn.0042c2e0
cmp dword [eax + 0x14], 0
jne 0x51c15d
mov ecx, esi
pop esi
jmp fcn.0051b466
pop esi
ret

Function at 0x51c232
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0056554a
pop ecx
test eax, eax
jne 0x51c274
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041d412
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x51c23a
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x537f95
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401e90
call fcn.0042c2e0
cmp dword [eax + 0x14], 0
jne 0x537fb0
mov ecx, esi
pop esi
jmp fcn.00537806
pop esi
ret

Function at 0x56da9f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056d75f
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
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 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
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x421c50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421c72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421c79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421c68
mov eax, 1
add ebx, ebx
jne 0x421c8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421c80
jne 0x421c9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c80
xor ecx, ecx
sub eax, 3
jb 0x421cb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421d22
mov ebp, eax
add ebx, ebx
jne 0x421cbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421cc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421cec
inc ecx
add ebx, ebx
jne 0x421cd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421ccd
jne 0x421ce9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421ccd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421d0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421cfd
jmp 0x421c6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421d0c
add edi, ecx
jmp 0x421c6e
pop esi
mov edi, esi
mov ecx, 0x844
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421d2a
cmp byte [edi], 0xd
jne 0x421d2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x421d2f
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421da7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x228e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2299c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421d5c
mov ecx, edi
jns 0x421d8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x229a0]
or eax, eax
je 0x421da1
mov dword [ebx], eax
add ebx, 4
jmp 0x421d79
call dword [esi + 0x229a4]
popal
jmp section.UPX0
Function at 0x405c70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9152
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x50d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x405ccc
mov dword [ebx], 0x4f4634
mov dword [ebx + 0x10], 0x4f462c
mov dword [ebx + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [ebx + 0x18]
mov ecx, ebx
push edi
call fcn.00409590
lea edx, [ebx + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 4
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0047cddf
add esp, 4
mov esi, eax
push 1
mov byte [ebp - 4], 5
call fcn.0046318a
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [edi + 0xc], eax
add esp, 4
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], esi
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ea80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
push str.advapi32.dll
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x40eaab
mov ecx, str.advapi32.dll
call fcn.0040f280
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f4678
push ebx
call esi
push str.RegCreateKeyExW
push ebx
mov dword [edi + 4], eax
call esi
push 0x4f4698
push ebx
mov dword [edi + 8], eax
call esi
push str.RegSetValueExW
push ebx
mov dword [edi + 0x10], eax
call esi
push str.RegEnumKeyExW
push ebx
mov dword [edi + 0x14], eax
call esi
push str.RegEnumValueW
push ebx
mov dword [edi + 0x18], eax
call esi
push str.RegDeleteValueW
push ebx
mov dword [edi + 0x1c], eax
call esi
push 0x4f46ec
push ebx
mov dword [edi + 0x20], eax
call esi
mov ecx, dword [edi]
mov dword [edi + 0xc], eax
test ecx, ecx
je 0x40eb18
push ecx
call eax
mov dword [edi], 0
cmp dword [ebp + 0x10], 0
je 0x40eb37
mov eax, dword [edi + 4]
push edi
push 1
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
mov eax, dword [edi + 8]
push edi
push 0
push 0xf003f
push 0
push 0x4f46f8
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x411d10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9cab
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0x238], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x411ed3
lea eax, [ebp - 0x21c]
push eax
call fcn.004ac04c
mov ax, word [ebp - 0x21c]
lea ebx, [ebp - 0x21c]
add esp, 4
test ax, ax
je 0x411ed3
movzx ecx, ax
nop dword [eax]
movzx eax, cx
mov dword [ebp - 0x23c], eax
cmp cx, 0x43
jb 0x411ea6
push ecx
lea eax, [ebp - 0x234]
push eax
call fcn.00412780
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x411e63
mov edx, dword [esi]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x411df7
mov ecx, dword [ebp - 0x23c]
cmp word [eax + 0x10], cx
jae 0x411de3
mov eax, dword [eax + 8]
jmp 0x411de7
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x411dd8
cmp esi, edx
je 0x411df7
cmp cx, word [esi + 0x10]
jae 0x411e3b
lea eax, [ebp - 0x23c]
push ecx
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
push eax
push ecx
mov ecx, dword [ebp - 0x238]
call fcn.00415200
mov ecx, dword [ebp - 0x238]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x244]
push eax
call fcn.00415240
mov esi, dword [ebp - 0x244]
mov edi, dword [ebp - 0x224]
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x234]
cmp ecx, eax
je 0x411e5d
cmp dword [ebp - 0x220], 8
push edi
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00410170
mov esi, dword [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x411ea6
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411e9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ef8
push edx
push ecx
call fcn.0047ce0f
add esp, 8
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411eb0
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
movzx eax, word [ebx]
mov ecx, eax
test ax, ax
jne 0x411d90
cmp dword [esi + 4], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047ce22
mov esp, ebp
pop ebp
ret 4
call fcn.004895af
int3
Function at 0x41bc30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0xc], 0
push esi
je 0x41bc8a
mov dword [0x510a6c], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x51053c], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x50db58
je 0x41bc75
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x41bc67
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, 0x50db58
call fcn.00410170
push 0
push 0
push 0
push 0x423da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [ebp + 8]
push esi
push ecx
push str.time.windows.com
call fcn.0041bcf0
test eax, eax
jne 0x41bcb1
push esi
push ecx
push str.time.nist.gov
call fcn.0041bcf0
test eax, eax
jne 0x41bcb1
xor esi, esi
jmp 0x41bcb6
mov esi, 1
cmp dword [ebp + 0xc], 0
je 0x41bcdc
mov eax, dword [0x510a68]
mov dword [0x510a6c], 1
test eax, eax
je 0x41bcdc
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc