joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x658240], 0
push esi
mov esi, dword [ebp + 8]
jne 0x40211f
push 0xf
push str.C:FileSync.log
mov ecx, 0x6520e8
call fcn.00401fc0
cmp dword [0x6520fc], 0x10
mov eax, dword [0x6520e8]
jae 0x402104
mov eax, 0x6520e8
push 0x5401a8
push eax
call fcn.0050793c
add esp, 8
mov dword [0x658240], eax
test eax, eax
je 0x40220a
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00506060
push 0
call fcn.00506393
lea ecx, [ebp - 0x408]
push ecx
mov dword [ebp - 0x408], eax
call fcn.0050636c
add esp, 0x14
push esi
push eax
call fcn.005076a2
add esp, 4
push eax
lea edx, [ebp - 0x404]
push str.__s__CFileSync_:_s
push edx
call fcn.005075df
lea eax, [ebp - 0x404]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402180
mov ecx, dword [0x658240]
push ecx
sub eax, edx
push 1
push eax
lea edx, [ebp - 0x404]
push edx
call fcn.00507565
mov eax, dword [0x658240]
push eax
call fcn.005073b2
lea eax, [ebp - 0x404]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021b6
mov ecx, dword [0x658244]
sub eax, edx
add ecx, eax
mov dword [0x658244], ecx
cmp ecx, 0x400000
jle 0x40220a
mov ecx, dword [0x658240]
push ecx
call fcn.005071b4
mov eax, dword [0x6520e8]
add esp, 4
cmp dword [0x6520fc], 0x10
jae 0x4021f7
mov eax, 0x6520e8
push 0x5401a8
push eax
call fcn.0050793c
add esp, 8
mov dword [0x658240], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00506042
mov esp, ebp
pop ebp
ret 8

Function at 0x402a80
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 0x402a9b
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 0x402ad2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402ace
jmp 0x402ac0
cmp esi, eax
jae 0x402ad2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402ac0
cmp esi, eax
jb 0x402ad9
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 0x403a00
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530b81
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x830], str.miniflt
mov dword [ebp - 0x82c], str.deviceflt
mov dword [ebp - 0x828], str.procmon
mov dword [ebp - 0x824], str.prtdrv
call fcn.005226eb
xor ebx, ebx
push 0xf003f
push ebx
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], ebx
call fcn.0052211f
test eax, eax
je 0x403aee
lea ecx, [ebp - 0x818]
call fcn.005226eb
mov byte [ebp - 4], 1
xor esi, esi
lea esp, [esp]
mov eax, dword [ebp + esi*4 - 0x830]
push 0xf01ff
push eax
lea ecx, [ebp - 0x814]
call fcn.00521fcb
cmp eax, 0xffffffff
je 0x403ada
cmp eax, ebx
je 0x403ada
push eax
lea ecx, [ebp - 0x818]
call fcn.0052210a
lea ecx, [ebp - 0x818]
push ecx
lea ecx, [ebp - 0x814]
call fcn.005220f3
lea ecx, [ebp - 0x818]
call fcn.00521ef3
inc esi
cmp esi, 4
jb 0x403a90
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], bl
call fcn.00522105
push 0x3ff
lea edx, [ebp - 0x40f]
push ebx
push edx
mov dword [ebp - 0x830], str.DeviceFlt.sys
mov dword [ebp - 0x82c], str.MiniFlt.sys
mov dword [ebp - 0x828], str.PrtDrv.sys
mov dword [ebp - 0x824], str.ProcMon.sys
mov byte [ebp - 0x410], bl
call fcn.00506060
push 0x3ff
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.00506060
lea ecx, [ebp - 0x410]
push 0x400
push ecx
call fcn.0052247c
lea edi, [ebp - 0x410]
add esp, 0x20
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403b61
mov dx, word [0x54065c]
mov word [edi], dx
xor esi, esi
jmp 0x403b80
mov eax, dword [ebp + esi*4 - 0x830]
push eax
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x810]
push 0x5406d4
push edx
call fcn.005075df
push ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0051f224
inc esi
add esp, 0x1c
cmp esi, 4
jb 0x403b80
lea ecx, [ebp - 0x820]
call fcn.00522200
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x820]
mov byte [ebp - 4], 2
call fcn.005223f6
test eax, eax
je 0x403bff
push str.RzxTray.exe
lea ecx, [ebp - 0x820]
call fcn.005223c0
push str.RzxMon
lea ecx, [ebp - 0x820]
call fcn.005223c0
lea ecx, [ebp - 0x820]
mov byte [ebp - 4], bl
call fcn.005223f1
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
call fcn.00522105
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00506042
mov esp, ebp
pop ebp
ret
Function at 0x404240
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530c8b
mov eax, dword fs:[0]
push eax
mov eax, 0x1410
call fcn.005070d0
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0052257c
cmp eax, 7
jne 0x40442c
push 1
lea ecx, [ebp - 0x1418]
call fcn.0052220a
push 0xfff
lea eax, [ebp - 0x140f]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x141c], 0x1000
mov byte [ebp - 0x1410], 0
call fcn.00506060
add esp, 0xc
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1418]
call fcn.005223f6
test eax, eax
je 0x40441a
lea ecx, [ebp - 0x141c]
push ecx
lea edx, [ebp - 0x1410]
push edx
push str.Userinit
lea ecx, [ebp - 0x1418]
call fcn.00522389
test eax, eax
je 0x40440f
lea eax, [ebp - 0x1410]
push str.RzxW8.exe
push eax
call fcn.005060e0
add esp, 8
test eax, eax
jne 0x40440f
push 0x3ff
push eax
lea ecx, [ebp - 0x40f]
push ecx
mov byte [ebp - 0x410], al
call fcn.00506060
lea edx, [ebp - 0x410]
push edx
call fcn.00520038
lea eax, [ebp - 0x410]
add esp, 0x10
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404347
mov ecx, dword [str.RzxW8.exe_]
mov edx, dword [0x540850]
mov dword [eax], ecx
mov cx, word [0x540854]
mov dword [eax + 4], edx
mov dl, byte [0x540856]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
mov eax, dword [ebp - 0x141c]
cmp byte [ebp + eax - 0x1412], 0x2c
jne 0x4043aa
lea eax, [ebp - 0x410]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404390
lea edi, [ebp - 0x1410]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4043a0
jmp 0x4043e8
lea edi, [ebp - 0x1410]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4043b1
mov cx, word [0x540848]
lea eax, [ebp - 0x410]
mov word [edi], cx
mov edx, eax
jmp 0x4043d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4043d0
lea edi, [ebp - 0x1410]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4043e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [ebp - 0x1410]
push edx
rep movsb byte es:[edi], byte [esi]
push str.Userinit
lea ecx, [ebp - 0x1418]
call fcn.00522268
lea ecx, [ebp - 0x1418]
call fcn.005223d7
lea ecx, [ebp - 0x1418]
mov dword [ebp - 4], 0xffffffff
call fcn.005223f1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00506042
mov esp, ebp
pop ebp
ret
Function at 0x4057d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530dab
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 0x410]
push str._s.
push eax
mov dword [ebp - 0x554], ecx
call fcn.005075df
add esp, 0xc
lea ecx, [ebp - 0x550]
push ecx
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405933
mov dword [ebp - 0x558], edi
mov dword [ebp - 4], 0
jmp 0x405850
mov ecx, 0x541118
lea eax, [ebp - 0x524]
jmp 0x405860
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405880
test dl, dl
je 0x40587c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405880
add eax, 2
add ecx, 2
test dl, dl
jne 0x405860
xor eax, eax
jmp 0x405885
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405912
mov ecx, 0x541114
lea eax, [ebp - 0x524]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4058b8
test dl, dl
je 0x4058b4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4058b8
add eax, 2
add ecx, 2
test dl, dl
jne 0x405898
xor eax, eax
jmp 0x4058bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405912
lea eax, [ebp - 0x524]
push eax
push ebx
lea ecx, [ebp - 0x410]
push str._s_s
push ecx
call fcn.005075df
add esp, 0x10
test byte [ebp - 0x550], 0x10
lea edx, [ebp - 0x410]
je 0x405906
mov ecx, dword [ebp - 0x554]
push esi
push edx
call fcn.004057d0
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x410]
push eax
push ecx
jmp 0x40590b
mov eax, dword [esi + 8]
push edx
push eax
mov ecx, esi
call fcn.0041645a
lea ecx, [ebp - 0x550]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405850
test edi, edi
je 0x405933
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00506042
mov esp, ebp
pop ebp
ret 8
Function at 0x4079a0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x652214], 0
jl 0x4079b5
mov al, 1
mov esp, ebp
pop ebp
ret
push 6
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x652214], eax
cmp eax, 0x80010106
je 0x4079ed
test eax, eax
jns 0x4079e3
xor al, al
mov esp, ebp
pop ebp
ret
mov dword [0x652214], 0
push esi
lea eax, [ebp - 8]
push eax
push 0x541ad0
push 1
push 0
push 0x541ac0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x407a33
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
js 0x407a33
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0x658378
push eax
call edx
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x407a42
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
test eax, eax
je 0x407a51
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
test esi, esi
setns al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4086b3
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.00416d7f
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 0x4086ec
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.004082f5
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 0x40874a
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 0x40876e
cmp dword [edi + 0x74], 0
jne 0x40876e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00416d7f
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.0040870b
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 0x40eb8c
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 0x40ebd3
call fcn.00416d7f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ebd3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40ebef
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e691
mov esi, eax
test edi, edi
je 0x40ebed
test ebx, ebx
je 0x40ebed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40faca
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5330fa
call fcn.00508093
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40faef
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40fb41
call fcn.00411397
push eax
lea ecx, [ebp - 0x10]
call fcn.00402e60
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.00509d7f
push eax
call fcn.0040f2cf
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.00402b30
mov eax, esi
call fcn.0050816b
ret 8

Function at 0x411142
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00410e01
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41118c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040cae2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040b17d
jmp 0x411197
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041897b
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41119d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040f39d
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4111da
call fcn.00410e01
mov dword [esi + 0xc], 1
jmp 0x4111df
call fcn.00410e01
cmp dword [esi], 0
je 0x411228
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x411200
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040cae2
jmp 0x411212
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402fa0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040b17d
jmp 0x41124c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41124c
push dword [esi]
push dword [ebp + 8]
call fcn.0041897b
pop esi
pop ebp
ret 0xc

Function at 0x413b0d
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 0x413b55
call fcn.00416d7f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413b55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x413b98
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 0x413b81
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 0x413b81
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x413b95
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 0x42cdda
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00468b52
call fcn.004167b0
cmp dword [eax + 0x14], 0
jne 0x42cdf7
mov ecx, esi
pop esi
jmp fcn.0042c8c1
pop esi
ret

Function at 0x4304d6
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0047c433
call fcn.004167b0
cmp dword [eax + 0x14], 0
jne 0x4304f3
mov ecx, esi
pop esi
jmp fcn.0042fea9
pop esi
ret

Function at 0x46c5c3
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 0x46c5dd
call fcn.00416d7f
mov esi, dword [eax + 0xc]
push dword [0x65bb80]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46c5fb
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 0x46c5f3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46c628
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46c5f5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046c4f1
mov esi, eax
jmp 0x46c61a

Function at 0x4ebf9f
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 0x4ebfb7
mov edi, dword [esi + 0xc]
jmp 0x4ebff7
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4ebfd0
call fcn.0041714d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ebfe5
call fcn.0041714d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ebff7
call fcn.0041714d
call fcn.00416d7f
cmp dword [eax + 0x3c], 0
je 0x4ec00c
push edi
mov ecx, ebx
call fcn.004eadd0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ebeb9
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4ec02a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ec036
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

Function at 0x506042
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x656c90]
jne 0x50604c
repz ret
jmp fcn.0050e144
Function at 0x51b90f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050fe58
and dword [ebp - 0x14], 0
cmp dword [0x65e654], 0
mov dword [ebp - 0x18], eax
jne 0x51b9c2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51ba6a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51ba6a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x568820
push ebx
mov dword [0x65e654], eax
call edi
push eax
call esi
push 0x56880c
push ebx
mov dword [0x65e658], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x65e65c], eax
call edi
push eax
call esi
mov dword [0x65e664], eax
test eax, eax
je 0x51b9c2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x65e660], eax
mov eax, dword [0x65e660]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51ba1b
cmp dword [0x65e664], ecx
je 0x51ba1b
push eax
call esi
push dword [0x65e664]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51ba1b
test ebx, ebx
je 0x51ba1b
call edi
test eax, eax
je 0x51ba12
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51ba12
test byte [ebp - 8], 1
jne 0x51ba1b
or dword [ebp + 0x10], 0x200000
jmp 0x51ba4e
mov eax, dword [0x65e658]
cmp eax, dword [ebp - 0x18]
je 0x51ba4e
push eax
call esi
test eax, eax
je 0x51ba4e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51ba4e
mov eax, dword [0x65e65c]
cmp eax, dword [ebp - 0x18]
je 0x51ba4e
push eax
call esi
test eax, eax
je 0x51ba4e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x65e654]
call esi
test eax, eax
je 0x51ba6a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51ba6c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506042
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x51eef2
test al, 0x10
jne 0x51eef2
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x51ef04
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x656c90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x51ef5a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test edi, edi
je 0x51ef51
push 5
push 0
push edi
call esi
push 5
push edi
push ebx
call esi
pop esi
jmp 0x51ef6c
push str.wininit.ini
push edi
push ebx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00506042
leave
ret

Function at 0x51f0b6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
push edi
mov esi, ecx
je 0x51f121
mov eax, dword [esi + 4]
test eax, eax
je 0x51f121
push eax
call fcn.0050d845
pop ecx
test eax, eax
jne 0x51f121
cmp dword [ebp + 8], eax
je 0x51f121
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0050dadf
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x51f105
push dword [esi + 4]
call fcn.0050d845
pop ecx
test eax, eax
jne 0x51f105
or eax, 0xffffffff
jmp 0x51f123
push dword [esi + 4]
call fcn.0050d86d
pop ecx
test eax, eax
je 0x51f11d
push dword [esi + 4]
call fcn.0050d83a
pop ecx
jmp 0x51f100
mov eax, edi
jmp 0x51f123
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x51f169
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x51f194
mov eax, dword [ecx + 4]
test eax, eax
je 0x51f194
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00507565
sub eax, dword [ebp + 0xc]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x51f196
xor eax, eax
pop ebp
ret 8