joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ef0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41d89b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [esp + 0x230]
push edi
mov edi, ecx
push 0x10000000
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.00418420
mov ecx, edi
call fcn.00403150
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push esi
call ebx
push esi
lea ecx, [esp + 0x10]
call fcn.00418420
push 0
mov dword [esp + 0x230], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x403026
lea eax, [esp + 0x14]
push eax
push 0x420ed0
push 1
push 0
push 0x420ec0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x402fee
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x420ee0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x402fee
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
test eax, eax
jne 0x402fee
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x8c]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
push esi
call ebx
push 0x80000000
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call fcn.00418420
mov ecx, edi
call fcn.00403150
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], 0xffffffff
call fcn.004183b2
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x224
ret 4
Function at 0x403060
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x8c0
push esi
push edi
push 2
lea eax, [esp + 0xcc]
push 0x400
push eax
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x18], 0x50
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push str.Everyone
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [esp + 0x8d0]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xd0]
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov edi, dword [esp + 0x8cc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 4
lea ecx, [esp + 0x4dc]
push 4
push ecx
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea edx, [esp + 0xc8]
push 0
push edx
push 0
push 0
push 4
lea eax, [esp + 0x4dc]
push 4
push eax
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea ecx, [esp + 0x8cc]
call fcn.004183b2
pop edi
pop esi
add esp, 0x8c0
ret 8

Function at 0x403240
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41d8c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
lea esi, [ecx + 0x8c]
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x104
mov dword [esp + 0x18], 1
call fcn.00418127
mov eax, dword [0x426e44]
mov dword [esp + 0x124], 0
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 1
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftAdvanced_INF_Setup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403318
lea edx, [esp + 0xc]
push edi
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.EnableJava
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
call fcn.004184ef
test edi, edi
pop edi
jne 0x403318
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x403318
push 0x426770
lea ecx, [esp + 8]
call fcn.00418742
lea edx, [esp + 8]
lea ecx, [esp + 4]
push edx
call fcn.0041877e
jmp 0x403326
push 0x42676c
lea ecx, [esp + 8]
call fcn.00418742
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.0041849f
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call fcn.004183b2
lea ecx, [esp + 4]
mov dword [esp + 0x124], 0xffffffff
call fcn.004183b2
mov ecx, dword [esp + 0x11c]
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x403640
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41d941
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
mov dword [esp + 0x18], ecx
push edi
push str.http:__www.yy2000.net_
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x30], 1
call fcn.00418420
mov eax, dword [0x426e44]
xor ebx, ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftAdvanced_INF_Setup
push 0x80000002
mov byte [esp + 0x150], 1
call edi
cmp eax, ebx
je 0x4036cc
push 0x42676c
lea ecx, [esp + 0x14]
call fcn.004184ef
jmp 0x403735
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push str.EnableJava
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.004184ef
cmp esi, ebx
jne 0x403727
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], ebx
je 0x403727
push 0x426770
lea ecx, [esp + 0x14]
call fcn.00418742
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.0041877e
jmp 0x403735
push 0x42676c
lea ecx, [esp + 0x14]
call fcn.00418742
xor esi, esi
lea eax, [esp + 0x14]
mov byte [esp + 0x13c], 2
push eax
push 0x20019
push ebx
push str.SOFTWARE360Safe
push 0x80000002
mov dword [esp + 0x28], ebx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x403797
mov esi, dword [esp + 0x14]
push 0x426c28
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], esi
call fcn.00418742
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edx + 0x8c]
call fcn.0041849f
cmp esi, ebx
je 0x403797
push esi
call ebp
xor esi, esi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREKasperskyLab
push 0x80000002
call edi
cmp eax, ebx
jne 0x4037ed
xor eax, eax
cmp esi, ebx
je 0x4037bf
push esi
call ebp
mov esi, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x28], esi
jne 0x4037ed
push 0x426c0c
lea ecx, [esp + 0x14]
call fcn.00418742
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edx + 0x8c]
call fcn.0041849f
cmp esi, ebx
je 0x4037f4
push esi
call ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], bl
call fcn.004183b2
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004183b2
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret
Function at 0x403ef0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41da7e
push eax
mov dword fs:[0], esp
sub esp, 0x90
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0041c342
test eax, eax
jne 0x403fae
push edi
push str.Fatal_Error:_MFC_initialization_failed
push 0x42cd10
call fcn.004042d0
add esp, 8
mov esi, eax
mov ecx, esi
push 0xa
call fcn.00404070
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
lea eax, [ecx + esi]
mov cl, byte [ecx + esi + 4]
test cl, 6
jne 0x403f71
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x403f71
mov edi, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
test edi, edi
je 0x403f92
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x28]
or eax, edi
test edx, edx
jne 0x403f8a
or al, 4
push 0
push eax
call fcn.00410354
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
add esp, 0x9c
ret
push 0
lea ecx, [esp + 8]
call fcn.00401000
lea ecx, [esp + 4]
mov dword [esp + 0x9c], 0
call fcn.00401190
call fcn.00403900
lea ecx, [esp + 0x90]
mov dword [esp + 0x9c], 6
call fcn.004183b2
lea ecx, [esp + 0x8c]
mov byte [esp + 0x9c], 5
call fcn.004183b2
lea ecx, [esp + 0x88]
mov byte [esp + 0x9c], 4
call fcn.004183b2
lea ecx, [esp + 0x7c]
mov byte [esp + 0x9c], 3
call fcn.004183b2
lea ecx, [esp + 0x78]
mov byte [esp + 0x9c], 2
call fcn.004183b2
lea ecx, [esp + 0x60]
mov byte [esp + 0x9c], 1
call fcn.00414294
lea ecx, [esp + 4]
mov dword [esp + 0x9c], 0xffffffff
call fcn.004149d8
mov ecx, dword [esp + 0x94]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x9c
ret
Function at 0x414ccf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41daf4
call fcn.00405f28
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041c8b6
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x414d0e
call fcn.0041c8b6
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x414d1c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x414d2a
or eax, 0xffffffff
jmp 0x414e12
mov ecx, esi
call fcn.00414c45
mov dword [ebp - 0x14], eax
call fcn.00415a7e
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x414d61
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x414d61
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00415a32
push dword [ebp - 0x14]
call fcn.00415564
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00414a16
cmp eax, edi
je 0x414dd4
test byte [esi + 0x24], 0x10
je 0x414da2
push 4
mov ecx, esi
pop ebx
call fcn.00417b23
test ah, 1
je 0x414d9a
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00417588
cmp dword [esi + 0x1c], edi
je 0x414dd4
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00417b57
jmp 0x414dd4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x414de8
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x414e01
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x414e01
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00414c7f
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x417436
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x417478
call fcn.0041c8b6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x417478
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41746f
xor eax, eax
jmp 0x417480
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00417486
pop edi
pop esi
pop ebx
ret 4
Function at 0x40ac0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040721a
and dword [ebp - 0x14], 0
cmp dword [0x43d9a0], 0
mov dword [ebp - 0x18], eax
jne 0x40acbe
push 0x40248c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ad66
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402480
push ebx
call edi
test eax, eax
je 0x40ad66
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402470
push ebx
mov dword [0x43d9a0], eax
call edi
push eax
call esi
push 0x40245c
push ebx
mov dword [0x43d9a4], eax
call edi
push eax
call esi
push 0x402440
push ebx
mov dword [0x43d9a8], eax
call edi
push eax
call esi
mov dword [0x43d9b0], eax
test eax, eax
je 0x40acbe
push 0x402428
push ebx
call edi
push eax
call esi
mov dword [0x43d9ac], eax
mov eax, dword [0x43d9ac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40ad17
cmp dword [0x43d9b0], ecx
je 0x40ad17
push eax
call esi
push dword [0x43d9b0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40ad17
test ebx, ebx
je 0x40ad17
call edi
test eax, eax
je 0x40ad0e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40ad0e
test byte [ebp - 8], 1
jne 0x40ad17
or dword [ebp + 0x10], 0x200000
jmp 0x40ad4a
mov eax, dword [0x43d9a4]
cmp eax, dword [ebp - 0x18]
je 0x40ad4a
push eax
call esi
test eax, eax
je 0x40ad4a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ad4a
mov eax, dword [0x43d9a8]
cmp eax, dword [ebp - 0x18]
je 0x40ad4a
push eax
call esi
test eax, eax
je 0x40ad4a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43d9a0]
call esi
test eax, eax
je 0x40ad66
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ad68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af85
leave
ret

Function at 0x40af85
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d410]
jne 0x40af8f
repz ret
jmp fcn.00413ede
Function at 0x41b210
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0xc2c
cmp dword [0x2b67504], 0x37
jne 0x41b27d
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleSelectionInfo]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esp + 0x42c]
push ecx
push 0x4035f0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov edx, dword [0x2b67918]
mov ecx, dword [0x2b66fe8]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0xc2c
ret
Function at 0x8ff370
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 0x8ff38e
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 0x928074
push ecx
mov edi, eax
call fcn.00913198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8ff3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0091302e
push esi
call fcn.00912fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x902850
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 0x9028ae
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 0x92d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9028ba
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.009131e1
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 0x9028ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x92d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x90292a
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.00914082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x902957
mov word [eax], si
add eax, 2
push eax
call fcn.00914030
add esp, 4
jmp 0x902959
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 0x9028ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9028b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x902ff0
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 0x903080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9030c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x928458
push ecx
call fcn.009131e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009131e1
add esp, 0x10
jmp 0x9030d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0091320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00912dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00903050
mov eax, dword [0x92d728]
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 0x90313b
push esi
call fcn.00902fb0
add esp, 4
mov dword [0x92d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x90314c
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.00902ff0
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 0x906440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9064b7
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 0x90648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x906471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x90647e
add edx, ecx
cmp ebx, edx
jb 0x90648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x906467
xor ecx, ecx
jmp 0x9064a2
test eax, eax
jne 0x906492
xor ecx, ecx
jmp 0x9064a2
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.009063c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9068f0
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 0x906921
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 0x906946
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 0x90696e
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 0x906993
push ecx
push esi
call fcn.009064c0
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 0x907c00
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 0x907c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x907c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x907c38
add edx, eax
cmp ebx, edx
jb 0x907c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x907c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x907c50
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 0x907c70
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 0x907cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x907c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x907ca8
add edx, ecx
cmp ebx, edx
jb 0x907cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x907c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x907f60
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.00914145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x907ffb
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 0x907fdd
lea eax, [esp + 0x18]
push eax
jmp 0x907fe2
push 0x92d720
call fcn.00913fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x907fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x907f40
push 4
push ecx
push eax
call fcn.0091443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret