joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51b690
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc6000]
push edi
jmp 0x51b6aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51b6b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b6a0
mov eax, 1
add ebx, ebx
jne 0x51b6c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51b6d4
jne 0x51b6f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b6f3
dec eax
add ebx, ebx
jne 0x51b6e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51b6b8
add ebx, ebx
jne 0x51b6ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51b745
xor ecx, ecx
sub eax, 3
jb 0x51b70b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51b77a
sar eax, 1
mov ebp, eax
jmp 0x51b716
add ebx, ebx
jne 0x51b716
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b6e4
inc ecx
add ebx, ebx
jne 0x51b724
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51b6e4
add ebx, ebx
jne 0x51b731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51b726
jne 0x51b742
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51b726
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51b764
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51b756
jmp 0x51b6a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51b764
add edi, ecx
jmp 0x51b6a6
pop esi
mov edi, esi
mov ecx, 0x3eef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51b782
cmp byte [edi], 0x11
jne 0x51b782
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51b787
lea edi, [esi + 0x114000]
mov eax, dword [edi]
or eax, eax
je 0x51b7ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15dd44]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15dec0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51b7b4
mov ecx, edi
jns 0x51b7e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15dec4]
or eax, eax
je 0x51b7f9
mov dword [ebx], eax
add ebx, 4
jmp 0x51b7d1
call dword [esi + 0x15ded4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51b830
cmp al, 0xef
ja 0x51b823
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51b805
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51b812
mov ebp, dword [esi + 0x15dec8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51b864
sub esp, 0xffffff80
jmp 0x426bf7
Function at 0x402446
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jne 0x40245f
push 1
pop eax
jmp 0x4024d4
mov eax, dword [0x409498]
push 0
mov dword [ebp - 0x100], eax
push 0
lea eax, [ebp - 0x104]
push 0
push eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x104], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4024cd
test eax, eax
je 0x40245f
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40245f
mov eax, ebx
push 0
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4024cd
cmp eax, 0xffffffff
je 0x4024cd
add esi, eax
cmp esi, ebx
jb 0x40245f
xor eax, eax
cmp esi, ebx
sete al
pop esi
pop ebx
leave
ret

Function at 0x402c2e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402ca3
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
mov dword [ebp + 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x402c9b
lea eax, [ebp - 0xc]
push 0xa
push eax
call fcn.00401bc2
pop ecx
lea eax, [ebp + 8]
pop ecx
push ebx
push eax
lea eax, [ebp - 0xc]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
jne 0x402c79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402ca7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x408144
push str.WinExec
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.GetWindowsDirectoryA
push ebx
mov dword [ebp - 0x1c], eax
call esi
push eax
call edi
push str.GetModuleFileNameA
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push str.CopyFileA
push ebx
mov dword [ebp - 0x24], eax
call esi
push eax
call edi
mov dword [ebp - 0x20], eax
mov esi, 0x104
lea eax, [ebp - 0x2b8]
push esi
push eax
push 0
call dword [ebp - 0x24]
lea eax, [ebp - 0x164]
push esi
push eax
call dword [ebp - 4]
and byte [ebp - 0xa], 0
push 0x1a
mov byte [ebp - 0x18], 0x25
mov byte [ebp - 0x17], 0x63
mov byte [ebp - 0x16], 0x25
mov byte [ebp - 0x15], 0x63
mov byte [ebp - 0x14], 0x25
mov byte [ebp - 0x13], 0x63
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x73
mov byte [ebp - 0xf], 0x74
mov byte [ebp - 0xe], 0x2e
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x78
mov byte [ebp - 0xb], 0x65
call fcn.00403c60
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.00403c60
pop ecx
add eax, 0x61
push eax
push 0x1a
jmp loc.00410000
Function at 0x401010
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push edi
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 8]
pop edi
cmp eax, 5
jne 0x401055
mov eax, dword [esp + 8]
test eax, eax
jne 0x401055
mov eax, 1
add esp, 0x11c
ret
xor eax, eax
add esp, 0x11c
ret

Function at 0x401060
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x210
mov ecx, 0x82
xor eax, eax
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x218]
lea ecx, [esp + 8]
push eax
push 0x40803c
push ecx
call fcn.004017c0
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
push 0x20006
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop edi
jne 0x4010d9
mov edx, dword [esp]
lea ecx, [esp + 0x218]
push 4
push ecx
push 4
push eax
push 0x408030
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x210
ret

Function at 0x4010e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x210
mov ecx, 0x82
xor eax, eax
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x218]
lea ecx, [esp + 8]
push eax
push 0x4080a0
push ecx
call fcn.004017c0
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 8]
push edx
push 0x20006
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop edi
jne 0x401159
mov edx, dword [esp]
lea ecx, [esp + 0x218]
push 4
push ecx
push 4
push eax
push 0x408088
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x210
ret
Function at 0x401160
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x420
mov ecx, 0x82
xor eax, eax
push edi
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x428]
lea ecx, [esp + 0x218]
push eax
push 0x40803c
push ecx
call fcn.004017c0
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x218]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401244
mov ecx, 0x82
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
stosw word es:[edi], ax
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x408100
push eax
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4011fb
mov word [esp + 0xc], 0
push esi
mov esi, dword [esp + 0x430]
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.0040184c
add esp, 8
test eax, eax
je 0x401238
push esi
call fcn.0040182f
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [esp + 8]
push edx
push esi
push 2
push 0
push 0x408100
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x420
ret

Function at 0x401250
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x40812c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401296
mov edx, dword [esp]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push eax
push 0x408114
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x401300
Capabilities:
Set registry value

Disassembly:
push ecx
call fcn.004012a0
test eax, eax
je 0x401312
mov dword [esp + 8], 1
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x4081e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401357
mov edx, dword [esp]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push eax
push 0x4081b8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x401360
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x4081e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4013a6
mov edx, dword [esp]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push eax
push 0x408244
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x4013b0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x4081e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4013f6
mov edx, dword [esp]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push eax
push 0x408264
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x401400
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x4081e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401487
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push 0x408284
push edx
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40146b
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push 0x40827c
push ecx
call esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push 0x40827c
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret

Function at 0x40322d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408598
cmp edx, dword [eax]
je 0x40324f
add eax, 8
inc ecx
cmp eax, 0x408628
jl 0x403240
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408598]
jne 0x40337d
mov eax, dword [0x40afa4]
cmp eax, 1
je 0x403357
test eax, eax
jne 0x403280
cmp dword [0x4084ec], 1
je 0x403357
cmp edx, 0xfc
je 0x40337d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4032b7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004042b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004036f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4032fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.004036f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4073e8
push edi
call fcn.00405a80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004042b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004042c0
lea eax, [ebp - 0xa0]
push 0x4073c8
push eax
call fcn.004042c0
push dword [esi + 0x40859c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004042c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004059f4
add esp, 0x2c
pop edi
jmp 0x40337d
lea eax, [ebp + 8]
lea esi, [esi + 0x40859c]
push 0
push eax
push dword [esi]
call fcn.004036f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401207
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], edx
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [0x41a2f8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41a2fc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], eax
call fcn.00401200
mov ebx, dword [ebp - 4]
add ebx, 0x23f
cmp dword [0xae2204], 0x14
jne 0x401261
push edx
lea eax, [ebp - 0x830]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41a300]
mov edx, dword [0x41a304]
mov esi, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
mov dword [ebp - 4], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xae2204], 0xfa9
mov dword [ebp - 0x10], eax
mov eax, dword [0xae2200]
cmove eax, dword [ebp - 4]
and dword [ebp - 4], 0
cmp dword [0xae2204], 0x3eb
mov dword [0xae2200], eax
mov eax, dword [0xae2158]
cmove eax, dword [ebp - 4]
mov dword [0xae2158], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], edx
and dword [ebp - 0xc], 0
mov dword [0xae21fc], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub esi, eax
mov dword [ebp - 0x14], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
lea eax, [ebx + esi]
mov edx, esi
lea ebx, [ebx + 0x61c88647]
shr edx, cl
add edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
xor edx, eax
mov eax, dword [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0x24]
sub edi, eax
mov dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
jne 0x40127d
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc29
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419f20]
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.00409680
mov dword [ebp - 0x14], eax
cmp dword [0x43d9f8], esi
jne 0x40cd1c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cdfc
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40cdfc
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cdfc
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43d9f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43d9fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43da00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43da08], eax
test eax, eax
je 0x40cd19
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43da04], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cd41
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cd34
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cd56
push 4
pop eax
jmp 0x40cdfe
cmp dword [ebp - 0x14], esi
je 0x40cd56
push dword [0x43d9f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cd3b
mov eax, dword [0x43da04]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cdb4
cmp dword [0x43da08], edi
je 0x40cdb4
push eax
call ebx
push dword [0x43da08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cdb4
test eax, eax
je 0x40cdb4
call ecx
test eax, eax
je 0x40cda9
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 0x40cda9
test byte [ebp - 8], 1
jne 0x40cdb4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cde4
mov eax, dword [0x43d9fc]
cmp eax, edi
je 0x40cde1
push eax
call ebx
test eax, eax
je 0x40cde1
call eax
mov esi, eax
test esi, esi
je 0x40cde1
mov eax, dword [0x43da00]
cmp eax, edi
je 0x40cde1
push eax
call ebx
test eax, eax
je 0x40cde1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43d9f8]
call ebx
test eax, eax
je 0x40cdfc
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40cdfe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404007
mov esp, ebp
pop ebp
ret
Function at 0x104c5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.104c51a8
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 0x104c507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104c506a
add dl, dl
jne 0x104c5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104c50dc
xor eax, eax
add dl, dl
jne 0x104c5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104c517d
add dl, dl
jne 0x104c50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104c50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x104c5075
mov eax, 1
add dl, dl
jne 0x104c50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104c50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104c50e1
sub eax, ebx
mov ebx, 1
jne 0x104c5128
mov ecx, 1
add dl, dl
jne 0x104c510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104c5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104c5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104c5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104c513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104c514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104c5136
cmp eax, 0x7d00
jae 0x104c516d
cmp eax, 0x500
jb 0x104c5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104c5075
cmp eax, 0x7f
ja 0x104c5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x104c5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104c519e
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 0x104c5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10