joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045aa
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xc
call fcn.01005786
test eax, eax
pop ecx
je 0x100456f
mov ecx, eax
call fcn.010044fd
mov ebx, eax
jmp 0x1004571
xor ebx, ebx
mov esi, dword [ebp + 8]
cmp dword [esi], 0x18
jne 0x100460a
test ebx, ebx
je 0x100460a
lea eax, [ebp - 4]
push eax
push 0x1003284
push 0x17
push 0
push 0x1003274
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x1004602
push dword [esi + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0x2710
push eax
call dword [ecx + 0x10]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10045c9
push 0x7f05
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push dword [esi + 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x14]
push dword [esi + 0xc]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push dword [esi + 4]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0x3e8
push ebx
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
jmp 0x100460f
mov edi, 0x80070057
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1004b6c
Capabilities:
Parse pe header
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10070b8]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x41c]
push eax
push 0xf003f
xor esi, esi
push esi
push 0x100229c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004b9d
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push esi
mov esi, 0x100228c
push esi
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004b91
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1004b6c
push 0x1002278
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1004b91
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005458
leave
ret 4
Function at 0x10051bc
Capabilities:
Compare security identifiers

Disassembly:
push 0x11c
push 0x10030b0
call fcn.01005794
mov eax, dword [0x10070b8]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push 0x100309c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x12c], ebx
cmp ebx, esi
je 0x10051b5
push 0x1003090
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x128], eax
cmp eax, esi
je 0x10051a6
push esi
push esi
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x10051a6
lea eax, [ebp - 0x120]
push eax
call dword [ebp - 0x128]
mov dword [ebp - 0x124], eax
jmp 0x10051ac
mov dword [ebp - 0x124], esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10051cb
mov dword [ebp - 0x124], esi
jmp 0x10051cb
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x124]
push 0x1003038
call fcn.01004a31
pop ecx
pop ecx
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x1c]
call fcn.01005458
call fcn.010057cf
ret 4
Function at 0x10024eb
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002968
call fcn.01002694
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1004370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002300
cmp eax, esi
jne 0x10022f3
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002303
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10022da
xor esi, esi
inc esi
mov eax, dword [0x100436c]
cmp eax, esi
jne 0x1002316
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002351
mov eax, dword [0x100436c]
test eax, eax
jne 0x100234b
mov dword [0x100436c], esi
push 0x1001170
push 0x1001164
call fcn.01002257
pop ecx
pop ecx
test eax, eax
je 0x1002351
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100241b
mov dword [0x1004034], esi
mov eax, dword [0x100436c]
cmp eax, esi
jne 0x1002375
push 0x1001160
push 0x1001158
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100436c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002382
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004374], ebx
je 0x10023a3
push 0x1004374
call fcn.01002609
pop ecx
test eax, eax
je 0x10023a3
push ebx
push 2
push ebx
call dword [0x1004374]
push dword [0x100401c]
push dword [0x1004020]
push dword [0x1004018]
call fcn.01001972
add esp, 0xc
mov dword [0x1004030], eax
cmp dword [0x1004024], ebx
jne 0x1002401
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004034], ebx
jne 0x100240f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004030]
call fcn.010026d9
ret
call fcn.010027e1
jmp 0x10022b8
Function at 0x11007c30
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x11007dfd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x11007c5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x11007c61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11007c50
mov eax, 1
add ebx, ebx
jne 0x11007c73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x11007c68
jne 0x11007c84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x11007c68
xor ecx, ecx
sub eax, 3
jb 0x11007c98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x11007d0a
mov ebp, eax
add ebx, ebx
jne 0x11007ca3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x11007cb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x11007cd4
inc ecx
add ebx, ebx
jne 0x11007cc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x11007cb5
jne 0x11007cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x11007cb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x11007cf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x11007ce5
jmp 0x11007c56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x11007cf4
add edi, ecx
jmp 0x11007c56
pop esi
mov edi, esi
mov ecx, 0x13
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x11007d12
cmp byte [edi], 0
jne 0x11007d12
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 al, bl
loop 0x11007d17
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x11007d8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x79d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7a0c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x11007d44
mov ecx, edi
jns 0x11007d73
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 + 0x7a10]
or eax, eax
je 0x11007d89
mov dword [ebx], eax
add ebx, 4
jmp 0x11007d61
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x11007dc0
cmp al, 0xef
ja 0x11007db3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x11007d95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x11007da2
mov ebp, dword [esi + 0x7a14]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x11007df4
sub esp, 0xffffff80
jmp 0x110012a0
Function at 0x1001f23
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x1004178], ebx
jne 0x1001ffb
cmp dword [0x1004174], ebx
jne 0x1001ffb
cmp dword [0x1004180], ebx
push esi
je 0x1001fe9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x100419c]
cmp esi, ebx
je 0x1001f71
mov edx, dword [0x10041a0]
mov ecx, eax
sub ecx, edx
cmp ecx, esi
jb 0x1001fe9
mov ecx, dword [0x1004134]
cmp ecx, 0xffffffff
je 0x1001f85
sub eax, ecx
cmp eax, 0xc8
jb 0x1001ff3
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 3
mov esi, 0x113
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [0x1004178], 1
call edi
push 3
push esi
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call edi
push ebx
push ebx
push 0x8000
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [0x1004174], eax
mov dword [0x1004178], ebx
pop edi
jne 0x1001fdc
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1004134], eax
jmp 0x1001ff3
mov dword [0x1004174], 1
mov eax, dword [0x1004174]
pop esi
jmp 0x1001ffd
xor eax, eax
pop ebx
leave
ret 4
Function at 0x1002045
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x1004170], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x10020bd
cmp dword [0x1004174], esi
jne 0x10020bd
cmp ebx, 0x10
je 0x10021f5
cmp ebx, 0x8000
je 0x10021d5
cmp dword [0x1004178], esi
jne 0x10020bd
mov eax, 0x104
cmp ebx, eax
ja 0x100210c
je 0x1002149
cmp ebx, 0x18
je 0x10020fe
cmp ebx, 0x1c
je 0x10020f9
cmp ebx, 0x20
je 0x10020ea
cmp ebx, 0x48
je 0x10020b3
cmp ebx, 0x100
jmp 0x10020b7
cmp dword [ebp + 0x10], 3
je 0x1002149
cmp ebx, dword [0x1004188]
jne 0x1002220
cmp ebx, esi
je 0x1002220
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
xor eax, eax
cmp dword [0x1004180], esi
setne al
jmp 0x1002230
push esi
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
jmp 0x1002230
cmp dword [ebp + 0x10], esi
jmp 0x10020b7
cmp dword [ebp + 0x10], esi
je 0x10020bd
push esi
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x10020bd
mov eax, ebx
sub eax, 0x200
je 0x100217d
dec eax
je 0x1002149
sub eax, 3
je 0x1002149
sub eax, 3
je 0x1002149
sub eax, 0x11
jne 0x10020bd
cmp dword [ebp + 0x10], 6
jb 0x1002149
cmp dword [ebp + 0x10], 8
jbe 0x100213f
cmp dword [ebp + 0x10], 0xa
je 0x1002157
cmp dword [ebp + 0x10], 0x12
jne 0x1002149
test byte [ebp + 0x14], 1
jne 0x10020bd
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
jmp 0x10020bd
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetSystemPowerStatus
test eax, eax
je 0x1002169
mov al, byte [ebp - 0x14]
jmp 0x100216b
or al, 0xff
cmp al, byte [0x1004130]
mov byte [0x1004130], al
jne 0x1002149
jmp 0x10020bd
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x1004c60]
je 0x1002198
cmp ecx, esi
jge 0x1002198
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x1004c64]
je 0x10021a9
cmp eax, esi
jge 0x10021a9
neg eax
add eax, ecx
cmp eax, dword [0x100412c]
jbe 0x10020bd
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
mov dword [0x1004c60], eax
mov eax, dword [ebp - 4]
mov dword [0x1004c64], eax
jmp 0x10020bd
cmp dword [0x1004198], esi
je 0x10020bd
mov eax, dword [0x1004180]
cmp eax, esi
je 0x10020f1
push dword [ebp + 8]
call eax
jmp 0x1002230
cmp dword [0x1004198], esi
je 0x10020bd
push dword [ebp + 8]
call fcn.01001f23
test eax, eax
jne 0x10020bd
push 0x1004c60
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x1002230
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100223c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x1004198], esi
je 0x10022e0
cmp dword [0x100417c], esi
je 0x1002260
call fcn.01002007
lea eax, [ebp - 4]
push eax
push 0x1001194
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10022e0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.ScreenSaveUsePassword
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10022d7
cmp dword [ebp - 0xc], esi
je 0x10022d7
push str.PASSWORD.CPL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
mov dword [0x100417c], eax
je 0x10022d7
push str.VerifyScreenSavePwd
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x1004180], eax
je 0x10022d2
push 1
call fcn.01001c9b
jmp 0x10022d7
call fcn.01002007
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x10027a8
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10012a8
call fcn.01002928
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10027e3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10027e3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10027fb
cmp eax, 0x20b
je 0x10027e8
mov dword [ebp - 0x1c], edi
jmp 0x100280f
cmp dword [ecx + 0x84], 0xe
jbe 0x10027e3
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002809
cmp dword [ecx + 0x74], 0xe
jbe 0x10027e3
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1004eac], 0xffffffff
or dword [0x1004eb0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10041b0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10041ac]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1004eb4], eax
call fcn.010029b4
cmp dword [0x100413c], edi
jne 0x100286a
push fcn.010029b4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100299d
push 0x1004010
push 0x100400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10041a8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10041a4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1004008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100279e
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10028e1
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002916
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002963
ret
Function at 0xec05c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xec05ca
pushal
call 0xec05d0
pop ebp
sub ebp, 0x10
sub ebp, 0xac05c0
jmp 0xec05e6
mov eax, 0xac05c0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a1
mov edx, 0xc9c27444
xor byte [eax], dl
inc eax
dec ecx
jne 0xec05fd
jmp 0xec0610
iretd
Function at 0x4014e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40150d
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea edx, [esp]
push esi
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret
Function at 0x4054e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4586f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
mov edi, dword [ebx + 0x30]
mov dword [esp + 0x1c], 1
test edi, edi
mov dword [esp + 0xc], edi
je 0x4055a7
push ebp
mov ebp, dword [edi]
test ebp, ebp
je 0x40559d
mov esi, dword [ebp]
test esi, esi
je 0x40558c
add ebp, 4
test esi, esi
je 0x405585
cmp dword [esi], 0
je 0x40557c
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jle 0x40556d
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x405565
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.004049d0
push ecx
push 0xc
push eax
call fcn.0041e0dc
push edi
call fcn.0043f68e
mov edi, dword [esp + 0x14]
add esp, 4
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jl 0x40553b
mov eax, dword [esi]
push eax
call fcn.0043f68e
mov ebx, dword [esp + 0x18]
add esp, 4
push esi
call fcn.0043f68e
add esp, 4
mov esi, dword [ebp]
test esi, esi
jne 0x405526
mov eax, dword [edi]
push eax
call fcn.0043f68e
add esp, 4
mov dword [edi], 0
push edi
call fcn.0043f68e
add esp, 4
pop ebp
mov esi, dword [ebx + 0x34]
test esi, esi
je 0x4055ef
mov edx, dword [esi + 4]
xor edi, edi
dec edx
sar edx, 0x10
inc edx
test edx, edx
jle 0x4055d7
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
push eax
call fcn.0043f68e
mov ecx, dword [esi + 4]
add esp, 4
inc edi
dec ecx
sar ecx, 0x10
inc ecx
cmp edi, ecx
jl 0x4055bc
mov eax, dword [esi]
test eax, eax
je 0x4055e6
push eax
call fcn.0043f68e
add esp, 4
push esi
call fcn.0043f68e
add esp, 4
lea ecx, [ebx + 4]
mov byte [esp + 0x1c], 0
call fcn.0043ef94
mov ecx, ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.0043ef94
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40d8c0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x458f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.00450272
mov edi, dword [eax + 0x10]
push str.CInstanceChecker_MMF_
lea ecx, [esp + 0xc]
call fcn.0043f002
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.0043f370
mov eax, dword [esp + 8]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x40d965
mov ecx, dword [esp + 8]
push ecx
push 4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 4
push 0
push 0
push 6
push eax
mov dword [0x476e6c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea edx, [esi + 4]
push 1
push edx
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00411e7f
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0xc]
call fcn.00411ebb
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
setne al
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.0043ef94
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x40d9a0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
push esi
push edi
mov esi, ecx
push 4
push 0
push 0
mov eax, dword [esi + 0xc]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esi + 4]
push 1
push ecx
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00411e7f
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esi + 0xc], 0
call fcn.00411ebb
pop edi
pop esi
add esp, 0xc
ret

Function at 0x40e390
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x459180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [0x47407c]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [0x476f88]
mov byte [esp + 0x10], 1
cmp eax, 0x1f5348
jne 0x40e3d2
push 0xe005
jmp 0x40e3d7
push 0xe017
lea ecx, [esp + 8]
call fcn.00444ee8
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x476f30]
test eax, eax
jne 0x40e412
test esi, esi
jne 0x40e3fc
xor eax, eax
jmp 0x40e3ff
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x18]
push 0x20
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
mov byte [esp + 0x10], 0
call fcn.0043ef94
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0043ef94
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40ee20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x100
push esi
push 0xa
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40ee46
or eax, 0xffffffff
pop esi
add esp, 0x100
ret 8
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40eeb1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
cmp ebx, 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
ja 0x40ee8d
mov ecx, ebx
mov eax, ecx
lea edi, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x118]
call fcn.0043f11d
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x100
ret 8

Function at 0x40f3b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret 4

Function at 0x40f3d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x459280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.0043de57
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ebp
mov dword [esp + 0x30], 0
call fcn.0043f002
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.0040f210
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x40f444
mov edx, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [edx + edi*4]
push eax
call fcn.0040f3b0
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x40f42c
push ebp
mov ecx, esi
call fcn.0040f3b0
push ebp
mov ecx, esi
call fcn.0040f490
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0043ef94
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043de8a
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4