joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4308b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x43f524]
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0xc], eax
push 0x104
push 0x104
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebp
call fcn.0041ddb7
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.0041de06
push 0x5c
lea ecx, [esp + 0x10]
call fcn.00416fd1
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00416f59
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0041db34
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.0041da47
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.0041d7bc
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x30], 2
call fcn.0041dc2a
mov edi, dword [esp + 0x14]
push ebp
push 0x105
mov ecx, esi
mov byte [esp + 0x2c], 3
call fcn.0041ddb7
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.0041de06
cmp edi, ebp
je 0x404aba
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
mov edi, dword [edx - 8]
mov ecx, dword [eax - 8]
cmp edi, ecx
jne 0x404a70
push eax
push edx
call fcn.004083e4
add esp, 8
test eax, eax
jne 0x404aba
jmp 0x404ab5
jge 0x404aba
push ebx
lea edx, [esp + 0x30]
push edi
push edx
mov ecx, esi
call fcn.00416f59
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004083e4
add esp, 8
test eax, eax
jne 0x404aa5
mov ecx, dword [esi]
cmp byte [edi + ecx], 0x5c
sete al
test al, al
je 0x404aa5
mov bl, 1
jmp 0x404aa7
xor bl, bl
lea ecx, [esp + 0x30]
call fcn.0041da47
test bl, bl
pop ebx
je 0x404aba
mov ebp, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.0041da47
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.0041da47
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041da47
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x405240
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430a60
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x54]
test cl, 2
je 0x405273
push 0x193
jmp 0x40545c
test cl, 0x10
je 0x4052dd
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0x74]
cmp ecx, edi
mov ecx, esi
je 0x4052d3
push 0xc8
call fcn.00404f90
push 0x43f270
lea ecx, [esp + 0x10]
call fcn.0041dab5
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], edi
push ecx
mov ecx, esi
call fcn.00404d70
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041da47
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x24
ret
push 0x193
jmp 0x40545e
mov eax, dword [eax + 0x50]
push edi
push 0x8000080
push 3
push edi
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x50], eax
je 0x405457
cmp dword [esi + 0x4c], 3
je 0x4052bd
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.If_Modified_Since
call fcn.0041dab5
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0xc]
push edx
call fcn.00406f10
mov eax, dword [esp + 8]
mov dword [esp + 0x28], 1
cmp dword [eax - 8], edi
jle 0x40537f
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push edx
mov ecx, esi
call fcn.00405c00
test eax, eax
je 0x40537f
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00405b90
test eax, eax
jne 0x40537f
push 0x130
mov ecx, esi
call fcn.00404f90
mov ecx, dword [esi + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], 0xffffffff
jmp 0x405406
push 0xc8
mov ecx, esi
call fcn.00404f90
mov ecx, esi
call fcn.00406090
mov edx, dword [esi + 0x50]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Content_length
call fcn.0041dab5
mov ecx, esi
call fcn.00405150
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0x18]
push eax
push edi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x405401
push ecx
lea eax, [esp + 0x1c]
mov edx, esp
mov dword [esp + 0x14], esp
push eax
push edx
mov ecx, esi
call fcn.00405b30
push ecx
mov byte [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Last_Modified
call fcn.0041dab5
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.00405080
mov edi, 1
push 0x43f270
lea ecx, [esp + 0x14]
call fcn.0041dab5
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
push ecx
mov ecx, esi
call fcn.00404d70
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0041da47
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041da47
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x24
ret
push 0x1f7
mov ecx, esi
call fcn.00405010
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret
Function at 0x405480
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x430a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
cmp ecx, 0xffffffff
je 0x405507
mov eax, dword [esi + 0x44]
lea edx, [esp + 4]
push 0
push edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0xc], 0
sub edx, eax
push edx
mov edx, dword [esi + 0x34]
add edx, eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
test eax, eax
jbe 0x4054e6
mov ecx, dword [esi + 0x44]
add ecx, eax
mov dword [esi + 0x44], ecx
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], 0xffffffff
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esi + 0x2c]
test byte [ecx + 0x54], 0x10
je 0x405527
mov ecx, esi
call fcn.00405570
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x43f270
lea ecx, [esp + 8]
call fcn.0041dab5
lea edx, [esp + 4]
mov ecx, esi
push edx
mov dword [esp + 0x14], 0
call fcn.00404d70
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041da47
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406090
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x430bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
push 0x2e
mov ecx, dword [edi + 0x2c]
add ecx, 0x50
call fcn.00416fd1
mov ecx, dword [edi + 0x2c]
push eax
lea eax, [esp + 0x1c]
add ecx, 0x50
push eax
call fcn.00416e24
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
push 0x20019
push ebx
push edx
push accept
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4061ab
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
push ebx
push ebx
push str.Content_Type
push ecx
call esi
test eax, eax
jne 0x4061a0
mov edx, dword [0x43f524]
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.0041ddb7
mov edx, dword [esp + 0x14]
push eax
push ebx
push ebx
push str.Content_Type
push edx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0041de06
cmp esi, ebx
jne 0x406193
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0041d7bc
push ecx
mov byte [esp + 0x34], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Content_type
call fcn.0041dab5
mov ecx, edi
mov byte [esp + 0x34], 1
call fcn.00405080
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], bl
call fcn.0041da47
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041da47
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x406560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x430cd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x43f524]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov ebx, 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0041df26
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
je 0x406702
mov edx, dword [edi + 0x2c]
lea ecx, [esp + 0x14]
add edx, 0x50
push edx
call fcn.0041db34
push 0xa
lea ecx, [esp + 0x14]
call fcn.0041de4e
mov esi, eax
cmp esi, 0xffffffff
jne 0x4065f4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004023d0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0041d9d2
jmp 0x40664f
lea edx, [esp + 0x2c]
push esi
push edx
lea ecx, [esp + 0x18]
call fcn.00416f59
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2c], 2
call fcn.004023d0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.0041da47
inc esi
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00416e24
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.0041db34
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.0041da47
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406663
test al, 0x10
je 0x406677
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4065b5
jmp 0x406702
lea ecx, [esp + 0x14]
mov ebp, ebx
push ecx
mov ecx, edi
call fcn.00404b00
mov eax, dword [esp + 0x30]
test eax, eax
je 0x406698
push 0x3f
lea ecx, [esp + 0x18]
call fcn.0041dd8a
push 0x12e
mov ecx, edi
call fcn.00404f90
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0041d7bc
push ecx
mov byte [esp + 0x2c], 4
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Location
call fcn.0041dab5
mov ecx, edi
mov byte [esp + 0x2c], bl
call fcn.00405080
push 0x43f270
lea ecx, [esp + 0x30]
call fcn.0041dab5
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
mov byte [esp + 0x28], 5
call fcn.00404d70
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.0041da47
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.0041da47
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041da47
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8
Function at 0x40e555
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4404f0
cmp edx, dword [eax]
je 0x40e577
add eax, 8
inc ecx
cmp eax, 0x440580
jl 0x40e568
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4404f0]
jne 0x40e6a5
mov eax, dword [0x444f5c]
cmp eax, 1
je 0x40e67f
test eax, eax
jne 0x40e5a8
cmp dword [0x43fde4], 1
je 0x40e67f
cmp edx, 0xfc
je 0x40e6a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e5df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411400
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004096b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e622
lea eax, [ebp - 0x1a4]
push eax
call fcn.004096b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4378d4
push edi
call fcn.00411890
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411400
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411410
lea eax, [ebp - 0xa0]
push 0x4378b4
push eax
call fcn.00411410
push dword [esi + 0x4404f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411410
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411802
add esp, 0x2c
pop edi
jmp 0x40e6a5
lea eax, [ebp + 8]
lea esi, [esi + 0x4404f4]
push 0
push eax
push dword [esi]
call fcn.004096b0
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]
pop esi
leave
ret
Function at 0x416720
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004088b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4167eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4167eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41679e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4167a9
or bh, 8
and edi, 0x8000000
je 0x4167c4
mov eax, dword [0x44673c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4167eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x416beb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x416c0f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x416c2a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x419bd3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x431024
call fcn.00408a78
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042c8af
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x419c12
call fcn.0042c8af
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x419c20
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x419c2e
or eax, 0xffffffff
jmp 0x419d16
mov ecx, esi
call fcn.00419b49
mov dword [ebp - 0x14], eax
call fcn.0041a9e1
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x419c65
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x419c65
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041a995
push dword [ebp - 0x14]
call fcn.0041a4e3
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004198e1
cmp eax, edi
je 0x419cd8
test byte [esi + 0x24], 0x10
je 0x419ca6
push 4
mov ecx, esi
pop ebx
call fcn.0041d01c
test ah, 1
je 0x419c9e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041c9b5
cmp dword [esi + 0x1c], edi
je 0x419cd8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041d0d7
jmp 0x419cd8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x419cec
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x419d05
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x419d05
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00419b83
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41c75e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41c7a0
call fcn.0042c8af
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c7a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c797
xor eax, eax
jmp 0x41c7a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c7ae
pop edi
pop esi
pop ebx
ret 4
Function at 0x42e85a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42e888
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42e8a6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042e7c0
jmp 0x42e8a6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42e8a6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042e7c0
test edi, edi
mov eax, edi
jne 0x42e890
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [esp + 4]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.kernel32.dll_ReadConsoleW]
test eax, eax
je 0x4014d2
mov eax, dword [esp + 4]
test eax, eax
je 0x40160a
xor ebx, ebx
nop word [eax + eax]
movzx ecx, word [esi + ebx*2]
cmp ecx, 0xa
je 0x4015eb
cmp ecx, 0xd
je 0x4015eb
inc ebx
cmp eax, ebx
jne 0x4014b0
mov ebx, eax
jmp 0x4015eb
call dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [esp + 0x10], eax
push edi
push 0
call sym._xrealloc
add esp, 8
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp], ebx
mov dword [esp + 0x10], 1
call dword [sym.imp.kernel32.dll_SetFilePointerEx]
push 0
lea eax, [esp + 8]
push eax
push dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x401600
cmp dword [esp + 4], 0
je 0x401600
mov eax, edi
jle 0x401581
movzx ebx, word [esp + 0x10]
mov eax, edi
nop word cs:[eax + eax]
movzx ecx, byte [eax]
cmp ecx, 0xa
je 0x401581
cmp ecx, 0xd
je 0x401581
push 0
push eax
push ebx
call dword [sym.imp.user32.dll_CharNextExA]
mov ecx, dword [esp + 4]
add ecx, edi
cmp eax, ecx
jb 0x401560
mov ebx, eax
sub ebx, edi
xor ecx, ecx
cmp byte [eax], 0xd
sete cl
lea eax, [ebx + ecx]
inc eax
mov ecx, eax
sar ecx, 0x1f
add dword [esp + 8], eax
adc dword [esp + 0xc], ecx
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.kernel32.dll_SetFilePointerEx]
mov eax, dword [ebp + 0xc]
push eax
push esi
push ebx
push edi
push 0
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ebx, eax
push edi
mov edi, dword [ebp + 0xc]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
xor eax, eax
cmp ebx, edi
sete al
lea ecx, [esi + ebx*2]
add eax, eax
sub ecx, eax
mov word [ecx], 0
jmp 0x40160c
push edi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402350
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
push 0xfffffffffffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, eax
lea eax, [ebp - 0x2a]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4023b4
movsx eax, word [ebp - 0x2a]
movsx edi, word [ebp - 0x28]
inc edi
imul edi, eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edi
push 0x20
push esi
call dword [sym.imp.kernel32.dll_FillConsoleOutputCharacterW]
movzx eax, word [ebp - 0x22]
mov ecx, dword [ebp - 0x10]
push ebx
push ecx
push edi
push eax
push esi
call dword [sym.imp.kernel32.dll_FillConsoleOutputAttribute]
mov eax, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret