joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x573790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov byte [ebp - 0x84], 0
call fcn.005023a0
mov eax, dword [0x574aa0]
mov edi, 0x10
add esp, 0xc
cmp dword [0x574ab4], edi
jae 0x403a16
mov eax, 0x574aa0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push 0x553f34
push str.LedASwitchChannels
push str.SWITCH_SLECT_CHANNELS
call esi
lea edx, [ebp - 0x84]
push edx
call fcn.00500d1a
add esp, 4
mov dword [0x574a50], eax
mov eax, dword [0x574aa0]
cmp dword [0x574ab4], edi
jae 0x403a60
mov eax, 0x574aa0
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x553f64
push str.LedBSwitchChannels
push str.SWITCH_SLECT_CHANNELS
call esi
lea ecx, [ebp - 0x84]
push ecx
call fcn.00500d1a
add esp, 4
mov dword [0x574a54], eax
mov eax, dword [0x574aa0]
cmp dword [0x574ab4], edi
jae 0x403aa4
mov eax, 0x574aa0
push eax
push 0x80
lea edx, [ebp - 0x84]
push edx
push 0x553f7c
push str.IrvASwitchChannels
push str.SWITCH_SLECT_CHANNELS
call esi
lea eax, [ebp - 0x84]
push eax
call fcn.00500d1a
add esp, 4
mov dword [str._a_b_a_b_t_t], eax
mov eax, dword [0x574aa0]
cmp dword [0x574ab4], edi
jae 0x403ae8
mov eax, 0x574aa0
push eax
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push 0x553f94
push str.IrvBSwitchChannels
push str.SWITCH_SLECT_CHANNELS
call esi
lea edx, [ebp - 0x84]
push edx
call fcn.00500d1a
add esp, 4
mov dword [0x574a5c], eax
mov eax, dword [0x574aa0]
cmp dword [0x574ab4], edi
jae 0x403b2c
mov eax, 0x574aa0
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x553f7c
push str.CcdASwitchChannels
push str.SWITCH_SLECT_CHANNELS
call esi
lea ecx, [ebp - 0x84]
push ecx
call fcn.00500d1a
add esp, 4
mov dword [0x574a60], eax
mov eax, dword [0x574aa0]
cmp dword [0x574ab4], edi
jae 0x403b70
mov eax, 0x574aa0
push eax
push 0x80
lea edx, [ebp - 0x84]
push edx
push 0x553f94
push str.CcdBSwitchChannels
push str.SWITCH_SLECT_CHANNELS
call esi
lea eax, [ebp - 0x84]
push eax
call fcn.00500d1a
add esp, 4
mov dword [0x574a64], eax
mov eax, dword [0x574aa0]
cmp dword [0x574ab4], edi
jae 0x403bb4
mov eax, 0x574aa0
push eax
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push 0x553fd4
push str.GlobalASwitchChannels
push str.SWITCH_SLECT_CHANNELS
call esi
lea edx, [ebp - 0x84]
push edx
call fcn.00500d1a
add esp, 4
mov dword [0x574a68], eax
mov eax, dword [0x574aa0]
cmp dword [0x574ab4], edi
jae 0x403bf8
mov eax, 0x574aa0
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x553fd4
push str.GlobalBSwitchChannels
push str.SWITCH_SLECT_CHANNELS
call esi
lea ecx, [ebp - 0x84]
push ecx
call fcn.00500d1a
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov dword [0x574a6c], eax
pop esi
call fcn.004fecc6
mov esp, ebp
pop ebp
ret
Function at 0x406a00
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x573790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x57b45c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push eax
call esi
push 0
push 0
push 0
push 0x405340
push 0
push 0
call fcn.00500e81
add esp, 0x18
mov dword [0x57b45c], eax
test eax, eax
jne 0x406a64
lea ecx, [ebp - 0x404]
push 0x554910
push ecx
call fcn.004ff6e3
lea edx, [ebp - 0x404]
push edx
call fcn.004012b0
add esp, 0xc
mov eax, dword [0x57b458]
push 0
push eax
call esi
push 0
push 0
push 0
push 0x4067c0
push 0
push 0
call fcn.00500e81
add esp, 0x18
mov dword [0x57b458], eax
pop esi
test eax, eax
jne 0x406aaf
lea ecx, [ebp - 0x404]
push 0x55492c
push ecx
call fcn.004ff6e3
lea edx, [ebp - 0x404]
push edx
call fcn.004012b0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fecc6
mov esp, ebp
pop ebp
ret

Function at 0x406ac0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x573790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x57b460]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x57b6ac
push 0
push 0
push 0x405ab0
push 0
push 0
call fcn.00500e81
add esp, 0x18
mov dword [0x57b460], eax
test eax, eax
jne 0x406b24
lea ecx, [ebp - 0x404]
push 0x554940
push ecx
call fcn.004ff6e3
lea edx, [ebp - 0x404]
push edx
call fcn.004012b0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fecc6
mov esp, ebp
pop ebp
ret
Function at 0x408210
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 0x40822b
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 0x408262
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40825e
jmp 0x408250
cmp esi, eax
jae 0x408262
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408250
cmp esi, eax
jb 0x408269
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 0x4094c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x574b08], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
je 0x40954f
push esi
push 0x574af4
push edx
push eax
mov eax, dword [0x574ad4]
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409510
call esi
cmp eax, 0x3e5
je 0x409510
call fcn.00409e20
mov edx, dword [0x574b04]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409573
mov ecx, dword [0x574ad4]
mov edx, dword [ecx + 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x574af4
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x409573
call esi
cmp eax, 0x3e5
je 0x409573
call fcn.00409e20
push 0
push edx
push eax
mov eax, dword [0x574ad4]
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40956c
call fcn.00409e20
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x14]
lea edi, [esi + 0x818]
push 0x800
push 0
push ebx
call fcn.005023a0
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
add esp, 0xc
push ecx
lea edx, [ebp - 4]
push edx
push 0x800
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4096df
test edi, edi
je 0x409674
mov ecx, dword [ebp - 4]
mov dword [edi], ecx
mov eax, dword [edi]
test eax, eax
je 0x4096cd
push eax
call fcn.0040c4c9
mov dword [esi + 0x814], eax
xor eax, eax
add esp, 4
cmp dword [edi], eax
jle 0x4096a1
nop
mov cl, byte [ebx + eax]
mov edx, dword [esi + 0x814]
mov byte [eax + edx], cl
inc eax
cmp eax, dword [edi]
jl 0x409690
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4096be
mov edx, dword [edi]
mov eax, dword [eax + 0x1c]
push edx
mov edx, dword [esi + 0x814]
push edx
push eax
call ecx
add esp, 0xc
mov ecx, dword [esi + 0x814]
push ecx
call fcn.0040c4d4
add esp, 4
mov edx, dword [esi + 0x82c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x409632
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x4096f3
call fcn.00409e20
call esi
pop edi
cmp eax, 0x3e5
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b100
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527a2b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x573790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0051bebf
push 4
mov dword [ebp - 4], 0
call fcn.0040c49a
mov edi, eax
add esp, 4
test edi, edi
je 0x40b17c
call fcn.0051c26d
mov dword [edi], eax
call fcn.0051c02c
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0051bf61
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40b172
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0051bf89
jmp 0x40b17e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb51
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x573790]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x40cb99
push 0x52c070
push 4
push eax
call fcn.00501668
push eax
call fcn.0040c4df
add esp, 0x10
jmp 0x40cbaf
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40cc32
push edi
call fcn.0050215d
mov edi, dword [eax]
call fcn.0050215d
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004ff785
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0050215d
cmp dword [eax], 0
je 0x40cc06
call fcn.0050215d
push dword [eax]
call fcn.0040c50b
pop ecx
jmp 0x40cc0d
call fcn.0050215d
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x40cc32
cmp dword [ebp - 0x11c], esi
jae 0x40cc32
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40cc34
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004fecc6
leave
ret
Function at 0x40cc41
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x573790]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0040ca29
pop ecx
cmp eax, esi
je 0x40cd2b
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40cd2b
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005023a0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x40cd2b
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40cd2b
cmp esi, 0x14
jge 0x40cd2b
push 0x10
push 0
push edi
call fcn.00502383
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40cd1a
call fcn.0050215d
cmp dword [eax], 0x22
je 0x40cd1a
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005021a6
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x40ccf0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x574eec], 0
jne 0x40cdb6
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x40cddf
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0040cb51
pop ecx
pop ecx
test eax, eax
jne 0x40cde1
inc edi
cmp edi, esi
jl 0x40cdbc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fecc6
leave
ret 8

Function at 0x415286
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 0x4152cd
call fcn.00415b6e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4152cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4152e9
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00414d8b
mov esi, eax
test edi, edi
je 0x4152e7
test ebx, ebx
je 0x4152e7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41780d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x573790]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x417842
xor eax, eax
jmp 0x417895
lea eax, [ebp - 0x210]
push eax
call fcn.005021a6
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x417873
push 0x52d164
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00504675
add esp, 0xc
test eax, eax
jne 0x41783e
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00504675
add esp, 0xc
test eax, eax
jne 0x41783e
lea eax, [ebp - 0x210]
push eax
call fcn.004108fe
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004fecc6
leave
ret

Function at 0x41fadd
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51f3a9
call fcn.00501aab
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41fb02
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41fb54
call fcn.0040e7cc
push eax
lea ecx, [ebp - 0x10]
call fcn.00408540
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.0050260e
push eax
call fcn.0040c4df
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.004089c0
mov eax, esi
call fcn.00501b83
ret 8

Function at 0x4482f3
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.00447fb2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44833d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ed18
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a1d0
jmp 0x448348
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041aa65
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x44834e
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.0041f7a7
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 0x44838b
call fcn.00447fb2
mov dword [esi + 0xc], 1
jmp 0x448390
call fcn.00447fb2
cmp dword [esi], 0
je 0x4483d9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4483b1
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040ed18
jmp 0x4483c3
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004087a0
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a1d0
jmp 0x4483fd
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 0x4483fd
push dword [esi]
push dword [ebp + 8]
call fcn.0041aa65
pop esi
pop ebp
ret 0xc

Function at 0x449b8d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004d44ad
call fcn.0041559f
cmp dword [eax + 0x14], 0
jne 0x449baa
mov ecx, esi
pop esi
jmp fcn.00449692
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00432758
call fcn.0041559f
cmp dword [eax + 0x14], 0
jne 0x44d24b
mov ecx, esi
pop esi
jmp fcn.0044cc01
pop esi
ret

Function at 0x482884
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.00415b6e
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 0x4828bd
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.004824c6
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 0x48291b
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 0x48293f
cmp dword [edi + 0x74], 0
jne 0x48293f
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00415b6e
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.004828dc
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 0x488b2a
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 0x488b44
call fcn.00415b6e
mov esi, dword [eax + 0xc]
push dword [0x578c00]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x488b62
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 0x488b5a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x488b8f
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x488b5c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00488a58
mov esi, eax
jmp 0x488b81

Function at 0x4df3df
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 0x4df3f7
mov edi, dword [esi + 0xc]
jmp 0x4df437
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4df410
call fcn.0041992e
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4df425
call fcn.0041992e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4df437
call fcn.0041992e
call fcn.00415b6e
cmp dword [eax + 0x3c], 0
je 0x4df44c
push edi
mov ecx, ebx
call fcn.004de29d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004df2f9
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4df46a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4df476
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 0x4fecc6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x573790]
jne 0x4fecd0
repz ret
jmp fcn.005073a4

Function at 0x500d25
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 0x500d4c
call fcn.00502170
mov dword [eax], esi
call fcn.0050215d
push 0x16
pop esi
mov dword [eax], esi
call fcn.00507976
mov eax, esi
jmp 0x500da1
test dword [ebp + 0xc], 0xfffffff9
jne 0x500d32
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x500d79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00502183
pop ecx
call fcn.0050215d
mov eax, dword [eax]
jmp 0x500da1
test al, 0x10
jne 0x500d9f
test al, 1
je 0x500d9f
test byte [ebp + 0xc], 2
je 0x500d9f
call fcn.00502170
mov dword [eax], 5
call fcn.0050215d
mov dword [eax], 0xd
jmp 0x500d70
xor eax, eax
pop esi
pop ebp
ret