joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427a3e
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
push esi
pop ebx
mov dword [ebp - 8], esi
call fcn.0041f2cf
push edx
pop ecx
mov dword [ebp - 0x18], eax
and eax, ecx
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp eax, 0xffffffff
je 0x427ac6
push 2
push esi
push esi
push edi
call fcn.0041f2cf
push eax
pop ecx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x427ac6
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x427b5d
jg 0x427aa0
or esi, esi
je 0x427b5d
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
or eax, eax
jne 0x427ad2
call fcn.00416b81
mov dword [eax], 0xc
call fcn.00416b81
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.00427c1c
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
or eax, eax
jl 0x427afa
jg 0x427af3
cmp esi, 0x1000
jb 0x427afa
mov eax, 0x1000
jmp 0x427afc
push esi
pop eax
push eax
push dword [ebp - 0xc]
push edi
call fcn.0041c714
add esp, 0xc
cmp eax, 0xffffffff
je 0x427b23
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x427b3e
jg 0x427ae5
test esi, esi
je 0x427b3e
jmp 0x427ae5
call fcn.00416b4d
cmp dword [eax], 5
jne 0x427b38
call fcn.00416b81
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.00427c1c
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x427bc3
test eax, eax
jg 0x427bcf
jl 0x427b67
or esi, esi
jae 0x427bcf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0041f2cf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x427ac6
push edi
call fcn.00424a9e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
push eax
pop ebx
push edx
pop eax
mov ecx, ebx
and ecx, eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
jne 0x427bcf
call fcn.00416b81
mov dword [eax], 0xd
call fcn.00416b4d
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x427ac6
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.0041f2cf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x427ac6
xor eax, eax
jmp 0x427acd

Function at 0x402380
Capabilities:
Encode data using xor

Disassembly:
cmp dword [edi], esi
lodsb al, byte [esi]
mov ebp, 0xacb1aff1
pop edi
enter 0xffffffffffffbfc7, 0x54
xchg esp, eax
adc dh, al
mov byte [ecx], 0xef
test eax, 0xedfa559c
mov dh, 0xfa
invalid
Function at 0x404c90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x59b1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 8], 0xffffffff
mov byte [ebx + 0xe8], 1
je 0x404d21
push esi
push edi
mov ax, word [ebx]
lea edi, [ebp - 0xa8]
mov ecx, 0x28
mov esi, str.X:6AB9CAA6_61D5_4FD0_9A04_D08AFD2F894C.51F126E4_6A4C_4CB0_AECF_2D1B593E868E
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 2
push 0
push 0
movsw word es:[edi], word [esi]
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0xa8]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 8]
call esi
pop edi
mov dword [ebx + 8], 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00522aae
mov esp, ebp
pop ebp
ret
Function at 0x4ec30f
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.004174b6
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 0x4ec34b
call fcn.004ec52e
mov dword [esi + 0xc], 1
jmp 0x4ec350
call fcn.004ec52e
cmp dword [esi], 0
je 0x4ec399
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4ec373
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00417c44
jmp 0x4ec384
push 0xff
mov ecx, esi
call fcn.004020f0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00411c33
jmp 0x4ec3bd
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 0x4ec3bd
push dword [esi]
push dword [ebp - 4]
call fcn.00420ff1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4ec483
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.004ec52e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4ec4cb
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417c44
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00411c33
jmp 0x4ec4d6
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00420ff1
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4088d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [ebx]
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x4150a0
push ebx
push esi
mov dword [0x4274f0], eax
call fcn.0040feb0
add esp, 0xc
cmp eax, 0xffffffff
je 0x408982
mov edi, dword [sym.imp.QtCore4.dll_class_QTextStream____cdecl_flush_class_QTextStream__]
mov esi, dword [sym.imp.QtCore4.dll_public:_class_QTextStream____thiscall_QTextStream::operator___char_const__]
mov ebp, dword [sym.imp.QtCore4.dll_public:_class_QTextStream____thiscall_QTextStream::operator___char_]
cmp eax, 0x3f
je 0x40892e
cmp eax, 0x73
je 0x408920
cmp eax, 0x76
jne 0x408966
mov byte [0x40e788], 1
jmp 0x408966
fld qword [0x415098]
fstp qword [0x40e782]
jmp 0x408966
mov eax, dword [0x427880]
cmp eax, 0x3f
je 0x408992
mov edx, dword [0x4274f0]
movzx ecx, al
push str._unrecognized___ignored_n
push ecx
push str._:_option__
push edx
mov ecx, 0x4274f4
call esi
mov ecx, eax
call esi
mov ecx, eax
call ebp
mov ecx, eax
call esi
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x10]
push 0x4150a0
push ebx
push eax
call fcn.0040feb0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x408908
mov esi, dword [esp + 0x10]
mov eax, dword [0x42748c]
sub esi, eax
je 0x4089af
pop edi
pop esi
lea eax, [ebx + eax*4]
pop ebp
ret
mov ecx, dword [0x427288]
push ecx
push 0x41506c
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 0
call dword [sym.imp.MSVCR90.dll_exit]
pop edi
pop esi
xor eax, eax
pop ebp
ret
Function at 0x40d300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41208d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0xc], esi
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QTextEdit::constructor_class_QWidget__]
mov dword [esi], vtable.MdiChild.1.0
mov dword [esi + 8], vtable.MdiChild.0
mov eax, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x1c], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
mov dword [esi + 0x24], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [sym.imp.QtCore4.dll_struct_QString::Data_QString::shared_null]
mov dword [esi + 0x34], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
push 1
push 0x37
mov ecx, esi
mov byte [esp + 0x1c], 3
call dword [sym.imp.QtGui4.dll_public:_void___thiscall_QWidget::setAttribute_enum_Qt::WidgetAttribute__bool_]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x21], bl
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x38], 1
mov byte [esi + 0x20], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40f88a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4273c0]
jne 0x40f894
repz ret
jmp fcn.0040f8ac
Function at 0x410350
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
add esp, 0xc
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray___thiscall_QString::toLocal8Bit_void_]
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x410392
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
push 8
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call fcn.004102d0
lea ecx, [esp + 4]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::detach_void_]
mov ecx, dword [esp + 0x20]
lea edx, [esp]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edx
call sub.QtCore4.dll_void___cdecl_qWinMain_struct_HINSTANCE_____struct_HINSTANCE_____char___int__int___class_QVector_char____
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 0x18
cmp ecx, 1
je 0x4103f6
mov eax, dword [esp]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
lea ecx, [esp + 8]
call fcn.00410120
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
push esi
add eax, 0x10
push eax
push ecx
call fcn.00408ad0
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x41042e
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x41042e
mov eax, dword [esp + 4]
push 4
push eax
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QVectorData::free_struct_QVectorData___int_]
add esp, 8
mov ecx, dword [esp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x410449
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
Function at 0x4027f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004038b0
test esi, esi
jne 0x40282e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004039a0
jmp 0x40284c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040269c
mov edi, eax
test esi, esi
je 0x40284c
cmp dword [ebx], 0
je 0x40284c
dec esi
jmp 0x402835
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d7c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004038f4
and ebx, ebx
ret

Function at 0x40410c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
invalid
call dword [eax - 0x18]
insb byte es:[edi], dx
idiv edi
call [ecx + 0x50]

Function at 0x405ab8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [eax + 8]
push eax
call fcn.004038f4
mov esp, 0x8ba8030f
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
Function at 0x405d1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
or ecx, dword [ebp - 0x7db7b]
call dword [eax - 0x18]
mov bh, 0xe0
invalid
cld
invalid
and al, 0xdf
mov cl, al
mov eax, 1
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jg case.default.0x405d3e
inc dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
lea esi, [esi + ebx*8]
mov eax, dword [esi]
movzx edx, byte [esi + 4]
jmp dword [edx*4 + 0x405d45]
xor eax, eax
call fcn.00405f4b
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
sub ecx, edx
mov ebx, dword [ebp - 4]
call fcn.00405b6c
lea esi, [ebp - 0x49]
mov edx, dword [ebp - 0x24]
cmp edx, 0x20
jbe 0x405dad
xor edx, edx
mov ebx, ecx
sub cl, 0x44
je 0x40588c
mov ecx, 0x10
cmp bl, 0x58
je 0x40588c
mov ecx, 0xa
cmp bl, 0x55
je 0x40588c
jmp case.0x405d3e.1
lea esi, [ebp - 0x59]
mov edx, dword [ebp - 0x24]
mov ebx, ecx
cmp edx, 0x10
jbe 0x405de5
xor edx, edx
sub cl, 0x44
je 0x405840
mov ecx, 0x10
cmp bl, 0x58
je 0x405840
mov ecx, 0xa
cmp bl, 0x55
je 0x405840
jmp case.0x405d3e.1
cmp cl, 0x53
jne case.0x405d3e.1
mov ecx, 1
ret
cmp cl, 0x53
jne case.0x405d3e.1
mov esi, eax
lodsb al, byte [esi]
movzx ecx, al
jmp 0x405e8d
cmp ecx, dword [ebp - 0x24]
ja 0x405e93
ret
mov ecx, dword [ebp - 0x24]
ret
mov bh, 0
mov esi, eax
mov bl, 0
cmp cl, 0x47
je 0x405f20
mov bl, 1
cmp cl, 0x45
je 0x405f20
mov bl, 2
cmp cl, 0x46
je 0x405f01
mov bl, 3
cmp cl, 0x4e
je 0x405f01
cmp cl, 0x4d
jne case.0x405d3e.1
mov bl, 4
mov eax, 0x12
mov edx, dword [ebp - 0x24]
cmp edx, eax
jbe 0x405f32
mov edx, 2
cmp cl, 0x4d
jne 0x405f32
movzx edx, byte [0x40a684]
jmp 0x405f32
mov eax, dword [ebp - 0x24]
mov edx, 3
cmp eax, 0x12
jbe 0x405f32
mov eax, 0xf
push ebx
push eax
push edx
lea eax, [ebp - 0x69]
mov edx, esi
movzx ecx, bh
mov ebx, dword [ebp - 4]
call fcn.004060cc
mov ecx, eax
lea esi, [ebp - 0x69]
ret
Function at 0xd17370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xd1738e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xd40074
push ecx
mov edi, eax
call fcn.00d2b198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd173cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d2b02e
push esi
call fcn.00d2afb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd1a850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xd1a8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xd45720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd1a8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00d2b1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xd1a8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd45720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd1a92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00d2c082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd1a957
mov word [eax], si
add eax, 2
push eax
call fcn.00d2c030
add esp, 4
jmp 0xd1a959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xd1a8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd1a8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xd1aff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xd1b080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd1b0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd40458
push ecx
call fcn.00d2b1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d2b1e1
add esp, 0x10
jmp 0xd1b0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d2b20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d2adff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d1b050
mov eax, dword [0xd45728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xd1b13b
push esi
call fcn.00d1afb0
add esp, 4
mov dword [0xd45728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd1b14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00d1aff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xd1e440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd1e4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xd1e48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd1e471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd1e47e
add edx, ecx
cmp ebx, edx
jb 0xd1e48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd1e467
xor ecx, ecx
jmp 0xd1e4a2
test eax, eax
jne 0xd1e492
xor ecx, ecx
jmp 0xd1e4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00d1e3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd1e8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xd1e921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xd1e946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xd1e96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xd1e993
push ecx
push esi
call fcn.00d1e4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xd1fc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xd1fc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd1fc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd1fc38
add edx, eax
cmp ebx, edx
jb 0xd1fc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd1fc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd1fc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xd1fc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xd1fcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd1fc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd1fca8
add edx, ecx
cmp ebx, edx
jb 0xd1fcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd1fc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd1ff60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00d2c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd1fffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xd1ffdd
lea eax, [esp + 0x18]
push eax
jmp 0xd1ffe2
push 0xd45720
call fcn.00d2bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd1ffb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd1ff40
push 4
push ecx
push eax
call fcn.00d2c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret