joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f2bd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x41f2fa
cmp dword [ebp + 0x14], edi
je 0x41f2fa
cmp ecx, edi
jne 0x41f301
call fcn.0042022a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00424e1f
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x41f315
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x41f336
cmp ebx, 0xffffffff
je 0x41f325
push ebx
push edi
push ecx
call fcn.00420270
add esp, 0xc
cmp esi, edi
je 0x41f2e2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x41f2e2
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x41f352
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x41f359
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x41f44a
test word [esi + 0xc], 0x10c
je 0x41f3ad
mov eax, dword [esi + 4]
test eax, eax
je 0x41f3ad
jl 0x41f4ab
cmp ebx, eax
mov edi, ebx
jb 0x41f37e
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x41f452
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041edc3
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x41f442
cmp ebx, dword [ebp - 0xc]
jb 0x41f41a
cmp dword [ebp - 0xc], 0
je 0x41f3d7
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x41f3cc
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x41f3d3
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x41f3e2
mov eax, SysReAllocString
cmp ebx, eax
ja 0x41f3e2
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x41f47e
push eax
push dword [ebp - 8]
push esi
call fcn.00426933
pop ecx
push eax
call fcn.00427a52
add esp, 0xc
test eax, eax
je 0x41f4bd
cmp eax, 0xffffffff
je 0x41f4ab
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x41f442
push esi
call fcn.00427371
cmp eax, 0xffffffff
pop ecx
je 0x41f4af
cmp dword [ebp - 4], 0
je 0x41f47e
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x41f361
mov eax, dword [ebp + 0x14]
jmp 0x41f2fc
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x41f469
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00420270
add esp, 0xc
call fcn.0042022a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x41f2f2
cmp dword [ebp + 0xc], 0xffffffff
je 0x41f494
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00420270
add esp, 0xc
call fcn.0042022a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x41f2f2
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x41f2fc
or dword [esi + 0xc], 0x10
jmp 0x41f4af
Function at 0x4232bc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x445770]
je 0x4232d7
inc edi
cmp edi, 0x17
jb 0x4232c8
cmp edi, 0x17
jae 0x423457
push ebp
push 3
call fcn.0042d820
cmp eax, 1
pop ecx
je 0x423423
push 3
call fcn.0042d820
test eax, eax
pop ecx
jne 0x42330b
cmp dword [0x4455c4], 1
je 0x423423
cmp ebx, 0xfc
je 0x423456
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x448a68
push ebp
call fcn.0042d7bb
add esp, 0xc
test eax, eax
je 0x423341
push esi
push esi
push esi
push esi
push esi
call fcn.00424d23
add esp, 0x14
push 0x104
mov esi, 0x448a81
push esi
push 0
mov byte [0x448b85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423385
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042d7bb
add esp, 0xc
test eax, eax
je 0x423385
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00424d23
add esp, 0x14
push esi
call fcn.0042d730
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4233ca
push esi
call fcn.0042d730
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x448d7c
push 0x43ad64
sub ecx, eax
push ecx
push eax
call fcn.0042d670
add esp, 0x14
test eax, eax
je 0x4233ca
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00424d23
add esp, 0x14
jmp 0x4233cc
xor esi, esi
push 0x43ad60
push ebx
push ebp
call fcn.0042d5ff
add esp, 0xc
test eax, eax
je 0x4233ec
push esi
push esi
push esi
push esi
push esi
call fcn.00424d23
add esp, 0x14
push dword [edi*8 + 0x445774]
push ebx
push ebp
call fcn.0042d5ff
add esp, 0xc
test eax, eax
je 0x42340e
push esi
push esi
push esi
push esi
push esi
call fcn.00424d23
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042d442
add esp, 0xc
jmp 0x423456
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x423456
cmp ebp, 0xffffffff
je 0x423456
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x445774]
push dword [esi]
call fcn.0042d730
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42d442
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00423e6c
xor ebx, ebx
cmp dword [0x449570], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42d518
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42d5f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42d5f8
push eax
call fcn.00423dfe
mov dword [esp], 0x43b05c
push edi
mov dword [0x449570], eax
call esi
push eax
call fcn.00423dfe
mov dword [esp], 0x43b048
push edi
mov dword [0x449574], eax
call esi
push eax
call fcn.00423dfe
mov dword [0x449578], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041fbb3
test eax, eax
pop ecx
pop ecx
je 0x42d4e6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424d23
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42d518
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00423dfe
cmp eax, ebx
pop ecx
mov dword [0x449580], eax
je 0x42d518
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00423dfe
pop ecx
mov dword [0x44957c], eax
mov eax, dword [0x44957c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42d59d
cmp dword [0x449580], ecx
je 0x42d59d
push eax
call fcn.00423e75
push dword [0x449580]
mov esi, eax
call fcn.00423e75
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42d59d
cmp edi, ebx
je 0x42d59d
call esi
cmp eax, ebx
je 0x42d56a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42d56a
test byte [ebp - 0x18], 1
jne 0x42d59d
lea eax, [ebp - 0x10]
push eax
call fcn.0041fbea
test eax, eax
pop ecx
je 0x42d585
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00424d23
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42d594
or dword [ebp + 0x10], 0x200000
jmp 0x42d5d8
or dword [ebp + 0x10], 0x40000
jmp 0x42d5d8
mov eax, dword [0x449574]
cmp eax, dword [ebp - 8]
je 0x42d5d8
push eax
call fcn.00423e75
cmp eax, ebx
pop ecx
je 0x42d5d8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42d5d8
mov eax, dword [0x449578]
cmp eax, dword [ebp - 8]
je 0x42d5d8
push eax
call fcn.00423e75
cmp eax, ebx
pop ecx
je 0x42d5d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x449570]
call fcn.00423e75
cmp eax, ebx
pop ecx
je 0x42d5f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42d5fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4352e4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x445758]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00435279
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00420270
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x435333
cmp dword [ebp - 0x1c], 5
jb 0x43534b
jmp 0x435347
cmp dword [ebp - 0x10], 1
jne 0x43534b
cmp dword [ebp - 0x1c], 4
ja 0x435347
jne 0x43534b
cmp dword [ebp - 0x18], 0
jbe 0x43534b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43c9c0
call fcn.0043516a
test eax, eax
jge 0x43536c
mov byte [0x44965d], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041eae4
add ebp, 0x78
leave
ret
Function at 0x408940
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.0040895f
sub ecx, ebx
xor dword [edi], esi
add edi, 1
or ecx, ebx
or ebx, ecx
cmp edi, eax
jne fcn.00408940
add ebx, ecx
ret

Function at 0x44305f
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x2bd46
push section.packerBY
push 0x4434e3
call fcn.004434a8
cld
mov esi, 0x414000
mov ecx, 4
sub ecx, esi
cmp esi, 0x440290
ja 0x4430a7
lodsb al, byte [esi]
add al, 0x18
sub al, 2
jb 0x44309d
cmp al, 0x25
jne 0x443081
mov al, byte [esi]
and al, 0xf0
cmp al, 0x80
jne 0x443081
inc esi
lea edi, [esi + ecx]
sub dword [esi], edi
add esi, 4
jmp 0x443081
mov edx, 0x400000
lea esi, [edx + 0x4120c]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x44310a
add eax, edx
mov edi, dword [esi + 0x10]
mov ebx, dword [esi]
test ebx, ebx
jne 0x4430c6
mov ebx, edi
add ebx, edx
add edi, edx
push edx
push edi
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
pop edi
pop edx
test eax, eax
je 0x443108
mov ecx, eax
mov eax, dword [ebx]
test eax, eax
je 0x443103
btr eax, 0x1f
jb 0x4430eb
lea eax, [eax + edx + 2]
push ecx
push edx
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
pop edi
pop edx
pop ecx
test eax, eax
je 0x443108
stosd dword es:[edi], eax
add ebx, 4
jmp 0x4430db
add esi, 0x14
jmp 0x4430b2
popal
ret
popal
jmp 0x440130
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x25621948
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x16403076
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412cf0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412e9a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x4f
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe2
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x61
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x63
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x16
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xbc
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x54
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x9e
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3d
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x13
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x94
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x88
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xf7
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x85
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5b
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d10
pop ebx
pop edi
pop esi
ret

Function at 0x4035d5
Capabilities:
Terminate process

Disassembly:
jmp 0x451b59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451b6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058fd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403706
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b002
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b013
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aee9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b03b
push ebx
push esi
push edi
call fcn.004056f0
add esp, 0xc
push 0
call fcn.0040623a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x401320
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x66e068]
sub esp, 0x10
test al, al
push ebx
push ebp
push esi
push edi
je 0x40148d
mov eax, dword [0x618060]
test eax, eax
je 0x40157e
mov esi, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0xa3
push esi
mov dword [0x618060], 0
call edi
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
push 8
push 0xa3
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 1
push 0xa5
push esi
call edi
push eax
call ebp
push 8
push 0xa5
push esi
call edi
push eax
call ebx
mov eax, dword [0x61df84]
mov ecx, dword [0x61df8c]
mov edx, dword [0x61df88]
push 0
sub ecx, eax
push ecx
mov ecx, dword [0x61df80]
sub edx, ecx
push edx
push eax
push ecx
push 0xa3
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x61df94]
mov ecx, dword [0x61df9c]
mov edx, dword [0x61df90]
push 0
sub ecx, eax
push ecx
lea ecx, [edx + edx]
mov edx, dword [esp + 0x20]
sub edx, ecx
sub edx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [0x61df90]
push eax
push 0xa5
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 0x67
call fcn.00424130
add esp, 8
push eax
push 0
push 0xc
push 0xa3
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x66e068
push 0
push 0xc
push 0xa5
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0xaa
push esi
call edi
push eax
call ebp
push 0
push 0xaa
push esi
call edi
push eax
call ebx
push 1
push 1
push 0xf4
push 0xab
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0xa6
push esi
call edi
push eax
call ebx
push 1
push 0xac
push esi
call edi
push eax
call ebp
push 8
jmp 0x401568
mov esi, dword [esp + 0x24]
push 0
push esi
mov dword [0x618060], 1
call fcn.004011a0
mov ecx, dword [esp + 0x34]
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 8
test ecx, ecx
je 0x401517
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SetTimer]
jg 0x4014d8
push 0
push 0x1f4
push 0x7c
push esi
mov dword [ecx], 4
call ebx
jmp 0x4014e6
cmp eax, 0xa
jle 0x4014c4
push 0x7c
push esi
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401517
push 0xab
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x401517
push 0
push 0xab
push esi
call edi
push eax
call ebp
push 0
push 0
push 0x7d
push esi
call ebx
push 1
push 1
push 0xf4
push 0xaa
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0xa5
push esi
call edi
push eax
call ebp
push 0
push 0xa5
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 8
push 0xa6
push esi
call edi
push eax
call ebx
push 0
push 0xac
push esi
call edi
push eax
call ebp
push 0
push 0xac
push esi
call edi
push eax
call ebx
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40cb50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0xb5
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call fcn.004ea920
add esp, 4
cmp eax, 0xffffffff
jne 0x40cb81
pop edi
pop esi
mov dword [esp + 4], 0
jmp fcn.00421dc0
push 1
push eax
push esi
call fcn.004ea9e0
push 0
push 2
push esi
call fcn.004ea2e0
push esi
call fcn.004eae00
push edi
call fcn.0040bd60
add esp, 0x20
pop edi
mov dword [0x623514], 1
pop esi
ret

Function at 0x40f140
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1068
call fcn.005d9990
push ebx
lea eax, [esp + 4]
push 0x1068
push eax
call fcn.004232e0
lea ecx, [esp + 0xc]
push 0x1068
push ecx
call fcn.00423310
mov ebx, dword [esp + 0x1080]
add esp, 0x10
push eax
lea edx, [esp + 8]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 4]
push 0x5f5084
push eax
call fcn.005da9a0
add esp, 8
test eax, eax
je 0x40f199
mov byte [eax], 0
mov eax, dword [esp + 0x1074]
cmp byte [eax], 0
je 0x40f1ea
push esi
push edi
lea edi, [esp + 0xc]
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f1b0
mov ecx, dword [0x5f5084]
mov dword [edi], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f1c2
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f1d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea edx, [esp + 4]
push edx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop ebx
add esp, 0x1068
ret
Function at 0x4139e0
Capabilities:
Get common file path

Disassembly:
lea eax, [esp + 0x14]
sub esp, 0x304
push eax
call fcn.00509170
add esp, 4
test eax, eax
jne 0x4139fe
add esp, 0x304
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x314]
push edi
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x413a26
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x304
ret
mov edi, esi
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413a30
mov ecx, dword [str.msagentchars_]
mov dword [edi], ecx
mov edx, dword [0x5f53bc]
mov dword [edi + 4], edx
mov eax, dword [0x5f53c0]
mov dword [edi + 8], eax
mov ecx, dword [0x5f53c4]
push 2
push esi
mov dword [edi + 0xc], ecx
call fcn.00424420
add esp, 8
test eax, eax
je 0x413a19
mov edx, dword [esp + 0x328]
mov ebx, dword [esp + 0x31c]
push edx
xor ebp, ebp
push ebp
push ebp
push ebp
mov byte [ebx], 0
call fcn.00589940
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x3e7
push ebp
push ebp
push ebp
push 1
push ebx
push str..acs
push esi
call fcn.00490fe0
mov cl, byte [ebx]
add esp, 0x64
test cl, cl
je 0x413bbc
test eax, eax
jle 0x413bbc
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
inc ebp
call fcn.005da53c
mov edx, ebx
lea ecx, [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x14]
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x413af0
lea eax, [esp + 0x114]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413b03
mov edi, ebx
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x413b10
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x324]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x413b61
mov ecx, dword [esp + 0x320]
test ecx, ecx
je 0x413b55
cmp eax, 0x270f
jne 0x413b55
push ecx
push ebx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x413bce
jmp 0x413b61
dec eax
test eax, eax
mov dword [esp + 0x324], eax
jle 0x413bc3
mov edx, dword [esp + 0x328]
push edx
push 0
push 0
push 0
call fcn.00589940
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [esp + 0x34c]
push 0
push 0
push 0
push 0
push 0x3e7
push 0
push 0
push 0
lea eax, [ebp + 1]
push eax
push ebx
push str..acs
push ecx
call fcn.00490fe0
mov cl, byte [ebx]
add esp, 0x64
test cl, cl
jne 0x413ab5
mov eax, dword [esp + 0x324]
cmp eax, 0x270f
je 0x413a19
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x304
ret