joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ca1c
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
call fcn.0041da4b
pop ecx
xor esi, esi
push esi
lea edi, [eax + eax + 2]
lea eax, [esp + 0x14]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREej_technologiesinstall4j_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41ca79
push edi
push dword [esp + 0x1c]
push 1
push esi
push str.RebootCheckFile
push dword [esp + 0x24]
call ebx
push dword [esp + 0x10]
call ebp
push esi
lea eax, [esp + 0x14]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREej_technologiesinstall4j_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41cab5
push edi
push dword [esp + 0x1c]
push 1
push esi
push str.RebootCheckFile
push dword [esp + 0x24]
call ebx
push dword [esp + 0x10]
call ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x41cafd
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
mov edi, 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
mov ebx, eax
call fcn.0041da4b
pop ecx
test eax, eax
jne 0x41cb4b
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push esi
push str.HOMEDRIVE
call ebx
push esi
call fcn.0041da4b
pop ecx
add eax, edi
push eax
push esi
call fcn.0041da4b
pop ecx
lea eax, [esi + eax*2]
push eax
push str.HOMEPATH
call ebx
jmp 0x41cb58
test ebx, ebx
jle 0x41cb58
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebx
ret

Function at 0x41cb5c
Capabilities:
Get common file path

Disassembly:
push esi
push 0x4000
call fcn.0041d963
mov esi, eax
push esi
call fcn.0041cafd
pop ecx
pop ecx
push dword [esp + 8]
push 0
push 0x448f50
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x41cbab
push eax
call fcn.0041eb56
push eax
call fcn.0041f027
call fcn.0041f039
push eax
push esi
push str._se4j_d
push dword [esp + 0x1c]
call fcn.0040b3b0
add esp, 0x18
push esi
call fcn.0041d558
pop ecx
pop esi
ret

Function at 0x41cc6e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41cc8f
xor al, al
leave
ret
push esi
lea eax, [ebp - 0x10]
push eax
push 0x43bd88
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41cccf
xor al, al
jmp 0x41ccdd
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
leave
ret
Function at 0x41d798
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450970]
jne 0x41d7a2
repz ret
jmp fcn.004235ed

Function at 0x42a1bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042376d
and dword [ebp - 4], 0
cmp dword [0x46616c], 0
mov ebx, eax
jne 0x42a26c
push 0x449ba0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x42a31d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x449b94
push edi
call esi
test eax, eax
je 0x42a31d
push eax
call fcn.004236fb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x46616c], eax
call esi
push eax
call fcn.004236fb
mov dword [esp], 0x449b70
push edi
mov dword [0x466170], eax
call esi
push eax
call fcn.004236fb
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x466174], eax
call esi
push eax
call fcn.004236fb
pop ecx
mov dword [0x46617c], eax
test eax, eax
je 0x42a26c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004236fb
pop ecx
mov dword [0x466178], eax
mov eax, dword [0x466178]
cmp eax, ebx
je 0x42a2c4
cmp dword [0x46617c], ebx
je 0x42a2c4
push eax
call fcn.00423776
push dword [0x46617c]
mov esi, eax
call fcn.00423776
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42a2c4
test edi, edi
je 0x42a2c4
call esi
test eax, eax
je 0x42a2bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a2bb
test byte [ebp - 0xc], 1
jne 0x42a2c4
or dword [ebp + 0x10], 0x200000
jmp 0x42a2fd
mov eax, dword [0x466170]
cmp eax, ebx
je 0x42a2fd
push eax
call fcn.00423776
pop ecx
test eax, eax
je 0x42a2fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42a2fd
mov eax, dword [0x466174]
cmp eax, ebx
je 0x42a2fd
push eax
call fcn.00423776
pop ecx
test eax, eax
je 0x42a2fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46616c]
call fcn.00423776
pop ecx
test eax, eax
je 0x42a31d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a31f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4304ea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042376d
and dword [ebp - 4], 0
cmp dword [0x4663bc], 0
mov ebx, eax
jne 0x43059b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43064c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44b0d8
push edi
call esi
test eax, eax
je 0x43064c
push eax
call fcn.004236fb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4663bc], eax
call esi
push eax
call fcn.004236fb
mov dword [esp], 0x449b70
push edi
mov dword [0x4663c0], eax
call esi
push eax
call fcn.004236fb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4663c4], eax
call esi
push eax
call fcn.004236fb
pop ecx
mov dword [0x4663cc], eax
test eax, eax
je 0x43059b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004236fb
pop ecx
mov dword [0x4663c8], eax
mov eax, dword [0x4663c8]
cmp eax, ebx
je 0x4305f3
cmp dword [0x4663cc], ebx
je 0x4305f3
push eax
call fcn.00423776
push dword [0x4663cc]
mov esi, eax
call fcn.00423776
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4305f3
test edi, edi
je 0x4305f3
call esi
test eax, eax
je 0x4305ea
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4305ea
test byte [ebp - 0xc], 1
jne 0x4305f3
or dword [ebp + 0x10], 0x200000
jmp 0x43062c
mov eax, dword [0x4663c0]
cmp eax, ebx
je 0x43062c
push eax
call fcn.00423776
pop ecx
test eax, eax
je 0x43062c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43062c
mov eax, dword [0x4663c4]
cmp eax, ebx
je 0x43062c
push eax
call fcn.00423776
pop ecx
test eax, eax
je 0x43062c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4663bc]
call fcn.00423776
pop ecx
test eax, eax
je 0x43064c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43064e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x106db160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.106db2b0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x106db186
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106db172
add dl, dl
jne 0x106db191
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106db1e4
xor eax, eax
add dl, dl
jne 0x106db19e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106db285
add dl, dl
jne 0x106db1ad
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106db1b8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106db1c3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106db1ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106db1da
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x106db17d
mov eax, 1
add dl, dl
jne 0x106db1f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106db1fd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106db1e9
sub eax, ebx
mov ebx, 1
jne 0x106db230
mov ecx, 1
add dl, dl
jne 0x106db216
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106db221
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106db20d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106db17d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x106db247
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106db252
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106db23e
cmp eax, 0x7d00
jae 0x106db275
cmp eax, 0x500
jb 0x106db270
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106db17d
cmp eax, 0x7f
ja 0x106db278
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106db17d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x106db2a6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x106db17d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000245d
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
mov edi, edx
mov esi, ecx
test edx, edx
je 0x10002472
push edi
call sub.msvcrt.dll_strlen
add esp, 4
jmp 0x10002474
xor eax, eax
push esi
push eax
push 1
push edi
call sub.msvcrt.dll_fwrite
add esp, 0x10
push esi
call sub.msvcrt.dll_fflush
add esp, 4
pop esi
pop edi
ret

Function at 0x10004fc6
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
push 2
call dword [0x100130f4]
add esp, 4
mov ebx, eax
push eax
push esi
push 1
push edi
call sub.msvcrt.dll_fwrite
add esp, 0x10
push ebx
call sub.msvcrt.dll_fflush
add esp, 4
pop esi
pop edi
pop ebx
ret
push edi
push esi
cmp dword [0x10013140], 0
je 0x10005023
mov eax, dword [0x1001333c]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + eax*4]
lea edi, [eax + 0x1598]
call fcn.10004f6f
mov esi, edx
push edx
push eax
call dword [0x10013140]
test esi, esi
je 0x1000501b
test byte [esi + 3], 0x40
jne 0x1000501b
mov eax, dword [0x1001333c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 4]
mov edx, esi
call fcn.100032e5
cmp byte [edi], 1
je 0x1000502a
pop esi
pop edi
ret
pop esi
pop edi
jmp 0x10004f98
mov byte [edi], 0
mov eax, dword [0x1001333c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 0x159c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
push 0
call fcn.10004560
jmp 0x10005020

Function at 0x100053b8
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov edi, 2
mov ebp, dword [fcn.1000afa0]
push edi
call ebp
add esp, 4
mov esi, eax
xor eax, eax
inc eax
push esi
push 0x10
push eax
push str.could_not_load:
call sub.msvcrt.dll_fwrite
add esp, 0x10
push esi
call sub.msvcrt.dll_fflush
add esp, 4
push edi
call ebp
add esp, 4
add ebx, 4
cmp dword [esp + 0x14], 0
mov esi, eax
mov edi, 0x10011650
cmovne edi, ebx
push edi
call sub.msvcrt.dll_strlen
add esp, 4
push esi
push eax
xor eax, eax
inc eax
push eax
push edi
call sub.msvcrt.dll_fwrite
add esp, 0x10
push esi
call sub.msvcrt.dll_fflush
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x1000545e
push 2
call dword [0x100130f4]
add esp, 4
mov esi, eax
push eax
push 0x30
push 1
push str._n_bad_format__library_may_be_wrong_architecture_
call sub.msvcrt.dll_fwrite
add esp, 0x10
push esi
call sub.msvcrt.dll_fflush
add esp, 4
push 2
call dword [0x100130f4]
add esp, 4
mov ecx, eax
mov edx, 0x10011526
call fcn.1000245d
push 1
call sub.msvcrt.dll_exit
Function at 0x10005854
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov ebp, 2
push ebp
call dword [0x100130f4]
add esp, 4
add ebx, 4
cmp dword [esp + 0x14], 0
mov esi, eax
mov edi, 0x10011650
cmovne edi, ebx
push edi
call sub.msvcrt.dll_strlen
add esp, 4
push esi
push eax
push 1
push edi
call sub.msvcrt.dll_fwrite
add esp, 0x10
push esi
call sub.msvcrt.dll_fflush
add esp, 4
push ebp
call dword [0x100130f4]
add esp, 4
mov esi, eax
push eax
push 0xa
call sub.msvcrt.dll_fputc
add esp, 8
push esi
call sub.msvcrt.dll_fflush
add esp, 4
push dword [esp + 0x1c]
call sub.msvcrt.dll_exit

Function at 0x1000745a
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
test ecx, ecx
je 0x10007484
cmp word [ecx], 0x5a4d
jne 0x10007484
add ecx, dword [ecx + 0x3c]
jno 0x10007472
call fcn.10002e16
ret
cmp dword [ecx], 0x4550
jne 0x10007484
movzx eax, word [ecx + 0x16]
shr eax, 0xd
and eax, 1
ret

Function at 0x100074b7
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov eax, dword [0x1001333c]
mov ecx, dword fs:[0x2c]
mov ebx, dword [ecx + eax*4]
mov ecx, esi
call fcn.1000745a
xor edi, edi
cmp byte [ebx + 0x1598], 0
jne 0x100075fe
test eax, eax
je 0x100075fe
mov eax, dword [esi + 0x3c]
add eax, esi
jno 0x100074fe
call fcn.10002e16
jmp 0x100075fe
mov edx, dword [eax + 0x78]
cmp dword [eax + 0x7c], 0
setne al
test edx, edx
setne cl
and cl, al
cmp cl, 1
jne 0x100075fe
add edx, esi
jo 0x100074f4
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x28]
je 0x100075fe
mov eax, dword [edx + 0x18]
mov dword [esp + 8], eax
test eax, eax
js 0x100075fe
mov eax, dword [edx + 0x20]
mov dword [esp + 0xc], eax
xor ecx, ecx
mov dword [esp + 4], edx
cmp ecx, 0x20000000
je 0x100075f7
lea eax, [ecx*4]
add eax, dword [esp + 0xc]
jo 0x100075f7
add eax, esi
jo 0x100075f7
mov edi, dword [eax]
add edi, esi
jo 0x100075f7
mov dword [esp], ecx
mov al, byte [edi]
mov ebx, 0xc0de1337
mov ebp, 0
test al, al
je 0x100075a8
inc edi
xor ebp, ebp
mov edx, ebp
or edx, ebx
shld edx, ebx, 0x18
movzx ecx, al
xor eax, eax
add ecx, edx
setb al
xor ebx, ecx
xor ebp, eax
mov al, byte [edi]
inc edi
test al, al
jne 0x1000758b
xor ebx, dword [esp + 0x24]
xor ebp, dword [esp + 0x28]
or ebp, ebx
je 0x100075c6
mov ecx, dword [esp]
lea eax, [ecx + 1]
xor edi, edi
cmp ecx, dword [esp + 8]
mov ecx, eax
jl 0x10007546
jmp 0x100075fe
mov edx, dword [esp]
mov eax, edx
add eax, 0x40000000
mov ecx, dword [esp + 4]
js 0x100075f7
add edx, edx
add edx, dword [ecx + 0x24]
jo 0x100075f7
add edx, esi
jo 0x100075f7
movzx eax, word [edx]
shl eax, 2
movzx eax, ax
add eax, dword [ecx + 0x1c]
jo 0x100075f7
add eax, esi
jo 0x100075f7
add esi, dword [eax]
jno 0x1000760a
call fcn.10002e16
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov edi, esi
jmp 0x100075fe
Function at 0x1000b090
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x1000b0a1
jmp dword [eax*4 + 0x10011ebc]
cmp dword [0x10013368], 0
je 0x1000b1b0
push 0x1001336c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x10013384]
test edi, edi
je 0x1000b1a5
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000b0eb
mov edi, dword [edi + 8]
test edi, edi
je 0x1000b1a5
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x1000b0e0
test esi, esi
je 0x1000b0e0
mov ecx, dword [edi + 4]
call dword [0x1001233c]
push esi
call ecx
add esp, 4
jmp 0x1000b0e0
call fcn.1000dda0
jmp case.default.0x1000b0a1
cmp dword [0x10013368], 0
je case.default.0x1000b0a1
push 0x1001336c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x10013384]
test edi, edi
je 0x1000b198
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000b157
mov edi, dword [edi + 8]
test edi, edi
je 0x1000b198
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x1000b150
test esi, esi
je 0x1000b150
mov ecx, dword [edi + 4]
call dword [0x1001233c]
push esi
call ecx
add esp, 4
jmp 0x1000b150
cmp dword [0x10013368], 0
jne 0x1000b18c
push 0x1001336c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x10013368], 1
jmp case.default.0x1000b0a1
push 0x1001336c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x1000b0a1
push 0x1001336c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x10013368]
cmp eax, 1
jne case.default.0x1000b0a1
mov eax, dword [0x10013384]
test eax, eax
je 0x1000b1e2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x1000b1d0
mov dword [0x10013384], 0
mov dword [0x10013368], 0
push 0x1001336c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000b310
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x10011eb0]
xor eax, eax
cmp word [esi], 0x5a4d
jne 0x1000b376
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x1000b376
add esi, ecx
cmp word [esi + 0x18], 0x10b
jne 0x1000b376
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x1000b376
mov edx, dword [esp + 0xc]
sub edx, dword [0x10011eb0]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x1000b366
add esi, 0x28
dec ecx
je 0x1000b376
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x1000b360
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x1000b360
mov eax, esi
pop esi
pop edi
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x383231d0
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x16a5590e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x8ccbc8
Capabilities:
Encode data using xor

Disassembly:
push 0x8cc92e
pop esi
mov edx, edx
add edx, edx
call fcn.008ccbfb
add edx, 0x44695e54
xor dword [ebx], esi
mov ecx, edx
add ebx, 1
sub esp, 4
mov dword [esp], ecx
mov ecx, dword [esp]
add esp, 4
cmp ebx, edi
jne fcn.008ccbc8
or edx, edx
ret
Function at 0xbe8370
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 0xbe838e
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 0xc11074
push ecx
mov edi, eax
call fcn.00bfc198
mov esi, eax
add esp, 8
test esi, esi
jne 0xbe83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00bfc02e
push esi
call fcn.00bfbfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xbeb850
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 0xbeb8ae
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 0xc16720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbeb8ba
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.00bfc1e1
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 0xbeb8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xc16720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xbeb92a
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.00bfd082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xbeb957
mov word [eax], si
add eax, 2
push eax
call fcn.00bfd030
add esp, 4
jmp 0xbeb959
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 0xbeb8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xbeb8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xbec0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xc11458
push ecx
call fcn.00bfc1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00bfc1e1
add esp, 0x10
jmp 0xbec0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00bfc20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00bfbdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00bec050
mov eax, dword [0xc16728]
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 0xbec13b
push esi
call fcn.00bebfb0
add esp, 4
mov dword [0xc16728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xbec14c
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.00bebff0
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 0xbef440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xbef4b7
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 0xbef48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xbef471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xbef47e
add edx, ecx
cmp ebx, edx
jb 0xbef48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xbef467
xor ecx, ecx
jmp 0xbef4a2
test eax, eax
jne 0xbef492
xor ecx, ecx
jmp 0xbef4a2
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.00bef3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret