joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40b720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40b72f
pop dword [ebp - 0x3c]
mov eax, 0x1ccf18db
add eax, 0xe3719e54
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3a61a
push 0
mov eax, 0x90d640fa
sub eax, 0x90955fda
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x2aa25dcb
add ecx, 0xd55dee65
mov ebx, eax
mov esi, 0x417800
add esi, dword [ebp - 0x3c]
mov edx, 0x47748a0d
sub edx, 0x7b9b23ef
mov edi, dword [esi]
xor dword [ebp - 0x10], 0x2693db79
sub edi, edx
xor dword [ebp - 0x18], ebx
mov dword [ebx], edi
add dword [ebp - 8], 0x5a9e6923
add ebx, 0x838977aa
add ebx, 0x7c76885a
add esi, 4
loop 0x40b788
add eax, 0xab32be44
add eax, 0x54ce654f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x36d25145
add ecx, 0xc96daebb
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40c9b9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40c9c8
pop dword [ebp - 0x48]
mov eax, 0xc71947b3
add eax, 0x39278215
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x39d7a
push 0
mov eax, 0xe1e5d838
sub eax, 0xe1a4f718
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4e33ae26
sub ecx, 0x4e33640a
mov ebx, eax
mov edi, 0x417800
add edi, dword [ebp - 0x48]
mov edx, 0x366f1897
add edx, 0xc1797dc
xor dword [ebp - 0x28], 0x8b36f1f6
mov esi, dword [edi]
add dword [ebp - 0x40], 0x36acd877
xor esi, edx
add dword [ebp - 0x10], 0x84ee96f9
mov dword [ebx], esi
add dword [ebp - 0x34], eax
add ebx, 4
add edi, 0xa085fccf
add edi, 0x5f7a0335
loop 0x40ca21
add eax, 0x4be4c515
sub eax, 0x4be3a9d2
xor ebx, ebx
add ebx, eax
add eax, 0x8af0ad17
add eax, 0x750f52ee
mov ecx, 0xabc9395c
sub ecx, 0xab89395c
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4038ad
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.00409350
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
xor edx, edx
cmp word [ecx + eax + 0x5c], 2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10a4]
push dword [ebp + 8]
sete dl
push eax
mov esi, edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
pop esi
je 0x403928
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x10a4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0x14
leave
ret
Function at 0x40420c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x40f6b8], 2
push esi
push edi
jne 0x4042fd
push str.advapi32.dll
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
je 0x404245
push str.GetUserNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
mov dword [ebp - 4], 0x208
je 0x4042fd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
je 0x4042fd
cmp word [ebp - 0x21c], di
lea eax, [ebp - 0x21c]
je 0x4042f2
push ebx
jmp 0x40427e
mov eax, dword [ebp - 8]
movzx ebx, word [eax]
inc eax
inc eax
cmp ebx, 0x20
mov dword [ebp - 8], eax
jne 0x404291
push 0x5f
pop ebx
cmp ebx, 0x20
jl 0x4042b5
cmp ebx, 0x7e
jg 0x4042b5
push ebx
push str._:___
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
test eax, eax
pop ecx
jne 0x4042b5
and byte [ebp - 0x13], al
push 1
mov byte [ebp - 0x14], bl
pop eax
jmp 0x4042c8
push ebx
lea eax, [ebp - 0x14]
push str.__x_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea esi, [eax + edi]
lea ecx, [esi + 1]
cmp ecx, dword [ebp + 0xc]
jae 0x4042e8
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
add edi, eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edi, esi
mov eax, dword [ebp - 8]
cmp word [eax], 0
jne 0x40427b
pop ebx
mov eax, dword [ebp + 8]
and byte [edi + eax], 0
mov eax, edi
jmp 0x40431e
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x404317
and byte [esi], al
push esi
call sub.MSVCRT.dll_strlen
pop ecx
pop edi
pop esi
leave
ret

Function at 0x405200
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.004032c7
mov edi, eax
pop ecx
test edi, edi
je 0x4052c3
push esi
push ebx
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [ebp - 0x400]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [ebp + esi - 0x401]
add esp, 0x10
cmp al, 0x2f
je 0x405252
cmp al, 0x5c
je 0x405252
mov byte [ebp + esi - 0x400], 0x5c
inc esi
push edi
call fcn.004033bd
test eax, eax
pop ecx
je 0x4052bb
cmp byte [eax + 0x10], 0x2e
lea ecx, [eax + 0x10]
jne 0x405278
mov dl, byte [eax + 0x11]
test dl, dl
je 0x405252
cmp dl, 0x2e
jne 0x405278
cmp byte [eax + 0x12], 0
je 0x405252
lea eax, [ebp + esi - 0x400]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x400]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__chmod]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 0x14
test eax, eax
je 0x405252
lea eax, [ebp - 0x400]
push eax
call fcn.00405200
pop ecx
jmp 0x405252
push edi
call fcn.0040347c
pop ecx
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll__rmdir]
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x407278
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 0x2000000
push edi
mov eax, dword [esi]
mov ebx, 0xff0000
mov edi, 0xff00
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
cmp eax, ebp
mov eax, dword [esi + 0x18]
jne 0x4072c5
mov ecx, dword [eax + 8]
mov edx, ecx
mov ebp, ecx
and edx, ebx
shr ebp, 0x10
or edx, ebp
mov ebp, ecx
shl ebp, 0x10
and ecx, edi
or ebp, ecx
shr edx, 8
shl ebp, 8
or edx, ebp
mov ebp, 0x2000000
jmp 0x4072c8
mov edx, dword [eax + 8]
test dl, 1
je 0x407388
mov ecx, dword [esi]
cmp dword [ecx + 4], ebp
mov ecx, dword [eax]
jne 0x407301
mov edx, ecx
mov ebp, ecx
and edx, ebx
shr ebp, 0x10
or edx, ebp
mov ebp, ecx
shl ebp, 0x10
and ecx, edi
or ebp, ecx
shr edx, 8
shl ebp, 8
or edx, ebp
mov ebp, 0x2000000
mov dword [esp + 0x14], edx
jmp 0x407305
mov dword [esp + 0x14], ecx
mov ecx, dword [esi]
cmp dword [ecx + 4], ebp
jne 0x407332
mov ecx, dword [eax + 4]
mov edx, ecx
mov ebp, ecx
and edx, ebx
shr ebp, 0x10
or edx, ebp
mov ebp, ecx
shl ebp, 0x10
and ecx, edi
or ebp, ecx
shr edx, 8
shl ebp, 8
or edx, ebp
mov ebp, 0x2000000
jmp 0x407335
mov edx, dword [eax + 4]
add eax, 0xc
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x24]
call fcn.00409510
add esp, 0x10
test eax, eax
jne 0x407381
mov eax, dword [esi]
cmp dword [eax + 4], ebp
mov eax, dword [esi + 0x18]
jne 0x407379
mov eax, dword [eax]
mov ecx, eax
mov edx, eax
and ecx, ebx
shr edx, 0x10
or ecx, edx
mov edx, eax
shl edx, 0x10
and eax, edi
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
jmp 0x40737b
mov ecx, dword [eax]
cmp dword [esp + 0x14], ecx
je 0x4073c6
xor eax, eax
jmp 0x40743e
cmp dword [esp + 0x14], ebp
jne 0x4073b3
mov ecx, dword [eax]
mov edx, ecx
mov ebp, ecx
and edx, ebx
shr ebp, 0x10
or edx, ebp
mov ebp, ecx
shl ebp, 0x10
and ecx, edi
or ebp, ecx
shr edx, 8
shl ebp, 8
or edx, ebp
mov ebp, 0x2000000
jmp 0x4073b5
mov edx, dword [eax]
add eax, 0xc
push edx
push eax
push dword [esp + 0x20]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [esi]
mov esi, dword [esi + 0x18]
mov eax, dword [eax + 4]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x4073f7
mov eax, dword [esi + 8]
mov ecx, eax
mov edx, eax
and ecx, ebx
shr edx, 0x10
or ecx, edx
mov edx, eax
shl edx, 0x10
and eax, edi
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
jmp 0x4073fa
mov ecx, dword [esi + 8]
test cl, 2
je 0x40743a
cmp dword [esp + 0x14], ebp
mov edx, dword [esp + 0x18]
jne 0x407429
mov ecx, dword [esi]
mov eax, ecx
mov esi, ecx
and eax, ebx
shr esi, 0x10
or eax, esi
mov esi, ecx
shl esi, 0x10
and ecx, edi
or esi, ecx
shr eax, 8
shl esi, 8
or eax, esi
jmp 0x40742b
mov eax, dword [esi]
mov ecx, eax
dec eax
test ecx, ecx
je 0x40743a
inc eax
xor byte [edx], 0xea
inc edx
dec eax
jne 0x407433
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407634
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
pop ecx
call dword [sym.imp.MSVCRT.dll_rand]
mov edi, eax
mov eax, dword [ebp + 8]
and edi, 0x7f
add edi, 0x20
and edi, 0xfffffffc
cmp dword [eax + 4], 0x2000000
jne 0x407695
mov eax, dword [eax + 8]
mov ebx, eax
mov ecx, eax
and ebx, 0xff0000
shr ecx, 0x10
or ebx, ecx
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
or ecx, eax
shr ebx, 8
shl ecx, 8
or ebx, ecx
jmp 0x407698
mov ebx, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
add ebx, edi
lea eax, [ebx + 0xc]
push eax
mov dword [ecx], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x407723
push 0x10
mov dword [esi + 4], 2
pop eax
mov word [esi + 0xc], di
cmp edi, eax
mov dword [esi + 8], ebx
mov dword [ebp + 0xc], eax
jbe 0x4076dc
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], edi
mov byte [ecx + esi], al
jb 0x4076c8
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 8], eax
jbe 0x4076f8
add edi, esi
mov edx, dword [eax + ecx]
xor edx, ebx
mov dword [edi + eax], edx
add eax, 4
cmp eax, dword [ecx + 8]
jb 0x4076e8
push 4
push 0x40d384
push esi
call sub.MSVCRT.dll_memcpy
push 0xc
lea eax, [esi + ebx]
push esi
push eax
call sub.MSVCRT.dll_memcpy
push 4
push 0x40d37c
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0x24
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407728
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x18
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x4077ed
mov eax, dword [esp + 0xc]
and dword [esi + 0xc], 0
test eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], 1
je 0x40775e
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x40776e
push esi
call dword [sym.imp.MSVCRT.dll_free]
jmp 0x4077ec
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x40778d
push 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
je 0x4077d2
push 0x40d390
push 0x40d38c
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4077b7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4077b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi], eax
push esi
call fcn.004077f2
test eax, eax
pop ecx
je 0x4077d2
push dword [esi]
call fcn.00406fad
test eax, eax
pop ecx
je 0x4077d2
mov eax, esi
jmp 0x4077ef
cmp dword [esi + 0xc], 0
mov edi, dword [sym.imp.MSVCRT.dll_free]
je 0x4077e3
push dword [esi]
call edi
pop ecx
push dword [esi + 4]
call edi
push esi
call edi
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
ret
Function at 0x4077f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx]
test esi, esi
je 0x4078ab
push 4
push 0x40d37c
push esi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4078ab
mov eax, dword [esi + 4]
mov edx, 0x2000000
cmp eax, edx
jne 0x407851
mov ecx, dword [esi + 8]
mov eax, ecx
mov edi, ecx
and eax, 0xff0000
shr edi, 0x10
or eax, edi
mov edi, ecx
shl edi, 0x10
and ecx, 0xff00
or edi, ecx
shr eax, 8
shl edi, 8
or eax, edi
jmp 0x407854
mov eax, dword [esi + 8]
cmp dword [esi + 4], edx
jne 0x40786e
mov cx, word [esi + 0xc]
xor edx, edx
movzx edi, cx
mov dh, cl
movzx ecx, dx
shr edi, 8
or edi, ecx
jmp 0x407872
movzx edi, word [esi + 0xc]
sub eax, edi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [ebx], eax
xor ecx, ecx
cmp eax, ecx
jne 0x40788b
xor eax, eax
jmp 0x4078ae
cmp dword [ebp + 8], ecx
mov dword [ebx + 0xc], 1
jbe 0x4078ab
lea edx, [edi + esi]
mov edi, dword [edx + ecx]
xor edi, dword [esi + 8]
mov dword [ecx + eax], edi
add ecx, 4
cmp ecx, dword [ebp + 8]
jb 0x40789a
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407ca3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00407e51
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407cdf
xor eax, eax
jmp 0x407e4d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00407e8d
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407d0c
xor eax, eax
jmp 0x407e4d
lea ecx, [ebp - 0x18]
push ecx
push 0x40
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x407d34
xor eax, eax
jmp 0x407e4d
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x407e2e
push str.KERNEL32.dll
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x407e20
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0
je 0x407e1e
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
and eax, 0x80000000
test eax, eax
jne 0x407e07
mov dword [ebp - 0x30], str.DisableThreadLibraryCalls
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov cl, byte [eax + 2]
mov byte [ebp - 0x2c], cl
movsx edx, byte [ebp - 0x2c]
cmp edx, 0x44
je 0x407dd0
movsx eax, byte [ebp - 0x2c]
cmp eax, 0x46
je 0x407dd0
movsx ecx, byte [ebp - 0x2c]
cmp ecx, 0x47
je 0x407dd0
movsx edx, byte [ebp - 0x2c]
cmp edx, 0x4c
jne 0x407e07
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x407e07
mov ecx, dword [ebp - 0x28]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x407dfc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xc
mov dword [ebp - 0x30], ecx
jmp 0x407dd0
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x24], eax
jmp 0x407d77
jmp 0x407e2e
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
mov dword [ebp - 0x1c], ecx
jmp 0x407d34
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x407e8d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x407ed3
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x407f04
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
cmp eax, dword [ebp + 0xc]
ja 0x407f02
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
add edx, dword [eax + 8]
cmp dword [ebp + 0xc], edx
jae 0x407f02
mov eax, dword [ebp - 8]
jmp 0x407f06
jmp 0x407ec1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x402793
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x4027a2
pop dword [ebp - 4]
mov eax, 0xa43a1d40
sub eax, 0xa3f9f59e
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x38292
push 0
mov eax, 0xd23a4fc0
sub eax, 0xd1f96ee8
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x4159
mov edi, eax
mov edx, 0x413bc4
add edx, dword [ebp - 4]
mov esi, 0x38d12c35
add esi, 0xbd0adc18
mov ebx, dword [edx]
xor ebx, esi
mov dword [edi], ebx
add edi, 4
add edx, 0x582c6a7a
sub edx, 0x582c6a76
loop 0x4027f5
add eax, 0x7ee950be
add eax, 0x8117a779
xor ebx, ebx
add ebx, eax
add eax, 0x26a9ba26
sub eax, 0x26a9ba21
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4