joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d38e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push esi
push 0x100
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jge 0x100d3904
xor eax, eax
pop esi
add esp, 0x104
ret
lea ecx, [esp + 8]
push ecx
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x100d3920
pop esi
add esp, 0x104
ret
push ebx
push ebp
mov ebp, dword [esp + 0x114]
push edi
xor ebx, ebx
jmp 0x100d3932
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
cmp dword [edx + ebx*4], 0
je 0x100d3981
push 0x100
call fcn.100dc517
mov dword [ebp + ebx*4], eax
mov eax, dword [esi + 0xc]
add esp, 4
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + ebx*4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
cmp ebx, 0xa
rep movsb byte es:[edi], byte [esi]
jl 0x100d392e
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
add esp, 0x104
ret

Function at 0x100d3a10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0xc], 0x10
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x100d3a46
mov eax, dword [esp + 6]
push eax
call sub.WS2_32.dll_ntohs
and eax, 0xffff
add esp, 0x14
ret
or eax, 0xffffffff
add esp, 0x14
ret
Function at 0x100d82e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x100d8329
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x100d87a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1010cc50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.100d8350
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.100d83d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.100d83d0
lea ecx, [esi + 0xc]
call fcn.100fdc3b
lea ecx, [esi + 0x10]
call fcn.100fdc3b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.100d9960
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.100d9960
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.100d9960
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.100fdcb0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.100fdcb0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100d9b50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x100d9bb6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x100d9bb6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x100d9b97
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x100f4590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1010ddd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.100e968a
mov eax, dword [0x1012d538]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.100e95bc
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.100f5090
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x100f4637
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100f462e
cmp al, 0xff
je 0x100f462e
dec al
mov byte [ecx], al
jmp 0x100f4637
push ecx
call fcn.100fda1a
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x100f4668
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100f465f
cmp al, 0xff
je 0x100f465f
dec al
mov byte [ecx], al
jmp 0x100f4668
push ecx
call fcn.100fda1a
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x100fa140
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x1010e0e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edx, [esp + 0x58]
push 0x1c
lea eax, [esp + 4]
lea ecx, [esp + 4]
push edx
push eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x5c]
sub eax, edx
mov dword [esp], eax
sub eax, ecx
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x100fa2c5
mov edx, dword [esp + 0x78]
mov eax, dword [esp]
lea ecx, [esp + 0x38]
push ecx
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100fa2c5
mov cl, byte [esp + 7]
push esi
push edi
mov byte [esp + 0x10], cl
mov edi, str.Out_of_stack_space__while_attempting_to_match_a_regular_expression.
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], esi
push ecx
push str.Out_of_stack_space__while_attempting_to_match_a_regular_expression.
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.100e96c6
lea edx, [esp + 8]
lea ecx, [esp + 0x24]
push edx
mov dword [esp + 0xac], esi
mov dword [esp + 0xc], 0x1014a2c4
call fcn.100dd4a0
mov al, byte [esp + 0x10]
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0xac], 1
mov byte [esp + 0x34], al
call fcn.100e968a
mov ecx, dword [0x1012d538]
lea edx, [esp + 0x10]
push ecx
push esi
push edx
lea ecx, [esp + 0x3c]
call fcn.100e95bc
mov edi, vtable.std::runtime_error.0
mov dword [esp + 0x24], edi
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0xac], 3
call fcn.100e968a
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
push eax
call fcn.100dd4dd
mov cl, byte [esp + 0x30]
push esi
mov byte [esp + 0x54], cl
lea ecx, [esp + 0x54]
mov byte [esp + 0xac], 4
call fcn.100e968a
mov edx, dword [0x1012d538]
lea eax, [esp + 0x30]
push edx
push esi
push eax
lea ecx, [esp + 0x5c]
call fcn.100e95bc
lea ecx, [esp + 0x44]
push 0x10135c70
push ecx
mov dword [esp + 0x4c], edi
mov byte [esp + 0xb0], 3
call fcn.100dd44a
pop edi
pop esi
lea edx, [esp + 0x18]
lea ecx, [esp + 8]
push edx
mov dword [esp + 0x1c], str.bad_exception
call fcn.100dd4a0
lea eax, [esp + 8]
push 0x10136720
push eax
mov dword [esp + 0x10], vtable.std::bad_exception.0
call fcn.100dd44a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x10100054
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1010008c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100fe10b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100fe0e3
jmp 0x10100098
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1010174a
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 0x1010178c
call fcn.10107416
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1010178c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10101783
xor eax, eax
jmp 0x10101794
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1010179a
pop edi
pop esi
pop ebx
ret 4
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x408932
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
call fcn.0040894a
and ecx, esi
xor dword [eax], edx
dec ecx
inc eax
dec ecx
cmp eax, edi
jne fcn.00408932
ret

Function at 0x401000
Capabilities:
Create process on windows
Get file size

Disassembly:
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [section..data], eax
lea eax, str.EASYSERVER.EXE
mov dword [0x403c48], eax
push 0
push dword [0x403c48]
call sub.KERNEL32.dll__lopen
cmp eax, 0xffffffff
je 0x40112f
mov dword [0x403088], eax
push 0
push dword [0x403088]
call sub.KERNEL32.dll_GetFileSize
cmp eax, dword [0x4030d0]
jne 0x4010fe
mov eax, dword [0x403088]
push eax
call sub.KERNEL32.dll__lclose
push 0x403c58
push 0x40308c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [0x403c48]
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x40112f
mov eax, dword [0x4030d4]
push eax
call sub.KERNEL32.dll_Sleep
xor ecx, ecx
cmp ecx, dword [0x403c42]
je 0x401126
push ecx
xor ebx, ebx
xor esi, esi
xor edx, edx
mov ebx, dword [esi*4 + 0x403132]
xor edi, edi
push ebx
push edx
push 0
push 1
lea eax, [edx + 0x403939]
push eax
push ebx
push dword [0x403c58]
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x401113
pop edx
pop ebx
inc ebx
mov cl, byte [esi + 0x403b40]
movzx ecx, cl
inc edi
inc edx
cmp edi, ecx
jne 0x4010aa
inc esi
mov ecx, esi
cmp cx, word [0x403c40]
jne 0x4010a1
pop ecx
inc ecx
jmp 0x40108e
push 0
push str.Error
push str.Incorrect_filesize___Wrong_version__
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x401126
push 0
push str.Error
push str.Cant_write_to_memory__
push 0
call sub.USER32.dll_MessageBoxA
xor eax, eax
push eax
call sub.KERNEL32.dll_ExitProcess
ret
push 0
push str.Error
push str.Cant_open_execute_file__
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x401126
Function at 0xa1e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa1e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa1e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1e06a
add dl, dl
jne 0xa1e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1e0dc
xor eax, eax
add dl, dl
jne 0xa1e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1e17d
add dl, dl
jne 0xa1e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa1e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa1e075
mov eax, 1
add dl, dl
jne 0xa1e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa1e0e1
sub eax, ebx
mov ebx, 1
jne 0xa1e128
mov ecx, 1
add dl, dl
jne 0xa1e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa1e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa1e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa1e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa1e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa1e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa1e136
cmp eax, 0x7d00
jae 0xa1e16d
cmp eax, 0x500
jb 0xa1e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa1e075
cmp eax, 0x7f
ja 0xa1e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa1e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa1e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa1e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x459529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00459480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x459558
mov eax, 0xea61
jmp 0x4595d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x459568
mov eax, 0xea62
jmp 0x4595d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00459480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x459595
mov eax, 0xea62
jmp 0x4595d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x4595ad
mov eax, 0xea65
jmp 0x4595d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x4595c2
mov eax, 0xea66
jmp 0x4595d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x4595d2
mov eax, 0xea67
jmp 0x4595d6
xor eax, eax
jmp 0x4595d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4015e4
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x401643
mov ecx, dword [esp + 8]
dec eax
je 0x401600
dec eax
je 0x40161e
xor eax, eax
add esp, 0x94
ret
test ecx, ecx
jne 0x401610
mov eax, 4
add esp, 0x94
ret
jbe 0x40161e
mov eax, 5
add esp, 0x94
ret
cmp dword [esp + 4], 5
jae 0x401631
mov eax, 6
add esp, 0x94
ret
xor edx, edx
cmp edx, ecx
sbb eax, eax
neg eax
add eax, 7
add esp, 0x94
ret
mov eax, 3
add esp, 0x94
ret

Function at 0x40c795
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b2a0
cmp edx, dword [eax]
je 0x40c7b7
add eax, 8
inc ecx
cmp eax, 0x42b330
jl 0x40c7a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b2a0]
jne 0x40c8e5
mov eax, dword [0x42e3dc]
cmp eax, 1
je 0x40c8bf
test eax, eax
jne 0x40c7e8
cmp dword [0x42ae74], 1
je 0x40c8bf
cmp edx, 0xfc
je 0x40c8e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c81f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040ca20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cb10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c862
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cb10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4239bc
push edi
call fcn.0040ec20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040ca20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ca30
lea eax, [ebp - 0xa0]
push 0x42399c
push eax
call fcn.0040ca30
push dword [esi + 0x42b2a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ca30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040eb97
add esp, 0x2c
pop edi
jmp 0x40c8e5
lea eax, [ebp + 8]
lea esi, [esi + 0x42b2a4]
push 0
push eax
push dword [esi]
call fcn.0040cb10
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 0x414390
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.0040a030
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41445b
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 0x41445b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41440e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x414419
or bh, 8
and edi, 0x8000000
je 0x414434
mov eax, dword [0x42fb7c]
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 0x41445b
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 0x414830
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 0x41485b
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 0x41487f
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 0x41489a
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 0x418c42
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 0x418c84
call fcn.0041d63f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x418c84
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x418c7b
xor eax, eax
jmp 0x418c8c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00418c92
pop edi
pop esi
pop ebx
ret 4

Function at 0x41a786
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x420aa8
call fcn.00409768
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.0041d63f
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41a7c5
call fcn.0041d63f
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 0x41a7d3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41a7e1
or eax, 0xffffffff
jmp 0x41a8c9
mov ecx, esi
call fcn.0041a6fc
mov dword [ebp - 0x14], eax
call fcn.00417285
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41a818
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41a818
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.00417239
push dword [ebp - 0x14]
call fcn.00416d87
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041a489
cmp eax, edi
je 0x41a88b
test byte [esi + 0x24], 0x10
je 0x41a859
push 4
mov ecx, esi
pop ebx
call fcn.004165e5
test ah, 1
je 0x41a851
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00418d94
cmp dword [esi + 0x1c], edi
je 0x41a88b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004166cb
jmp 0x41a88b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41a89f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41a8b8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41a8b8
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.0041a736
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret