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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
not eax
je 0x4228b2
jmp 0x422890
test cl, 3
je 0x4228b2
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4795f0]
add ecx, 1
sub esi, 1
jne 0x422890
cmp esi, 0x20
push ebx
push edi
jb 0x422a9c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4799f0]
xor edx, dword [ebx*4 + 0x479df0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4795f0]
add ecx, 4
xor edx, dword [eax*4 + 0x47a1f0]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4799f0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x479df0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4795f0]
add ecx, 4
xor eax, dword [edx*4 + 0x47a1f0]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4799f0]
xor edx, dword [ebx*4 + 0x479df0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4795f0]
xor edx, dword [eax*4 + 0x47a1f0]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4799f0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x479df0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4795f0]
xor eax, dword [edx*4 + 0x47a1f0]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4799f0]
xor edx, dword [ebx*4 + 0x479df0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4795f0]
xor edx, dword [eax*4 + 0x47a1f0]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4799f0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x479df0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4795f0]
and edx, 0xff
xor eax, dword [edx*4 + 0x47a1f0]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4799f0]
xor edx, dword [ebx*4 + 0x479df0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4795f0]
add ecx, 4
xor edx, dword [eax*4 + 0x47a1f0]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4799f0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x479df0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4795f0]
and edx, 0xff
xor eax, dword [edx*4 + 0x47a1f0]
sub edi, 1
jne 0x4228c2
cmp esi, 4
jb 0x422ae9
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4799f0]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x479df0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4795f0]
and eax, 0xff
xor edi, dword [eax*4 + 0x47a1f0]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x422aa6
test esi, esi
pop edi
pop ebx
je 0x422b0d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4795f0]
add ecx, 1
sub esi, 1
jne 0x422af0
not eax
pop esi
ret
Function at 0x424840
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.0046843c
mov ecx, dword [esp + 0x20]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
je 0x424863
xor eax, eax
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424872
mov eax, 1
pop ecx
ret
Function at 0x424e90
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
test ax, ax
jge 0x424ea8
mov esi, 8
push 2
call edi
test ax, ax
jge 0x424eb4
or esi, 1
push 1
call edi
test ax, ax
jge 0x424ec0
or esi, 2
push 0x10
call edi
test ax, ax
jge 0x424ecc
or esi, 4
push 0x12
call edi
test ax, ax
jge 0x424ed8
or esi, 0x20
pop edi
mov ax, si
pop esi
ret

Function at 0x424fd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0x144]
cmp eax, ecx
je 0x424ff9
cmp esi, dword [edi + 0xa8]
je 0x424ff9
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xa8]
cmp esi, eax
je 0x4250ed
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x425065
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 8], 0xf
mov dword [esp + 0xc], esi
call ebx
mov ecx, dword [edi + 0xa8]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 8]
push edx
call eax
mov dword [edi + 0xa8], 0
test esi, esi
je 0x4250ed
mov edx, dword [esi]
mov eax, dword [edx + 0x110]
mov ecx, esi
call eax
cmp eax, edi
jne 0x4250ed
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
test al, al
je 0x4250ed
mov edx, dword [esi]
mov eax, dword [edx + 0x108]
mov ecx, esi
call eax
test al, al
je 0x4250ed
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [edi + 0xa8], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], esi
call ebx
mov ecx, dword [edi + 0xa8]
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 8]
push eax
call edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425680
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x473808
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x48d034]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
mov eax, dword [0x48d034]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x90]
xor ebx, ebx
mov eax, 7
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x34], eax
mov eax, edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
jmp 0x4256f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4256f0
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x24]
call fcn.00403990
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea esi, [ebp + 0x164]
push esi
mov byte [esp + 0x94], 1
call fcn.004293e0
mov byte [esp + 0x88], bl
cmp dword [esp + 0x34], 8
jb 0x425743
mov edx, dword [esp + 0x20]
push edx
call fcn.0045ca7a
add esp, 4
mov eax, dword [esi + 4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x425756
cmp eax, esi
je 0x42575b
call fcn.0045cf3a
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x18], ecx
je 0x42576d
push ebp
mov edx, edi
call fcn.00425940
cmp dword [esp + 0x74], ebx
jne 0x4257e5
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
call fcn.0042ab00
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push eax
push esi
mov byte [esp + 0x94], 2
call fcn.004143b0
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x4257c1
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0045ca7a
add esp, 4
cmp dword [esp + 0x34], esi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x4257e5
mov edx, dword [esp + 0x20]
push edx
call fcn.0045ca7a
add esp, 4
cmp dword [esp + 0x78], 8
jb 0x4257f9
mov eax, dword [esp + 0x64]
push eax
call fcn.0045ca7a
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0045ca6b
add esp, 0x7c
ret 8
Function at 0x4260c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x2c
sub eax, 0x100
je 0x426149
sub eax, 4
jne 0x426143
cmp dword [esi + 0xa8], 0
je 0x426143
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xb0]
mov word [esp + 0x18], cx
mov ecx, dword [esi + 0xb4]
mov dword [esp], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.00424e90
mov word [esp + 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xa8]
mov dword [esp + 0xc], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp]
push eax
call edx
xor al, al
add esp, 0x2c
ret
cmp ecx, 9
jne 0x426143
cmp dword [esi + 0xa8], 0
je 0x4261a0
mov ecx, dword [esi + 0xa8]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
test al, al
je 0x4261a0
mov ecx, dword [esi + 0xa8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x108]
call edx
test al, al
je 0x4261a0
mov ecx, dword [esi + 0xa8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
cmp eax, 0xa
jne 0x4261a0
mov eax, dword [esi + 0xa8]
cmp byte [eax + 0x415], 0
jne 0x426143
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge cl
mov eax, esi
push ecx
call fcn.00424ee0
mov al, 1
add esp, 0x2c
ret
Function at 0x4288b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x472e88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebp
push esi
push edi
mov eax, dword [0x48d034]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4288f2
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x24]
call fcn.00403990
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
add esi, 0x44
push esi
mov dword [esp + 0x50], 0
call fcn.00429050
cmp dword [esp + 0x34], 8
jb 0x42893f
mov edx, dword [esp + 0x20]
push edx
call fcn.0045ca7a
add esp, 4
mov edi, dword [esp + 0x14]
test edi, edi
mov ebp, dword [esi + 4]
je 0x42894e
cmp edi, esi
je 0x428953
call fcn.0045cf3a
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x428986
test edi, edi
jne 0x428964
call fcn.0045cf3a
cmp esi, dword [edi + 4]
jne 0x42896e
call fcn.0045cf3a
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x38
ret 4
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x38
ret 4
Function at 0x42d440
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
mov eax, dword [edi + 4]
push ebx
push ebp
push esi
push 4
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ecx, dword [edi + 4]
push 1
push ecx
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push esi
call ebx
mov edx, dword [edi + 4]
xor eax, eax
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_SetFocus]
je 0x42d50a
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x42d50a
cmp dword [esp + 0x14], 0x10
jne 0x42d4ce
mov ecx, dword [esp + 0x10]
cmp ecx, dword [edi + 4]
jne 0x42d4ce
push 1
push esi
call ebx
push esi
call ebp
lea edx, [esp + 0x10]
push edx
call fcn.00425f80
add esp, 4
test al, al
jne 0x42d4f5
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x14], 0x12
je 0x42d50a
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x42d4a1
push 1
push esi
call ebx
push esi
call ebp
cmp dword [esp + 0x14], 0x12
jne 0x42d524
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4359e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x472deb
mov eax, dword fs:[0]
push eax
mov eax, dword [0x48d034]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
fldz
xor ecx, ecx
fstp qword [eax + 0x20]
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov byte [eax + 0x38], cl
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov byte [eax + 0x1c], cl
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x43e3e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x43e401
cmp eax, edi
jge 0x43e3f9
call fcn.0043dbf0
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor eax, eax
cmp dword [esi + 8], eax
jle 0x43e42c
mov ecx, 0xfffffff8
lea ecx, [ecx]
mov dl, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], ecx
mov byte [esp + eax + 0xc], dl
add eax, 1
cmp dword [esi + 8], 0
jg 0x43e410
cmp eax, 4
jge 0x43e44f
mov edi, dword [esi + 4]
mov edx, dword [esi]
cmp edx, edi
jb 0x43e439
xor ecx, ecx
jmp 0x43e441
mov cl, byte [edx]
add edx, 1
movzx ecx, cl
mov byte [esp + eax + 0xc], cl
add eax, 1
cmp eax, 4
jl 0x43e431
mov dword [esi], edx
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
movzx ebx, ah
movzx eax, al
shl ebx, 8
add ebx, eax
shl ecx, 8
mov eax, ebx
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x43e489
mov dword [0x490810], str.zlib_corrupt
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esi]
add ecx, ebx
cmp ecx, dword [esi + 4]
jbe 0x43e4a3
pop edi
pop esi
mov dword [0x490810], 0x47e8b8
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x10]
add edx, ebx
cmp edx, dword [esi + 0x18]
jbe 0x43e4ba
mov ecx, ebx
mov edi, esi
call fcn.0043dc30
test eax, eax
je 0x43e482
mov edi, dword [esi]
push ebp
mov ebp, dword [esi + 0x10]
push ebx
push edi
push ebp
call fcn.0045e9c0
add esp, 0xc
add edi, ebx
add ebp, ebx
mov dword [esi + 0x10], ebp
pop ebp
mov dword [esi], edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x446b0a
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x3f4]
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xb0]
call eax
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
push 0
je 0x446b3e
mov edx, dword [esi]
mov eax, dword [edx + 0xc4]
mov ecx, esi
call eax
mov al, 1
pop esi
ret 4
push 0
push esi
push 0x446b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x446b5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret 4
Function at 0x44a920
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x473538
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48d034]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0xffffffff
xor edi, edi
mov dword [esp + 0x4c], edi
mov eax, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
lea esi, [eax + 2]
jmp 0x44a970
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44a970
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x2c]
call fcn.00403990
mov eax, dword [esp + 0x28]
mov ebp, 8
cmp dword [esp + 0x3c], ebp
jae 0x44a99d
lea eax, [esp + 0x28]
push edi
push 0x80
push 4
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
setne al
test al, al
sete bl
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x14], esi
jb 0x44a9d8
mov eax, dword [esp + 0x28]
push eax
call fcn.0045ca7a
add esp, 4
test bl, bl
jne 0x44aa41
cmp esi, 0xffffffff
mov dword [esp + 0x1c], edi
je 0x44aa1e
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44aa02
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44aa1e
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.00464de0
mov edi, eax
xor eax, eax
add edi, ebp
adc edx, eax
mov dword [esp + 0x1c], edx
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x44aa41
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
jne 0x44aa51
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 0xffffffff
je 0x44aa4d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44aaab
cmp esi, 0xffffffff
je 0x44aa69
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x44aa8d
push esi
call ebx
test eax, eax
je 0x44aa8d
or esi, 0xffffffff
mov dword [esp + 0x14], esi
push edi
mov edi, dword [esp + 0x58]
push ebp
call fcn.0044aba0
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 0xffffffff
je 0x44aaa9
push esi
call ebx
mov eax, edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
Function at 0x44aad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.00401270
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x4c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x44ab8a
call fcn.00401270
mov eax, dword [eax + 0x4c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44ab8a
call fcn.00401270
mov eax, dword [eax + 0x4c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x44ab83
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x44ab7c
test ebp, ebp
je 0x44ab7c
push edi
push eax
push ebp
call fcn.0045e9c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
mov edi, dword [esp + 0x18]
push esi
call fcn.0044aba0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x458ac0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
mov dword [esi + 0x18], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xb0]
push ebp
push edi
call edx
mov ecx, dword [esi + 0x18]
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
add edx, dword [ecx + 0xc8]
add ebp, dword [ecx + 0xc4]
sub edi, dword [ecx + 0xcc]
sub ebx, dword [ecx + 0xd0]
cmp byte [ecx + 0x3f5], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0x40000080
je 0x458b16
mov dword [esp + 0xc], 0x400000a0
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x144]
sub ebx, ecx
push ebx
sub edi, ebp
push edi
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push 0
push ecx
push 0
push edx
mov eax, esi
call fcn.0042ce80
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
call edx
mov edi, eax
call fcn.00428a70
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push ecx
call edi
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x3f0]
mov ecx, dword [esi + 4]
push 0
push eax
push 0xc5
push ecx
call edi
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x3f5], 0
je 0x458ba2
movzx edx, word [eax + 0x3f6]
mov eax, dword [esi + 4]
push 0
push edx
push 0xcc
push eax
call edi
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x13c]
lea eax, [esp + 0x10]
push eax
call edx
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x458bc3
mov eax, dword [eax + 4]
jmp 0x458bc6
add eax, 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x28], ebx
jb 0x458be4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0045ca7a
add esp, 4
mov edx, dword [esi + 4]
push 0
push 0
push 0xb9
push edx
call edi
mov eax, dword [esi + 4]
push 0
push 3
push 0xd3
push eax
call edi
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x108]
call eax
mov edx, dword [esi + 4]
movzx ecx, al
push ecx
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x18]
movzx ecx, byte [eax + 0x3f4]
mov edx, dword [esi + 4]
push 0
push ecx
push 0xcf
push edx
call edi
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x458c60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472c88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48d034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
add esi, 1
lea eax, [esi + esi]
call fcn.00466a40
mov edi, esp
test edi, edi
je 0x458d16
mov ecx, dword [ebx + 4]
push esi
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
mov eax, edi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], si
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x458cd0
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [ebp - 0x2c]
call fcn.00403990
push 0xffffffffffffffff
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x18]
push 0
mov edx, esi
push edx
add eax, 0x2cc
call fcn.00403490
cmp dword [ebp - 0x14], 8
jb 0x458d16
mov eax, dword [ebp - 0x28]
push eax
call fcn.0045ca7a
add esp, 4
xor eax, eax
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ca6b
mov esp, ebp
pop ebp
ret 4