joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406963
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x260
mov esi, dword [esp + 0x278]
mov ebx, dword [esp + 0x274]
push ebx
call fcn.00406b94
mov ecx, esi
test cl, 8
jne 0x4069b3
mov edx, ecx
and edx, 4
mov dword [esp + 8], edx
test cl, 1
jne 0x4069cc
mov dword [esp + 4], eax
push 0x400
push ebx
push 0x43c69c
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
call fcn.00406c4b
jmp 0x4069ff
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x40a3b4]
cmp eax, 1
adc dword [ecx + 8], 0
jmp 0x406b75
test cl, 2
je 0x406b37
test eax, eax
je 0x406b37
mov dword [esp + 4], eax
mov esi, 0x43c69c
push 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str..
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebx], 0
jne 0x406a0f
cmp word [0x43c69c], 0x5c
jne 0x406a1b
push 0x40a742
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebx + eax*2]
lea ebp, [esp + 0x10]
push ebp
push 0x43c69c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x406b22
mov edi, eax
mov eax, dword [esp + 0x278]
and eax, 3
mov dword [esp + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp], esi
movzx ecx, word [esp + 0x3c]
movzx eax, word [esp + 0x3e]
cmp cx, 0x2e
jne 0x406a70
test ax, ax
je 0x406b08
cmp cx, 0x2e
jne 0x406a88
cmp ax, 0x2e
jne 0x406a88
cmp word [esp + 0x40], 0
je 0x406b08
push 0x400
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [esp + 0x10], 0x10
jne 0x406ac0
mov esi, dword [esp + 8]
push esi
mov ebp, dword [esp + 0x278]
push ebp
call fcn.004068ea
test eax, eax
je 0x406adc
push ebp
push 0xfffffffffffffff2
call fcn.00406324
jmp 0x406b01
cmp dword [esp + 0xc], 3
jne 0x406b08
push dword [esp + 0x278]
push dword [esp + 0x278]
call fcn.00406963
jmp 0x406b08
test esi, esi
jne 0x406aea
mov eax, dword [0x40a3b4]
inc dword [eax + 8]
jmp 0x406b01
mov ebp, dword [esp + 0x274]
push ebp
push 0xfffffffffffffff1
call fcn.00406324
push 0
push ebp
call fcn.00406c82
mov esi, dword [esp]
lea ebp, [esp + 0x10]
push ebp
push edi
call ebx
test eax, eax
jne 0x406a57
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
test al, 1
je 0x406b75
mov word [esi - 2], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x406b6d
push ebx
call fcn.00406cb1
test eax, eax
je 0x406b75
push ebx
call fcn.00406cd9
mov esi, dword [esp + 8]
mov eax, esi
or eax, 1
push eax
push ebx
call fcn.004068ea
test eax, eax
je 0x406b69
push ebx
push 0xffffffffffffffe5
call fcn.00406324
jmp 0x406b75
test esi, esi
jne 0x406b82
mov eax, dword [0x40a3b4]
inc dword [eax + 8]
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret 8
push ebx
push 0xfffffffffffffff1
call fcn.00406324
push 0
push ebx
call fcn.00406c82
jmp 0x406b75
Function at 0x406b94
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, 0x43ce9c
push 0x400
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call fcn.00406d6c
xor ebx, ebx
test eax, eax
je 0x406c26
mov esi, eax
push eax
call fcn.00406de1
mov eax, dword [0x40a6bc]
test byte [eax], 0x80
je 0x406bd7
movzx eax, word [esi]
test eax, eax
je 0x406c26
cmp eax, 0x5c
je 0x406c26
mov edi, 0x43ce9c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, edi
sar esi, 1
cmp eax, esi
jle 0x406c11
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x43ce9c
call fcn.00406cb1
test eax, eax
je 0x406c04
test byte [eax], 0x10
je 0x406c26
push edi
call fcn.00406c4b
push edi
call ebp
cmp eax, esi
jg 0x406bf1
push edi
call fcn.00406cd9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x406c82
Capabilities:
Move file

Disassembly:
push edi
push esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406ca4
push edi
push esi
call fcn.00407109
add esp, 8
mov eax, dword [0x40a3b4]
inc dword [eax + 0x10]
pop esi
pop edi
ret 8

Function at 0x406f62
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
push ecx
push eax
push ebx
push ecx
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
pop edi
pop ebx
ret 0xc

Function at 0x406f94
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x1c]
mov ebx, 0xffffff9b
mov ebp, esp
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
inc ebx
je 0x406fef
mov dword [esp + 4], 0x61
mov dword [esp], 0x73006e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x4ec4ec4f
mul edx
shr edx, 3
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
add eax, edx
sub ecx, eax
add word [esp + 4], cx
push esi
push 0
push ebp
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x406fac
jmp 0x406ff6
mov word [esi], 0
xor esi, esi
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x407002
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
mov edi, esp
push 0
push edi
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
cmp dword [edi], esi
sete cl
and cl, al
movzx eax, cl
add esp, 4
pop esi
pop edi
ret 0xc
Function at 0x407034
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push eax
mov esi, dword [esp + 0x18]
mov edi, esp
push 0
push edi
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [edi], esi
sete cl
and cl, al
movzx eax, cl
add esp, 4
pop esi
pop edi
ret 0xc

Function at 0x407066
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x1c]
xor ebx, ebx
push 1
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
inc esi
test eax, eax
jne 0x4070d8
lea eax, [esp + 4]
lea ecx, [esp + 2]
push 0
push eax
push 2
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4070b4
cmp dword [esp + 4], 2
jne 0x4070b4
movzx eax, word [esp + 2]
cmp eax, 0xfeff
jne 0x4070b4
mov esi, ebx
jmp 0x4070d8
cmp dword [esp + 0x20], 0
je 0x4070cc
xor ebx, ebx
push 1
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4070e3
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
ret 8
lea esi, [esp + 8]
push ebx
push esi
push 2
push 0x40a746
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 2
mov ecx, 0x80004005
cmovne ebx, ecx
test eax, eax
cmove ebx, ecx
jmp 0x4070b0
Function at 0x407109
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x20]
mov dword [0x43e2a4], 0x4c
mov dword [0x43e2a0], 0x55004e
test esi, esi
je 0x40718a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
sub esp, 0x1c
mov dword [esp + 0x14], ecx
movaps xmm0, xmmword [0x40a6e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
push 0x43e2a0
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4072f7
cmp eax, 0x400
jg 0x4072f7
push 0x400
push 0x43da9c
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4072f7
cmp eax, 0x400
jg 0x4072f7
mov esi, 0x43da9c
push esi
push 0x43e2a0
push str._ls_ls_r_n
push 0x43d69c
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, eax
mov eax, dword [0x40a004]
mov eax, dword [eax]
push dword [eax + 0x128]
push esi
call fcn.004072ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
sub esp, 0x1c
mov dword [esp + 0x14], ecx
movaps xmm0, xmmword [0x40a6f0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4072f7
mov esi, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
add eax, edi
add eax, 0xa
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
je 0x4072f0
mov ebx, eax
mov eax, esp
push 0
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4072f0
cmp dword [esp], ebp
jne 0x4072f0
push str._Rename__r_n
push ebx
call fcn.00406ed3
test eax, eax
je 0x4072a0
add eax, 0xa
push 0x40a75d
push eax
call fcn.00406ed3
test eax, eax
je 0x4072b2
mov ecx, ebp
add ecx, ebx
cmp ecx, eax
jbe 0x40729b
mov dl, byte [ecx]
mov byte [ecx + edi], dl
lea edx, [ecx - 1]
mov ecx, edx
cmp edx, eax
ja 0x40728d
sub eax, ebx
inc eax
jmp 0x4072b4
lea eax, [ebx + ebp]
add ebp, 0xa
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, ebp
test edi, edi
je 0x4072cc
mov ecx, ebx
add ecx, eax
xor eax, eax
mov dl, byte [eax + 0x43d69c]
mov byte [ecx + eax], dl
inc eax
cmp edi, eax
jne 0x4072be
add ebp, edi
xor edi, edi
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 4]
push edi
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4076a9
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor edx, edx
cmp dword [esp + 0x28], 0
mov dword [esp + 8], 0x800
setne dl
shl edx, 8
or edx, 0x20019
mov esi, esp
push esi
push edx
push ecx
push eax
call fcn.00407640
test eax, eax
jne 0x407723
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push edi
push ecx
push 0
push dword [esp + 0x30]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [edi + 0x7fe], 0
test esi, esi
jne 0x407723
mov eax, dword [esp + 4]
add eax, 0xfffffffd
cmp eax, 0xfffffffd
ja 0x407728
mov word [edi], 0
add esp, 0xc
pop esi
pop edi
ret 0x14

Function at 0x407816
Capabilities:
Get common file path

Disassembly:
push edi
push esi
sub esp, 0x23c
mov edi, dword [esp + 0x248]
mov esi, esp
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
cmp eax, 0x105
cmovb ecx, eax
test ecx, ecx
je 0x40784e
xor eax, eax
cmp word [esp + ecx*2 - 2], 0x5c
sete al
jmp 0x407851
xor eax, eax
inc eax
lea ecx, [esp + ecx*2]
add eax, eax
add eax, 0x40a742
push edi
push eax
push str._s_S.dll
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add esp, 0x23c
pop esi
pop edi
ret 4

Function at 0x407950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
cmp dword [0x43fcf4], 0
jne 0x40798c
xor eax, eax
mov edx, 8
mov esi, eax
mov edi, esi
shr edi, 1
and esi, 1
neg esi
and esi, 0xedb88320
xor esi, edi
dec edx
jne 0x407969
mov dword [eax*4 + 0x43fcf0], esi
inc eax
cmp eax, 0x100
jne 0x407962
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x4079b5
mov edx, dword [esp + 0x14]
not eax
xor esi, esi
mov bl, byte [edx + esi]
xor bl, al
movzx edi, bl
shr eax, 8
xor eax, dword [edi*4 + 0x43fcf0]
inc esi
cmp ecx, esi
jne 0x40799c
not eax
pop esi
pop edi
pop ebx
ret 0xc
Function at 0x105dfc20
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x105dfe0d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x360000]
push edi
or ebp, 0xffffffff
jmp 0x105dfc4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x105dfc51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105dfc40
mov eax, 1
add ebx, ebx
jne 0x105dfc63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x105dfc74
jne 0x105dfc93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105dfc93
dec eax
add ebx, ebx
jne 0x105dfc80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x105dfc58
add ebx, ebx
jne 0x105dfc8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x105dfce5
xor ecx, ecx
sub eax, 3
jb 0x105dfcab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x105dfd1a
sar eax, 1
mov ebp, eax
jmp 0x105dfcb6
add ebx, ebx
jne 0x105dfcb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105dfc84
inc ecx
add ebx, ebx
jne 0x105dfcc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105dfc84
add ebx, ebx
jne 0x105dfcd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x105dfcc6
jne 0x105dfce2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x105dfcc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x105dfd04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x105dfcf6
jmp 0x105dfc46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x105dfd04
add edi, ecx
jmp 0x105dfc46
pop esi
mov edi, esi
mov ecx, 0x6e9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x105dfd22
cmp byte [edi], 0x22
jne 0x105dfd22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x105dfd27
lea edi, [esi + 0x5d4000]
mov eax, dword [edi]
or eax, eax
je 0x105dfd9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5ec074]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5ec1a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x105dfd54
mov ecx, edi
jns 0x105dfd83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5ec1a8]
or eax, eax
je 0x105dfd99
mov dword [ebx], eax
add ebx, 4
jmp 0x105dfd71
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x105dfdd0
cmp al, 0xef
ja 0x105dfdc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x105dfda5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x105dfdb2
mov ebp, dword [esi + 0x5ec1ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x105dfe04
sub esp, 0xffffff80
jmp 0x10105af2
Function at 0xb32370
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 0xb3238e
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 0xb5b074
push ecx
mov edi, eax
call fcn.00b46198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb323cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00b4602e
push esi
call fcn.00b45fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xb35850
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 0xb358ae
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 0xb60720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb358ba
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.00b461e1
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 0xb358ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb60720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb3592a
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.00b47082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xb35957
mov word [eax], si
add eax, 2
push eax
call fcn.00b47030
add esp, 4
jmp 0xb35959
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 0xb358ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xb358b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xb360c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xb5b458
push ecx
call fcn.00b461e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00b461e1
add esp, 0x10
jmp 0xb360d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00b4620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00b45dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00b36050
mov eax, dword [0xb60728]
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 0xb3613b
push esi
call fcn.00b35fb0
add esp, 4
mov dword [0xb60728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xb3614c
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.00b35ff0
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 0xb39440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xb394b7
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 0xb3948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb39471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb3947e
add edx, ecx
cmp ebx, edx
jb 0xb3948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb39467
xor ecx, ecx
jmp 0xb394a2
test eax, eax
jne 0xb39492
xor ecx, ecx
jmp 0xb394a2
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.00b393c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xb398f0
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 0xb39921
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 0xb39946
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 0xb3996e
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 0xb39993
push ecx
push esi
call fcn.00b394c0
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 0xb3ac00
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 0xb3ac4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xb3ac2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xb3ac38
add edx, eax
cmp ebx, edx
jb 0xb3ac46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xb3ac21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xb3ac50
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 0xb3ac70
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 0xb3acb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb3ac9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb3aca8
add edx, ecx
cmp ebx, edx
jb 0xb3acb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb3ac91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xb3af60
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.00b47145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xb3affb
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 0xb3afdd
lea eax, [esp + 0x18]
push eax
jmp 0xb3afe2
push 0xb60720
call fcn.00b46fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xb3afb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xb3af40
push 4
push ecx
push eax
call fcn.00b4743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret