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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x2416ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x60]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.001b8bb0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0018d370
add esp, 8
mov ecx, eax
call fcn.00024c40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x3c]
call fcn.00024e90
lea ecx, [ebp - 0x20]
call fcn.000e0ca0
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0x1c19b6
xor al, al
jmp 0x1c19de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
je 0x1c19d4
cmp dword [ebp - 0x64], 3
je 0x1c19d4
mov dword [ebp - 0x70], 0
jmp 0x1c19db
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00168a41
mov esp, ebp
pop ebp
ret 4

Function at 0x1c19f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x2416ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], ecx
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.001b8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0018d370
add esp, 8
mov ecx, eax
call fcn.00024c40
push eax
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.001b8bb0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0018d370
add esp, 8
mov ecx, eax
call fcn.00024c40
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x75], al
lea ecx, [ebp - 0x74]
call fcn.00024e90
lea ecx, [ebp - 0x58]
call fcn.000e0ca0
lea ecx, [ebp - 0x3c]
call fcn.00024e90
lea ecx, [ebp - 0x20]
call fcn.000e0ca0
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00168a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1c1a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x2416ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], ecx
lea eax, [ebp - 0x250]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1c1ac6
xor al, al
jmp 0x1c1b56
call fcn.001c2470
movzx ecx, al
test ecx, ecx
jne 0x1c1af3
push 0x105
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1c1af3
xor al, al
jmp 0x1c1b56
lea ecx, [ebp - 0x250]
push ecx
call fcn.001c2450
add esp, 4
push eax
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.001b8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0018d370
add esp, 8
mov ecx, eax
call fcn.00024c40
push eax
call fcn.001c24b0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
lea ecx, [ebp - 0x3c]
call fcn.00024e90
lea ecx, [ebp - 0x20]
call fcn.000e0ca0
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00168a41
mov esp, ebp
pop ebp
ret 4
Function at 0x1c1d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x2416ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x274], ecx
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x23
mov dword [ebp - 0x5c], eax
push 1
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x270]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1c1dca
xor al, al
jmp 0x1c1f7a
call fcn.001c2470
movzx eax, al
test eax, eax
jne 0x1c1dfa
push 0x105
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1c1dfa
xor al, al
jmp 0x1c1f7a
push 0xffffffffffffffff
push 0x1eea6c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.001c2570
add esp, 0x10
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0018d370
add esp, 8
mov ecx, eax
call fcn.00024c40
push eax
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.001c2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.00024e90
cmp dword [ebp - 0x60], 0
jbe 0x1c1ea1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp + eax*2 - 0x272]
cmp ecx, 0x5c
je 0x1c1ea1
push 0xffffffffffffffff
push 0x1eeb0c
mov edx, 0x105
sub edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
lea ecx, [ebp + eax*2 - 0x270]
push ecx
call fcn.001c2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x274]
add edx, 0x20
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.0018d370
add esp, 8
mov ecx, eax
call fcn.00024c40
push eax
mov ecx, 0x105
sub ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x60]
lea eax, [ebp + edx*2 - 0x270]
push eax
call fcn.001c2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
call fcn.00024e90
cmp dword [ebp - 0x60], 0
jbe 0x1c1f2a
mov ecx, dword [ebp - 0x60]
movzx edx, word [ebp + ecx*2 - 0x272]
cmp edx, 0x5c
je 0x1c1f2a
push 0xffffffffffffffff
push 0x1eebbc
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.001c2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x104
jb 0x1c1f37
xor al, al
jmp 0x1c1f7a
mov ecx, dword [ebp + 8]
call fcn.001b8b20
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.001ba380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.001b8f80
lea ecx, [ebp - 0x58]
call fcn.000e0ca0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x274]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x274]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00168a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1c2000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x2416ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0x1c2026
xor al, al
jmp 0x1c223c
lea ecx, [ebp - 0x218]
call fcn.000250e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.001b9310
movzx ecx, al
test ecx, ecx
je 0x1c20a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.00026550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0018d370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.0002fd10
lea ecx, [ebp - 0x3c]
call fcn.00024e90
lea ecx, [ebp - 0x20]
call fcn.000e0ca0
lea ecx, [ebp - 0x218]
call fcn.00024c40
mov dword [ebp - 0x1fc], eax
jmp 0x1c2108
push 0x1eec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.001b8e60
mov ecx, eax
call fcn.0002b350
push eax
call fcn.0002e3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.000e0ca0
lea ecx, [ebp - 0x58]
call fcn.000e0ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0x1c2108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.00024e90
mov al, byte [ebp - 0x232]
jmp 0x1c223c
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
and eax, 4
jne 0x1c2131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0x1c219b
xor edx, edx
je 0x1c217e
lea eax, [ebp - 0x224]
push eax
push str._remove_or_unknown_drive
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.00194170
mov ecx, eax
call fcn.0018f550
push eax
call fcn.000216a0
add esp, 8
push eax
call fcn.000216a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.00194580
jmp 0x1c2131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.00024e90
mov al, byte [ebp - 0x233]
jmp 0x1c223c
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1c21da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.00024e90
mov al, byte [ebp - 0x234]
jmp 0x1c223c
xor edx, edx
je 0x1c2217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.00194170
mov ecx, eax
call fcn.0018f550
push eax
call fcn.000216a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00194580
jmp 0x1c21da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.00024e90
mov al, byte [ebp - 0x235]
jmp 0x1c223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00168a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1c2250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x2416ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.001b89b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.001ab8e0
lea ecx, [ebp - 0x144]
call fcn.0018da50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x1c2328
xor ecx, ecx
je 0x1c22fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.00194170
mov ecx, eax
call fcn.0018f550
push eax
call fcn.000216a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00194580
jmp 0x1c22b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.001c2400
lea ecx, [ebp - 0x144]
call fcn.001c24d0
lea ecx, [ebp - 0x140]
call fcn.001af370
mov eax, dword [ebp + 8]
jmp 0x1c23e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x1c2338
jmp 0x1c2388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00167a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.0018da10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x1c228b
lea ecx, [ebp - 0x144]
call fcn.0018da50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.001ba380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.001b8f80
lea ecx, [ebp - 0xe4]
call fcn.000e0ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.001c2400
lea ecx, [ebp - 0x144]
call fcn.001c24d0
lea ecx, [ebp - 0x140]
call fcn.001af370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00168a41
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1c3a6c
call fcn.0016aeef
mov dword [eax], esi
call fcn.0016aedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.00168cab
mov eax, esi
jmp 0x1c3ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x1c3a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1c3a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0016af02
pop ecx
call fcn.0016aedc
mov eax, dword [eax]
jmp 0x1c3ac1
test al, 0x10
jne 0x1c3abf
test al, 1
je 0x1c3abf
test byte [ebp + 0xc], 2
je 0x1c3abf
call fcn.0016aeef
mov dword [eax], 5
call fcn.0016aedc
mov dword [eax], 0xd
jmp 0x1c3a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x2f26350a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x6f48198f
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4e3070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x77000]
push edi
jmp 0x4e308a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e3091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3080
mov eax, 1
add ebx, ebx
jne 0x4e30a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e30b4
jne 0x4e30d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e30d3
dec eax
add ebx, ebx
jne 0x4e30c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e3098
add ebx, ebx
jne 0x4e30cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e3125
xor ecx, ecx
sub eax, 3
jb 0x4e30eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e315a
sar eax, 1
mov ebp, eax
jmp 0x4e30f6
add ebx, ebx
jne 0x4e30f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e30c4
inc ecx
add ebx, ebx
jne 0x4e3104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e30c4
add ebx, ebx
jne 0x4e3111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e3106
jne 0x4e3122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e3106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e3144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e3136
jmp 0x4e3086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e3144
add edi, ecx
jmp 0x4e3086
pop esi
mov edi, esi
mov ecx, 0x70
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e3162
cmp byte [edi], 2
jne 0x4e3162
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 0x4e3167
lea edi, [esi + 0xe1000]
mov eax, dword [edi]
or eax, eax
je 0x4e31d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe31dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe3290]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e3194
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe3294]
or eax, eax
je 0x4e31d0
mov dword [ebx], eax
add ebx, 4
jmp 0x4e31b1
call dword [esi + 0xe32a4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e3207
cmp al, 0xef
ja 0x4e31fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e31dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e31e9
mov ebp, dword [esi + 0xe3298]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e323b
sub esp, 0xffffff80
jmp 0x401705
Function at 0x1044370
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 0x104438e
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 0x106d074
push ecx
mov edi, eax
call fcn.01058198
mov esi, eax
add esp, 8
test esi, esi
jne 0x10443cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0105802e
push esi
call fcn.01057fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x1047850
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 0x10478ae
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 0x1072720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x10478ba
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.010581e1
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 0x10478ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x1072720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x104792a
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.01059082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x1047957
mov word [eax], si
add eax, 2
push eax
call fcn.01059030
add esp, 4
jmp 0x1047959
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 0x10478ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x10478b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x10480c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x106d458
push ecx
call fcn.010581e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.010581e1
add esp, 0x10
jmp 0x10480d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0105820b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.01057dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.01048050
mov eax, dword [0x1072728]
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 0x104813b
push esi
call fcn.01047fb0
add esp, 4
mov dword [0x1072728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x104814c
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.01047ff0
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 0x104b440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x104b4b7
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 0x104b48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x104b471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x104b47e
add edx, ecx
cmp ebx, edx
jb 0x104b48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x104b467
xor ecx, ecx
jmp 0x104b4a2
test eax, eax
jne 0x104b492
xor ecx, ecx
jmp 0x104b4a2
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.0104b3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x104b8f0
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 0x104b921
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 0x104b946
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 0x104b96e
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 0x104b993
push ecx
push esi
call fcn.0104b4c0
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