joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x47b0b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esi + 0x10], eax
mov dword [eax + 0x3b8], 0
cmp dword [esi + 4], 0
jne 0x406a0f
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
movq xmm0, qword [ebp - 0x64]
sub esp, 0x10
mov ecx, esp
push ecx
push 0
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x5c]
push 0x40000000
push ecx
push dword [eax]
movq qword [ecx + 8], xmm0
mov ecx, esi
call fcn.00418c90
mov ecx, dword [esi + 0x10]
push dword [ecx + 0x2e8]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00423d30
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x54]
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
mov eax, dword [eax]
lea ecx, [ebp - 0x50]
cmp byte [eax], 0
mov eax, dword [ebp - 0x54]
sete bl
cmp eax, ecx
je 0x406a36
push eax
call fcn.0044e444
add esp, 4
test bl, bl
je 0x406a49
mov eax, dword [esi + 0x10]
add eax, 0x3a8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, 0x3a8
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
mov byte [esi + 0x18], 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d04f
mov esp, ebp
pop ebp
ret 4
Function at 0x407060
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x47b0b0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x64]
push eax
mov dword [edi + 0x10], ebx
call fcn.00407220
mov ecx, dword [edi + 0x10]
mov eax, 0x400000a0
cmp byte [ecx + 0x3b1], 0
mov esi, 0x40000080
cmovne esi, eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
movq xmm0, qword [ebp - 0x64]
sub esp, 0x10
mov ecx, esp
push ecx
push 0
movq qword [ecx], xmm0
movq xmm0, qword [ebp - 0x5c]
push esi
push ecx
push dword [eax]
movq qword [ecx + 8], xmm0
mov ecx, edi
call fcn.00418c90
mov ecx, dword [edi + 0x10]
mov esi, dword [ecx + 0x2e8]
cmp esi, 0xffffffff
je 0x4070fd
mov eax, dword [ecx]
call dword [eax + 0x1c]
test esi, esi
js 0x4070f0
cmp esi, dword [eax + 0x1d8]
jge 0x4070f0
mov eax, dword [eax + 0x1d4]
mov eax, dword [eax + esi*4]
jmp 0x4070f7
mov ecx, eax
call fcn.004238a0
mov eax, dword [eax]
test eax, eax
jne 0x40710e
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004238a0
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push eax
push 0x30
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
push 0
push dword [eax + 0x3ac]
push 0xc5
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x3b1], 0
je 0x407153
movsx eax, byte [eax + 0x3b2]
push 0
push eax
push 0xcc
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x54]
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
push dword [eax]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x40717d
push eax
call fcn.0044e444
add esp, 4
push 0
push 0
push 0xb9
push dword [edi + 4]
call esi
push 0
push 3
push 0xd3
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x10]
xor ecx, ecx
cmp byte [eax + 0x3b0], 1
push 0
sete cl
push ecx
push 0xcf
push dword [edi + 4]
call esi
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [ebx + 0x4cc]
or ecx, eax
push ecx
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
mov byte [edi + 0x18], 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d04f
mov esp, ebp
pop ebp
ret 4
Function at 0x407530
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47b0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x407598
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
mov eax, edi
call fcn.00459d80
mov ebx, esp
test ebx, ebx
je 0x407598
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi + 0x10]
push 0xffffffffffffffff
add ecx, 0x138
push ebx
call fcn.00436ca0
mov ecx, dword [esi + 0x10]
push ecx
mov eax, dword [ecx]
push 0
push 0
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004235a0
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d04f
mov esp, ebp
pop ebp
ret
Function at 0x411b50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x314], 0
je 0x411bbb
cmp dword [ebp + 8], 0x100
jne 0x411bab
cmp byte [ebp + 0xc], 0xd
jne 0x411bab
cmp byte [esi + 0x31a], 0
je 0x411b8d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x411bab
cmp byte [esi + 0x31b], 0
jne 0x411bab
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x411ba4
push ecx
push 0
push 0
push str.return
push esi
call fcn.004235a0
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x314]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x41c870
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
mov edx, ecx
mov byte [edx + 0x115], al
test al, al
jne 0x41c89b
mov ecx, dword [edx + 0x40]
test ecx, ecx
je 0x41c89b
cmp dword [ecx + 0x58], edx
jne 0x41c89b
mov dword [ebp + 8], 0
pop ebp
jmp fcn.00422b60
pop ebp
ret 4

Function at 0x41e0c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push ebx
mov edx, eax
push esi
shr edx, 0x10
push edi
mov esi, ecx
test edx, edx
je 0x41e110
cmp byte [eax], 0x3c
jne 0x41e0f6
push eax
call fcn.004245a0
test al, al
jne 0x41e1a9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push ecx
push eax
call fcn.00424750
test al, al
jne 0x41e1a9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [0x47f320]
mov ebx, dword [ebp + 0xc]
push ebx
test ecx, ecx
cmove ecx, dword [0x47f324]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x41e0eb
mov eax, dword [0x47f320]
test eax, eax
cmove eax, dword [0x47f324]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41e161
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xa8], eax
mov eax, dword [0x47f320]
push ecx
test eax, eax
cmove eax, dword [0x47f324]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call fcn.00424640
test al, al
je 0x41e0eb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 0xac], ebx
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041e1d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x41fef0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
mov ecx, 8
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x41ff15
or esi, 1
push 1
call edi
test ax, ax
jns 0x41ff21
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x41ff2d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x41ff39
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x420b60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xd8], edi
jle 0x420baf
jmp 0x420b80
mov eax, dword [esi + 0xd4]
lea edx, [ebp + 0xb]
push edx
push dword [ebp + 0x10]
mov byte [ebp + 0xb], 0
mov ecx, dword [eax + edi*4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push ebx
call dword [eax]
cmp byte [ebp + 0xb], 0
jne 0x420d2f
inc edi
cmp edi, dword [esi + 0xd8]
jl 0x420b80
sub ebx, 0x100
je 0x420cc4
sub ebx, 4
je 0x420c1a
sub ebx, 2
jne 0x420cb9
push dword [ebp + 0xc]
mov word [ebp + 8], bx
call fcn.0044e30b
mov ecx, dword [esi + 0x54]
add esp, 4
lea edx, [ebp + 8]
push 0x8000000a
mov byte [ebp + 8], al
mov eax, dword [ecx]
push edx
push 0x424380
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x420cb9
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x58], 0
je 0x420cb9
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
xorps xmm0, xmm0
movq qword [ebp - 0xc], xmm0
mov byte [ebp - 0xc], al
mov eax, dword [esi + 0x68]
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x6c]
push 0x11
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
xor edi, edi
call ebx
mov ecx, 8
test ax, ax
push 2
cmovs edi, ecx
call ebx
test ax, ax
jns 0x420c79
or edi, 1
push 1
call ebx
test ax, ax
jns 0x420c85
or edi, 2
push 0x10
call ebx
test ax, ax
jns 0x420c91
or edi, 4
push 0x12
call ebx
test ax, ax
jns 0x420c9d
or edi, 0x20
mov word [ebp - 0xa], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x58]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x420cb9
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x420d16
mov eax, dword [ecx]
mov eax, dword [eax + 0xc8]
call eax
test al, al
je 0x420d16
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
je 0x420d16
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx]
call dword [eax + 0xc]
push str.RichEditUI
push eax
call fcn.0044d520
add esp, 8
test eax, eax
je 0x420d16
mov eax, dword [esi + 0x58]
cmp byte [eax + 0x319], 0
jne 0x420cb9
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.00423090
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422b60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x422b88
cmp esi, dword [edi + 0x58]
je 0x422b88
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x58]
cmp esi, eax
je 0x422c82
test eax, eax
je 0x422bf5
xorps xmm0, xmm0
movq qword [esp + 0xc], xmm0
movq qword [esp + 0x14], xmm0
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
lea edx, [esp + 8]
push edx
call dword [eax + 0x108]
push ecx
push 0
push 0
push str.killfocus
push dword [edi + 0x58]
mov ecx, edi
call fcn.004235a0
mov dword [edi + 0x58], 0
test esi, esi
je 0x422c82
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x422c82
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc8]
call eax
test al, al
je 0x422c82
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xd4]
call eax
test al, al
je 0x422c82
xorps xmm0, xmm0
movq qword [esp + 0xc], xmm0
mov dword [edi + 0x58], esi
movq qword [esp + 0x14], xmm0
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
lea edx, [esp + 8]
push edx
call dword [eax + 0x108]
push ecx
push 0
push 0
push str.setfocus
push dword [edi + 0x58]
mov ecx, edi
call fcn.004235a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4311f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x431213
cmp eax, edi
jge 0x43120b
call fcn.00430950
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov ecx, dword [esi + 8]
xor edx, edx
test ecx, ecx
jle 0x43123d
mov edi, dword [esi + 0xc]
nop
mov al, byte [esi + 0xc]
mov byte [ebp + edx - 4], al
shr edi, 8
sub ecx, 8
inc edx
mov dword [esi + 0xc], edi
test ecx, ecx
jg 0x431220
mov dword [esi + 8], ecx
cmp edx, 4
jge 0x43125c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x43124a
xor eax, eax
jmp 0x431252
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
mov byte [ebp + edx - 4], al
inc edx
cmp edx, 4
jl 0x431240
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 2]
shl ecx, 8
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x431294
mov dword [0x47f568], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4312af
pop edi
mov dword [0x47f568], 0x4719b8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4312c6
mov edx, edi
mov ecx, esi
call fcn.00430990
test eax, eax
je 0x43128c
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00450620
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43a2b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43a2bb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x43a385
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x46f100]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x46f100]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x46f100]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x46f100]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x46f100]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x46f100]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x46f100]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x46f100]
add edx, 8
sub esi, 8
dec edi
jne 0x43a2d0
pop edi
test esi, esi
je 0x43a3aa
lea esp, [esp]
movzx eax, byte [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x46f100]
lea edx, [edx + 1]
dec esi
jne 0x43a390
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x43ab70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 4], eax
je 0x43abb3
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43aba5
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x43abc4
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.00450620
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43abf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp byte [esi], 0
push edi
mov dword [ebp - 8], ebx
mov edi, 1
je 0x43ac2b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ac26
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x43ac58
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x43ac3c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.00450620
lea eax, [ebx + edi]
mov ebx, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x43ac6c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x43ac63
cmp byte [esi + 8], 0
je 0x43ac63
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ad30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x43ad64
cmp byte [edi + 1], 0
je 0x43ad5d
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43ad6a
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
je 0x43ad89
cmp byte [edi + 1], 0
je 0x43ad85
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x43ad8c
xor eax, eax
jmp 0x43ad8c
mov eax, dword [edi + 0x18]
push ebx
mov ebx, 0xffff
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ebx
call fcn.0044e3b2
mov esi, eax
add esp, 4
test esi, esi
jne 0x43adb8
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], 0
cmp ebx, eax
jbe 0x43aeba
lea esp, [esp]
mov ecx, dword [ebp - 4]
add eax, 0x400
cmp eax, ebx
mov edx, eax
cmova edx, ebx
mov ebx, dword [ebp - 4]
sub ecx, edx
sub ebx, ecx
cmp ebx, 0x404
mov eax, 0x404
cmova ebx, eax
cmp byte [edi], 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
je 0x43ae1e
cmp byte [edi + 1], 0
je 0x43aeba
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43ae21
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 8], ebx
je 0x43ae49
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ae44
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x10]
jmp 0x43ae72
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x43ae5c
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 8], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.00450620
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x43aeba
lea eax, [ebx - 3]
test eax, eax
jle 0x43aeac
dec eax
cmp byte [eax + esi], 0x50
jne 0x43ae9e
cmp byte [eax + esi + 1], 0x4b
jne 0x43ae9e
cmp byte [eax + esi + 2], 5
jne 0x43ae9e
cmp byte [eax + esi + 3], 6
je 0x43aea4
test eax, eax
jg 0x43ae82
jmp 0x43aeac
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jne 0x43aeba
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp eax, ebx
jb 0x43add0
push esi
call fcn.0044e444
mov eax, dword [ebp - 0xc]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43bd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x43be1b
cmp dword [esi + 4], 0xffffffff
jne 0x43be1b
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
mov edi, edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x43bdb0
cmp dword [ebp + 0x10], 1
mov ax, word [0x471f38]
mov word [edi], ax
mov edi, dword [ebp + 8]
jne 0x43bde4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x43bde4
mov eax, 0x2000000
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
mov ecx, edi
call fcn.0043aa20
add esp, 8
test eax, eax
jne 0x43be06
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
mov ecx, eax
call fcn.0043aed0
mov dword [esi], eax
mov eax, dword [0x47f338]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
pop ecx
pop ebp
ret 0xc

Function at 0x43e670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push str.click
push dword [edi]
mov esi, ecx
call fcn.0044d1af
add esp, 8
test eax, eax
jne 0x43e704
mov eax, dword [edi + 0x88]
cmp eax, dword [esi + 0x20c]
je 0x43e6ef
cmp eax, dword [esi + 0x210]
je 0x43e6ef
cmp eax, dword [esi + 0x214]
jne 0x43e6c9
push 0
push 0
push 0
push str.http:__www.harxon.com
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebp
ret 4
cmp eax, dword [esi + 0x218]
jne 0x43e713
push 0
push 0
push 0
push str.mailto:sales_harxon.com
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ebp
ret 4
push 0
push 2
push 0x10
push dword [esi - 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
ret 4
push str.windowinit
push dword [edi]
call fcn.0044d1af
add esp, 8
pop edi
pop esi
pop ebp
ret 4