joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e5f0
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov esi, 1
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
test ebp, ebp
jne 0x41e60f
mov ebp, esi
mov eax, dword [esp + 0x230]
test eax, eax
jbe 0x41e757
mov edi, dword [esp + 0x228]
jmp 0x41e62c
mov esi, 1
mov ecx, dword [esp + 0x224]
xor eax, eax
cmp dword [ecx + 0x39c], eax
jg 0x41e759
cmp dword [0x1da9780], eax
jg 0x41e759
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
lea edx, [esp + 0x120]
push ecx
push edx
push eax
push eax
mov dword [esp + 0x134], edi
mov dword [esp + 0x130], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
call sub.WSOCK32.dll_select
mov esi, eax
lea eax, [esp + 0x18]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x41e74a
cmp esi, 0xffffffff
jne 0x41e6b8
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2734
jne 0x41e74a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e705
test esi, esi
jle 0x41e705
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0x230]
sub eax, ebx
mov ecx, dword [ecx + 0x340]
cmp ecx, eax
jae 0x41e6d8
mov eax, ecx
mov edx, dword [esp + 0x22c]
push 0
push eax
lea eax, [ebx + edx]
push eax
push edi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x41e6ff
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41e6ae
jmp 0x41e69e
test eax, eax
jle 0x41e705
add ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebp
jae 0x41e714
sub eax, ebp
dec eax
jmp 0x41e716
sub eax, ebp
mov ecx, dword [esp + 0x234]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shl ecx, 3
cmp eax, ecx
ja 0x41e74a
cmp ebx, dword [esp + 0x230]
jb 0x41e627
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x426d90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4773d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
cmp byte [esi + 0xe4], 0xff
je 0x426dd4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 0xc]
xor ebx, ebx
cmp al, bl
mov dword [ebp - 0x14], 1
jne 0x426e99
cmp dword [esi + 0x60], ebx
jne 0x426e09
mov ecx, esi
call fcn.00426a60
mov ecx, dword [esi + 0x68]
mov edx, dword [eax + 0x14]
cmp ecx, edx
je 0x426e10
push 0xffffffffffffff9a
mov ecx, esi
call fcn.00426510
jmp 0x426e10
mov dword [ebp - 0x14], 0xffffffff
mov ecx, esi
call fcn.00426a60
cmp word [eax + 0xe], 8
jne 0x426e27
lea edx, [esi + 0x28]
push edx
call fcn.0042c610
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x426e99
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call fcn.00455016
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x11c], bl
call fcn.00426a60
mov ecx, eax
call fcn.004290b0
mov edx, dword [eax]
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x128], edx
call fcn.0045f86f
mov ecx, esi
call fcn.00426a60
mov ecx, dword [eax + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x426e92
mov dword [ebp - 0x14], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xe8]
call fcn.0042b0b0
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe4], bl
call fcn.0042a870
mov ecx, esi
call fcn.00428d70
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x427500
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4774d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.0045ed43
push 0x47ad04
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call fcn.00454c36
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
push ecx
push edx
call fcn.004271d0
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x24], 1
call fcn.0043ee58
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x427581
mov edx, dword [esp + 0x1c]
push edx
call fcn.00427620
add esp, 4
cmp eax, esi
sete al
test al, al
jne 0x427581
xor bl, bl
jmp 0x427583
mov bl, 1
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.0045ecd5
test bl, bl
jne 0x4275fc
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.004271d0
mov eax, dword [eax]
mov byte [esp + 0x1c], 2
push eax
call fcn.00427500
add esp, 0xc
lea ecx, [esp + 8]
test al, al
sete bl
mov byte [esp + 0x14], 0
call fcn.0045ecd5
test bl, bl
jne 0x4275dc
mov edx, dword [esp + 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4275fc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.0045ecd5
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.0045ecd5
mov ecx, dword [esp + 0xc]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x427620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4774f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call fcn.00433d08
mov esi, dword [esp + 0x30]
push 0
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00433dcb
test eax, eax
jne 0x4276a6
push esi
call fcn.004276f0
add esp, 4
mov dword [esp + 0x28], 0xffffffff
test al, al
lea ecx, [esp + 4]
je 0x42768f
call fcn.00433d45
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
call fcn.00433d45
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 4]
call fcn.00433feb
mov eax, dword [esp + 4]
push 0x10
lea ecx, [esp + 8]
call dword [eax + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 4]
and al, 0xfe
mov dword [esp + 0x28], 0xffffffff
inc eax
mov esi, eax
call fcn.00433d45
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x428130
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
push ebx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00428160
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 8]
sete bl
call fcn.0045ecd5
mov al, bl
pop ebx
ret

Function at 0x4287e0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, esi
call fcn.004289c0
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.004289c0
mov dword [esi + 0x1c], eax
pop esi
ret 4
Function at 0x428f10
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x477758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.0042a830
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00429990
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.0042a870
mov edx, dword [esi + 4]
mov ecx, 0x4967cc
cmp edx, dword [ecx]
je 0x428ffc
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0042a860
xor al, al
jmp 0x429094
mov ecx, edi
call fcn.00429dc0
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.0042a8a0
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x3c]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
test bp, bp
je 0x42904a
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.0042a8a0
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x30]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x429071
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.0042a8a0
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + 0x48]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, edi
call fcn.00429dc0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
call fcn.0042a860
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x429440
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x477798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x34]
mov eax, edi
mov ebp, esi
and eax, 0xffff
and ebp, 0xffff
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
lea eax, [eax + ebp + 0x1e]
push eax
mov dword [esp + 0x1c], eax
call fcn.0042a830
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4967d0]
push 1
mov dword [esp + 0x30], 0
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0xa]
mov word [eax + 4], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0xc]
mov word [edx + 6], cx
mov ecx, dword [esp + 0x20]
mov ax, word [ebx + 0xe]
mov word [ecx + 8], ax
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0x10]
mov word [eax + 0xa], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0x12]
mov word [edx + 0xc], cx
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0xe], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x12], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1c]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x20]
mov word [eax + 0x1a], si
mov ecx, dword [esp + 0x20]
mov word [ecx + 0x1c], di
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x3c]
mov ecx, ebp
mov eax, ecx
lea edi, [edx + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x30]
mov eax, ecx
lea edi, [edx + ebp + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
push edi
push ecx
mov ecx, esi
call fcn.0042a5c0
lea ecx, [ebx + 0x2c]
call fcn.0042a870
mov ecx, esi
call fcn.00429dc0
mov ecx, esi
mov word [ebx + 0x20], ax
call fcn.0042a760
sub eax, edi
lea ecx, [esp + 0x18]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042a860
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x429ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4779be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
test eax, eax
mov esi, ecx
mov dword [esp + 8], ebx
jne 0x42a036
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, 1
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x10]
call fcn.0045ed43
test bl, 1
mov dword [esp + 0x28], 3
je 0x42a05d
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 8], ebx
call fcn.0045ecd5
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.004271d0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x38], 4
call fcn.004272f0
add esp, 0x10
mov ecx, dword [0x497e8c]
mov dword [esp + 0x38], ecx
mov al, byte [esp + 0x34]
mov byte [esp + 0x28], 6
test al, al
je 0x42a0aa
push 0x47af38
lea ecx, [esp + 0x3c]
call fcn.0045ee5e
jmp 0x42a0c0
mov edx, dword [esi + 0x4c]
lea eax, [esp + 0x38]
push edx
push str._.3d
push eax
call fcn.00454b0b
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0045ef04
push 0x47af8c
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x34], 7
call fcn.0045ef6a
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push eax
push esi
mov byte [esp + 0x34], 8
call fcn.0045ef04
or ebx, 2
mov dword [esp + 8], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 7
call fcn.0045ecd5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 6
call fcn.0045ecd5
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call fcn.0045ecd5
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0045ecd5
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.0045ecd5
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.0045ecd5
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x42a420
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x477a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 4]
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 8]
push eax
call fcn.00428160
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
lea ecx, [esp + 4]
sete bl
call fcn.0045ecd5
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045ecd5
test bl, bl
pop ebx
je 0x42a4b0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x42ab60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x477ad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0042ad00
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
push 0
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x28]
push 0
push 0x16
lea ecx, [esp + 0xc]
call fcn.0042a830
mov eax, dword [esi + 0x2c]
push 0x16
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
cmp eax, 0x16
je 0x42abc6
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0042ae40
mov eax, dword [esp + 8]
push edi
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x14], ecx
mov di, word [eax + 0x14]
lea ecx, [esp + 8]
call fcn.0042a870
mov dx, word [esi + 8]
mov ecx, dword [esi + 0x2c]
push edx
call fcn.0042a4d0
mov ecx, dword [esi + 0x2c]
call fcn.00429b90
test eax, eax
jne 0x42ac3a
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x30]
add eax, edx
cmp ecx, eax
jae 0x42ac3a
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0042ae40
test di, di
je 0x42ac6d
and edi, 0xffff
push 0
push edi
lea ecx, [esi + 0x18]
call fcn.0042a8a0
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x1c]
push edi
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x34]
cmp eax, edi
je 0x42ac6d
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0042ae40
mov ecx, dword [esi + 0x2c]
call fcn.00429b90
test eax, eax
pop edi
je 0x42ac7e
xor eax, eax
jmp 0x42ac8b
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
sub eax, edx
sub eax, ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x42ac9b
cmp word [esi + 0xe], ax
jne 0x42aca6
cmp word [esi + 0xe], 0
jne 0x42acaf
test eax, eax
je 0x42acaf
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0042ae40
mov ecx, dword [esi + 0x2c]
xor eax, eax
mov ax, word [esi + 0xa]
mov byte [esi + 0x3c], 1
push eax
call fcn.00429bb0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42acd0
mov ecx, esi
call fcn.0042aea0
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.0042a860
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x42cdf0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x42cdff
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4968d0]
test eax, eax
je 0x42ce0d
call fcn.0042cd90
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x42cf0f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x1dae800]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x1dae800]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x1dae800]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x1dae800]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x1dae800]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x1dae800]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x1dae800]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x1dae800]
xor eax, ecx
inc esi
dec edi
jne 0x42ce27
pop edi
test edx, edx
je 0x42cf31
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x1dae800]
xor eax, ecx
inc esi
dec edx
jne 0x42cf13
pop ebx
pop esi
not eax
ret 0xc
Function at 0x43f384
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43f3a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044307d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43f3c7
test byte [esp + 8], 2
je 0x43f3c7
call fcn.004430f0
mov dword [eax], 0xd
call fcn.004430f9
mov dword [eax], 5
jmp 0x43f3a0
xor eax, eax
ret
Function at 0x453710
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.0043f4d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4537db
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 0x4537db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45378e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x453799
or bh, 8
and edi, 0x8000000
je 0x4537b4
mov eax, dword [0x1db245c]
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 0x4537db
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