joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cd00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e338
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10015018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x1000ce92
cmp byte [ebx + 0x49], 0
je 0x1000ce92
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x1000ce86
lea esi, [ebp - 0x2c]
call fcn.1000ca90
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x1000cd73
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1000cdab
dec eax
je 0x1000cdaf
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x1000ce8d
call fcn.1000be70
xor al, al
jmp 0x1000ce94
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x1000cdbf
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1000cded
cmp edi, 0x10
jae 0x1000cdce
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1000ce7e
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x1000ce8a
test esi, esi
jne 0x1000cd67
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000ceaf
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000ceaf
cmp edi, esi
jae 0x1000ce67
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.1000d190
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x1000cd67
mov ecx, eax
cmp edi, 0x10
jae 0x1000ce43
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x1000ce5e
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x1000cd61
test esi, esi
jne 0x1000ce39
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x1000ce76
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x1000cd61
lea esi, [ebp - 0x2c]
call fcn.1000be70
xor al, al
jmp 0x1000ce94
lea esi, [ebp - 0x2c]
call fcn.1000be70
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000d66d
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x1000d66d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10015018]
jne 0x1000d677
repz ret
jmp fcn.1000db35
Function at 0x40128d
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, esp
sub esp, 0x424
lea eax, str.open
push dword [ebp + 0x18]
push 0
push 0
push dword [ebp + 0x14]
push eax
push 0
call sub.SHELL32.dll_ShellExecuteA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x401333
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.004010b2
add esp, 8
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x408]
cmp eax, 0
je 0x401333
mov eax, dword [ebp - 0x408]
inc dword [ebp - 0x408]
lea ecx, [ebp - 0x404]
mov edx, ecx
add edx, eax
mov byte [edx], 0x20
mov ebx, ecx
add ebx, dword [ebp - 0x408]
mov esi, 0x3fc
sub esi, dword [ebp - 0x408]
push esi
push dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x418], ecx
call fcn.00403ab0
add esp, 0xc
mov byte [ebp - 8], 0
push dword [ebp + 0x18]
push dword [ebp - 0x418]
call sub.KERNEL32.dll_WinExec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401d88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 8]
push eax
push 1
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
je 0x401db0
mov eax, 0
jmp 0x401ded
lea eax, [ebp - 4]
lea ecx, [ebp + 0x24]
push ecx
push dword [ebp + 0x20]
push eax
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp eax, 0
je 0x401dd4
mov eax, 0
jmp 0x401ded
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
cmp eax, 0
je 0x401de8
mov eax, 0
jmp 0x401ded
mov eax, 1
mov esp, ebp
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40cf59
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41c9a8
cmp edx, dword [eax]
je 0x40cf7b
add eax, 8
inc ecx
cmp eax, 0x41ca38
jl 0x40cf6c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41c9a8]
jne 0x40d0a9
mov eax, dword [0x41d9e0]
cmp eax, 1
je 0x40d083
test eax, eax
jne 0x40cfac
cmp dword [0x41c108], 1
je 0x40d083
cmp edx, 0xfc
je 0x40d0a9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cfe3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403940
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403a30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d026
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403a30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a6e4
push edi
call fcn.00403ab0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403940
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403950
lea eax, [ebp - 0xa0]
push 0x41a6c4
push eax
call fcn.00403950
push dword [esi + 0x41c9ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403950
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411966
add esp, 0x2c
pop edi
jmp 0x40d0a9
lea eax, [ebp + 8]
lea esi, [esi + 0x41c9ac]
push 0
push eax
push dword [esi]
call fcn.00403a30
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 0x40f791
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f7b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040de0a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40f7d2
test byte [esp + 8], 2
je 0x40f7d2
mov dword [0x41d9f8], 0xd
mov dword [0x41d9fc], 5
jmp 0x40f7ad
xor eax, eax
ret
Function at 0x402db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414548
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41a490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x402f41
cmp byte [ebx + 0x49], 0
je 0x402f41
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x402f35
lea esi, [ebp - 0x2c]
call fcn.004029f0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x402e23
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x402e5c
dec eax
je 0x402e60
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x402f3c
call fcn.00401950
xor al, al
jmp 0x402f43
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x402e70
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x402e9d
cmp edi, 0x10
jae 0x402e7f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004059ee
add esp, 0x10
cmp esi, eax
jne 0x402f2d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x402f39
test esi, esi
jne 0x402e17
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x402f5e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x402f5e
cmp edi, esi
jae 0x402f16
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403400
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x402e17
mov ecx, eax
cmp edi, 0x10
jae 0x402ef2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x402f0d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x402e11
test esi, esi
jne 0x402ee8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x402f25
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x402e11
lea ecx, [ebp - 0x2c]
call fcn.00401950
xor al, al
jmp 0x402f43
lea ecx, [ebp - 0x2c]
call fcn.00401950
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004048a6
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0040431c
int3
Function at 0x4032b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4144eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41a490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00404470
push 4
mov dword [ebp - 4], 0
call fcn.00405c4f
mov edi, eax
add esp, 4
test edi, edi
je 0x40332c
call fcn.0040426b
mov dword [edi], eax
call fcn.0040402a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00404431
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403322
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00404459
jmp 0x40332e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4048a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a490]
jne 0x4048b0
repz ret
jmp fcn.00408db0
Function at 0x412736
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a490]
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.0040b96a
and dword [ebp - 0x14], 0
cmp dword [0x41c208], 0
mov dword [ebp - 0x18], eax
jne 0x4127e9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412891
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x412891
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41c208], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41c20c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41c210], eax
call edi
push eax
call esi
mov dword [0x41c218], eax
test eax, eax
je 0x4127e9
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41c214], eax
mov eax, dword [0x41c214]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412842
cmp dword [0x41c218], ecx
je 0x412842
push eax
call esi
push dword [0x41c218]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412842
test ebx, ebx
je 0x412842
call edi
test eax, eax
je 0x412839
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412839
test byte [ebp - 8], 1
jne 0x412842
or dword [ebp + 0x10], 0x200000
jmp 0x412875
mov eax, dword [0x41c20c]
cmp eax, dword [ebp - 0x18]
je 0x412875
push eax
call esi
test eax, eax
je 0x412875
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412875
mov eax, dword [0x41c210]
cmp eax, dword [ebp - 0x18]
je 0x412875
push eax
call esi
test eax, eax
je 0x412875
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41c208]
call esi
test eax, eax
je 0x412891
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412893
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a6
leave
ret
Function at 0x10196aa7
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10196b6c
test eax, eax
je 0x10196b6c
push esi
push edi
mov ecx, 0x10
mov esi, 0x101b1f58
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x10196b53
lea edi, [eax + 4]
jmp 0x10196ab7
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x10196acc
mov dword [ebp - 4], 2
jmp 0x10196aed
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x10196ae3
mov dword [ebp - 4], 1
jmp 0x10196aed
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x10196b63
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x10196b26
mov byte [ecx], 0x3d
jmp 0x10196b32
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x10196b3d
mov byte [ecx], 0x3d
jmp 0x10196b43
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x10196ab4
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402bc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x406020]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, ecx
push edi
mov eax, esi
call fcn.00401aa2
push 0x410
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call edi
test eax, eax
jne 0x402c23
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00402d5e
add esp, 0x420
ret
cmp eax, 0x208
jae 0x402c0a
lea ecx, [esp + 8]
push ecx
push 0x209
call edi
test eax, eax
je 0x402c0a
cmp eax, 0x208
jae 0x402c0a
lea eax, [esp + 8]
mov word [esp + 0x418], 0
call fcn.00401b6e
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00402d5e
add esp, 0x420
ret

Function at 0x402d5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406020]
jne 0x402d68
repz ret
jmp fcn.004032dd
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401090
Capabilities:
Create process on windows

Disassembly:
push ecx
push 0x5cd278
push str.__________CALL_NEXT_PAGE_:__s
call fcn.00404ef0
add esp, 8
mov ecx, 0x5b87cf
mov eax, 0x5cd278
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4010d0
test dl, dl
je 0x4010cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4010d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4010b0
xor eax, eax
jmp 0x4010d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4010fc
push 5
push 0
push 0
push 0x5cd278
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push eax
push str.SHELL_RETURN_:__d
call fcn.00404ef0
add esp, 8
push 0
push 0
push 0x10
push dword [0x5cf76c]
mov dword [0x5cf7f0], 1
call dword [sym.imp.USER32.dll_PostMessageA]
pop ecx
ret
Function at 0x404ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x914
mov eax, dword [0x5c6a7c]
xor eax, esp
mov dword [esp + 0x910], eax
push esi
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0051cb90
add esp, 0xc
lea eax, [esp + 8]
push str.dropper2.log
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404f73
push str.INVALID_HANDLE_VALUE__n
call fcn.00401130
add esp, 4
pop esi
mov ecx, dword [esp + 0x910]
xor ecx, esp
call fcn.00519168
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0x51c]
push 0x400
push eax
call fcn.00401120
push dword [eax + 4]
push dword [eax]
call fcn.00522777
add esp, 0x1c
lea eax, [esp + 0x510]
push eax
push 0x5b8d78
lea eax, [esp + 0x118]
push 0x400
push eax
call fcn.00401170
add esp, 0x10
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fd4
push 0
lea ecx, [esp + 8]
sub eax, edx
push ecx
push eax
lea eax, [esp + 0x11c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x914]
pop esi
xor ecx, esp
call fcn.00519168
mov esp, ebp
pop ebp
ret
Function at 0x40e210
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x40e259
mov al, byte [esi]
push eax
call fcn.0041d600
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x40e237
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x417de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x712], 0
je 0x417e63
cmp dword [edi + 0x1b0], 0
je 0x417e2d
push esi
push 1
push edi
call fcn.0040a260
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0040a260
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x417e63
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x55a8d0
push 2
push eax
call fcn.00528500
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00528500
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4181e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5c6a7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x148]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.00418660
add esp, 0xc
test eax, eax
je 0x41823b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519168
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x4182b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x418280
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519168
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.00405fd0
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.00417e70
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x964], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00519168
mov esp, ebp
pop ebp
ret