joyce8/EMBER2024-capa huggingface dataset:
Function at 0x73f0d02f
Capabilities:
Create directory
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x73f3e530]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, edx
xor eax, eax
mov word [0x73f419e0], ax
mov ebx, 0x105
push edi
mov edi, ecx
test esi, esi
je 0x73f0d0a7
cmp word [esi], ax
je 0x73f0d0a7
push esi
mov edx, ebx
mov ecx, 0x73f419e0
call fcn.73ee45dd
cmp dword [ebp + 8], 0
pop ecx
jne 0x73f0d151
cmp word [0x73f3cc84], 0
je 0x73f0d151
push 0x73f3cc84
push esi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
mov esi, 0x73f419e0
pop ecx
pop ecx
test eax, eax
je 0x73f0d234
jmp 0x73f0d156
mov esi, 0x73f419e0
cmp word [0x73f3cc84], ax
jne 0x73f0d225
push ebx
push esi
push 0x73dbdc24
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x73f0d156
mov word [0x73f419e0], ax
lea eax, [ebp - 0x224]
push ebx
push eax
push 0
call dword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetModuleFileNameW]
test eax, eax
je 0x73f0d156
xor eax, eax
push eax
push eax
push eax
push eax
push 0x101
lea eax, [ebp - 0x42c]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wsplitpath_s]
add esp, 0x24
lea eax, [ebp - 0x10]
mov edx, ebx
lea ecx, [ebp - 0x224]
push eax
call fcn.73ee45dd
pop ecx
lea eax, [ebp - 0x42c]
mov edx, ebx
push eax
lea ecx, [ebp - 0x224]
call fcn.73ee45ae
pop ecx
lea ecx, [ebp - 0x224]
call fcn.73f18a60
mov eax, ecx
mov edx, ebx
push eax
mov ecx, esi
call fcn.73ee45dd
pop ecx
jmp 0x73f0d156
mov esi, 0x73f419e0
cmp word [0x73f419e0], 0
je 0x73f0d225
push 0
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
call fcn.73f0cdbc
test eax, eax
jne 0x73f0d196
cmp word [0x73f3cc84], ax
jne 0x73f0d196
call fcn.73f0c7b9
test eax, eax
jne 0x73f0d196
xor ecx, ecx
mov word [0x73f419e0], cx
jmp 0x73f0d234
push esi
mov edx, ebx
mov ecx, 0x73f3cc84
call fcn.73ee45dd
pop ecx
push esi
mov edx, ebx
mov ecx, 0x73f3ce8e
call fcn.73ee45dd
test dword [0x73f3bcb4], 0x400000
pop ecx
jne 0x73f0d1d5
mov edx, ebx
mov ecx, 0x73f3ce8e
call fcn.73f08e6e
push 0x73dbdc44
call fcn.73ee45ae
pop ecx
push 0
push 0x73f3ce8e
mov ecx, 0x2000
call fcn.73dd44b5
push esi
mov edx, ebx
mov ecx, 0x73f3d098
call fcn.73ee45dd
test dword [0x73f3bcb4], 0x400000
pop ecx
jne 0x73f0d217
mov edx, ebx
mov ecx, 0x73f3d098
call fcn.73f08e6e
push 0x73dbdc4c
call fcn.73ee45ae
pop ecx
mov edx, 0x73f3d098
mov ecx, edi
call fcn.73f0a205
jmp 0x73f0d234
push 0x73f3cc84
mov edx, ebx
mov ecx, esi
call fcn.73ee45dd
pop ecx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.73ddffa0
leave
ret 4
Function at 0x73f0e1c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
push edi
jne 0x73f0e1e2
test ebx, ebx
je 0x73f0e24e
test esi, esi
je 0x73f0e24e
mov ecx, dword [ebp + 8]
call fcn.73dd5c89
mov dword [esp + 0x14], eax
test eax, eax
jne 0x73f0e1f6
push 6
jmp 0x73f0e250
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
call fcn.73ed95d3
mov dword [esp + 0x10], eax
test eax, eax
jne 0x73f0e20f
push 0x7e
jmp 0x73f0e250
test ebx, ebx
jne 0x73f0e29e
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x14]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x73f0e24e
push esi
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x73f0e261
push ebx
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push 0x57
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, esi
call fcn.73dd5d6e
mov edi, eax
test edi, edi
je 0x73f0e291
push 0
lea eax, [esp + 0x10]
push eax
push esi
push edi
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x73f0e291
cmp dword [esp + 0xc], esi
je 0x73f0e291
mov ecx, edi
call fcn.73dd5ea9
xor edi, edi
push ebx
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test edi, edi
jne 0x73f0e2b6
jmp 0x73f0e24e
mov ecx, esi
call fcn.73dd5d6e
mov edi, eax
test edi, edi
je 0x73f0e24e
push esi
push ebx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push esi
push edi
call fcn.73f09fff
jmp 0x73f0e258
Function at 0x73f13bd0
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
push ebx
push esi
push edi
call fcn.73f13227
test eax, eax
je 0x73f13ce7
mov eax, dword [ebp - 4]
test eax, eax
je 0x73f13ce7
lea esi, [eax + 1]
cmp esi, eax
jb 0x73f13cef
mov ecx, esi
call fcn.73dd5d6e
mov edi, eax
test edi, edi
je 0x73f13cef
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.73f12147
test eax, eax
je 0x73f13cbd
mov al, byte [edi]
mov esi, edi
push 0x5c
pop ebx
cmp al, bl
jne 0x73f13c78
cmp byte [edi + 1], bl
jne 0x73f13c78
lea esi, [edi + 2]
mov al, byte [esi]
test al, al
je 0x73f13cd5
mov cl, al
mov al, cl
cmp cl, bl
je 0x73f13c5c
mov ecx, esi
call fcn.73f08eb4
mov esi, eax
mov al, byte [esi]
mov cl, al
test al, al
jne 0x73f13c45
test al, al
je 0x73f13cd5
inc esi
jmp 0x73f13c70
cmp al, bl
je 0x73f13c8d
mov ecx, esi
call fcn.73f08eb4
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x73f13c63
jmp 0x73f13cd5
cmp byte [edi + 1], 0x3a
jne 0x73f13cd7
lea esi, [edi + 2]
mov cl, byte [esi]
mov al, cl
test cl, cl
je 0x73f13cd7
cmp cl, bl
jne 0x73f13c90
inc esi
jmp 0x73f13cd5
cmp al, bl
jne 0x73f13ccc
mov ecx, edi
mov byte [esi], 0
call fcn.73f18fa5
cmp eax, 0xffffffff
jne 0x73f13cc6
push 0
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryA]
test eax, eax
jne 0x73f13cca
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x73f13cca
mov ecx, edi
call fcn.73dd5ea9
jmp 0x73f13cef
test al, 0x10
je 0x73f13cbd
mov byte [esi], bl
mov ecx, esi
call fcn.73f08eb4
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x73f13c90
mov ecx, edi
call fcn.73dd5ea9
xor eax, eax
inc eax
jmp 0x73f13cf1
push 0x57
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x73f14b90
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov edx, 0x73dbb69c
push edi
lea edi, [esi + 0x32]
mov ecx, edi
call fcn.73ddf4f9
test eax, eax
je 0x73f14bc3
lea ecx, [esi + 0x8c4]
push edi
mov edx, 0x105
call fcn.73ee45dd
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
mov edx, 0x73dbdd68
mov ecx, edi
call fcn.73ddf4f9
test eax, eax
je 0x73f14bee
mov eax, dword [esi + 0x448]
lea ecx, [esi + 0x67c]
mov dword [esi + 0x2c], 0x200
mov dword [esi + 0x888], eax
jmp 0x73f14bb0
test dword [0x73f3bcb4], 0x20000
jne 0x73f14bbc
lea ebx, [esi + 0xdf8]
call fcn.73dd5c5e
test eax, eax
je 0x73f14c1a
push ebx
push 0x73dbe1f0
push dword [esi + 4]
call fcn.73f1690b
add esp, 0xc
push esi
push 0x73f14b00
push edi
push dword [esi + 8]
push ebx
call sym.dbghelp.dll_FindExecutableImageExW
mov dword [esi + 0x448], eax
test eax, eax
je 0x73f14bbf
lea ecx, [esi + 0x20]
cmp dword [ecx], 0
jne 0x73f14c44
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
push 0
push 2
pop edx
mov ecx, esi
call fcn.73ddc508
neg eax
sbb eax, eax
neg eax
jmp 0x73f14bbf
Function at 0x73f15fe5
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x3020
call fcn.73ecbd40
mov eax, dword [0x73f3e530]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x301c], edx
push edi
mov edi, eax
mov ecx, dword [esi + 8]
cmp word [ecx], ax
je 0x73f160cc
push ecx
lea edx, [ebp - 0x3018]
call fcn.73f1610c
cmp dword [0x73f3cc74], edi
je 0x73f1607e
cmp word [ebp - 0x3018], di
je 0x73f1607e
push 0x1002
lea edx, [ebp - 0x1010]
lea ecx, [ebp - 0x3018]
call fcn.73dd69fd
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x73f16058
push 0
lea eax, [ebp - 0x3020]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x1010]
push eax
push dword [0x73f3cc74]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
cmp dword [0x73f3cc78], edi
je 0x73f1609f
cmp word [ebp - 0x3018], di
je 0x73f1609f
lea eax, [ebp - 0x3018]
xor edi, edi
push eax
inc edi
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp dword [esi], 0
ja 0x73f160b0
test dword [0x73f3bcb4], 0x80000000
je 0x73f160cc
mov ecx, ebx
call fcn.73f15afe
test eax, eax
jne 0x73f160e0
test edi, edi
jne 0x73f160cc
lea eax, [ebp - 0x3018]
push eax
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.73ddffa0
leave
ret 4
xor edx, edx
mov ecx, ebx
cmp dword [ebp - 0x301c], 0x20000000
push esi
sete dl
dec edx
and edx, 0xc0000010
add edx, 0x40000000
call fcn.73dd4531
jmp 0x73f160cf
Function at 0x73f1737b
Capabilities:
Parse pe header

Disassembly:
push 0x38
push 0x73f353f0
call fcn.73de0d20
mov dword [ebp - 0x1c], edx
mov edx, ecx
lea ecx, [ebp - 0x38]
call fcn.73ed16e2
xor ebx, ebx
inc ebx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.73ed88b6
mov esi, eax
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x38]
test edx, edx
jne 0x73f173c9
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x73f17464
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x73f1740c
mov esi, dword [edx + 0x3c]
cmp dword [esi + edx], 0x4550
je 0x73f173e3
push 0xb
jmp 0x73f17448
mov eax, 0x20b
mov ecx, dword [ebp - 0x1c]
cmp word [esi + edx + 0x18], ax
mov eax, dword [esi + edx + 0x50]
mov dword [ecx], eax
mov ecx, dword [esi + edx + 8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x73f17453
mov eax, dword [esi + edx + 0x58]
jmp 0x73f17430
mov eax, 0x4944
cmp word [edx], ax
jne 0x73f173df
mov ecx, dword [edx + 8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x73f17453
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x73f17453
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
lea ecx, [ebp - 0x38]
call fcn.73ed9184
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x73f18ebf
Capabilities:
Query environment variable
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x73f3e530]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x73f18f90
xor edi, edi
cmp word [esi], di
je 0x73f18f90
push edi
call sym.dbghelp.dll_SymGetExtendedOption
test eax, eax
jne 0x73f18f90
mov cx, word [0x73f3e66c]
or ebx, 0xffffffff
cmp cx, bx
jne 0x73f18f3e
mov word [0x73f3e66c], ax
lea eax, [ebp - 0x18]
push 2
push eax
push 0x73dbe818
mov dword [ebp - 0x18], edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x73f18f37
cmp word [ebp - 0x18], 0x31
jne 0x73f18f37
mov word [0x73f3e66c], cx
jmp 0x73f18f3e
mov cx, word [0x73f3e66c]
test cx, cx
jne 0x73f18f90
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_SystemTimeToFileTime]
test eax, eax
je 0x73f18f90
push edi
push 0x80
push 3
push edi
push 7
push 0x100
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
je 0x73f18f90
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.73ddffa0
leave
ret

Function at 0x73f18fa5
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
xor ecx, ecx
call fcn.73f18e3c
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesA]
xor ecx, ecx
mov esi, eax
inc ecx
call fcn.73f18e3c
mov eax, esi
pop esi
ret

Function at 0x73f19085
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
xor ecx, ecx
call fcn.73f18e3c
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
xor ecx, ecx
mov esi, eax
inc ecx
call fcn.73f18e3c
mov eax, esi
pop esi
ret
Function at 0x73f273d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov byte [ecx], 1
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x2c], edi
test edi, edi
jne 0x73f27407
mov eax, dword [edx + 0x6c]
and eax, 0xfff8
jmp 0x73f27409
xor eax, eax
mov dword [ecx + 0x28], eax
test byte [edx + 0x6c], 1
sete cl
test dword [edx + 0x70], 0x20000
sete al
test al, cl
je 0x73f27457
test edi, edi
jne 0x73f27448
test dword [edx + 0x6c], 0xfff8
jne 0x73f27433
mov eax, dword [edx + 0x14]
jmp 0x73f27436
lea eax, [ebx + 0x74]
mov dword [esi + 0x398], eax
mov dword [esi + 0x39c], 0x10
jmp 0x73f27479
mov eax, dword [edx + 0x74]
mov dword [esi + 0x398], eax
movzx eax, word [edx + 0x78]
jmp 0x73f27473
mov eax, dword [edx + 0x74]
mov dword [esi + 0x398], eax
movzx eax, word [edx + 0x78]
mov dword [esi + 0x39c], eax
test byte [edx + 0x6c], 1
je 0x73f27479
or eax, 3
mov dword [esi + 0x39c], eax
mov eax, dword [edx + 0x60]
mov dword [esi + 0x388], eax
mov eax, dword [edx + 0x68]
mov dword [esi + 0x38c], eax
mov eax, dword [edx + 0x6c]
mov dword [esi + 0x390], eax
mov eax, dword [edx + 0x38]
mov dword [esi + 0x36c], eax
mov eax, dword [edx + 0x34]
mov dword [esi + 0x368], eax
mov eax, dword [edx + 0x50]
mov dword [esi + 0x364], eax
mov eax, dword [edx + 0x30]
mov dword [esi + 0x360], eax
mov eax, dword [edx + 0x44]
mov dword [esi + 0x384], eax
mov eax, dword [edx + 0x5c]
mov dword [esi + 0x378], eax
mov eax, dword [edx + 0x40]
mov dword [esi + 0x380], eax
mov eax, dword [edx + 0x3c]
mov dword [esi + 0x37c], eax
mov eax, dword [edx + 0x58]
mov dword [esi + 0x374], eax
mov eax, dword [edx + 0x54]
mov dword [esi + 0x370], eax
mov eax, dword [edx + 0x70]
mov dword [esi + 0x394], eax
test edi, edi
jne 0x73f27531
mov eax, dword [edx + 0x18]
mov dword [esi + 0x2d8], eax
mov eax, dword [edx + 0x1c]
mov dword [esi + 0x2dc], eax
mov eax, dword [edx + 0x20]
mov dword [esi + 0x2e0], eax
mov eax, dword [edx + 0x24]
mov dword [esi + 0x2e4], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x2e8], eax
mov eax, dword [edx + 0x2c]
mov dword [esi + 0x2ec], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14
Function at 0xf98370
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 0xf9838e
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 0xfc1074
push ecx
mov edi, eax
call fcn.00fac198
mov esi, eax
add esp, 8
test esi, esi
jne 0xf983cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00fac02e
push esi
call fcn.00fabfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xf9b850
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 0xf9b8ae
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 0xfc6720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf9b8ba
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.00fac1e1
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 0xf9b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xfc6720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf9b92a
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.00fad082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xf9b957
mov word [eax], si
add eax, 2
push eax
call fcn.00fad030
add esp, 4
jmp 0xf9b959
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 0xf9b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xf9b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xf9c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xfc1458
push ecx
call fcn.00fac1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00fac1e1
add esp, 0x10
jmp 0xf9c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00fac20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00fabdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00f9c050
mov eax, dword [0xfc6728]
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 0xf9c13b
push esi
call fcn.00f9bfb0
add esp, 4
mov dword [0xfc6728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xf9c14c
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.00f9bff0
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 0xf9f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xf9f4b7
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 0xf9f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf9f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf9f47e
add edx, ecx
cmp ebx, edx
jb 0xf9f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf9f467
xor ecx, ecx
jmp 0xf9f4a2
test eax, eax
jne 0xf9f492
xor ecx, ecx
jmp 0xf9f4a2
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.00f9f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xf9f8f0
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 0xf9f921
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 0xf9f946
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 0xf9f96e
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 0xf9f993
push ecx
push esi
call fcn.00f9f4c0
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