joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471814
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ecx
mov ecx, dword [ebx + 8]
dec ebx
mov edx, dword [ebx + 0xd]
lea esi, [edx]
add esi, 0xc
mov ebx, dword [esi]
push edi
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x47185c
mov edx, ebx
add edx, 0x30
mov edx, dword [edx]
mov edi, dword [edx]
and edi, 0xdf00df
mov edx, dword [edx + 0xb]
add edx, edi
shr edx, 1
sub edx, 0x192299a5
cmp edx, 0
je 0x471862
mov edx, dword [ebx]
lea ebx, [edx]
jmp 0x47182f
call fcn.00471965
call fcn.00471926
push eax
call fcn.0047191b
mov ebx, edi
mov eax, dword [ebx]
add eax, esi
mov ebx, dword [eax + 0xb]
add ebx, ebx
sub ebx, 0xe8c6ca
cmp ebx, 0
jne 0x47188a
jmp 0x47188f
add edi, 4
jmp 0x471872
mov ebx, edx
add ebx, 0x20
mov ebx, dword [ebx]
sub edi, esi
sub edi, ebx
shr edi, 1
mov ebx, dword [edx + 0x24]
add ebx, edi
add ebx, esi
mov edi, dword [ebx]
shl edi, 0x10
shr edi, 0xe
mov ebx, dword [edx + 0x1c]
add ebx, esi
add ebx, edi
mov edi, dword [ebx]
add edi, esi
mov ebx, 0x95000
push esi
mov edx, 0xef000
lea eax, [0x40]
push ecx
add edx, ecx
push ebx
push esp
push eax
push ebx
push edx
call edi
pop ebx
pop ecx
push eax
mov esi, 0xa71c0
lea ebx, [0x10d000]
add esi, ecx
add ebx, ecx
mov edx, 0x2854
call fcn.00471931
lea esi, [0x2cf7]
mov edx, 0x1b0a4
mov ebx, 0xef000
add ebx, ecx
lea edi, [0x31]
imul esi, edi
add esi, 0x2479
add esi, ecx
call fcn.00471931
jmp 0x47196b
nop
ret
lea edx, [0x4f5]
mov esi, 0x10000000
lea ebx, [0xef000]
add ebx, ecx
mov edi, 3
imul edx, edi
add edx, 0x121
sub ebx, edx
lea edx, [ebx]
sub edx, esi
lea esi, [0xa9fc0]
add esi, ecx
mov edi, dword [esi]
xor edi, 0x32c2c59d
dec edi
test edi, edi
je 0x4719b4
add edi, ebx
mov eax, dword [edi]
add eax, edx
mov dword [edi], eax
add esi, 4
jmp 0x47199a
lea ebx, [0x4e57]
lea esi, [0x4f68]
add esi, ecx
add esi, 0xea1dc
add esi, ebx
push esi
lea edx, [edi]
test edi, edi
jmp 0x471955

Function at 0x68e220
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [ebx + 4]
inc ecx
push ebx
add al, 0x41
jnp 0x68e1f3
daa
mov edx, 0x2a35255b
mov ch, byte [ebx]
dec esi
cli
mov eax, 0x9a529f2d
adc dword [edx], edi
xor edi, esi
xor dword [edx - 0x4b], 0xffffff83
sbb byte [eax - 0x80], al
jbe 0x68e1f2
inc byte [ebx + 0x1883b572]
inc eax
xor byte [esi - 0xb], 0x5d
pop ebp
lodsd eax, dword [esi]
push ebp
sar ebx, cl
push ds
aam 0x3a
mov bh, 0x76
jmp [ebp - 0x3ad28b85]
mov bh, 0x62
inc ebp
test eax, 0xa5aa782e
inc edi
jecxz 0x68e1db
test ebp, eax
jno 0x68e1df
loope 0x68e1dc
or edi, dword [edx]
and dword [esi], eax
push es
imul eax, dword [ecx + 0x21], 0xdd513e49
pop edx
sahf
lahf
ret 0x124a
Function at 0x969e00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x79d015
lea edi, [esi - 0x39c015]
push edi
or ebp, 0xffffffff
jmp 0x969e22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x969e29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e18
mov eax, 1
add ebx, ebx
jne 0x969e3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x969e4c
jne 0x969e6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e6b
dec eax
add ebx, ebx
jne 0x969e58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x969e30
add ebx, ebx
jne 0x969e67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x969ebd
xor ecx, ecx
sub eax, 3
jb 0x969e83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x969ef2
sar eax, 1
mov ebp, eax
jmp 0x969e8e
add ebx, ebx
jne 0x969e8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e5c
inc ecx
add ebx, ebx
jne 0x969e9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e5c
add ebx, ebx
jne 0x969ea9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x969e9e
jne 0x969eba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x969e9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x969edc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x969ece
jmp 0x969e1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x969edc
add edi, ecx
jmp 0x969e1e
pop esi
mov edi, esi
mov ecx, 0xd621
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x969efa
cmp byte [edi], 0x35
jne 0x969efa
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 0x969eff
lea edi, [esi + 0x559000]
mov eax, dword [edi]
or eax, eax
je 0x969f6e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5691b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5691d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x969f2c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5691e0]
or eax, eax
je 0x969f68
mov dword [ebx], eax
add ebx, 4
jmp 0x969f49
call dword [esi + 0x5691dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x969fa8
cmp al, 0xef
ja 0x969f92
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x969f74
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x969f81
mov eax, dword [edi]
add edi, 4
jmp 0x969f81
mov ebp, dword [esi + 0x5691e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x969fdc
sub esp, 0xffffff80
jmp 0x463090
Function at 0x405d10
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
je 0x405dc4
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebp
push ebp
call esi
mov ecx, edi
mov ebx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d33
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ebx]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x405d60
pop edi
pop esi
pop ebp
pop ebx
ret
push ebx
push ebp
call esi
mov esi, eax
cmp word [ebp + esi*2 - 2], 0x5c
je 0x405d79
mov eax, 0x5c
mov word [ebp + esi*2], ax
inc esi
mov ecx, edi
xor edx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d80
sub ecx, ebx
sar ecx, 1
je 0x405dc4
lea esi, [esi*2]
add esi, ebp
nop word [eax + eax]
mov ax, word [edi + edx*2]
lea esi, [esi + 2]
mov word [esi - 2], ax
inc edx
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405db1
sub eax, ebx
sar eax, 1
cmp edx, eax
jb 0x405da0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

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

Disassembly:
push esi
push dword [esp + 8]
push dword [esp + 0x10]
call fcn.00407290
mov esi, eax
add esp, 8
test esi, esi
je 0x405e17
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405dfb
test al, 0x50
jne 0x405dfb
mov eax, esi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x405e0e
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
Function at 0x406550
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4566b4]
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x406578
push eax
push str.Setupapi.dll
call fcn.00406ff0
add esp, 8
mov dword [0x4566b4], eax
test eax, eax
je 0x40660f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x456ad4], ebx
jne 0x40659c
push str.SetupDiGetClassDevsW
push eax
call esi
mov dword [0x456ad4], eax
test eax, eax
je 0x40660f
mov eax, dword [0x4566b4]
cmp dword [0x456ad8], ebx
jne 0x4065ba
push str.SetupDiEnumDeviceInfo
push eax
call esi
mov dword [0x456ad8], eax
test eax, eax
je 0x40660f
mov eax, dword [0x4566b4]
cmp dword [0x456bfc], ebx
jne 0x4065d8
push str.SetupDiGetDeviceRegistryPropertyW
push eax
call esi
mov dword [0x456bfc], eax
test eax, eax
je 0x40660f
mov eax, dword [0x4566b4]
cmp dword [0x456adc], ebx
jne 0x4065f6
push str.SetupDiGetDeviceInterfaceDetailW
push eax
call esi
mov dword [0x456adc], eax
test eax, eax
je 0x40660f
mov eax, dword [0x4566b4]
cmp dword [0x456c04], ebx
jne 0x406614
push str.SetupDiDestroyDeviceInfoList
push eax
call esi
mov dword [0x456c04], eax
test eax, eax
jne 0x406614
pop esi
xor eax, eax
pop ebx
ret
push edi
push 6
push 0
push 0
push 0
call dword [0x456ad4]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406630
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov esi, dword [esp + 0x18]
xorps xmm0, xmm0
push ebp
push esi
push 0
movups xmmword [esi], xmm0
push edi
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], ebx
mov dword [esi], 0x1c
call dword [0x456ad8]
test eax, eax
je 0x406696
mov ebp, dword [esp + 0x14]
nop dword [eax + eax]
push esi
push edi
push ebp
call fcn.004069e0
add esp, 0xc
cmp eax, 1
je 0x4066a4
xorps xmm0, xmm0
inc ebx
push esi
movups xmmword [esi], xmm0
push ebx
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
push edi
mov dword [esi], 0x1c
call dword [0x456ad8]
test eax, eax
jne 0x406660
push edi
call dword [0x456c04]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x18]
pop ebp
mov dword [eax], edi
mov eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x406c50
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x18
mov eax, dword [0x453034]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0xc], ecx
xor esi, esi
mov dword [esp + 8], 0
push edi
mov dword [esp + 0x14], 0x24
mov dword [esp + 0x18], 0x26
mov dword [esp + 0x1c], 0x2a
cmp dword [0x456ae0], ebx
jne 0x406cf9
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push 3
push 1
push 3
push 2
push ebx
push ebx
call edi
push edx
push eax
call edi
push edx
push eax
call edi
push edx
push eax
push 0x23
xor ecx, ecx
mov dword [0x456ae0], 0x11c
push 0x456ae0
mov dword [0x456ae4], 6
mov dword [0x456ae8], 1
mov word [0x456bf4], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
inc eax
mov dword [0x453014], eax
jmp 0x406cfe
mov eax, dword [0x453014]
test eax, eax
je 0x406d19
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0041fb75
add esp, 0x18
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
test ecx, ecx
je 0x406e6d
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x406e6d
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x406e6d
push 0
push eax
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x406e6d
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
nop word [eax + eax]
mov eax, dword [esp + ebp*4 + 0x18]
cmp eax, 0x26
jne 0x406e8b
push 0
push 0
push 0x442a64
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x406e67
lea ecx, [edi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x406e67
push edi
push esi
push 0x442a64
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp edi, eax
jne 0x406e67
push esi
push 0x442a64
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406e07
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call edi
push 0x442a0c
push 0x26
call fcn.00405be0
mov esi, eax
add esp, 8
test esi, esi
je 0x406e67
jmp 0x406e24
cmp word [esi + edi*2 - 4], 0x5c
je 0x406e1e
push 0x442a60
lea eax, [edi + 1]
push eax
push esi
call fcn.00407550
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406e30
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [esp + 0x18]
call fcn.00426b50
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 1
jne 0x406e67
push esi
call edi
inc ebp
xor esi, esi
cmp ebp, 3
jl 0x406d80
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call ebp
push dword [esp + 0x10]
call ebp
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041fb75
add esp, 0x18
ret
push 0x442a0c
push eax
jmp 0x406df7
Function at 0x437718
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00437321
push eax
push esi
push dword [ebp + 8]
call fcn.004372d6
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00437321
push eax
push esi
push dword [ebp + 8]
call fcn.004372d6
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00437311
sti
inc ebp
mov eax, dword [0x7c9d88bf]
invalid
Function at 0x406490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [0x456ebc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x71819df
mov eax, dword [ebp - 0x10]
mov ecx, eax
sub ecx, 0x9f95dcb6
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jg 0x4064de
jmp 0x4064c8
mov eax, dword [ebp - 0x14]
sub eax, 0x8b2df92b
mov dword [ebp - 0x1c], eax
je 0x406557
jmp 0x406520
mov eax, dword [ebp - 0x14]
sub eax, 0x9f95dcb7
mov dword [ebp - 0x20], eax
je 0x406543
jmp 0x4064f4
mov eax, dword [ebp - 0x14]
sub eax, 0x71819df
mov dword [ebp - 0x24], eax
je 0x406525
jmp 0x40650a
mov eax, dword [ebp - 0x14]
sub eax, 0xf473e34
mov dword [ebp - 0x28], eax
je 0x406583
jmp 0x406520
jmp 0x40658b
mov eax, 0x8b2df92b
mov ecx, 0x9f95dcb7
mov edx, dword [ebp - 4]
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x40658b
mov eax, dword [0x456ebc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xf473e34
jmp 0x40658b
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x456ebc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xf473e34
jmp 0x40658b
mov eax, dword [ebp - 8]
add esp, 0x28
pop ebp
ret
jmp 0x4064ac
Function at 0x421b7a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x456690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041fff9
mov dword [ebp - 0x14], eax
cmp dword [0x457edc], edi
jne 0x421c6b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x421bf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x421d4b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x421d4b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x421d4b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x457edc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x457ee0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x457ee4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457eec], eax
test eax, eax
je 0x421c68
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457ee8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x421c90
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421c83
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x421ca5
push 4
pop eax
jmp 0x421d4d
cmp dword [ebp - 0x14], edi
je 0x421ca5
push dword [0x457edc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x421c8a
mov eax, dword [0x457ee8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x421d03
cmp dword [0x457eec], esi
je 0x421d03
push eax
call ebx
push dword [0x457eec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x421d03
test eax, eax
je 0x421d03
call ecx
test eax, eax
je 0x421cf8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x421cf8
test byte [ebp - 8], 1
jne 0x421d03
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x421d33
mov eax, dword [0x457ee0]
cmp eax, esi
je 0x421d30
push eax
call ebx
test eax, eax
je 0x421d30
call eax
mov edi, eax
test edi, edi
je 0x421d30
mov eax, dword [0x457ee4]
cmp eax, esi
je 0x421d30
push eax
call ebx
test eax, eax
je 0x421d30
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x457edc]
call ebx
test eax, eax
je 0x421d4b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x421d4d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421d5c
leave
ret
Function at 0xccb370
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 0xccb38e
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 0xcf4074
push ecx
mov edi, eax
call fcn.00cdf198
mov esi, eax
add esp, 8
test esi, esi
jne 0xccb3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00cdf02e
push esi
call fcn.00cdefb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xcce850
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 0xcce8ae
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 0xcf9720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcce8ba
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.00cdf1e1
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 0xcce8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xcf9720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcce92a
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.00ce0082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xcce957
mov word [eax], si
add eax, 2
push eax
call fcn.00ce0030
add esp, 4
jmp 0xcce959
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 0xcce8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xcce8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xccf0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xcf4458
push ecx
call fcn.00cdf1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00cdf1e1
add esp, 0x10
jmp 0xccf0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00cdf20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00cdedff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00ccf050
mov eax, dword [0xcf9728]
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 0xccf13b
push esi
call fcn.00ccefb0
add esp, 4
mov dword [0xcf9728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xccf14c
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.00cceff0
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 0xcd2440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xcd24b7
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 0xcd248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xcd2471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xcd247e
add edx, ecx
cmp ebx, edx
jb 0xcd248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xcd2467
xor ecx, ecx
jmp 0xcd24a2
test eax, eax
jne 0xcd2492
xor ecx, ecx
jmp 0xcd24a2
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.00cd23c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xcd28f0
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 0xcd2921
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 0xcd2946
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 0xcd296e
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 0xcd2993
push ecx
push esi
call fcn.00cd24c0
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