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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x588e70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x406cd8
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406cc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005144d7
mov esp, ebp
pop ebp
ret
push esi
push str.error.txt
lea ecx, [ebp - 0x208]
push 0x104
push ecx
call fcn.00514498
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406d4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005144d7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
push str._s_r_n
lea edx, [ebp - 0x104]
push 0xff
push edx
call fcn.00514498
lea eax, [ebp - 0x104]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406d74
push 0
lea ecx, [ebp - 0x20c]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x104]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.005144d7
mov esp, ebp
pop ebp
ret

Function at 0x4070a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x1ea9]
push edi
cmp al, 1
jne 0x4070df
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x1dfc]
push ecx
sub eax, 0x10
mov dword [ebp + 8], esp
mov edi, esp
push eax
call fcn.00403d60
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00406b20
add esp, 8
pop edi
pop esi
pop ebp
ret
cmp al, 2
jne 0x407113
push str.error.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x1e1c]
push ecx
sub eax, 0x10
mov dword [ebp + 8], esp
mov edi, esp
push eax
call fcn.00403d60
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00406c90
add esp, 4
pop edi
pop esi
pop ebp
ret
Function at 0x4090c0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x588e70]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
mov eax, 1
jne 0x4091fa
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0xac]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0xb0], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0xa4]
push eax
push 8
mov dword [ebp - 0xa4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edx, dword [ebp - 0xa4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0xa8]
push ecx
push ebx
push ebx
push 2
push edx
mov dword [ebp - 0xa8], ebx
call edi
mov eax, dword [ebp - 0xa8]
push eax
call fcn.00515ae6
mov edx, dword [ebp - 0xa8]
add esp, 4
lea ecx, [ebp - 0xa8]
push ecx
push edx
mov esi, eax
mov eax, dword [ebp - 0xa4]
push esi
push 2
push eax
call edi
xor edi, edi
cmp dword [esi], ebx
jbe 0x4091ce
lea ebx, [esi + 4]
mov ecx, dword [ebx]
mov edx, dword [ebp - 0xac]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4091c4
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x4091a6
jmp 0x4091ce
mov dword [ebp - 0xb0], 1
push esi
call fcn.00514d15
mov eax, dword [ebp - 0xa4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0xb0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005144d7
mov esp, ebp
pop ebp
ret
Function at 0x40a8e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov eax, esi
add ecx, 0xa0
mov edx, 4
push ebx
nop
mov edi, 4
mov bl, byte [ecx]
xor byte [eax], bl
inc ecx
inc eax
dec edi
jne 0x40a905
dec edx
jne 0x40a900
mov eax, dword [ebp + 0xc]
add eax, 0x90
mov byte [ebp + 0xb], 9
mov dword [ebp - 4], eax
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 0xb], dl
mov byte [esi + 7], cl
mov byte [esi + 0xf], al
mov edi, esi
mov edx, 4
jmp 0x40a980
mov eax, edi
mov ecx, 4
jmp 0x40a990
movzx ebx, byte [eax]
mov bl, byte [ebx + 0x53ec60]
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x40a990
inc edi
dec edx
jne 0x40a980
mov ecx, dword [ebp - 4]
mov eax, esi
mov edx, 4
nop
mov edi, 4
mov bl, byte [ecx]
xor byte [eax], bl
inc ecx
inc eax
dec edi
jne 0x40a9b5
dec edx
jne 0x40a9b0
mov ecx, dword [ebp - 8]
push esi
call fcn.0040a530
mov al, byte [ebp + 0xb]
sub dword [ebp - 4], 0x10
dec al
mov byte [ebp + 0xb], al
test al, al
jne 0x40a920
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 5]
mov al, byte [esi + 0xd]
mov byte [esi + 9], dl
movzx edx, byte [esi + 0xa]
mov byte [esi + 0xd], cl
movzx ecx, byte [esi + 1]
mov byte [esi + 1], al
mov al, byte [esi + 2]
mov byte [esi + 2], dl
movzx edx, byte [esi + 7]
mov byte [esi + 0xa], al
mov al, byte [esi + 6]
mov byte [esi + 5], cl
movzx ecx, byte [esi + 0xe]
mov byte [esi + 0xe], al
mov al, byte [esi + 3]
mov byte [esi + 3], dl
movzx edx, byte [esi + 0xf]
mov byte [esi + 6], cl
movzx ecx, byte [esi + 0xb]
mov byte [esi + 0xb], dl
mov byte [esi + 7], cl
mov byte [esi + 0xf], al
mov edi, esi
mov edx, 4
mov eax, edi
mov ecx, 4
lea esp, [esp]
movzx ebx, byte [eax]
mov bl, byte [ebx + 0x53ec60]
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x40aa40
inc edi
dec edx
jne 0x40aa35
mov edi, dword [ebp + 0xc]
sub edi, esi
mov eax, esi
lea esi, [ecx + 4]
pop ebx
mov ecx, 4
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x40aa65
dec esi
jne 0x40aa60
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40ab50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x588e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x53eb44
lea eax, [ebp - 0xc4]
push eax
mov esi, ecx
call fcn.00409340
push 1
push 0x200000
call fcn.00514e17
add esp, 8
cmp dword [esi + 0x1f04], 0
push 0
mov dword [esi + 0x15bc], eax
push 0
je 0x40aba1
push 4
jmp 0x40aba3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x15bc]
push ebx
push 0
lea ecx, [ebp - 0xcc]
push ecx
push 0x200000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
push 0x200000
call fcn.00514e17
mov ebx, eax
mov eax, dword [esi + 0x15bc]
push 0x200000
push eax
push ebx
mov dword [ebp - 0xd0], ebx
call fcn.005145d0
add esp, 0x14
mov dword [ebp - 0xc8], 0x20000
lea ebx, [ebx]
lea ecx, [ebp - 0xc4]
push ecx
push ebx
mov ecx, esi
call fcn.0040a8e0
add ebx, 0x10
dec dword [ebp - 0xc8]
jne 0x40ac00
cmp dword [esi + 0x1f04], 0
pop ebx
push 0
push 0
je 0x40ac2c
push 4
jmp 0x40ac2e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp - 0xd0]
push 0
lea edx, [ebp - 0xcc]
push edx
push 0x200000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call fcn.00514d15
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.005144d7
mov esp, ebp
pop ebp
ret 4
Function at 0x40ce80
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x588e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 1
push ebx
push ecx
mov esi, ecx
mov ecx, esp
mov dword [ebp - 0xac], esp
push str.Firmware_reflash_completed_nAfter_restarting_PC__new_F_W_will_take_effect._nDo_you_want_to_restart_your_computer_now_
mov byte [esi + 0xfb4], 2
call fcn.00402bb0
lea ecx, [esi + 0xbc8]
call fcn.00403dd0
cmp dword [esi + 0x1e38], ebx
je 0x40cfd9
test byte [esi + 0x1ea8], 4
jne 0x40cfd1
mov eax, dword [esi + 0xbc8]
mov edx, dword [eax + 0x170]
lea ecx, [esi + 0xbc8]
call edx
cmp eax, ebx
jne 0x40cf98
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, 2
cmp dword [ebp - 0x98], edi
jne 0x40cf74
lea ecx, [ebp - 0xac]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40cf7e
lea edx, [ebp - 0x10]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40cf7e
mov ecx, dword [ebp - 0xac]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40cf7e
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, esi
call fcn.00417ce8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005144d7
mov esp, ebp
pop ebp
ret
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0xac], esp
push str.Firmware_reflash_completed_nYou_must_restart_your_computer_nbefore_new_F_W_will_take_effect
mov byte [esi + 0xfb4], bl
call fcn.00402bb0
lea ecx, [esi + 0xbc8]
call fcn.00403dd0
mov edx, dword [esi + 0xbc8]
mov eax, dword [edx + 0x170]
lea ecx, [esi + 0xbc8]
call eax
cmp dword [esi + 0x1e90], ebx
jne 0x40cfe0
mov ecx, esi
call fcn.00417ce8
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0xfb4], bl
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005144d7
mov esp, ebp
pop ebp
ret
Function at 0x412080
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x412114
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x412114
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4120ba
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
pop edi
pop ebx
mov eax, ecx
pop ebp
ret 4
push esi
push edi
call fcn.005160cd
mov esi, eax
push 0x5c
push esi
call fcn.005160a0
add esp, 0xc
test eax, eax
je 0x412108
push esi
mov ecx, ebx
mov byte [eax], 0
call fcn.00412080
push esi
test eax, eax
jne 0x4120f3
call fcn.00514d15
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4
call fcn.00514d15
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4120ea
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 4
pop edi
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x412170
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x28
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x41219d
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea esi, [eax - 1]
neg esi
sbb esi, esi
inc esi
je 0x4121fb
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, eax
test esi, esi
je 0x4121fb
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov esi, eax
test esi, esi
je 0x4121fb
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4124f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5244
call fcn.005158f0
mov eax, dword [0x588e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
mov edi, dword [ebp + 8]
jne 0x412528
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005144d7
mov esp, ebp
pop ebp
ret 8
test edi, edi
jne 0x41252f
lea edi, [esi + 0x14]
push edi
call fcn.00412080
test eax, eax
je 0x412514
lea eax, [ebp - 0x5238]
push eax
mov ecx, esi
call fcn.00411f60
lea ecx, [ebp - 0x5238]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x5238]
cmp byte [eax + edx - 1], 0x5c
jne 0x412578
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005144d7
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ebx, [esi + 0x119]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi + 0x118], 0x5c
je 0x4125a6
push 0x53feac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp + 0xc], 0
je 0x4125cc
lea eax, [ebp - 0x5238]
push 0x5c
push eax
call fcn.005160a0
add esp, 8
test eax, eax
je 0x4125cc
inc eax
push eax
lea ecx, [ebp - 0x5238]
push ecx
call edi
lea edx, [ebp - 0x5238]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
mov ecx, esi
call fcn.00412120
test eax, eax
je 0x412630
mov eax, dword [ebp - 0x5018]
fild dword [ebp - 0x5018]
test eax, eax
jns 0x4125fc
fadd dword [0x53eff8]
push 0
fstp dword [esi + 8]
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x5240], eax
cmp eax, 0xffffffff
je 0x412630
mov ecx, dword [esi + 0x10]
push ecx
call fcn.004138f0
test eax, eax
je 0x412650
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005144d7
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x10]
push 0x5000
lea edx, [ebp - 0x5004]
push edx
push eax
call fcn.00413260
mov edi, eax
mov dword [ebp - 0x523c], edi
test edi, edi
jle 0x4126bf
mov eax, dword [ebp - 0x5240]
push 0
lea ecx, [ebp - 0x5244]
push ecx
push edi
lea edx, [ebp - 0x5004]
push edx
push eax
mov dword [ebp - 0x5244], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4126bc
cmp dword [ebp - 0x5244], edi
jne 0x4126bc
fild dword [ebp - 0x523c]
fdiv dword [esi + 8]
fmul qword [0x53ee68]
fadd dword [esi + 4]
fstp dword [esi + 4]
jmp 0x412650
or edi, 0xffffffff
mov ecx, dword [ebp - 0x5240]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x10]
push edx
call fcn.00413460
test edi, edi
jne 0x4126e8
mov eax, dword [ebp - 0x5020]
push eax
push ebx
mov ecx, esi
call fcn.00412170
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
pop ebx
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.005144d7
mov esp, ebp
pop ebp
ret 8
Function at 0x413a60
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x413a6f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x5832c4]
test eax, eax
je 0x413a7d
call fcn.00413910
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x413b71
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x58a578]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x58a578]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x58a578]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x58a578]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x58a578]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x58a578]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x58a578]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x58a578]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x413a97
pop edi
pop ebx
test edx, edx
je 0x413b91
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x58a578]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x413b75
not eax
pop esi
ret 0xc
Function at 0x418568
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.00419ac2
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 0x4185a1
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.004181aa
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 0x4185ff
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 0x418623
cmp dword [edi + 0x74], 0
jne 0x418623
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00419ac2
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.004185c0
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 0x418e4c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5300e8
call fcn.00516d7b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x418e71
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x418ec3
call fcn.0041767f
push eax
lea ecx, [ebp - 0x10]
call fcn.00402810
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.00516baa
push eax
call fcn.0041660e
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.00402670
mov eax, esi
call fcn.00516e53
ret 8

Function at 0x421415
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 0x42145c
call fcn.00419ac2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42145c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x421478
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00420f1a
mov esi, eax
test edi, edi
je 0x421476
test ebx, ebx
je 0x421476
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x421e99
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.00421b58
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x421ee3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417579
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041754a
jmp 0x421eee
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042be7d
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x421ef4
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.00418715
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 0x421f31
call fcn.00421b58
mov dword [esi + 0xc], 1
jmp 0x421f36
call fcn.00421b58
cmp dword [esi], 0
je 0x421f7f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x421f57
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417579
jmp 0x421f69
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402920
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041754a
jmp 0x421fa3
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 0x421fa3
push dword [esi]
push dword [ebp + 8]
call fcn.0042be7d
pop esi
pop ebp
ret 0xc

Function at 0x4271af
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 0x4271f7
call fcn.00419ac2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4271f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42723a
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 0x427223
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 0x427223
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x427237
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