joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4368c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
cmp byte [0x8e96f0], 1
jne 0x436b03
mov esi, dword [0x8e96e8]
test esi, esi
je 0x436973
xor ecx, ecx
jmp 0x4368ff
test bl, 7
je 0x436a0c
inc ecx
cmp ecx, 0x20
je 0x436964
mov edx, 1
shl edx, cl
bt esi, ecx
jae 0x4368f9
movzx ebx, byte [ecx + 0x8e96f1]
test bl, 0x38
je 0x4368f9
test bl, 7
je 0x43692b
mov bh, bl
dec bh
and bh, 7
mov eax, ebx
and al, 0xf8
or al, bh
jmp 0x436946
mov eax, ebx
and al, 0xc0
mov ah, bl
add ah, 0x38
and ah, 0x38
movzx edi, al
or al, ah
or al, 5
test ah, ah
movzx eax, al
cmove eax, edi
mov byte [ecx + 0x8e96f1], al
test al, 0x38
jne 0x4368f0
not edx
mov eax, ecx
shr eax, 3
and eax, 0x1ffc
and dword [eax + 0x8e96e8], edx
jmp 0x4368f0
mov edi, dword [0x8e96ec]
test edi, edi
jne 0x436981
jmp 0x436b03
mov edi, dword [0x8e96ec]
test edi, edi
je 0x436afc
xor eax, eax
jmp 0x43699f
test bl, 7
je 0x436a0c
inc eax
cmp eax, 0x20
je 0x436b03
mov esi, 1
mov ecx, eax
shl esi, cl
bt edi, eax
jae 0x436995
movzx ebx, byte [eax + 0x8e9711]
test bl, 0x38
je 0x436995
mov ecx, ebx
test bl, 7
je 0x4369ce
dec cl
and cl, 7
mov edx, ebx
and dl, 0xf8
or dl, cl
jmp 0x4369e9
and cl, 0xc0
mov edx, ebx
add dl, 0x38
and dl, 0x38
movzx ebp, cl
or cl, dl
or cl, 5
test dl, dl
movzx edx, cl
cmove edx, ebp
lea ecx, [eax + 0x20]
mov byte [eax + 0x8e9711], dl
test dl, 0x38
jne 0x436990
not esi
mov edx, ecx
shr edx, 3
and edx, 0x1ffc
and dword [edx + 0x8e96e8], esi
jmp 0x436990
test ecx, ecx
js 0x436b03
mov byte [0x8ea92f], cl
mov word [0x8ea92c], 0x480
mov byte [0x8ea92e], 0x2e
mov ecx, 0xffff
mov eax, 0xfffffffc
nop word cs:[eax + eax]
movzx edx, byte [eax + 0x8ea930]
xor edx, ecx
mov ebx, edx
shr ebx, 1
mov ecx, ebx
xor ecx, 0xa001
test dl, 1
cmove ecx, ebx
mov ebx, ecx
shr ebx, 1
mov edx, ebx
xor edx, 0xa001
test cl, 1
cmove edx, ebx
mov ebx, edx
shr ebx, 1
mov ecx, ebx
xor ecx, 0xa001
test dl, 1
cmove ecx, ebx
mov ebx, ecx
shr ebx, 1
mov edx, ebx
xor edx, 0xa001
test cl, 1
cmove edx, ebx
mov ebx, edx
shr ebx, 1
mov ecx, ebx
xor ecx, 0xa001
test dl, 1
cmove ecx, ebx
mov ebx, ecx
shr ebx, 1
mov edx, ebx
xor edx, 0xa001
test cl, 1
cmove edx, ebx
mov ecx, edx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xa001
test dl, 1
cmove ebx, ecx
mov edx, ebx
shr edx, 1
mov ecx, edx
xor ecx, 0xa001
test bl, 1
cmove ecx, edx
inc eax
jne 0x436a40
rol cx, 8
mov word [0x8ea930], cx
push 6
push 0x8ea92c
call fcn.00414ea0
add esp, 8
jmp 0x436b03
mov byte [0x8e96f0], 0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x437af0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
movzx esi, word [esp + 0x10]
movzx eax, word [esp + 0xc]
push eax
call fcn.00402420
add esp, 4
movzx eax, ax
push eax
push 0x8ea92f
call fcn.00402430
add esp, 8
push esi
call fcn.00402420
add esp, 4
movzx eax, ax
push eax
push 0x8ea931
call fcn.00402430
add esp, 8
mov word [0x8ea92c], 0x780
mov byte [0x8ea92e], 3
mov ecx, 0xffff
mov eax, 0xfffffff9
nop word [eax + eax]
movzx edx, byte [eax + 0x8ea933]
xor edx, ecx
mov ebx, edx
shr ebx, 1
mov ecx, ebx
xor ecx, 0xa001
test dl, 1
cmove ecx, ebx
mov ebx, ecx
shr ebx, 1
mov edx, ebx
xor edx, 0xa001
test cl, 1
cmove edx, ebx
mov ebx, edx
shr ebx, 1
mov ecx, ebx
xor ecx, 0xa001
test dl, 1
cmove ecx, ebx
mov ebx, ecx
shr ebx, 1
mov edx, ebx
xor edx, 0xa001
test cl, 1
cmove edx, ebx
mov ebx, edx
shr ebx, 1
mov ecx, ebx
xor ecx, 0xa001
test dl, 1
cmove ecx, ebx
mov ebx, ecx
shr ebx, 1
mov edx, ebx
xor edx, 0xa001
test cl, 1
cmove edx, ebx
mov ecx, edx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xa001
test dl, 1
cmove ebx, ecx
mov edx, ebx
shr edx, 1
mov ecx, edx
xor ecx, 0xa001
test bl, 1
cmove ecx, edx
inc eax
jne 0x437b50
rol cx, 8
mov word [0x8ea933], cx
push 9
push 0x8ea92c
call fcn.00414ea0
add esp, 8
pop esi
pop ebx
ret
Function at 0x438670
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
mov esi, dword [esp + 0x124]
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 0x10c], eax
lea ebp, [esp + 8]
push ebp
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push ebp
call fcn.004d0640
add esp, 8
push 0x657b9a
push ebp
call fcn.004cec48
add esp, 8
mov esi, eax
test eax, eax
je 0x4386ed
push 2
push 0
push esi
call fcn.004cefc4
add esp, 0xc
push esi
call fcn.004cf2e7
add esp, 4
mov edi, eax
push 0
push 0
push esi
call fcn.004cefc4
add esp, 0xc
cmp edi, 0x20000
setne bl
jmp 0x4386ef
mov bl, 1
push 0x2000
call fcn.004cfdf3
add esp, 4
mov dword [esp + 4], eax
push 0x2000
call fcn.004cfdf3
add esp, 4
mov edi, eax
test bl, bl
je 0x438738
test esi, esi
je 0x438720
push esi
call fcn.004ce843
add esp, 4
push 0x657b97
push ebp
call fcn.004cec48
add esp, 8
mov esi, eax
test eax, eax
je 0x4387fb
mov ebp, 0x10
mov byte [esp + 3], bl
jmp 0x438768
push esi
push 0x2000
push 1
push edi
call fcn.004cf93c
add esp, 0x10
dec ebp
je 0x4387fd
push 0x2000
push 0
push edi
call fcn.004c3c10
add esp, 0xc
push 0x8d7
push edi
call fcn.00437fe0
add esp, 8
push 0x11ae
push edi
call fcn.00435760
add esp, 8
mov word [edi + 0x1ffe], ax
mov dword [edi + 0x1fe2], 0x79726f
mov dword [edi + 0x1fde], 0x74636146
test bl, bl
jne 0x438750
push esi
push 0x2000
push 1
mov ebx, esi
mov esi, dword [esp + 0x10]
push esi
call fcn.004cedb3
add esp, 0x10
push 0x2000
push edi
push esi
mov esi, ebx
movzx ebx, byte [esp + 0xf]
call fcn.004c200d
add esp, 0xc
test eax, eax
je 0x438761
mov bl, 1
lea ebp, [esp + 8]
test bl, bl
jne 0x438713
jmp 0x438738
xor esi, esi
mov eax, dword [esp + 4]
test eax, eax
je 0x43880e
push eax
call fcn.004cefa9
add esp, 4
test edi, edi
je 0x43881b
push edi
call fcn.004cefa9
add esp, 4
test esi, esi
je 0x438828
push esi
call fcn.004ce843
add esp, 4
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004c0e60
add esp, 0x110
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43fb50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, edx
mov dword [esp], ecx
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x78]
test eax, eax
je 0x43fb8f
push dword [edi + 0x74]
call eax
add esp, 4
jmp 0x43fb8f
mov ecx, ebx
call fcn.0043e880
push ebx
push ebp
call dword [ebp + 8]
add esp, 8
mov ebx, dword [edi + 0x54]
test ebx, ebx
je 0x43fbf1
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x43fb92
mov edx, dword [eax + 0x60]
mov ebp, dword [edx + 8]
cmp ecx, ebx
je 0x43fbd0
nop word [eax + eax]
mov esi, dword [ecx + 8]
test esi, esi
je 0x43fb92
mov edx, ecx
mov ecx, esi
cmp esi, ebx
jne 0x43fbb0
jmp 0x43fbd2
xor edx, edx
add eax, 0x54
lea ecx, [edx + 8]
test edx, edx
cmove ecx, eax
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x43fb80
push ebx
call eax
add esp, 4
jmp 0x43fb80
cmp dword [esp], 0
je 0x43fc7a
mov ebx, dword [edi + 0x6c]
test ebx, ebx
je 0x43fc6c
mov dword [esp + 8], edi
jmp 0x43fc31
mov dword [esi + 0x28], 0
push esi
push edi
call dword [edi + 8]
add esp, 8
push ebx
push edi
call dword [edi + 8]
add esp, 8
mov ebx, ebp
test ebp, ebp
mov edi, dword [esp + 8]
je 0x43fc6c
mov ebp, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov eax, dword [esi + 8]
test eax, eax
je 0x43fc44
push esi
call eax
add esp, 4
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x43fc58
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
mov edi, dword [esp]
je 0x43fc10
push eax
push edi
call dword [edi + 8]
add esp, 8
jmp 0x43fc10
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x58], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x43fc8e
push edi
call eax
add esp, 4
cmp dword [edi + 0x24], 0
jle 0x43fcd6
xor esi, esi
jmp 0x43fcb8
push ebp
push ebx
call dword [ebx + 8]
add esp, 8
mov eax, dword [edi + 0x28]
mov dword [eax + esi*4], 0
inc esi
cmp esi, dword [edi + 0x24]
jge 0x43fcd6
mov eax, dword [edi + 0x28]
mov ebp, dword [eax + esi*4]
mov eax, dword [ebp]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax + 0x64]
mov eax, dword [ecx + 8]
test eax, eax
je 0x43fca0
push ebp
call eax
add esp, 4
jmp 0x43fca0
mov eax, dword [edi + 0x28]
test eax, eax
mov ecx, dword [esp]
je 0x43fce8
push eax
push ecx
call dword [ecx + 8]
add esp, 8
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x43fd07
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
test esi, esi
je 0x43fd31
mov ebp, dword [edi + 8]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
test eax, eax
je 0x43fd21
push esi
call eax
add esp, 4
test ebp, 0x400
jne 0x43fd31
push esi
push ebx
call dword [ebx + 8]
add esp, 8
mov dword [edi + 0x68], 0
mov eax, dword [edi + 0x80]
test eax, eax
mov esi, dword [esp]
je 0x43fd57
push eax
push esi
call dword [esi + 8]
add esp, 8
mov dword [edi + 0x80], 0
push edi
push esi
call dword [esi + 8]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x449920
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x449a00
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
not ebx
cmp edx, 8
jb 0x4499ee
nop word cs:[eax + eax]
mov eax, ebx
xor bl, byte [ecx]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x4fe364]
mov ebx, eax
xor al, byte [ecx + 1]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4fe364]
mov eax, ebx
xor bl, byte [ecx + 2]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x4fe364]
mov ebx, eax
xor al, byte [ecx + 3]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4fe364]
mov eax, ebx
xor bl, byte [ecx + 4]
shr eax, 8
movzx esi, bl
xor eax, dword [esi*4 + 0x4fe364]
add edx, 0xfffffff8
mov ebx, eax
xor al, byte [ecx + 5]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4fe364]
mov eax, ebx
shr eax, 8
xor bl, byte [ecx + 6]
movzx esi, bl
xor eax, dword [esi*4 + 0x4fe364]
mov ebx, eax
shr ebx, 8
xor al, byte [ecx + 7]
add ecx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4fe364]
cmp edx, 7
ja 0x449950
test edx, edx
je 0x449a04
test dl, 1
jne 0x449a08
mov esi, edx
cmp edx, 1
jne 0x449a24
jmp 0x449a5c
xor eax, eax
jmp 0x449a5e
mov eax, ebx
jmp 0x449a5c
lea esi, [edx - 1]
mov eax, ebx
shr eax, 8
xor bl, byte [ecx]
inc ecx
movzx edi, bl
xor eax, dword [edi*4 + 0x4fe364]
mov ebx, eax
cmp edx, 1
je 0x449a5c
xor edx, edx
mov eax, ebx
nop dword [eax + eax]
mov ebx, eax
shr ebx, 8
xor al, byte [ecx + edx]
movzx eax, al
xor ebx, dword [eax*4 + 0x4fe364]
mov eax, ebx
shr eax, 8
xor bl, byte [ecx + edx + 1]
movzx edi, bl
xor eax, dword [edi*4 + 0x4fe364]
add edx, 2
cmp esi, edx
jne 0x449a30
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x485940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
movzx ebp, word [esp + 0x24]
mov edx, dword [esp + 0x1c]
movsx ecx, word [esp + 0x20]
movzx eax, byte [edx + 2]
imul eax, ecx
sar eax, 8
movsx ebx, bp
cmp eax, ebx
jge 0x4859a6
movzx eax, byte [edx + 8]
movzx esi, byte [edx + eax*4 - 2]
imul esi, ecx
sar esi, 8
cmp esi, ebx
jle 0x4859ab
cmp al, 2
jb 0x4859c7
mov edi, 1
nop word cs:[eax + eax]
movzx esi, byte [edx + edi*4 + 2]
imul esi, ecx
sar esi, 8
cmp esi, ebx
jge 0x4859b8
inc edi
cmp eax, edi
jne 0x485990
jmp 0x4859c7
movzx eax, word [edx]
jmp 0x4859b0
movzx eax, word [edx + eax*4 - 4]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [edx + edi*4 - 2]
imul eax, ecx
sar eax, 8
sub esi, eax
jne 0x4859f2
push str.d___0
push str.Asserted_at_expression:__s
push str.lv_gradient_calculate
push 0x148
push str.....lvgl_srcdraw_swlv_draw_sw_gradient.c
push 3
call fcn.004ae560
add esp, 0x18
nop word [eax + eax]
jmp 0x4859f0
movzx ecx, word [edx + edi*4]
mov ebx, ecx
shr ebx, 0xb
imul ebx, ebx, 0x107
add ebx, 7
shr ebx, 5
mov dword [esp + 4], ebx
movzx edx, word [edx + edi*4 - 4]
mov edi, ecx
shr edi, 5
and edi, 0x3f
imul edi, edi, 0x40c
add edi, 0xc
and ecx, 0x1f
imul ebx, ecx, 0x107
add ebx, 7
shr ebx, 5
or edi, ebx
shr edi, 8
sub ebp, eax
movsx ecx, bp
mov eax, ecx
shl eax, 8
sub eax, ecx
mov ecx, edx
shr ecx, 5
and ecx, 0x3f
imul ebp, ecx, 0x40c
add ebp, 0xc
mov dword [esp], edx
and edx, 0x1f
imul ecx, edx, 0x107
add ecx, 7
shr ecx, 5
or ebp, ecx
cdq
idiv esi
movzx eax, al
imul ebx, eax
imul edi, eax
mov esi, dword [esp + 4]
imul esi, eax
xor eax, 0xff
imul ecx, eax
add ecx, ebx
shr ebp, 8
imul ebp, eax
add ebp, edi
mov edx, dword [esp]
shr edx, 0xb
imul edx, edx, 0x107
add edx, 7
shr edx, 5
imul eax, edx
add eax, esi
imul ecx, ecx, 0x8081
shr ecx, 0x1a
and ecx, 0x1f
imul eax, eax, 0x8081
shr eax, 0xf
and eax, 0x1f800
or eax, ecx
imul ecx, ebp, 0x8081
shr ecx, 0x14
and ecx, 0x7e0
or eax, ecx
jmp 0x4859b0
Function at 0x48fc10
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
test edx, edx
je 0x48fce9
mov esi, edx
mov ebx, 1
xor edi, edi
jmp 0x48fc64
mov ecx, dword [esp]
add ecx, ebp
mov esi, dword [esp + 4]
mov eax, ebx
mov ebp, 0x80078071
mul ebp
shr edx, 0xf
imul eax, edx, 0xfff1
sub ebx, eax
mov eax, edi
mul ebp
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
test esi, esi
je 0x48fce2
cmp esi, 0x15b0
mov ebp, 0x15b0
cmovb ebp, esi
sub esi, ebp
test ebp, ebp
je 0x48fc39
mov dword [esp + 4], esi
mov edx, ebp
and edx, 3
cmp ebp, 4
mov dword [esp], ecx
jb 0x48fcb7
mov eax, ebp
and eax, 0x1ffc
movzx esi, byte [ecx]
add esi, ebx
add edi, esi
movzx ebx, byte [ecx + 1]
add ebx, esi
add edi, ebx
movzx esi, byte [ecx + 2]
add esi, ebx
add edi, esi
movzx ebx, byte [ecx + 3]
add ecx, 4
add ebx, esi
add edi, ebx
add eax, 0xfffffffc
jne 0x48fc90
test edx, edx
je 0x48fc30
xor eax, eax
nop word cs:[eax + eax]
movzx esi, byte [ecx + eax]
add ebx, esi
add edi, ebx
inc eax
cmp edx, eax
jne 0x48fcd0
jmp 0x48fc30
shl edi, 0x10
or edi, ebx
jmp 0x48fcee
mov edi, 1
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ae560
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
movsx ecx, byte [esp + 0x24]
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, ecx
add al, 0xfe
cmp al, 3
ja 0x4ae655
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
push ebx
call fcn.004d07c0
add esp, 4
test eax, eax
je 0x4ae5c5
inc eax
nop word cs:[eax + eax]
movzx ecx, byte [ebx + eax - 1]
cmp ecx, 0x5c
je 0x4ae5ce
cmp ecx, 0x2f
je 0x4ae5ce
dec eax
cmp eax, 1
jne 0x4ae5b0
mov dword [esp], 0
jmp 0x4ae5d1
mov dword [esp], eax
call fcn.004acaa0
mov ebp, eax
mov ecx, eax
sub ecx, dword [0x91baf8]
mov edx, 0x10624dd3
mul edx
shr edx, 6
imul eax, edx, 0x3e8
mov esi, ebp
sub esi, eax
push edi
push ecx
push esi
push edx
mov eax, dword [esp + 0x14]
push dword [eax*4 + 0x6441c0]
push str.__s__t__d._03d___d__t__s:
call fcn.00401220
add esp, 0x18
mov esi, dword [esp + 8]
push 1
call fcn.004c4277
add esp, 4
mov edi, eax
call fcn.00401860
push esi
push 0
push dword [esp + 0x3c]
push edi
push dword [eax + 4]
push dword [eax]
call fcn.004c4487
add esp, 0x18
add ebx, dword [esp]
push dword [esp + 0x2c]
push ebx
push str.__t_in__s_line__d__n
call fcn.00401220
add esp, 0xc
mov dword [0x91baf8], ebp
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004c0e60
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b1760
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, 1
cmp byte [0x91bb0c], 0
jne 0x4b198c
mov byte [0x91bb0c], 1
cmp byte [0x91bb0d], 0
je 0x4b1985
call fcn.004acaa0
mov dword [esp + 4], eax
test eax, eax
jne 0x4b17d0
mov eax, dword [0x91bb18]
inc eax
mov dword [0x91bb18], eax
cmp eax, 0x65
jb 0x4b17d0
mov dword [0x91bb18], 0
push str.It_seems_lv_tick_inc___is_not_called.
push str.lv_timer_handler
push 0x5e
push str.....lvgl_srcmisclv_timer.c
push 2
call fcn.004ae560
add esp, 0x14
nop
mov byte [0x91bb1c], 0
mov byte [0x91bb1d], 0
push 0x91b908
call fcn.0047a7c0
add esp, 4
mov dword [0x91b970], eax
test eax, eax
je 0x4b18ce
mov edi, eax
jmp 0x4b180e
mov dword [0x91b970], edi
test edi, edi
je 0x4b18ce
push edi
push 0x91b908
call fcn.004ae460
add esp, 8
mov edi, eax
mov ebp, dword [0x91b970]
test byte [ebp + 0x14], 1
jne 0x4b1800
push dword [ebp + 4]
call fcn.004acab0
add esp, 4
mov esi, dword [ebp]
cmp esi, eax
ja 0x4b186c
mov dword [esp], eax
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x4b184c
lea eax, [ebx - 1]
mov dword [ebp + 0x10], eax
call fcn.004acaa0
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
mov eax, dword [esp]
je 0x4b186c
test ebx, ebx
je 0x4b186c
push ebp
call ecx
mov eax, dword [esp + 4]
add esp, 4
cmp byte [0x91bb1c], 0
jne 0x4b187b
cmp dword [ebp + 0x10], 0
je 0x4b1897
cmp esi, eax
ja 0x4b1800
cmp byte [0x91bb1d], 0
jne 0x4b18c1
cmp byte [0x91bb1c], 0
je 0x4b1800
jmp 0x4b18c1
push ebp
push 0x91b908
mov ebx, eax
call fcn.004ae3f0
add esp, 8
mov byte [0x91bb1c], 1
push ebp
call fcn.004ae950
add esp, 4
cmp esi, ebx
ja 0x4b1800
jmp 0x4b187f
cmp dword [0x91b970], 0
jne 0x4b17d0
push 0x91b908
call fcn.0047a7c0
add esp, 4
test eax, eax
je 0x4b1923
mov ebx, eax
mov edi, 0xffffffff
xor esi, esi
jmp 0x4b1904
push ebx
push 0x91b908
call fcn.004ae460
add esp, 8
mov ebx, eax
test eax, eax
je 0x4b1928
test byte [ebx + 0x14], 1
jne 0x4b18f0
push dword [ebx + 4]
call fcn.004acab0
add esp, 4
mov ecx, dword [ebx]
sub ecx, eax
cmovb ecx, esi
cmp ecx, edi
cmovb edi, ecx
jmp 0x4b18f0
mov edi, 0xffffffff
push dword [esp + 4]
call fcn.004acab0
add esp, 4
add dword [0x91bb14], eax
push dword [0x91bb10]
call fcn.004acab0
add esp, 4
cmp eax, 0x1f4
jb 0x4b1985
mov ecx, eax
imul eax, dword [0x91bb14], 0x64
xor esi, esi
xor edx, edx
div ecx
movzx eax, al
mov ecx, 0x64
sub ecx, eax
cmovb ecx, esi
mov byte [0x91bb1e], cl
mov dword [0x91bb14], 0
call fcn.004acaa0
mov dword [0x91bb10], eax
mov byte [0x91bb0c], 0
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c0290
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [0x91bc2c]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4c02a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push dword [0x91bc2c]
call edi
lea ebx, [eax + 1]
add eax, eax
add eax, 2
push eax
call fcn.004cfdf3
add esp, 4
mov esi, eax
push eax
push ebx
push 0xd
push dword [0x91bc2c]
call edi
sub esp, 0x20
movaps xmm0, xmmword [0x645240]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebp
mov ebx, eax
push eax
call fcn.004cfdf3
add esp, 4
mov edi, eax
push 0
push 0
push ebx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebp
xor eax, eax
test ebx, ebx
cmovg eax, ebx
mov ecx, dword [esp + 0x18]
lea ebx, [ecx - 1]
cmp eax, ecx
cmovl ebx, eax
push ebx
push edi
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.004d08d0
add esp, 0xc
mov byte [ebp + ebx], 0
push esi
call fcn.004cefa9
add esp, 4
push edi
call fcn.004cefa9
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c0370
Capabilities:
Enumerate gui resources

Disassembly:
push esi
sub esp, 0xc
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, esp
push eax
push 0x4c03c0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 4]
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004c0e60
mov eax, esi
add esp, 0xc
pop esi
ret

Function at 0x4c0460
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 4], eax
mov dword [esp], 0
push 8
call fcn.004cfdf3
add esp, 4
mov esi, eax
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov eax, esp
push eax
push 0
push esi
push 0x4c04f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4c04bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [esp]
jmp 0x4c04cd
push esi
call fcn.004cefa9
add esp, 4
mov esi, 0xffffffff
xor eax, eax
mov dword [edi], eax
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c0e60
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c0550
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov ebx, dword [esp + 0x48]
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 0x30], eax
push 3
push 0x657e9b
push ebx
call fcn.004d0850
add esp, 0xc
xor esi, esi
test eax, eax
jne 0x4c06c2
push 0x140
push 1
call fcn.004ce7a4
add esp, 8
mov edi, eax
lea ebp, [esp + 0x20]
push ebx
push str.._s
push ebp
call fcn.00401890
sub esp, 0x10
movaps xmm0, xmmword [0x645270]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebp
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4c06ab
mov ebx, eax
sub esp, 0x10
movaps xmm0, xmmword [0x4f8c90]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 4], eax
test eax, eax
je 0x4c069e
mov ebp, eax
sub esp, 0x10
movaps xmm0, xmmword [0x4f8c90]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 8], eax
test eax, eax
je 0x4c069e
mov dword [esp], eax
mov dword [esp + 4], 0x1c
lea eax, [esp + 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x4c069e
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov word [esp + 0x16], 8
mov byte [esp + 0x18], 0
and dword [esp + 0xc], 0xfffffcb3
lea eax, [esp + 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x4c069e
mov dword [edi + 0x10], 1
xorps xmm0, xmm0
movups xmmword [edi + 0x14], xmm0
mov dword [edi + 0x24], ebp
movups xmmword [edi + 0x28], xmm0
mov eax, dword [esp]
mov dword [edi + 0x38], eax
push 0
push 0
push edi
push 0x4c06e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
test eax, eax
je 0x4c0697
mov esi, edi
jmp 0x4c06c2
mov ebx, dword [edi]
cmp ebx, 0xffffffff
je 0x4c06ab
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
mov eax, dword [edi + 4]
test eax, eax
je 0x4c06b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004cefa9
add esp, 4
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004c0e60
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c08f0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0xc
mov esi, dword [esp + 0x18]
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4c0944
lea edi, [esi + 0x28]
lea ecx, [esp + 4]
push edi
push ecx
push dword [esp + 0x28]
push dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c0944
mov eax, esp
push 1
push eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004c0e60
add esp, 0xc
pop esi
pop edi
ret