joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7e1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4c7eda
cmp dword [esi + 0x20], 0
je 0x4c7eda
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c7eda
cmp dword [ebp + 8], 0
je 0x4c7eda
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.004cf0de
push 0x670b18
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4c7eab
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c7eda
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004db9b8
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4c7ecb
test edi, edi
je 0x4c7ecb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4c7ed6
mov ecx, esi
call fcn.004c7bb7
mov eax, ebx
jmp 0x4c7edc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4cce02
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x64528c
call fcn.0060eafe
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4cce28
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4cce88
call fcn.004c3089
push eax
lea ecx, [ebp - 0x10]
call fcn.004a2ef0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x658b20]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0061659d
push eax
call fcn.004a3e20
add esp, 0x14
test esi, esi
je 0x4cce7b
push esi
call fcn.006166ca
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004a35f0
mov eax, ebx
call fcn.0060eac7
ret 8

Function at 0x4cd745
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004cf0de
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4cd77c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004cd79b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4d4546
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4d4599
push esi
push dword [ebp + 8]
call fcn.004d472f
mov edi, eax
test edi, edi
je 0x4d4594
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4d4594
mov eax, dword [ebp - 8]
jmp 0x4d45ab
mov eax, dword [ebp + 0x10]
jmp 0x4d45ab
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x4d5b3e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x4d5b88
call fcn.004cf0de
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4d5b85
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4d5bd8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x4d5bb5
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x658b20]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x4d5bb5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4d5bd6
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x658b20]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4de1c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4de21c
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4de1f5
call fcn.004c3b8d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4de20a
call fcn.004c3b8d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4de21c
call fcn.004c3b8d
call fcn.004cf0de
cmp dword [eax + 0x3c], 0
je 0x4de231
push edi
mov ecx, ebx
call fcn.004dd840
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004de403
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4de25a
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4de266
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4df99b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.004cc9df
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.004dfbb4
cmp esi, 3
je 0x4df9d9
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x4dfa22
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4df9fc
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004bf6c0
jmp 0x4dfa0d
push 0xff
mov ecx, esi
call fcn.004a3570
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004a5110
jmp 0x4dfa46
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4dfa46
push dword [esi]
push dword [ebp - 4]
call fcn.004d98f6
pop edi
pop esi
leave
ret 0xc

Function at 0x4dfb0b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004dfbb4
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4dfb53
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004bf6c0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004a5110
jmp 0x4dfb5e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004d98f6
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4f0e21
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00539331
call fcn.004cf132
cmp dword [eax + 0x14], 0
jne 0x4f0e3c
mov ecx, esi
pop esi
jmp fcn.004f0108
pop esi
ret

Function at 0x4ffff2
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004c97d6
call fcn.004cf132
cmp dword [eax + 0x14], 0
jne 0x50000d
mov ecx, esi
pop esi
jmp fcn.004ff80f
pop esi
ret

Function at 0x50de97
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x50deb1
call fcn.004cf0de
mov esi, dword [eax + 0xc]
push 0x67b218
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x50df07
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x50df07
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x50dee6
xor esi, esi
jmp 0x50defc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0050df10
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x50df09
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5c62e6
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00620cc0
pop ecx
test eax, eax
jne 0x5c6328
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004d4a9b
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5c62ee
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x628c07
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00628884
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40596d
pop dword [ebp - 0x10]
mov eax, 0x40596d
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x7db1aea7
sub dword [ebp - 0x20], 0x2f5f695c
mov dword [ebp - 0x1c], 0x92399246
add dword [ebp - 0x1c], 0x9ff9b9ff
mov dword [ebp - 0x18], 0xf0591e87
sub dword [ebp - 0x18], 0xa40cda59
mov dword [ebp - 0x14], 0xfb230ae7
add dword [ebp - 0x14], 0x4dcf519
lea eax, [ebp - 0x20]
push eax
mov eax, 0x3080d325
sub eax, 0x304062c5
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x6f9d60f9
sub dword [ebp - 0x20], 0xfb2af7a3
mov dword [ebp - 0x1c], 0xc656201a
sub dword [ebp - 0x1c], 0x84e9bea5
mov dword [ebp - 0x18], 0x9e8902f6
sub dword [ebp - 0x18], 0x3b19968a
mov dword [ebp - 0x14], 0x4c130801
sub dword [ebp - 0x14], 0x4c130801
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xafc6e808
sub eax, 0xaf867708
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x35ddf
push 0
call eax
mov ecx, 0x7a35596f
sub ecx, 0x7a3514d5
xor ebx, ebx
add ebx, eax
mov edx, 0x57ed0767
sub edx, 0x57ac0767
add edx, dword [ebp - 0x10]
mov edi, 0x62fec211
sub dword [ebp - 4], ecx
mov esi, dword [edx]
mov dword [ebp - 8], 0x3db52d78
sub esi, edi
add dword [ebp - 8], 0x15ee6474
mov dword [ebx], esi
xor dword [ebp - 0xc], 0x6068c25c
add ebx, 0xcce0e712
sub ebx, 0xcce0e70e
add edx, 4
loop 0x405a86
add eax, 0xc388a89
sub eax, 0xc37854e
mov ebx, eax
add eax, 0xf02e08cf
sub eax, 0xf02e08ca
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x106225d8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10622728
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x106225fe
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106225ea
add dl, dl
jne 0x10622609
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1062265c
xor eax, eax
add dl, dl
jne 0x10622616
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106226fd
add dl, dl
jne 0x10622625
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10622630
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1062263b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10622646
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10622652
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x106225f5
mov eax, 1
add dl, dl
jne 0x1062266a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10622675
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10622661
sub eax, ebx
mov ebx, 1
jne 0x106226a8
mov ecx, 1
add dl, dl
jne 0x1062268e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10622699
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10622685
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106225f5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x106226bf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106226ca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106226b6
cmp eax, 0x7d00
jae 0x106226ed
cmp eax, 0x500
jb 0x106226e8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106225f5
cmp eax, 0x7f
ja 0x106226f0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106225f5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1062271e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x106225f5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100aaa80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 0xffffffffffffffff
push esi
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x100aaaf3
push ebx
push 2
push edi
call sub.avutil_56.dll_av_mallocz_array
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100aaac8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
pop ebx
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
pop ebp
ret
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
push ebx
mov esi, eax
call sub.avutil_56.dll_av_free
add esp, 8
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x9ef058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9ef1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9ef07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ef06a
add dl, dl
jne 0x9ef089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ef0dc
xor eax, eax
add dl, dl
jne 0x9ef096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ef17d
add dl, dl
jne 0x9ef0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ef0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ef0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ef0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ef0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ef075
mov eax, 1
add dl, dl
jne 0x9ef0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ef0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ef0e1
sub eax, ebx
mov ebx, 1
jne 0x9ef128
mov ecx, 1
add dl, dl
jne 0x9ef10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ef119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ef105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ef075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ef13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ef14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ef136
cmp eax, 0x7d00
jae 0x9ef16d
cmp eax, 0x500
jb 0x9ef168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ef075
cmp eax, 0x7f
ja 0x9ef170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ef075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ef19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9ef075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401298
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b5c8]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xae3714]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132c
push 0x4182f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xae3714]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xae3710]
cmove eax, edx
xor edx, edx
mov dword [0xae3710], eax
cmp ecx, 0x3eb
mov eax, dword [0xae3668]
cmove eax, edx
mov dword [0xae3668], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xae370c], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x4012fa
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d2fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405535
mov dword [ebp - 0x14], eax
cmp dword [0x43eec4], esi
jne 0x40d3f1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d37e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4d1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4d1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4d1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43eec4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43eec8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43eecc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43eed4], eax
test eax, eax
je 0x40d3ee
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43eed0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d416
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d409
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d42b
push 4
pop eax
jmp 0x40d4d3
cmp dword [ebp - 0x14], esi
je 0x40d42b
push dword [0x43eec4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d410
mov eax, dword [0x43eed0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d489
cmp dword [0x43eed4], edi
je 0x40d489
push eax
call ebx
push dword [0x43eed4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d489
test eax, eax
je 0x40d489
call ecx
test eax, eax
je 0x40d47e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d47e
test byte [ebp - 8], 1
jne 0x40d489
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4b9
mov eax, dword [0x43eec8]
cmp eax, edi
je 0x40d4b6
push eax
call ebx
test eax, eax
je 0x40d4b6
call eax
mov esi, eax
test esi, esi
je 0x40d4b6
mov eax, dword [0x43eecc]
cmp eax, edi
je 0x40d4b6
push eax
call ebx
test eax, eax
je 0x40d4b6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43eec4]
call ebx
test eax, eax
je 0x40d4d1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404840
mov esp, ebp
pop ebp
ret