joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b640
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x43b64b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x43b729
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493770]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x493770]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x493770]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493770]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493770]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493770]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493770]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493770]
inc ecx
sub edx, 8
sub esi, 1
jne 0x43b665
pop edi
test edx, edx
je 0x43b74b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x493770]
inc ecx
sub edx, 1
jne 0x43b730
not eax
pop esi
ret

Function at 0x43b750
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x493770]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x493770]
mov dword [edx + 8], ecx
ret

Function at 0x43bce0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x43bd22
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43bd16
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x43bd33
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.0046d8f0
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x43cf70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4ace78]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x43cfb0
push esi
call ebp
cmp eax, 0xffffffff
jne 0x43cfb0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x43d096
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x43cfcf
cmp ax, 0x5c
jne 0x43cfd1
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43cfc3
push edi
cmp ecx, ebx
je 0x43d014
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.0046d8f0
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.0043cf70
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x43d03f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x43d030
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x43d030
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d043
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x43d060
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x43d060
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]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x43d096
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046b9a8
add esp, 0x414
ret
Function at 0x43e810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x43e82a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x43e81f
cmp dword [edi + 0x7c], ebx
je 0x43e83d
push edi
call fcn.0043c7d0
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0043c5f0
add esp, 0x10
test eax, eax
je 0x43e864
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.0046d760
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43e8a5
push 0x4000
call fcn.0046d760
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x43e8b1
push esi
call fcn.0046d683
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x43e8fd
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0043ba00
add esp, 4
test eax, eax
jne 0x43e8fd
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x43e927
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x43e930
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x43e977
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x43e977
push eax
push ebx
call fcn.0043b750
add esp, 8
add ebp, 1
jne 0x43e960
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x43ec00
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x43ecd5
cmp dword [ebx + 4], 0xffffffff
jne 0x43ecd5
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43ec30
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x43ec69
cmp ax, 0x2f
je 0x43ec69
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x43ec56
mov eax, dword [0x48bf08]
mov dword [edi], eax
mov edi, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
cmp edi, 1
jne 0x43ec94
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43ec94
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.0043bab0
add esp, 0x10
test eax, eax
jne 0x43ecb6
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.0043e640
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x440b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x440b7b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x440c59
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493f58]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x493f58]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x493f58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493f58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493f58]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493f58]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493f58]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x493f58]
inc ecx
sub edx, 8
sub esi, 1
jne 0x440b95
pop edi
test edx, edx
je 0x440c7b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x493f58]
inc ecx
sub edx, 1
jne 0x440c60
not eax
pop esi
ret

Function at 0x440c80
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x493f58]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x493f58]
mov dword [edx + 8], ecx
ret
Function at 0x440e80
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x440ea2
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x440eb7
mov ebp, 1
test al, 2
je 0x440ebe
or ebp, 2
test al, 4
je 0x440ec5
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x440ecf
or ebp, 0x10
test al, 0x20
je 0x440ed6
or ebp, 0x20
test ecx, ecx
je 0x440ee2
or ebp, 0x40000000
jmp 0x440ee8
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x440ef8
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 0x28
jbe 0x440fa6
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x440fa6
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x14], ecx
jbe 0x440fa6
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x440fa0
cmp eax, 0x454e
je 0x440fa0
cmp eax, 0x454c
je 0x440fa0
cmp eax, 0x4550
jne 0x440fa6
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x440fb0
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x440fbe
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
test esi, esi
je 0x441007
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.00440de0
push edi
push ebx
mov dword [esi], eax
mov dword [esi + 4], edx
call fcn.00440de0
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x38]
push ecx
push edx
mov dword [esi + 8], eax
call fcn.00440de0
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x441034
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
call fcn.00440e10
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x24]
shl edx, 0x10
add esp, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x441210
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
cmp byte [esi + 0x2d], 0
mov eax, edi
je 0x441291
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x441241
cmp dword [esi + 0x40], ebx
jae 0x441241
push eax
call fcn.00444954
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x441259
lea eax, [ebx + ebx]
push eax
call fcn.00444949
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
mov ecx, dword [esi + 0x3c]
push ebx
push edi
push ecx
call fcn.0046d8f0
add esp, 0xc
xor edi, edi
test ebx, ebx
jbe 0x44128e
push ebp
lea ebp, [esi + 0x30]
mov edx, dword [esi + 0x3c]
movzx eax, byte [edi + edx]
push eax
push ebp
call fcn.00440cd0
mov ecx, dword [esi + 0x3c]
mov byte [edi + ecx], al
inc edi
add esp, 8
cmp edi, ebx
jb 0x441271
pop ebp
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x4412ca
mov ecx, dword [esi + 0x24]
lea edi, [ecx + ebx]
cmp edi, dword [esi + 0x28]
jb 0x4412b2
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push ebx
push eax
add ecx, edx
push ecx
call fcn.0046d8f0
add esp, 0xc
add dword [esi + 0x24], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4412eb
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x4414a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
sub esp, 0x18
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x84], edx
mov byte [esi + 0x80], al
mov dword [esi + 0x78], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x88], ecx
mov dword [esi + 0x8c], eax
cmp edx, eax
je 0x44156a
cmp ecx, eax
je 0x44156a
lea eax, [esp + 0xc]
push eax
mov dword [esi + 0x4c], SysReAllocStringLen
mov dword [esi + 0x70], ecx
mov byte [esi + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [esp + 8]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00440e10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00440de0
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
movzx eax, word [esp + 0x38]
mov ecx, edx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x64], ecx
movzx ecx, word [esp + 0x3c]
shl eax, 0x10
or eax, ecx
add esp, 0x18
mov dword [esi + 0x68], eax
mov dword [esi + 0x54], edx
xor eax, eax
pop esi
add esp, 0x18
ret 8
mov eax, 0x10000
pop esi
add esp, 0x18
ret 8
Function at 0x441630
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x44168f
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x4416d9
mov edx, dword [esp + 0x14]
sub edi, eax
cmp edi, edx
jbe 0x44165f
mov edi, edx
mov ebx, dword [esp + 0x10]
push edi
add eax, ecx
push eax
push ebx
call fcn.0046d8f0
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
push edi
push ebx
push eax
call fcn.00440b70
add esp, 0x18
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4416d2
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4416d9
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
push edi
push ebx
push eax
call fcn.00440b70
add esp, 0xc
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov dword [esi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x442830
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
lea ebp, [ebx + 1]
cmp dword [esi + 0x6af90], ebx
je 0x442a52
cmp dword [esi + 0x6af90], 3
jb 0x4428a9
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x4428e9
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x4428e9
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4428d1
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.0043ff10
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x4428e9
mov edi, eax
cmp edi, 3
jb 0x4429ce
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.0043f8e0
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov edx, eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x442987
cmp eax, 3
jb 0x442987
sub edi, ebp
lea esp, [esp]
add dword [esi + 0x6af84], ebp
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [esi + ecx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor eax, ebx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
sub edi, ebp
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x442930
jmp 0x4429f0
add dword [esi + 0x6af84], edi
mov eax, dword [esi + 0x6af84]
lea ecx, [eax + esi]
movzx eax, byte [ecx + 0x1af70]
mov dword [esi + 0x6af7c], eax
movzx ecx, byte [ecx + 0x1af71]
shl eax, 5
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
xor ecx, eax
and ecx, 0x7fff
push ebp
push esi
xor edi, edi
mov dword [esi + 0x6af7c], ecx
call fcn.0043f440
add esp, 0xc
jmp 0x4429f6
mov edx, dword [esi + 0x6af84]
movzx eax, byte [edx + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0043f8e0
add esp, 0xc
dec dword [esi + 0x6af90]
mov edx, eax
add dword [esi + 0x6af84], ebp
test edx, edx
je 0x442a30
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x442a0d
lea ecx, [eax + esi + 0x1af70]
jmp 0x442a0f
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00442670
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x442a45
push esi
call fcn.004400f0
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x442855
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x442a65
lea ecx, [eax + esi + 0x1af70]
jmp 0x442a67
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push ebp
sub edx, eax
push edx
push ecx
push esi
call fcn.00442670
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x443aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4886f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4ace78]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push edi
lea ecx, [esp + 0x20]
call fcn.0044e2e1
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x160]
push ecx
mov ecx, edi
mov dword [esp + 0x40], 0
call edx
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_LPtoDP]
push 1
lea eax, [esp + 0x10]
push eax
push ecx
call edi
mov eax, dword [esp + 0x24]
push 1
lea edx, [esp + 0x18]
push edx
push eax
call edi
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0044e335
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 4

Function at 0x44ade5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44ae2c
call fcn.0044cdf1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44ae2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44ae48
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044a95d
mov esi, eax
test edi, edi
je 0x44ae46
test ebx, ebx
je 0x44ae46
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44d63f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x488b8b
call fcn.0046ddf8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44d664
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44d6aa
lea ecx, [ebp - 0x10]
call fcn.00402ec0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00465fea
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004013b0
mov eax, esi
call fcn.0046ded0
ret 8
Function at 0x456851
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x456869
mov edi, dword [esi + 0xc]
jmp 0x4568a9
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x456882
call fcn.0044dc3a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x456897
call fcn.0044dc3a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4568a9
call fcn.0044dc3a
call fcn.0044cdf1
cmp dword [eax + 0x3c], 0
je 0x4568be
push edi
mov ecx, ebx
call fcn.00455730
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00456777
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4568dc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4568e8
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46b9a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ace78]
jne 0x46b9b2
repz ret
jmp fcn.0047420c