joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428247
Capabilities:
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
mov byte [0xfcffda27], al
iretd
mov bh, 0xb0
jbe 0x42822c
add dl, byte [ecx + 0x10d01a6a]
int1
retf 0x20f8
int3
cmp byte [esi], 0xd7
dec esp
sar bh, 0xda
in eax, 0xdd
dec esi
jo 0x4281e0
or byte [ebp + 0x6d9cef8c], 0x63
fstp qword [ebx + ebp + 0x24]
aaa
leave
jp 0x428292
fsubr qword [esi]
ja 0x428292
ror dword [esi + 0x7c], 0x9b
aad 0x8a
js 0x4281fe
popfd
dec edx
cld
in eax, dx
call 0x202f9bfc
dec esi
xchg ebx, eax
lds ebp, [ecx - 0x57508725]
ret
rol esp, cl
movsb byte es:[edi], byte [esi]
cmp dl, 0x38
xor dword [edx], ecx
sbb byte [edx + 0x758ee5a0], 0x85
push 0x1d
lodsb al, byte [esi]
adc edi, dword [esp + edi*8 + 0x35]
and dh, dh
push eax
adc ebx, esp
invalid

Function at 0x42f180
Capabilities:
Encode data using xor

Disassembly:
invalid
xchg edx, eax
scasd eax, dword es:[edi]
mov cl, 0xd8
jns 0x42f074
sub byte [edi + 3], bh
mov dh, byte [edx]
test byte [eax + 0x23], bl
or dword [edi - 0x3a], eax
xchg ecx, eax
invalid
movsb byte es:[edi], byte [esi]
imul ebp, dword [ebx - 0x60f70abc], 0x3d3a5483
add al, byte [0x6e16038e]
not byte [esi - 0x63]
out 0x34, eax
mov dl, 0xac
js 0x42f090
add dh, byte [0x747fb99]
popal
adc edi, dword [ebx - 0x7287c28e]
xchg esi, eax
dec esp
push cs
stosb byte es:[edi], al
inc ebp
xor bh, byte [ebx]
cmp al, 0x61
inc ebp
invalid
jle 0x42f0af
push ebx
mul byte [esp + edx]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
sub eax, 4
jl 0x42f186
jmp 0x42f133
add byte [eax], al
add byte [ebp + 0x24a4], cl
add byte [eax], al
lea esp, [esp]
lea ebx, [ebx]
movq mm0, qword [esi]
pxor mm0, mm7
movq mm3, mm0
jg 0x42f0ff
movq mm1, qword [ebx + esi]
or al, 0x33
punpcklwd mm0, mm6
pxor mm1, mm7
movq mm2, qword [esi + ebx*2]
movq mm4, mm1
pxor mm2, mm7
add edi, 0x10
prefetcht0 byte [esi + ebx*2 + 0x40]
punpcklwd mm1, mm6
movq mm5, mm2
punpcklwd mm2, mm6
paddd mm0, mm1
punpckhwd mm3, mm6
paddd mm0, mm2
punpckhwd mm4, mm6
paddd mm3, mm4
int3
loope 0x42f13e
test eax, 0x47adadc2
inc edi
jne 0x42f11c
xor dword [ebx], eax
rcl byte [edx], cl
insb byte es:[edi], dx
pop ecx
mov ebx, 0xcab16a3d
adc al, 0xdd
daa
fmul qword [ebp + 0x28]
inc esi
ja 0x42f13a
sar cl, cl
fdivr dword [esi - 0x623556c8]
sub byte [eax + 0x44f054b0], ch
inc esi
push 0x41
mov eax, 0x4e8a0c44
invalid
Function at 0x624a03
Capabilities:
Encode data using xor

Disassembly:
pop ebx
rdmsr
push es
or eax, dword [ecx + 0x12]
jns 0x624a72
sub eax, edi
int 0xf5
pop eax
invalid
mov byte [0x66c365e6], al
adc byte [edi - 0x5a], 0xdb
cmpsb byte [esi], byte es:[edi]
iretd
mov dl, 0x47
cld
fidiv dword [esi - 0x14ecac8b]
out dx, eax
lahf
xchg esi, eax
jno 0x624a9b
cmp byte [edi + edx + 0x71c880a2], ah
lcall 0x894e, 0xbb9f030c
xor ah, byte [ebp + 0x63]
mov eax, dword [0x9e8a8d2c]
lds esi, [ebx - 0x2b]
nop
je 0x624a80
in al, 0xd2
popal
cmp byte [ebp - 0x71], ah
and eax, 0xdab26e82
in eax, dx
jnp 0x624a35
shl byte [ecx + 0x38], cl
invalid
push 0xffffffffffffffd4
and eax, 0xf144fac1
iretd

Function at 0x62a181
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6333d0
cmp edx, dword [eax]
je 0x62a1a3
add eax, 8
inc ecx
cmp eax, 0x633460
jl 0x62a194
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6333d0]
jne 0x62a2d1
mov eax, dword [0x63bf64]
cmp eax, 1
je 0x62a2ab
test eax, eax
jne 0x62a1d4
cmp dword [0x6332fc], 1
je 0x62a2ab
cmp edx, 0xfc
je 0x62a2d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62a20b
lea eax, [ebp - 0x1a4]
push 0x62fc20
push eax
call fcn.0062ab60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062aff0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62a24e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062aff0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62fc1c
push edi
call fcn.0062cec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x62fc00
push eax
call fcn.0062ab60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062ab70
lea eax, [ebp - 0xa0]
push 0x62fbfc
push eax
call fcn.0062ab70
push dword [esi + 0x6333d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062ab70
push 0x12010
lea eax, [ebp - 0xa0]
push 0x62fbd4
push eax
call fcn.0062ce34
add esp, 0x2c
pop edi
jmp 0x62a2d1
lea eax, [ebp + 8]
lea esi, [esi + 0x6333d4]
push 0
push eax
push dword [esi]
call fcn.0062aff0
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 0x40367e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [esp], 0x30
call fcn.00402cf9
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0x4060e0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00403653
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x40379d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4036e8
mov eax, 0
jmp 0x4037bb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
jmp 0x40378d
mov eax, dword [ebp - 0xc]
shl eax, 2
add eax, dword [ebp - 0x38]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.004035b7
mov dword [esp], eax
call fcn.00402be8
cmp eax, dword [ebp + 8]
sete al
test al, al
je 0x40378a
mov eax, dword [ebp - 0xc]
shl eax, 1
add eax, dword [ebp - 0x40]
mov ax, word [eax]
movzx eax, ax
shl eax, 2
add eax, dword [ebp - 0x3c]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
jmp 0x4037bb
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 0xc]
seta al
test al, al
jne 0x403733
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
setne al
test al, al
jne 0x4036cf
mov eax, 0
leave
ret
Function at 0x4039ae
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x130
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x125]
mov ebx, eax
mov al, pe_nt_image_headers32
mov edx, 0x100
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0x10], 0
jmp 0x4039f8
mov eax, dword [ebp - 0x10]
add eax, 0x4198c0
mov al, byte [eax]
movzx eax, al
mov edx, dword [ebp - 0x10]
mov byte [ebp + eax - 0x125], dl
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x3f
setbe al
test al, al
jne 0x4039de
mov byte [ebp - 0xe8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x403a38
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add eax, edx
mov al, byte [eax]
movzx eax, al
mov al, byte [ebp + eax - 0x125]
cmp al, 0x80
je 0x403a35
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
setb al
test al, al
jne 0x403a1a
cmp dword [ebp - 0x14], 0
je 0x403a55
mov eax, dword [ebp - 0x14]
and eax, 3
test eax, eax
je 0x403a5f
mov eax, 0
jmp 0x403bac
mov eax, dword [ebp - 0x14]
mov edx, eax
shr edx, 2
mov eax, edx
shl eax, 1
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00404c44
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], 0
jne 0x403a94
mov eax, 0
jmp 0x403bac
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x403b85
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add eax, edx
mov al, byte [eax]
movzx eax, al
mov al, byte [ebp + eax - 0x125]
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0x80
je 0x403b81
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add eax, edx
mov al, byte [eax]
cmp al, 0x3d
jne 0x403ad9
inc dword [ebp - 0x18]
lea eax, [ebp - 0x25]
add eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0x21]
mov byte [eax], dl
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jne 0x403b82
mov al, byte [ebp - 0x25]
movzx eax, al
shl eax, 2
mov dl, al
mov al, byte [ebp - 0x24]
movzx eax, al
sar eax, 4
or eax, edx
mov dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax], dl
inc dword [ebp - 0xc]
mov al, byte [ebp - 0x24]
movzx eax, al
shl eax, 4
mov dl, al
mov al, byte [ebp - 0x23]
movzx eax, al
sar eax, 2
or eax, edx
mov dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax], dl
inc dword [ebp - 0xc]
mov al, byte [ebp - 0x23]
movzx eax, al
shl eax, 6
mov dl, al
mov al, byte [ebp - 0x22]
or eax, edx
mov dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax], dl
inc dword [ebp - 0xc]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x403b82
cmp dword [ebp - 0x18], 1
jne 0x403b63
dec dword [ebp - 0xc]
jmp 0x403b96
cmp dword [ebp - 0x18], 2
jne 0x403b6f
sub dword [ebp - 0xc], 2
jmp 0x403b96
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00404c4c
mov eax, 0
jmp 0x403bac
nop
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
setb al
test al, al
jne 0x403aa7
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, edx
sub ecx, eax
mov eax, ecx
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
add esp, 0x130
pop ebx
pop edi
pop ebp
ret
Function at 0x401670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4113dc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.00403090
mov dword [edi + 0x38], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edi + 0x54], 7
mov dword [edi + 0x50], 0
mov word [edi + 0x40], ax
mov dword [edi + 0x6c], 7
mov dword [edi + 0x68], eax
mov word [edi + 0x58], ax
mov dword [edi + 0x84], 7
mov dword [edi + 0x80], eax
mov word [edi + 0x70], ax
mov byte [ebp - 4], 3
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi], eax
mov byte [edi + 0xc], al
mov byte [edi + 0x88], al
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], eax
lea eax, [edi + 0x14]
push eax
mov dword [edi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40175a
cmp word [edx], 0
jne 0x40173c
xor ecx, ecx
jmp 0x401750
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401741
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x40]
call fcn.00402620
call fcn.00405a60
cmp eax, 0x68
jl 0x401797
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x401797
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNamedPipeServerProcessId
push ebx
call esi
push str.GetNamedPipeClientProcessId
push ebx
mov dword [edi + 0x8c], eax
call esi
mov dword [edi + 0x90], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401900
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411460
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movq qword [ebp - 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, dword [esi + 0x10]
sub eax, 0
je 0x4019ad
dec eax
je 0x401955
mov eax, 8
jmp 0x401a77
lea edx, [esi + 0x40]
lea ecx, [ebp - 0x2c]
call fcn.00401c00
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x401994
cmp dword [ebp - 0x18], 8
jb 0x40198a
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 4
jmp 0x401a77
cmp dword [ebp - 0x18], 8
jb 0x4019a6
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x401a77
push 0
push 0
push 1
push 0
mov byte [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4019d0
mov eax, 2
jmp 0x401a77
lea edx, [esi + 0x40]
lea ecx, [ebp - 0x44]
call fcn.00401c00
lea ecx, [esi + 0x70]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x4019f6
push 0xffffffffffffffff
push 0
push eax
call fcn.00402530
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push 0x3e8
push 0
push 0
push 1
push 0xe
push 0x80003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x401a34
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x4c], 0
cmp dword [esi + 0x2c], 0xffffffff
jne 0x401a4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 5]
neg esi
sbb esi, esi
add esi, 3
jmp 0x401a63
push dword [esi + 8]
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
call fcn.00401320
mov esi, eax
cmp dword [ebp - 0x30], 8
jb 0x401a75
push dword [ebp - 0x44]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410663
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401cb0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x401da5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401d40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x401d90
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x401d90
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401d90
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x401d84
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x401d84
push 0
push dword [ebp - 0xc]
push 0x40c
push dword [ebp - 0x10]
push 0x410
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov esi, eax
cmp edi, 0xffffffff
je 0x401d90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410663
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410663
mov esp, ebp
pop ebp
ret 0x20
Function at 0x406760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x411c2e
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov dword [esp + 0xc], ecx
cmp dword [ecx + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
jne 0x4067c8
lea ecx, [esp + 0x14]
call fcn.00405d50
push 0x415fe4
lea eax, [esp + 0x18]
push eax
call sub.MSVCR120.dll__CxxThrowException
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [esp + 0x9c], 0
push 0
movdqa xmmword [esp + 0x74], xmm0
mov dword [esp + 0x84], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
mov dword [esp + 0x94], esi
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xb0], 0
mov dword [esp + 0x74], esi
mov dword [esp + 0x98], esi
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x9c], eax
cmp esi, 0xffffffff
jne 0x406860
push 0
push esi
push str.Failed_to_create_connection
lea ecx, [esp + 0x3c]
call fcn.0040e865
lea eax, [esp + 0x30]
mov byte [esp + 0xb0], 1
push eax
lea ecx, [esp + 0x18]
call fcn.00405cc0
push 0x415fd4
lea eax, [esp + 0x18]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406870
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x94]
push eax
push dword [ebp + 0xc]
push dword [esp + 0x1c]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4068ea
call edi
cmp eax, 0x3e5
jne 0x406916
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa0]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [esp + 0xc]
sub eax, 0
je 0x4068d2
dec eax
jne 0x406870
lea ecx, [esp + 0x14]
call fcn.00405d50
push 0x415fe4
lea eax, [esp + 0x18]
push eax
call sub.MSVCR120.dll__CxxThrowException
push 1
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x6c]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00410663
mov esp, ebp
pop ebp
ret 8
call edi
cmp eax, 0xe8
je 0x40695f
call edi
cmp eax, 0xe9
je 0x40695f
push 0
push 0xffffffffffffffff
push str.Connection_Closed
lea ecx, [esp + 0x3c]
call fcn.0040e865
lea eax, [esp + 0x30]
mov byte [esp + 0xb0], 2
push eax
lea ecx, [esp + 0x4c]
call fcn.00405cc0
push 0x415fd4
lea eax, [esp + 0x4c]
push eax
call sub.MSVCR120.dll__CxxThrowException
lea ecx, [esp + 0x48]
call fcn.00405d50
push 0x415fe4
lea eax, [esp + 0x4c]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3
Function at 0x407a60
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0
jne 0x407b30
push ebx
push esi
push str.mapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0xc
mov dword [edi + 0x18], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407ad0
xorps xmm0, xmm0
movq qword [ebx], xmm0
push str.MAPIFreeBuffer
mov dword [ebx + 8], 0
push dword [edi + 0x18]
call esi
push str.MAPIAllocateBuffer
push dword [edi + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], vtable.MapiAllocator.0
mov dword [ebx + 4], eax
jmp 0x407ad2
xor ebx, ebx
push str.MAPIInitialize
push dword [edi + 0x18]
mov dword [edi + 0x1c], ebx
call esi
push str.MAPIUninitialize
push dword [edi + 0x18]
mov dword [edi + 0x24], eax
call esi
push str.MAPILogonEx
push dword [edi + 0x18]
mov dword [edi + 0x28], eax
call esi
push str.MAPIAdminProfiles
push dword [edi + 0x18]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x24]
pop esi
pop ebx
test eax, eax
je 0x407b30
cmp dword [edi + 0x28], 0
je 0x407b30
cmp dword [edi + 0x2c], 0
je 0x407b30
push 0
call eax
mov dword [edi + 0x14], eax
test eax, eax
js 0x407b30
mov dword [edi + 0x34], 1
pop edi
ret
Function at 0x410237
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x410270
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0xffffffffffffffff
push str.unable_to_create_tls_index
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.RSException.0
call fcn.0040e865
push 0x415f70
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3
Function at 0x604580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x178000]
push edi
or ebp, 0xffffffff
jmp 0x6045a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6045a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x604598
mov eax, 1
add ebx, ebx
jne 0x6045bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6045cc
jne 0x6045eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6045eb
dec eax
add ebx, ebx
jne 0x6045d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6045b0
add ebx, ebx
jne 0x6045e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x60463d
xor ecx, ecx
sub eax, 3
jb 0x604603
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x604672
sar eax, 1
mov ebp, eax
jmp 0x60460e
add ebx, ebx
jne 0x60460e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6045dc
inc ecx
add ebx, ebx
jne 0x60461c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6045dc
add ebx, ebx
jne 0x604629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x60461e
jne 0x60463a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x60461e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x60465c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x60464e
jmp 0x60459e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x60465c
add edi, ecx
jmp 0x60459e
pop esi
mov edi, esi
mov ecx, 0x839b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x60467a
cmp byte [edi], 0x17
jne 0x60467a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x60467f
lea edi, [esi + 0x1f8000]
mov eax, dword [edi]
or eax, eax
je 0x6046f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2095d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x209778]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6046ac
mov ecx, edi
jns 0x6046db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20977c]
or eax, eax
je 0x6046f1
mov dword [ebx], eax
add ebx, 4
jmp 0x6046c9
call dword [esi + 0x20978c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x604728
cmp al, 0xef
ja 0x60471b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6046fd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x60470a
mov ebp, dword [esi + 0x209780]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x60475c
sub esp, 0xffffff80
jmp 0x4de43b