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

Disassembly:
push 0xffffffffffffffff
push 0x5d9558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
xor ebx, ebx
mov ecx, dword [edi]
mov dword [esp + 0xc], ebx
mov eax, dword [esi]
cmp eax, ecx
mov eax, edi
jb 0x565cc3
mov eax, esi
mov ecx, dword [eax]
push ecx
push ebx
lea ecx, [esp + 0x18]
call fcn.00564f10
mov eax, dword [esi + 8]
mov dword [esp + 0x24], ebx
mov ebx, 1
cmp eax, ebx
mov eax, dword [edi + 8]
je 0x565d07
cmp eax, ebx
push edi
push esi
je 0x565cf8
lea edx, [esp + 0x18]
push edx
call fcn.005659e0
add esp, 0xc
jmp 0x565d2f
lea eax, [esp + 0x18]
push eax
call fcn.00565b60
add esp, 0xc
jmp 0x565d2f
cmp eax, ebx
je 0x565d1c
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.00565b60
add esp, 0xc
jmp 0x565d2f
push edi
lea edx, [esp + 0x14]
push esi
push edx
call fcn.005659e0
add esp, 0xc
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00564890
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00596929
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8

Function at 0x565e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5d9578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
xor ebx, ebx
mov ecx, dword [edi]
mov dword [esp + 0xc], ebx
mov eax, dword [esi]
cmp eax, ecx
mov eax, edi
jb 0x565e83
mov eax, esi
mov ecx, dword [eax]
push ecx
push ebx
lea ecx, [esp + 0x18]
call fcn.00564f10
mov eax, dword [esi + 8]
mov dword [esp + 0x24], ebx
mov ebx, 1
cmp eax, ebx
mov eax, dword [edi + 8]
je 0x565eb5
cmp eax, ebx
push edi
push esi
jne 0x565ed0
lea eax, [esp + 0x18]
push eax
call fcn.005659e0
jmp 0x565eda
cmp eax, ebx
je 0x565ece
push edi
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.005659e0
add esp, 0xc
mov dword [esp + 0x18], ebx
jmp 0x565edd
push esi
push edi
lea edx, [esp + 0x18]
push edx
call fcn.00565b60
add esp, 0xc
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00564890
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00596929
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x567df0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5d98cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], 0x5fbc18
mov dword [esi], 0x5fbbc8
mov dword [esi + 8], esi
mov ebx, dword [esp + 0x20]
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.00564890
mov eax, dword [ebx]
lea ecx, [esi + 0x18]
push eax
push 0
mov byte [esp + 0x20], 1
call fcn.00564f10
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 2
call fcn.00564860
mov dword [esi], 0x5fba8c
mov ecx, dword [edi]
mov dword [esp + 0x18], 3
push ecx
push 0
lea ecx, [esi + 0x30]
call fcn.00564f10
mov eax, dword [edi]
mov byte [esp + 0x18], 4
lea eax, [eax + eax*4]
mov dword [esi + 0x3c], eax
lea edx, [eax*4]
push edx
call fcn.00596900
mov dword [esi + 0x40], eax
mov eax, dword [edi]
mov dword [esi], 0x5fbc44
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x34]
push ecx
push edx
push eax
mov byte [esp + 0x2c], 5
call fcn.00563a20
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x56cd50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5da030
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x18], 0
lea esi, [edi + edi + 2]
mov dword [esp + 0x24], edi
cmp esi, eax
jge 0x56cdd1
lea eax, [esi + esi*2]
lea eax, [ebp + eax*8]
lea ecx, [eax - 0xc]
push ecx
lea ecx, [eax + 0xc]
call fcn.00566cc0
test eax, eax
jge 0x56cda1
dec esi
lea edx, [esi + esi*2]
lea eax, [edi + edi*2]
lea ebx, [ebp + edx*8]
lea edi, [ebp + eax*8]
push ebx
mov ecx, edi
call fcn.00564b90
add ebx, 0xc
lea ecx, [edi + 0xc]
push ebx
call fcn.00564b90
mov eax, dword [esp + 0x28]
mov edi, esi
lea esi, [esi + esi + 2]
cmp esi, eax
jl 0x56cd89
cmp esi, dword [esp + 0x28]
jne 0x56cdfc
lea ecx, [esi + esi*2]
lea edx, [edi + edi*2]
lea ebx, [ebp + ecx*8 - 0x18]
lea edi, [ebp + edx*8]
push ebx
mov ecx, edi
call fcn.00564b90
add ebx, 0xc
lea ecx, [edi + 0xc]
push ebx
call fcn.00564b90
lea edi, [esi - 1]
sub esp, 0x18
lea eax, [esp + 0x44]
mov esi, esp
mov dword [esp + 0x40], esp
push eax
mov ecx, esi
mov dword [esp + 0x44], esi
call fcn.00564890
lea ecx, [esp + 0x50]
mov byte [esp + 0x30], 1
push ecx
lea ecx, [esi + 0xc]
call fcn.00564890
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x30], 0
push edx
push edi
push ebp
call fcn.0056cf50
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
push eax
call fcn.00596929
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00596929
mov ecx, dword [esp + 0x3c]
add esp, 0x2c
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x56ce80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5da050
push eax
mov dword fs:[0], esp
push esi
push edi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
push esi
mov ecx, edi
mov dword [esp + 0x14], 0
call fcn.00564b90
lea eax, [esi + 0xc]
lea ecx, [edi + 0xc]
push eax
call fcn.00564b90
sub esp, 0x18
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], esp
mov edi, esp
push ecx
mov ecx, edi
mov dword [esp + 0x34], edi
call fcn.00564890
lea edx, [esp + 0x48]
lea ecx, [edi + 0xc]
push edx
mov byte [esp + 0x2c], 1
call fcn.00564890
mov ecx, dword [esp + 0x34]
mov eax, 0x2aaaaaab
sub ecx, esi
mov byte [esp + 0x28], 0
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push 0
push esi
call fcn.0056cd50
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00596929
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x50]
push edx
call fcn.00596929
mov ecx, dword [esp + 0x34]
add esp, 0x2c
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x56cf50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5da068
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x18], 0
lea eax, [edi - 1]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x28]
sar esi, 1
cmp eax, edi
jge 0x56cfd2
lea eax, [esi + esi*2]
lea ecx, [esp + 0x38]
push ecx
lea ebx, [ebp + eax*8]
lea ecx, [ebx + 0xc]
call fcn.00566cc0
test eax, eax
jge 0x56cfd2
lea edx, [edi + edi*2]
push ebx
lea edi, [ebp + edx*8]
mov ecx, edi
call fcn.00564b90
add ebx, 0xc
lea ecx, [edi + 0xc]
push ebx
call fcn.00564b90
lea eax, [esi - 1]
mov edi, esi
cdq
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [esp + 0x28]
cmp eax, edi
jl 0x56cf8b
lea eax, [edi + edi*2]
lea ecx, [esp + 0x2c]
push ecx
lea esi, [ebp + eax*8]
mov ecx, esi
call fcn.00564b90
lea edx, [esp + 0x38]
lea ecx, [esi + 0xc]
push edx
call fcn.00564b90
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.00596929
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00596929
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x56d070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5da0b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
je 0x56d0b3
mov dword [esi], 0x5fc078
mov dword [esi + 0x54], 0x5e5928
mov dword [esp + 8], 1
mov eax, dword [esi]
mov dword [esi + 4], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [ecx + esi], 0x5fb960
mov edx, dword [esi]
mov eax, dword [edx + 4]
lea ecx, [eax - 0xc]
mov dword [eax + esi - 4], ecx
mov edx, dword [esp + 0x20]
lea ecx, [esi + 8]
push edx
mov dword [esp + 0x1c], 1
call fcn.0056a1c0
lea edx, [esp + 0x24]
mov dword [esp + 0x24], edi
mov al, byte [esp + 0x24]
lea ecx, [esi + 0x20]
push edx
push 1
mov byte [ecx], al
sub esp, 0x10
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov edx, dword [ecx + 4]
mov eax, esp
mov byte [esp + 0x30], 2
mov dword [ecx + 0x24], edi
mov dword [eax], edx
mov edx, dword [ecx + 8]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edi
mov dword [eax + 4], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0xc], edx
call fcn.0056d2a0
mov eax, dword [esi]
pop edi
mov ecx, dword [eax + 4]
mov dword [ecx + esi], 0x5fbfd8
mov edx, dword [esi]
mov eax, dword [edx + 4]
lea ecx, [eax - 0x54]
mov dword [eax + esi - 4], ecx
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 8
Function at 0x56f030
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x56f060
push esi
call fcn.005724b0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x56f059
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x56f0e3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x56f0cf
mov eax, dword [esi + 8]
test eax, eax
je 0x56f084
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x56f0cb
cmp eax, 2
je 0x56f0cf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x56f077
cmp eax, 3
je 0x56f0aa
cmp eax, 1
jne 0x56f077
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x56f077
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x56f077
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0056f110
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x56f103
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0056f110
add esp, 4
pop esi
ret

Function at 0x57c3f1
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x120
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x57c415
push eax
call fcn.005838a6
push 2
call fcn.00583836
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.004f8250
add esp, 0xc
pop edi
pop esi
ret
Function at 0x580b60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.00583847
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x580bb4
push esi
call fcn.0057c832
push ebx
push esi
call fcn.004f97ec
add esp, 0xc
test eax, eax
je 0x580bbb
mov edi, dword [ebp - 8]
lea esi, [edi + 0xac]
push dword [esi]
push edi
call fcn.0058396a
push edi
mov dword [esi], ebx
call fcn.005838a6
add esp, 0xc
xor eax, eax
jmp 0x580cbd
push dword [ebp + 0x20]
mov esi, dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.005839fc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00583caa
mov ecx, dword [ebp + 8]
mov edi, 0x5fc6a4
mov dword [ebp - 4], ecx
add esp, 0x20
sub dword [ebp - 4], edi
mov eax, edi
mov edx, dword [ebp - 4]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
je 0x580bfd
or byte [esi + 0x6e], 2
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x580bef
test byte [esi + 0x6e], 2
je 0x580c7b
cmp ecx, ebx
je 0x580c51
mov al, byte [ecx]
cmp al, byte [0x5fc6a4]
jne 0x580c31
cmp al, 0x31
jne 0x580c27
mov dl, byte [ecx + 2]
cmp dl, byte [0x5fc6a6]
jne 0x580c31
cmp al, 0x30
jne 0x580c7b
cmp byte [ecx + 2], 0x39
jge 0x580c7b
cmp ecx, ebx
je 0x580c51
push ecx
lea eax, [ebp - 0x58]
push str.Application_was_compiled_with_png.h_from_libpng__.20s
push eax
call fcn.004f58b5
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.00583aab
add esp, 0x14
push edi
lea eax, [ebp - 0x58]
push str.Application__is__running_with_png.c_from_libpng__.20s
push eax
call fcn.004f58b5
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.00583aab
push str.Incompatible_libpng_version_in_application_and_library
push esi
mov dword [esi + 0x6c], ebx
call fcn.00583a1f
add esp, 0x1c
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.005838ea
push ebx
push ebx
push ebx
push esi
mov dword [esi + 0xac], eax
call fcn.00588f74
push ebx
push ebx
push 1
push ebx
push esi
call fcn.0058116b
push ebx
push esi
call fcn.004f97ec
add esp, 0x34
test eax, eax
je 0x580cba
jmp fcn.004f8ff4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x58673f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x58674d
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x586828
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x5fc908]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x5fc908]
xor esi, eax
inc edx
mov eax, esi
movzx ebx, byte [edx]
and eax, ecx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x5fc908]
xor eax, esi
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x5fc908]
xor esi, eax
inc edx
mov eax, esi
movzx ebx, byte [edx]
and eax, ecx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x5fc908]
xor eax, esi
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x5fc908]
xor esi, eax
inc edx
mov eax, esi
movzx ebx, byte [edx]
and eax, ecx
xor eax, ebx
shr esi, 8
mov eax, dword [eax*4 + 0x5fc908]
xor eax, esi
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x5fc908]
xor eax, esi
inc edx
dec edi
jne 0x58676a
pop ebx
cmp dword [ebp + 0x10], 0
je 0x586849
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x5fc908]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x58682e
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x589e4c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x589e76
test ecx, ecx
jne 0x589e80
test edx, edx
jne 0x589e80
mov eax, edi
jmp 0x589eec
cmp eax, 0xffffffff
jne 0x589e80
push 0xfffffffffffffffe
pop eax
jmp 0x589eec
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x589eec
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004f7e60
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x589eb1
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x589ed0
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x589f47
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.00589f4c
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x589f33
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x589f47
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x589e58
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5943d1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x594409
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.005984d9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005984b1
jmp 0x594415
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x594419
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x64a120
mov ecx, edi
call fcn.005981bb
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x59446c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x59447f
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.005984d9
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.005984b1
jmp 0x59447f
mov ecx, esi
call fcn.00596977
test eax, eax
je 0x59447f
push edi
mov ecx, eax
call fcn.005943d1
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x5960ed
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 0x59612f
call fcn.005b2355
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x59612f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x596126
xor eax, eax
jmp 0x596137
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0059613d
pop edi
pop esi
pop ebx
ret 4

Function at 0x5975f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x597617
cmp dword [edi + 0x3c], 0
jne 0x597617
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005b2355
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00597644
pop edi
pop esi
pop ebx
ret 8

Function at 0x597692
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005b2355
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5976c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.005976d6
pop edi
pop esi
pop ebx
ret 8
Function at 0x5b423f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.005b2355
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5b427c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5b427c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x5b4280
xor eax, eax
jmp 0x5b42fe
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00596900
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x5b42b8
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x5b42a2
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.005b43ef
push ebx
mov edi, eax
call fcn.00596929
test edi, edi
pop ecx
je 0x5b42fa
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.005b41b8
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.005b4303
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x680760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x6807cc
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x680815
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00699c70
add esp, 8
test eax, eax
jne 0x680813
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x680817
jmp 0x6807c3
xor eax, eax
mov esp, ebp
pop ebp
ret