joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d84da
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004d8456
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d8649
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d8649
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d85fe
jg 0x4d8536
test eax, eax
je 0x4d85f4
push 1
push 0x1000
call fcn.004d67df
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d8559
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d85eb
push 0x8000
push ebx
call fcn.004cf797
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d8582
jg 0x4d857d
cmp ecx, 0x1000
jb 0x4d8582
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004d235b
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d85c7
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4d857d
jl 0x4d85ae
test ecx, ecx
jne 0x4d856f
push dword [ebp - 0xc]
push ebx
call fcn.004cf797
push esi
call fcn.004d5106
add esp, 0xc
xor ebx, ebx
jmp 0x4d8657
cmp byte [edi + 0x24], 0
je 0x4d85de
cmp dword [edi + 0x20], 5
jne 0x4d85de
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d85e9
mov ebx, dword [edi + 0x18]
jmp 0x4d85eb
xor ebx, ebx
push esi
call fcn.004d5106
pop ecx
jmp 0x4d8657
test ecx, ecx
jg 0x4d85c0
jl 0x4d85fe
test eax, eax
jae 0x4d85c0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cd469
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d861e
cmp byte [edi + 0x1c], 0
je 0x4d85c0
jmp 0x4d864f
push ebx
call fcn.004d83ec
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d85c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d8657
cmp byte [edi + 0x1c], 0
je 0x4d8654
mov ebx, dword [edi + 0x18]
jmp 0x4d8657
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004cd469
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4da40b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x51b400]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4da456
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004da5a6
test al, al
jne 0x4da450
sub edx, 2
cmp edx, edi
jne 0x4da436
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4da478
lea eax, [edi + 2]
cmp edx, eax
je 0x4da478
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004da357
add esp, 0x10
jmp 0x4da572
push esi
lea ecx, [ebp - 0x255]
call fcn.004da5a6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4da4bb
push dword [ebp - 0x25c]
jmp 0x4da468
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4da4f8
cmp word [ebp - 0x226], 0
je 0x4da519
cmp word [ebp - 0x226], ax
jne 0x4da4f8
cmp word [ebp - 0x224], 0
je 0x4da519
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004da357
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4da565
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4da4d2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4da54d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4da572
push 0x4da187
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004ca740
add esp, 0x10
jmp 0x4da542
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b6ba6
leave
ret

Function at 0x4dae88
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4dae99
pop esi
ret
push ebx
push edi
push esi
call fcn.004dae51
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d51a9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4daec1
push ebx
push esi
push edi
call fcn.004b8e70
add esp, 0xc
push 0
call fcn.004d5106
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4db291
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004daed6
Function at 0x4dd510
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004d4c94
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4dd57f
cmp esi, dword [ebp - 4]
je 0x4dd57a
cmp dword [ebp + 0xc], 0
je 0x4dd57a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4dd557
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004dd062
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4dd581
xor eax, eax
inc eax
jmp 0x4dd581
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4dd5e6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51b400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004d4c94
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004d4c94
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4dd65d
cmp word [ecx], dx
je 0x4dd65d
mov eax, dword [0x5099c4]
push edi
dec eax
push eax
push 0x5098b0
call fcn.004dd585
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4dd6d0
cmp word [eax], dx
je 0x4dd6d0
mov eax, dword [edi]
test eax, eax
je 0x4dd681
cmp word [eax], dx
je 0x4dd681
lea eax, [ebp - 0x10]
push eax
call fcn.004dcf68
jmp 0x4dd68a
lea eax, [ebp - 0x10]
push eax
call fcn.004dd003
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4dd6fa
mov eax, dword [0x5098ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5095a0
call fcn.004dd585
add esp, 0xc
test al, al
je 0x4dd6fa
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4dd6c5
cmp word [eax], di
je 0x4dd6c5
lea eax, [ebp - 0x10]
push eax
call fcn.004dcf68
pop ecx
jmp 0x4dd6fc
lea eax, [ebp - 0x10]
push eax
call fcn.004dd003
jmp 0x4dd6c2
mov eax, dword [edi]
test eax, eax
je 0x4dd6e7
cmp word [eax], dx
je 0x4dd6e7
lea eax, [ebp - 0x10]
push eax
call fcn.004dcf1d
pop ecx
jmp 0x4dd6fa
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4dd7c5
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004dd40a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4dd7c5
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4dd7c5
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4dd7c5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4dd752
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004d6f4f
test ebx, ebx
je 0x4dd7c0
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004d6f4f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4dd7c5
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4dd7c5
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004cdcd1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4dd7c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b6ba6
leave
ret
Function at 0x4e127b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x51b400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4e12be
call fcn.004bd72e
mov dword [eax], 0xf
call fcn.004bd741
mov dword [eax], 0xd
call fcn.004bd3df
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6ba6
leave
ret
test eax, eax
jne 0x4e12c5
inc eax
jmp 0x4e12b2
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4e12b0
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4e12b2

Function at 0x4e2990
Capabilities:
Parse pe header

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

Disassembly:
xor eax, 0x479e8dcf
dec edx
xor ch, byte [eax + 0x30]
sbb edx, esp
add eax, 0x2ededaa0
sub al, 0x66
sbb cl, byte [esp + edi*8]
xor ebp, eax
in al, dx
or edx, 0xfffffff9
salc
fcmovne st(0), st(6)
inc edi
mov dword [0xa26e66dc], eax
inc ebp
xor byte [edx], dh
bound esi, qword [edx + 0x2c424adc]
pop ebp
out 0x2f, eax
cmp dword [esi - 0x26], ecx
mov dh, 0x37
jge 0x40a6f2
ret
push ds
rcl byte [edx], cl
or byte [ebp + 0x3d8fc262], ch
fsub st(5), st(0)
mov edi, 0xe055d0fc
fstp xword [edx + edi*8 - 0xda3e72b]
mov ebx, 0x7a5b40bc
pop esp
mov ebx, 0x7a5b40bc
mov word [esi + 0x6f], gs
je 0x40a76d
jp 0x40a681
pop edi
mov ch, 0x1f
std
scasb al, byte es:[edi]
loop 0x40a773
salc
xchg edx, eax
jno 0x40a710
cmp eax, 0x476e190
dec ebx
add al, 0x4b
push ds
inc ecx
pop ss
adc byte [edi + edi*2 - 0x12a6dc9a], bh
aaa
salc
xlatb
mov byte es:[esi - 0x11], al
pop es
and byte [eax - 0x10de6c35], bh
adc bh, bl
test dword [eax - 0x15cf92b9], ebp
insd dword es:[edi], dx
xor dl, ch
or al, 0x55
imul edx, dword [ebx + 0x3721df8f], 0xdbed9320
popal
pop ecx
fist word [esi + 0xb0919f2]
loop 0x40a730
push eax
cmpsd dword [esi], dword es:[edi]
cmp al, 0x67
sti
nop
pop esi
cwde
invalid
dec ecx
int 0xd9
invalid
invalid

Function at 0x4382fd
Capabilities:
Encode data using xor

Disassembly:
mov dl, byte [eax]
enter 0xffffffffffff9885, 0xffffffffffffffd2
lcall 0xa3a8, 0x883ce072
pushfd
add dword [esi], ebx
inc esi
pop esp
std
push edi
outsb dx, byte [esi]
aad 0xac
xlatb
sar dword cs:[edi - 0x1218073b], 1
and ah, bh
out dx, eax
add dword [esi], ecx
salc
outsd dx, dword [esi]
out dx, eax
cli
cmc
fucompi st(6)
in al, 0x84
out 0x8f, eax
lahf
mov dl, 0xa2
mov eax, dword [0xefecd5d7]
mov ecx, 0xd6e02ea8
loopne 0x4382d5
loopne 0x4382d5
inc ebp
rcr dh, cl
mov bl, 0x2c
daa
jle 0x4382c2
jle 0x438348
push 0x133feb07
sub byte [ebp - 0x3a], dl
pop es
aad 0x99
or esp, 0x9bd70799
wait
pop edx
pop es
lea esp, [eax - 2]
fst qword [edx - 0x5d8ffd91]
stosb byte es:[edi], al
push ebp
pop es
push edx
invalid
inc ebp
or al, 0xe1
rol dl, 0xa4
out 0x91, al
jp 0x438319
invalid
Function at 0x4bb495
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3380
cmp edx, dword [eax]
je 0x4bb4b7
add eax, 8
inc ecx
cmp eax, 0x4c3410
jl 0x4bb4a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3380]
jne 0x4bb5e5
mov eax, dword [0x4c7d0c]
cmp eax, 1
je 0x4bb5bf
test eax, eax
jne 0x4bb4e8
cmp dword [0x4c32a8], 1
je 0x4bb5bf
cmp edx, 0xfc
je 0x4bb5e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb51f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bbe80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc310
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb562
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc310
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c099c
push edi
call fcn.004be1e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bbe80
lea eax, [ebp - 0xa0]
push edi
push eax
lea eax, [ebp + 8]
lea esi, [esi + 0x4c3384]
push 0
push eax
push dword [esi]
call fcn.004bc310
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
Function at 0x4052f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40530b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405342
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40533e
jmp 0x405330
cmp esi, eax
jae 0x405342
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405330
cmp esi, eax
jb 0x405349
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4194bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x419506
call fcn.0042a3c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x419506
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x419522
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00418fc4
mov esi, eax
test edi, edi
je 0x419520
test ebx, ebx
je 0x419520
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41ff66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x41ff80
call fcn.0042a3c9
mov esi, dword [eax + 0xc]
push dword [0x5caf74]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41ff9e
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x41ff96
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41ffcb
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x41ff98
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0041fe94
mov esi, eax
jmp 0x41ffbd

Function at 0x42eafd
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5659c8
call fcn.0054479d
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42eb22
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42eb74
call fcn.00439c16
push eax
lea ecx, [ebp - 0x10]
call fcn.00402ac0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00546011
push eax
call fcn.00408637
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402b40
mov eax, esi
call fcn.00544875
ret 8
Function at 0x49158a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4915d2
call fcn.0042a3c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4915d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x491615
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4915fe
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4915fe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x491612
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x494ccf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042a3c9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x494d08
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00494911
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x494d66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x494d8a
cmp dword [edi + 0x74], 0
jne 0x494d8a
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0042a3c9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00494d27
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4be156
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4be194
push 0x5820a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4be1a2
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4be1a2
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4be1a4
cmp dword [esi + 4], 0
je 0x4be1a2
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4d8b92
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x566607
call fcn.0054479d
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00407780
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4d8bf4
call fcn.00429c63
cmp eax, 1
jne 0x4d8bf4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0045be16
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00410707
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402b40
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402b40
mov eax, esi
call fcn.00544875
ret 0x10

Function at 0x4d8c1d
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x566607
call fcn.0054479d
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00407780
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4d8c7f
call fcn.00429c63
cmp eax, 1
jne 0x4d8c7f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0045be16
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00410707
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00402b40
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402b40
mov eax, esi
call fcn.00544875
ret 0x14

Function at 0x4f3a24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f3a3c
mov edi, dword [esi + 0xc]
jmp 0x4f3a7c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f3a55
call fcn.00437589
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f3a6a
call fcn.00437589
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f3a7c
call fcn.00437589
call fcn.0042a3c9
cmp dword [eax + 0x3c], 0
je 0x4f3a91
push edi
mov ecx, ebx
call fcn.004f2860
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f393e
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f3aaf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f3abb
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8